3 ms·
What happens when your boss all of a sudden wants to change all the colors from blue to red?
by Kiro 10y ago
What happens when your boss all of a sudden wants to change all the colors from blue to red?
- 1_player 10y agoI have the same problem, and I've yet to find an acceptable solution. Another problem I've encountered: functional CSS (such as Tachyons) is only good for minimal layout. I was recently converting a mobile+tablet+desktop PSD design to CSS with very complicated reordering rules (this <div> is full height on the right on desktop, floated bottom of the page on tablet, etc.) and all my elements had 20+ classes attached to them. So I went back and converted regular 60+ lines of CSS. Still, for some reason, working with Tachyons was for some reason faster and "easier" to reason about. I think it's a step in the right direction, but we're not there yet.
- Scarbutt 10y agoyou reach for sed/awk ;)
- cel1ne 10y agoThat's a problem for your text-editor. Use search and replace. Also, if you're using something like React, you can share the style strings in variables.