postcss-graeys

PostCSS plugin Converts all spelling of grey to gray to avoid breaking CSS properties

MIT License

Downloads
5
Stars
6
Committers
1

postcss-graeys

A PostCSS plugin to fix the spelling of the color "grey" to prevent breaking CSS.

Properties supported:

Examples:

Using grey as a color:

p {
  color: dimgrey;
}
p {
  color: dimgray;
}

Use a greyscale filter:

img {
  filter: brightness(1.2) greyscale(50%); /* breaks things :( */
}
img {
  filter: brightness(1.2) grayscale(50%); /* yay!! */
}

Published on npm for convenience 💘

So go ahead and write grey the way you want to!