// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.

// This file is autogenerated. Do not edit it!

use Color;

static COLORS: ::phf::Map<&'static str, Color> = ::phf::Map {
    key: 9603444721912725599,
    disps: ::phf::Slice::Static(&[
        (0, 33),
        (0, 12),
        (0, 17),
        (0, 0),
        (2, 94),
        (3, 47),
        (2, 143),
        (0, 3),
        (1, 50),
        (0, 18),
        (7, 103),
        (0, 3),
        (1, 100),
        (1, 0),
        (2, 0),
        (1, 17),
        (0, 5),
        (3, 94),
        (2, 34),
        (0, 25),
        (14, 30),
        (0, 54),
        (1, 10),
        (0, 9),
        (1, 45),
        (1, 38),
        (0, 0),
        (10, 142),
        (93, 26),
        (19, 90),
    ]),
    entries: ::phf::Slice::Static(&[
        ("darkslategray", Color{ red: 47, green: 79, blue: 79 }),
        ("moccasin", Color{ red: 255, green: 228, blue: 181 }),
        ("green", Color{ red: 0, green: 128, blue: 0 }),
        ("palegoldenrod", Color{ red: 238, green: 232, blue: 170 }),
        ("cadetblue", Color{ red: 95, green: 158, blue: 160 }),
        ("darkblue", Color{ red: 0, green: 0, blue: 139 }),
        ("fuchsia", Color{ red: 255, green: 0, blue: 255 }),
        ("yellowgreen", Color{ red: 154, green: 205, blue: 50 }),
        ("lightsalmon", Color{ red: 255, green: 160, blue: 122 }),
        ("tomato", Color{ red: 255, green: 99, blue: 71 }),
        ("beige", Color{ red: 245, green: 245, blue: 220 }),
        ("crimson", Color{ red: 220, green: 20, blue: 60 }),
        ("lightgrey", Color{ red: 211, green: 211, blue: 211 }),
        ("darkorange", Color{ red: 255, green: 140, blue: 0 }),
        ("gainsboro", Color{ red: 220, green: 220, blue: 220 }),
        ("whitesmoke", Color{ red: 245, green: 245, blue: 245 }),
        ("mintcream", Color{ red: 245, green: 255, blue: 250 }),
        ("seagreen", Color{ red: 46, green: 139, blue: 87 }),
        ("royalblue", Color{ red: 65, green: 105, blue: 225 }),
        ("aqua", Color{ red: 0, green: 255, blue: 255 }),
        ("burlywood", Color{ red: 222, green: 184, blue: 135 }),
        ("antiquewhite", Color{ red: 250, green: 235, blue: 215 }),
        ("navajowhite", Color{ red: 255, green: 222, blue: 173 }),
        ("darkred", Color{ red: 139, green: 0, blue: 0 }),
        ("darkgray", Color{ red: 169, green: 169, blue: 169 }),
        ("navy", Color{ red: 0, green: 0, blue: 128 }),
        ("black", Color{ red: 0, green: 0, blue: 0 }),
        ("khaki", Color{ red: 240, green: 230, blue: 140 }),
        ("ghostwhite", Color{ red: 248, green: 248, blue: 255 }),
        ("mediumaquamarine", Color{ red: 102, green: 205, blue: 170 }),
        ("lightgreen", Color{ red: 144, green: 238, blue: 144 }),
        ("paleturquoise", Color{ red: 175, green: 238, blue: 238 }),
        ("papayawhip", Color{ red: 255, green: 239, blue: 213 }),
        ("lightslategrey", Color{ red: 119, green: 136, blue: 153 }),
        ("linen", Color{ red: 250, green: 240, blue: 230 }),
        ("dimgrey", Color{ red: 105, green: 105, blue: 105 }),
        ("mediumspringgreen", Color{ red: 0, green: 250, blue: 154 }),
        ("slateblue", Color{ red: 106, green: 90, blue: 205 }),
        ("chocolate", Color{ red: 210, green: 105, blue: 30 }),
        ("silver", Color{ red: 192, green: 192, blue: 192 }),
        ("deepskyblue", Color{ red: 0, green: 191, blue: 255 }),
        ("chartreuse", Color{ red: 127, green: 255, blue: 0 }),
        ("mistyrose", Color{ red: 255, green: 228, blue: 225 }),
        ("darkgreen", Color{ red: 0, green: 100, blue: 0 }),
        ("mediumvioletred", Color{ red: 199, green: 21, blue: 133 }),
        ("cornsilk", Color{ red: 255, green: 248, blue: 220 }),
        ("limegreen", Color{ red: 50, green: 205, blue: 50 }),
        ("darkviolet", Color{ red: 148, green: 0, blue: 211 }),
        ("lavender", Color{ red: 230, green: 230, blue: 250 }),
        ("firebrick", Color{ red: 178, green: 34, blue: 34 }),
        ("azure", Color{ red: 240, green: 255, blue: 255 }),
        ("lightcyan", Color{ red: 224, green: 255, blue: 255 }),
        ("hotpink", Color{ red: 255, green: 105, blue: 180 }),
        ("darkgoldenrod", Color{ red: 184, green: 134, blue: 11 }),
        ("lemonchiffon", Color{ red: 255, green: 250, blue: 205 }),
        ("honeydew", Color{ red: 240, green: 255, blue: 240 }),
        ("steelblue", Color{ red: 70, green: 130, blue: 180 }),
        ("mediumseagreen", Color{ red: 60, green: 179, blue: 113 }),
        ("orange", Color{ red: 255, green: 165, blue: 0 }),
        ("gray", Color{ red: 128, green: 128, blue: 128 }),
        ("lavenderblush", Color{ red: 255, green: 240, blue: 245 }),
        ("rosybrown", Color{ red: 188, green: 143, blue: 143 }),
        ("palevioletred", Color{ red: 219, green: 112, blue: 147 }),
        ("greenyellow", Color{ red: 173, green: 255, blue: 47 }),
        ("mediumblue", Color{ red: 0, green: 0, blue: 205 }),
        ("lightgray", Color{ red: 211, green: 211, blue: 211 }),
        ("magenta", Color{ red: 255, green: 0, blue: 255 }),
        ("darkslategrey", Color{ red: 47, green: 79, blue: 79 }),
        ("indianred", Color{ red: 205, green: 92, blue: 92 }),
        ("blue", Color{ red: 0, green: 0, blue: 255 }),
        ("powderblue", Color{ red: 176, green: 224, blue: 230 }),
        ("floralwhite", Color{ red: 255, green: 250, blue: 240 }),
        ("lightseagreen", Color{ red: 32, green: 178, blue: 170 }),
        ("brown", Color{ red: 165, green: 42, blue: 42 }),
        ("lightblue", Color{ red: 173, green: 216, blue: 230 }),
        ("olive", Color{ red: 128, green: 128, blue: 0 }),
        ("deeppink", Color{ red: 255, green: 20, blue: 147 }),
        ("midnightblue", Color{ red: 25, green: 25, blue: 112 }),
        ("white", Color{ red: 255, green: 255, blue: 255 }),
        ("cornflowerblue", Color{ red: 100, green: 149, blue: 237 }),
        ("forestgreen", Color{ red: 34, green: 139, blue: 34 }),
        ("lightyellow", Color{ red: 255, green: 255, blue: 224 }),
        ("wheat", Color{ red: 245, green: 222, blue: 179 }),
        ("purple", Color{ red: 128, green: 0, blue: 128 }),
        ("mediumorchid", Color{ red: 186, green: 85, blue: 211 }),
        ("darkolivegreen", Color{ red: 85, green: 107, blue: 47 }),
        ("aquamarine", Color{ red: 127, green: 255, blue: 212 }),
        ("pink", Color{ red: 255, green: 192, blue: 203 }),
        ("lime", Color{ red: 0, green: 255, blue: 0 }),
        ("dodgerblue", Color{ red: 30, green: 144, blue: 255 }),
        ("springgreen", Color{ red: 0, green: 255, blue: 127 }),
        ("blueviolet", Color{ red: 138, green: 43, blue: 226 }),
        ("oldlace", Color{ red: 253, green: 245, blue: 230 }),
        ("red", Color{ red: 255, green: 0, blue: 0 }),
        ("sandybrown", Color{ red: 244, green: 164, blue: 96 }),
        ("grey", Color{ red: 128, green: 128, blue: 128 }),
        ("salmon", Color{ red: 250, green: 128, blue: 114 }),
        ("lawngreen", Color{ red: 124, green: 252, blue: 0 }),
        ("peachpuff", Color{ red: 255, green: 218, blue: 185 }),
        ("darkorchid", Color{ red: 153, green: 50, blue: 204 }),
        ("yellow", Color{ red: 255, green: 255, blue: 0 }),
        ("darkgrey", Color{ red: 169, green: 169, blue: 169 }),
        ("darkseagreen", Color{ red: 143, green: 188, blue: 143 }),
        ("plum", Color{ red: 221, green: 160, blue: 221 }),
        ("lightslategray", Color{ red: 119, green: 136, blue: 153 }),
        ("aliceblue", Color{ red: 240, green: 248, blue: 255 }),
        ("sienna", Color{ red: 160, green: 82, blue: 45 }),
        ("seashell", Color{ red: 255, green: 245, blue: 238 }),
        ("lightgoldenrodyellow", Color{ red: 250, green: 250, blue: 210 }),
        ("peru", Color{ red: 205, green: 133, blue: 63 }),
        ("darkmagenta", Color{ red: 139, green: 0, blue: 139 }),
        ("saddlebrown", Color{ red: 139, green: 69, blue: 19 }),
        ("orangered", Color{ red: 255, green: 69, blue: 0 }),
        ("lightskyblue", Color{ red: 135, green: 206, blue: 250 }),
        ("lightcoral", Color{ red: 240, green: 128, blue: 128 }),
        ("snow", Color{ red: 255, green: 250, blue: 250 }),
        ("mediumpurple", Color{ red: 147, green: 112, blue: 219 }),
        ("skyblue", Color{ red: 135, green: 206, blue: 235 }),
        ("goldenrod", Color{ red: 218, green: 165, blue: 32 }),
        ("indigo", Color{ red: 75, green: 0, blue: 130 }),
        ("mediumturquoise", Color{ red: 72, green: 209, blue: 204 }),
        ("darksalmon", Color{ red: 233, green: 150, blue: 122 }),
        ("olivedrab", Color{ red: 107, green: 142, blue: 35 }),
        ("blanchedalmond", Color{ red: 255, green: 235, blue: 205 }),
        ("turquoise", Color{ red: 64, green: 224, blue: 208 }),
        ("darkslateblue", Color{ red: 72, green: 61, blue: 139 }),
        ("darkturquoise", Color{ red: 0, green: 206, blue: 209 }),
        ("thistle", Color{ red: 216, green: 191, blue: 216 }),
        ("slategrey", Color{ red: 112, green: 128, blue: 144 }),
        ("maroon", Color{ red: 128, green: 0, blue: 0 }),
        ("palegreen", Color{ red: 152, green: 251, blue: 152 }),
        ("darkcyan", Color{ red: 0, green: 139, blue: 139 }),
        ("tan", Color{ red: 210, green: 180, blue: 140 }),
        ("darkkhaki", Color{ red: 189, green: 183, blue: 107 }),
        ("bisque", Color{ red: 255, green: 228, blue: 196 }),
        ("teal", Color{ red: 0, green: 128, blue: 128 }),
        ("lightpink", Color{ red: 255, green: 182, blue: 193 }),
        ("slategray", Color{ red: 112, green: 128, blue: 144 }),
        ("gold", Color{ red: 255, green: 215, blue: 0 }),
        ("coral", Color{ red: 255, green: 127, blue: 80 }),
        ("cyan", Color{ red: 0, green: 255, blue: 255 }),
        ("orchid", Color{ red: 218, green: 112, blue: 214 }),
        ("violet", Color{ red: 238, green: 130, blue: 238 }),
        ("dimgray", Color{ red: 105, green: 105, blue: 105 }),
        ("ivory", Color{ red: 255, green: 255, blue: 240 }),
        ("lightsteelblue", Color{ red: 176, green: 196, blue: 222 }),
        ("mediumslateblue", Color{ red: 123, green: 104, blue: 238 }),
    ]),
};

pub fn rgb_color_from_name(text: &str) -> Option<Color> {
    let s = text.to_lowercase();
    COLORS.get(s.as_str()).cloned()
}
