3 ms·
I've done some somewhat similar efforts in the past. One thing to point out is that on the something.original.css and something.refreshed.css to avoid code dupl
by WorldMaker 8y ago
I've done some somewhat similar efforts in the past. One thing to point out is that on the something.original.css and something.refreshed.css to avoid code duplication: since y'all were already using LESS as a build process, code duplication shouldn't be a huge problem with LESS importing the original from the refreshed. I found the LESS compiler to be quite good at coalescing complicated overrides of imported base styles to a final, simpler final build output.
Though the last time I did this sort of thing I definitely couldn't have used CSS Variables. That seems like a good solution for modern browsers with or without a compiler like LESS.
- awhitty 8y agoThat sounds like a reasonable approach! Thanks for the note. To be honest, we use LESS fairly simply for the things it provides like variables, mixins, and nested selector syntax. We otherwise haven't had a need to make our stylesheets much more sophisticated. So when project planning came around, we didn't ideate much on LESS-based approaches, and I bet we could have and found an ergonomic approach there.