Best way to replace a self-repeating CSS color vlaue?

118 Views Asked by At

In my style.css, I have a color value that repeats itself about 30 times. Going row after row and changing it is Sisyphean. Is there any way to "give a command" to change it to another color fast? Maybe via my text editor (Notepad++), SASS, or some external program?

What would be more efficient you think?

1

There are 1 best solutions below

0
On BEST ANSWER

If all occurrences of the colorcode should be changed, then you can use the "Find and Replace" function of Notepad++

Press Ctrl + H to bring up the Dialog. Insert your old colorcode and your new one and then click Replace all

And for easier change later you can define Variables in sass.
Example:

$myAwesomeColor: #F9E055;

.text { color: $myAwesomeColor; }