Skip to content

Commit

Permalink
Fixes #3 Improves shorter-css-color-names regexes
Browse files Browse the repository at this point in the history
  • Loading branch information
Cas Cornelissen committed May 18, 2018
1 parent d826545 commit df79088
Showing 1 changed file with 54 additions and 54 deletions.
108 changes: 54 additions & 54 deletions shorter-css-color-names.js
Original file line number Diff line number Diff line change
@@ -1,56 +1,56 @@
module.exports = {
aqua: /#00ffff|#0ff/gi,
azure: /#f0ffff/gi,
beige: /#f5f5dc/gi,
bisque: /#ffe4c4/gi,
black: /#000000|#000/g,
blue: /#0000ff|#00f/gi,
brown: /#a52a2a/gi,
coral: /#ff7f50/gi,
cornsilk: /#fff8dc/gi,
crimson: /#dc143c/gi,
cyan: /#00ffff|#0ff/gi,
darkblue: /#00008b/gi,
darkcyan: /#008b8b/gi,
darkgrey: /#a9a9a9/gi,
darkred: /#8b0000/gi,
deeppink: /#ff1493/gi,
dimgrey: /#696969/g,
gold: /#ffd700/gi,
green: /#008000/g,
grey: /#808080/g,
honeydew: /#f0fff0/gi,
hotpink: /#ff69b4/gi,
indigo: /#4b0082/gi,
ivory: /#fffff0/gi,
khaki: /#f0e68c/gi,
lavender: /#e6e6fa/gi,
lime: /#00ff00|#0f0/gi,
linen: /#faf0e6/gi,
maroon: /#800000/g,
moccasin: /#ffe4b5/gi,
navy: /#000080/g,
oldlace: /#fdf5e6/gi,
olive: /#808000/g,
orange: /#ffa500/gi,
orchid: /#da70d6/gi,
peru: /#cd853f/gi,
pink: /#ffc0cb/gi,
plum: /#dda0dd/gi,
purple: /#800080/g,
red: /#ff0000|#f00/gi,
salmon: /#fa8072/gi,
seagreen: /#2e8b57/gi,
seashell: /#fff5ee/gi,
sienna: /#a0522d/gi,
silver: /#c0c0c0/gi,
skyblue: /#87ceeb/gi,
snow: /#fffafa/gi,
tan: /#d2b48c/gi,
teal: /#008080/g,
thistle: /#d8bfd8/gi,
tomato: /#ff6347/gi,
violet: /#ee82ee/gi,
wheat: /#f5deb3/gi,
white: /#ffffff|#fff/gi,
aqua: /#00ffff|#0ff(?!\w)/gi,
azure: /#f0ffff(?!\w)/gi,
beige: /#f5f5dc(?!\w)/gi,
bisque: /#ffe4c4(?!\w)/gi,
black: /#000000|#000(?!\w)/g,
blue: /#0000ff|#00f(?!\w)/gi,
brown: /#a52a2a(?!\w)/gi,
coral: /#ff7f50(?!\w)/gi,
cornsilk: /#fff8dc(?!\w)/gi,
crimson: /#dc143c(?!\w)/gi,
cyan: /#00ffff|#0ff(?!\w)/gi,
darkblue: /#00008b(?!\w)/gi,
darkcyan: /#008b8b(?!\w)/gi,
darkgrey: /#a9a9a9(?!\w)/gi,
darkred: /#8b0000(?!\w)/gi,
deeppink: /#ff1493(?!\w)/gi,
dimgrey: /#696969(?!\w)/g,
gold: /#ffd700(?!\w)/gi,
green: /#008000(?!\w)/g,
grey: /#808080(?!\w)/g,
honeydew: /#f0fff0(?!\w)/gi,
hotpink: /#ff69b4(?!\w)/gi,
indigo: /#4b0082(?!\w)/gi,
ivory: /#fffff0(?!\w)/gi,
khaki: /#f0e68c(?!\w)/gi,
lavender: /#e6e6fa(?!\w)/gi,
lime: /#00ff00|#0f0(?!\w)/gi,
linen: /#faf0e6(?!\w)/gi,
maroon: /#800000(?!\w)/g,
moccasin: /#ffe4b5(?!\w)/gi,
navy: /#000080(?!\w)/g,
oldlace: /#fdf5e6(?!\w)/gi,
olive: /#808000(?!\w)/g,
orange: /#ffa500(?!\w)/gi,
orchid: /#da70d6(?!\w)/gi,
peru: /#cd853f(?!\w)/gi,
pink: /#ffc0cb(?!\w)/gi,
plum: /#dda0dd(?!\w)/gi,
purple: /#800080(?!\w)/g,
red: /#ff0000|#f00(?!\w)/gi,
salmon: /#fa8072(?!\w)/gi,
seagreen: /#2e8b57(?!\w)/gi,
seashell: /#fff5ee(?!\w)/gi,
sienna: /#a0522d(?!\w)/gi,
silver: /#c0c0c0(?!\w)/gi,
skyblue: /#87ceeb(?!\w)/gi,
snow: /#fffafa(?!\w)/gi,
tan: /#d2b48c(?!\w)/gi,
teal: /#008080(?!\w)/g,
thistle: /#d8bfd8(?!\w)/gi,
tomato: /#ff6347(?!\w)/gi,
violet: /#ee82ee(?!\w)/gi,
wheat: /#f5deb3(?!\w)/gi,
white: /#ffffff|#fff(?!\w)/gi,
};

0 comments on commit df79088

Please sign in to comment.