Moving away from Tailwind, and learning to structure my CSS

5 months ago by codeinabox to c/css

Dirk 5 points 5 months ago

Good to see this kind of articles. Nowadays there are no real reasons anymore for CSS preprocessors.

path: 0 23758738, hotness: undefined, score: 5, children: 3
meowmeow 3 points 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.

path: 0 23758738 23759399, hotness: undefined, score: 3, children: 2
Dirk 1 point 5 months ago

Yeah, it’s sad. People forgot how to use CSS properly.

path: 0 23758738 23759399 23767242, hotness: undefined, score: 1, children: 1
meowmeow 1 point 5 months ago

There was (and still is) definitely a push when sass came out to make everything β€œeasier” by making it more complex.

path: 0 23758738 23759399 23767242 23768078, hotness: undefined, score: 1, children: 0
css
css

@programming.dev

login for more options
847
363
88

go to feed...