Savior

Hashmap of CSS colors

Feb 15th, 2020
662
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. use std::collections::HashMap as Map;
  2.  
  3. fn main() {
  4.     let css_colors: Map<_, _> = [("IndianRed", (205u8,92u8,92u8)),
  5.         ("LightCoral", (240u8,128u8,128u8)),
  6.         ("Salmon", (250u8,128u8,114u8)),
  7.         ("DarkSalmon", (233u8,150u8,122u8)),
  8.         ("LightSalmon", (255u8,160u8,122u8)),
  9.         ("Crimson", (220u8,20u8,60u8)),
  10.         ("Red", (255u8,0u8,0u8)),
  11.         ("FireBrick", (178u8,34u8,34u8)),
  12.         ("DarkRed", (139u8,0u8,0u8)),
  13.         ("Pink", (255u8,192u8,203u8)),
  14.         ("LightPink", (255u8,182u8,193u8)),
  15.         ("HotPink", (255u8,105u8,180u8)),
  16.         ("DeepPink", (255u8,20u8,147u8)),
  17.         ("MediumVioletRed", (199u8,21u8,133u8)),
  18.         ("PaleVioletRed", (219u8,112u8,147u8)),
  19.         ("Coral", (255u8,127u8,80u8)),
  20.         ("Tomato", (255u8,99u8,71u8)),
  21.         ("OrangeRed", (255u8,69u8,0u8)),
  22.         ("DarkOrange", (255u8,140u8,0u8)),
  23.         ("Orange", (255u8,165u8,0u8)),
  24.         ("Gold", (255u8,215u8,0u8)),
  25.         ("Yellow", (255u8,255u8,0u8)),
  26.         ("LightYellow", (255u8,255u8,224u8)),
  27.         ("LemonChiffon", (255u8,250u8,205u8)),
  28.         ("LightGoldenrodYellow", (250u8,250u8,210u8)),
  29.         ("PapayaWhip", (255u8,239u8,213u8)),
  30.         ("Moccasin", (255u8,228u8,181u8)),
  31.         ("PeachPuff", (255u8,218u8,185u8)),
  32.         ("PaleGoldenrod", (238u8,232u8,170u8)),
  33.         ("Khaki", (240u8,230u8,140u8)),
  34.         ("DarkKhaki", (189u8,183u8,107u8)),
  35.         ("Lavender", (230u8,230u8,250u8)),
  36.         ("Thistle", (216u8,191u8,216u8)),
  37.         ("Plum", (221u8,160u8,221u8)),
  38.         ("Violet", (238u8,130u8,238u8)),
  39.         ("Orchid", (218u8,112u8,214u8)),
  40.         ("Fuchsia", (255u8,0u8,255u8)),
  41.         ("Magenta", (255u8,0u8,255u8)),
  42.         ("MediumOrchid", (186u8,85u8,211u8)),
  43.         ("MediumPurple", (147u8,112u8,219u8)),
  44.         ("BlueViolet", (138u8,43u8,226u8)),
  45.         ("DarkViolet", (148u8,0u8,211u8)),
  46.         ("DarkOrchid", (153u8,50u8,204u8)),
  47.         ("DarkMagenta", (139u8,0u8,139u8)),
  48.         ("Purple", (128u8,0u8,128u8)),
  49.         ("RebeccaPurple", (102u8,51u8,153u8)),
  50.         ("Indigo", (75u8,0u8,130u8)),
  51.         ("MediumSlateBlue", (123u8,104u8,238u8)),
  52.         ("SlateBlue", (106u8,90u8,205u8)),
  53.         ("DarkSlateBlue", (72u8,61u8,139u8)),
  54.         ("GreenYellow", (173u8,255u8,47u8)),
  55.         ("Chartreuse", (127u8,255u8,0u8)),
  56.         ("LawnGreen", (124u8,252u8,0u8)),
  57.         ("Lime", (0u8,255u8,0u8)),
  58.         ("LimeGreen", (50u8,205u8,50u8)),
  59.         ("PaleGreen", (152u8,251u8,152u8)),
  60.         ("LightGreen", (144u8,238u8,144u8)),
  61.         ("MediumSpringGreen", (0u8,250u8,154u8)),
  62.         ("SpringGreen", (0u8,255u8,127u8)),
  63.         ("MediumSeaGreen", (60u8,179u8,113u8)),
  64.         ("SeaGreen", (46u8,139u8,87u8)),
  65.         ("ForestGreen", (34u8,139u8,34u8)),
  66.         ("Green", (0u8,128u8,0u8)),
  67.         ("DarkGreen", (0u8,100u8,0u8)),
  68.         ("YellowGreen", (154u8,205u8,50u8)),
  69.         ("OliveDrab", (107u8,142u8,35u8)),
  70.         ("Olive", (128u8,128u8,0u8)),
  71.         ("DarkOliveGreen", (85u8,107u8,47u8)),
  72.         ("MediumAquamarine", (102u8,205u8,170u8)),
  73.         ("DarkSeaGreen", (143u8,188u8,143u8)),
  74.         ("LightSeaGreen", (32u8,178u8,170u8)),
  75.         ("DarkCyan", (0u8,139u8,139u8)),
  76.         ("Teal", (0u8,128u8,128u8)),
  77.         ("Aqua", (0u8,255u8,255u8)),
  78.         ("Cyan", (0u8,255u8,255u8)),
  79.         ("LightCyan", (224u8,255u8,255u8)),
  80.         ("PaleTurquoise", (175u8,238u8,238u8)),
  81.         ("Aquamarine", (127u8,255u8,212u8)),
  82.         ("Turquoise", (64u8,224u8,208u8)),
  83.         ("MediumTurquoise", (72u8,209u8,204u8)),
  84.         ("DarkTurquoise", (0u8,206u8,209u8)),
  85.         ("CadetBlue", (95u8,158u8,160u8)),
  86.         ("SteelBlue", (70u8,130u8,180u8)),
  87.         ("LightSteelBlue", (176u8,196u8,222u8)),
  88.         ("PowderBlue", (176u8,224u8,230u8)),
  89.         ("LightBlue", (173u8,216u8,230u8)),
  90.         ("SkyBlue", (135u8,206u8,235u8)),
  91.         ("LightSkyBlue", (135u8,206u8,250u8)),
  92.         ("DeepSkyBlue", (0u8,191u8,255u8)),
  93.         ("DodgerBlue", (30u8,144u8,255u8)),
  94.         ("CornflowerBlue", (100u8,149u8,237u8)),
  95.         ("RoyalBlue", (65u8,105u8,225u8)),
  96.         ("Blue", (0u8,0u8,255u8)),
  97.         ("MediumBlue", (0u8,0u8,205u8)),
  98.         ("DarkBlue", (0u8,0u8,139u8)),
  99.         ("Navy", (0u8,0u8,128u8)),
  100.         ("MidnightBlue", (25u8,25u8,112u8)),
  101.         ("Cornsilk", (255u8,248u8,220u8)),
  102.         ("BlanchedAlmond", (255u8,235u8,205u8)),
  103.         ("Bisque", (255u8,228u8,196u8)),
  104.         ("NavajoWhite", (255u8,222u8,173u8)),
  105.         ("Wheat", (245u8,222u8,179u8)),
  106.         ("BurlyWood", (222u8,184u8,135u8)),
  107.         ("Tan", (210u8,180u8,140u8)),
  108.         ("RosyBrown", (188u8,143u8,143u8)),
  109.         ("SandyBrown", (244u8,164u8,96u8)),
  110.         ("Goldenrod", (218u8,165u8,32u8)),
  111.         ("DarkGoldenrod", (184u8,134u8,11u8)),
  112.         ("Peru", (205u8,133u8,63u8)),
  113.         ("Chocolate", (210u8,105u8,30u8)),
  114.         ("SaddleBrown", (139u8,69u8,19u8)),
  115.         ("Sienna", (160u8,82u8,45u8)),
  116.         ("Brown", (165u8,42u8,42u8)),
  117.         ("Maroon", (128u8,0u8,0u8)),
  118.         ("White", (255u8,255u8,255u8)),
  119.         ("Snow", (255u8,250u8,250u8)),
  120.         ("Honeydew", (240u8,255u8,240u8)),
  121.         ("MintCream", (245u8,255u8,250u8)),
  122.         ("Azure", (240u8,255u8,255u8)),
  123.         ("AliceBlue", (240u8,248u8,255u8)),
  124.         ("GhostWhite", (248u8,248u8,255u8)),
  125.         ("WhiteSmoke", (245u8,245u8,245u8)),
  126.         ("Seashell", (255u8,245u8,238u8)),
  127.         ("Beige", (245u8,245u8,220u8)),
  128.         ("OldLace", (253u8,245u8,230u8)),
  129.         ("FloralWhite", (255u8,250u8,240u8)),
  130.         ("Ivory", (255u8,255u8,240u8)),
  131.         ("AntiqueWhite", (250u8,235u8,215u8)),
  132.         ("Linen", (250u8,240u8,230u8)),
  133.         ("LavenderBlush", (255u8,240u8,245u8)),
  134.         ("MistyRose", (255u8,228u8,225u8)),
  135.         ("Gainsboro", (220u8,220u8,220u8)),
  136.         ("LightGray", (211u8,211u8,211u8)),
  137.         ("LightGrey", (211u8,211u8,211u8)),
  138.         ("Silver", (192u8,192u8,192u8)),
  139.         ("DarkGray", (169u8,169u8,169u8)),
  140.         ("DarkGrey", (169u8,169u8,169u8)),
  141.         ("Gray", (128u8,128u8,128u8)),
  142.         ("Grey", (128u8,128u8,128u8)),
  143.         ("DimGray", (105u8,105u8,105u8)),
  144.         ("DimGrey", (105u8,105u8,105u8)),
  145.         ("LightSlateGray", (119u8,136u8,153u8)),
  146.         ("LightSlateGrey", (119u8,136u8,153u8)),
  147.         ("SlateGray", (112u8,128u8,144u8)),
  148.         ("SlateGrey", (112u8,128u8,144u8)),
  149.         ("DarkSlateGray", (47u8,79u8,79u8)),
  150.         ("DarkSlateGrey", (47u8,79u8,79u8)),
  151.         ("Black", (0u8,0u8,0u8)),
  152.     ].iter().copied().collect();
  153.  
  154.     println!("{:?}", css_colors);
  155. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×