css - How to find all hard-coded colors in SCSS? -


i'm converting ugly legacy css scss (see sass.)

i want take advantage of support of variables , create 1 file manage entire color scheme, twitter's bootstrap (see the variables file of scss version of bootstrap).

in old css (dozens of files), colors written in inconsistent ways such as:

  • #fff
  • #fff
  • #ffffff
  • white

and there lots of colors.

can think of approach (preferably automated , simple) identify (and maybe replace) of hard-coded values appropriate variables, $colorgraydark?


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -