News for hackers. Stuff that matters.
Re:TailwindCSS v2.0 by andrei_says_ on Wednesday November 18, 2020 @11:09PM (#25146140)
What I do is extract spacing, colors, fonts and other standardiz-able elements in SCSS maps and use them in standard css BEM class definition.

As in

color: c(cool-gray-800); background-color: c(cool-gray-100); font-family: ff(sans-serif); padding: s(m);

Where c, s and ff are SCSS functions returning a value defined in scss maps.

If you find the tailwind definitions useful, they’re easy to borrow.

There are no comments on this comment yet.