2 ms·
It is not wrong, just annoying and error prone to write everything twice in two different places, but like you point out that is the CSS way.
by incrudible 3y ago
It is not wrong, just annoying and error prone to write everything twice in two different places, but like you point out that is the CSS way.
- allan_s 3y agoIt's "only" colors ? So far from 100% of your css (especially if you use something like tailwind where css class for shape and color are clearly separated) Also I m not a css expert but can't you also simplify it by using css variables so that you can further reduce the scope of change by having only the css variables that change value ? Your --primary-color-500 etc.