4 ms·
As a full-stack dev on a gigantic codebase, I struggle a lot with understanding the allure of this type of tools, considering the extra baggage they bring with
by otrahuevada 5y ago
As a full-stack dev on a gigantic codebase, I struggle a lot with understanding the allure of this type of tools, considering the extra baggage they bring with them.
I could see myself doing something like
.card {
@include margin(2);
@include borderRadius(10)
// etc
}
and so on, then using class="card" to tie it together, but adding a tree-shaking step, or a pre-crawling (!!) step just strikes me as entirely too hefty a cost for what amounts to parametric variants of a given style token
- lytedev 5y agoDo this with CSS variables and only add new ones once you need them. This has been working great for me.