3 ms·
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(
by andrei_says_ 6y ago
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.