Skip to content

Instantly share code, notes, and snippets.

@autioch
Created March 30, 2017 09:50
Show Gist options
  • Save autioch/776883b6b092c87af25b6278c5f7757a to your computer and use it in GitHub Desktop.
Save autioch/776883b6b092c87af25b6278c5f7757a to your computer and use it in GitHub Desktop.
Finding hardcoded colors in CSS.
const colorsRegex = /(color|shadow|background|outline)\: [^(\$|inherit|transparent|\d|none|\-\.)]/g;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment