codeinabox ( codeinabox@programming.dev ) to CSS@programming.devEnglish · 5 months agoMoving away from Tailwind, and learning to structure my CSSjvns.caexternal-linkmessage-square4linkfedilinkarrow-up112
arrow-up112external-linkMoving away from Tailwind, and learning to structure my CSSjvns.cacodeinabox ( codeinabox@programming.dev ) to CSS@programming.devEnglish · 5 months agomessage-square4linkfedilink
minus-square𝘋𝘪𝘳𝘬 ( Dirk@lemmy.ml ) linkfedilinkarrow-up5·5 months agoGood to see this kind of articles. Nowadays there are no real reasons anymore for CSS preprocessors.
minus-squaremeowmeow ( meowmeow@quokk.au ) linkfedilinkEnglisharrow-up2·5 months ago$colors: ( primary: blue, danger: red ); @each $name, $color in $colors { .text-#{$name} { color: $color; } } Although, rarely used in such a simple example.
minus-square𝘋𝘪𝘳𝘬 ( Dirk@lemmy.ml ) linkfedilinkarrow-up1·5 months agoYeah, it’s sad. People forgot how to use CSS properly.
minus-squaremeowmeow ( meowmeow@quokk.au ) linkfedilinkEnglisharrow-up1·5 months agoThere was (and still is) definitely a push when sass came out to make everything “easier” by making it more complex.
Good to see this kind of articles. Nowadays there are no real reasons anymore for CSS preprocessors.
$colors: ( primary: blue, danger: red ); @each $name, $color in $colors { .text-#{$name} { color: $color; } }Although, rarely used in such a simple example.
Yeah, it’s sad. People forgot how to use CSS properly.
There was (and still is) definitely a push when sass came out to make everything “easier” by making it more complex.