3 ms·
The complexity that SCSS and Sass are demanding seems to point to a need to abstract design elements of CSS from the complex layout engine its becoming. Huntin
by tsunamifury 13y ago
The complexity that SCSS and Sass are demanding seems to point to a need to abstract design elements of CSS from the complex layout engine its becoming.
Hunting through this to set fonts and colors (the original intent of CSS) is a bit of a nightmare now. Could we solve this by creating a design only CSS style sheet that defines the variables that plug into this more complex system?
This way designers can tweak live code without hunting through long and difficult to read stylesheets that point to 50?! nested objects.
- crisnoble 13y agoOnce you use Sass or LESS you realize that it is much much easier to update things like colors and fonts and font sizes, since they can all become variables. Update one line of code and all of the rules will change. The number 50 you refer to is max number of lines of code the autor recommends inside of a nested rule, specifically so that you don't have to dig to far in to tweak a rule. CSS preprocessors were scary to me at first, but I once I started digging in a bit I realized I could never ever go back.
- robmil 13y agoSCSS actually makes this easier, given that you can have partials; it makes it easy to separate out layout and visual style and then combine them into a compressed stylesheet automatically.