Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(postcss-merge-longhand): remove css-color-names dep (#1230)
css-color-names is a JSON file with a mapping from color name to hex: 1. we don't use the hex code 2. CSS4 color spec says color names are not recommended, so unlikely new color names will be added 3. even if we need to add a color, it is easier to add it ourselves than to open a PR upstream 4. css-color-names sources the color names from w3schools instead of the spec 5. css-color-names is not future-proof because it exports a JSON file
- Loading branch information
1 parent
a519ff5
commit 0717282
Showing
5 changed files
with
152 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,151 @@ | ||
/* https://www.w3.org/TR/css-color-4/#named-colors */ | ||
export default [ | ||
'aliceblue', | ||
'antiquewhite', | ||
'aqua', | ||
'aquamarine', | ||
'azure', | ||
'beige', | ||
'bisque', | ||
'black', | ||
'blanchedalmond', | ||
'blue', | ||
'blueviolet', | ||
'brown', | ||
'burlywood', | ||
'cadetblue', | ||
'chartreuse', | ||
'chocolate', | ||
'coral', | ||
'cornflowerblue', | ||
'cornsilk', | ||
'crimson', | ||
'cyan', | ||
'darkblue', | ||
'darkcyan', | ||
'darkgoldenrod', | ||
'darkgray', | ||
'darkgreen', | ||
'darkgrey', | ||
'darkkhaki', | ||
'darkmagenta', | ||
'darkolivegreen', | ||
'darkorange', | ||
'darkorchid', | ||
'darkred', | ||
'darksalmon', | ||
'darkseagreen', | ||
'darkslateblue', | ||
'darkslategray', | ||
'darkslategrey', | ||
'darkturquoise', | ||
'darkviolet', | ||
'deeppink', | ||
'deepskyblue', | ||
'dimgray', | ||
'dimgrey', | ||
'dodgerblue', | ||
'firebrick', | ||
'floralwhite', | ||
'forestgreen', | ||
'fuchsia', | ||
'gainsboro', | ||
'ghostwhite', | ||
'gold', | ||
'goldenrod', | ||
'gray', | ||
'green', | ||
'greenyellow', | ||
'grey', | ||
'honeydew', | ||
'hotpink', | ||
'indianred', | ||
'indigo', | ||
'ivory', | ||
'khaki', | ||
'lavender', | ||
'lavenderblush', | ||
'lawngreen', | ||
'lemonchiffon', | ||
'lightblue', | ||
'lightcoral', | ||
'lightcyan', | ||
'lightgoldenrodyellow', | ||
'lightgray', | ||
'lightgreen', | ||
'lightgrey', | ||
'lightpink', | ||
'lightsalmon', | ||
'lightseagreen', | ||
'lightskyblue', | ||
'lightslategray', | ||
'lightslategrey', | ||
'lightsteelblue', | ||
'lightyellow', | ||
'lime', | ||
'limegreen', | ||
'linen', | ||
'magenta', | ||
'maroon', | ||
'mediumaquamarine', | ||
'mediumblue', | ||
'mediumorchid', | ||
'mediumpurple', | ||
'mediumseagreen', | ||
'mediumslateblue', | ||
'mediumspringgreen', | ||
'mediumturquoise', | ||
'mediumvioletred', | ||
'midnightblue', | ||
'mintcream', | ||
'mistyrose', | ||
'moccasin', | ||
'navajowhite', | ||
'navy', | ||
'oldlace', | ||
'olive', | ||
'olivedrab', | ||
'orange', | ||
'orangered', | ||
'orchid', | ||
'palegoldenrod', | ||
'palegreen', | ||
'paleturquoise', | ||
'palevioletred', | ||
'papayawhip', | ||
'peachpuff', | ||
'peru', | ||
'pink', | ||
'plum', | ||
'powderblue', | ||
'purple', | ||
'rebeccapurple', | ||
'red', | ||
'rosybrown', | ||
'royalblue', | ||
'saddlebrown', | ||
'salmon', | ||
'sandybrown', | ||
'seagreen', | ||
'seashell', | ||
'sienna', | ||
'silver', | ||
'skyblue', | ||
'slateblue', | ||
'slategray', | ||
'slategrey', | ||
'snow', | ||
'springgreen', | ||
'steelblue', | ||
'tan', | ||
'teal', | ||
'thistle', | ||
'tomato', | ||
'turquoise', | ||
'violet', | ||
'wheat', | ||
'white', | ||
'whitesmoke', | ||
'yellow', | ||
'yellowgreen', | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters