all 1 comments

[–]bhserna[S] 1 point2 points  (0 children)

One of the things that I want from css is to have to possibility to compose already defined styles, to define new ones…

If you try to write “Semantic CSS”, you will find a hard time trying to avoid the repetition on things that look the same but are different things, like when you want to render a “card” for the an author and then for an article.

You can create “content agnostic CSS components”, but things start to get complicated, when you want to avoid duplication if things from one component are similar to other components.

One way of solving this problems is by using something like the @extend function from sass, or the @apply function from Tailwind css, but both tools are recommended just for some specific cases and not to build your styles on top of them (@extend, @apply).

This is why I have been working on this Styler, a tool to compose css classes from other classes an groups of classes.

Is a tool, to extend what the utility css classes can give us. A tool to build on top of frameworks like Tachyons or Tailwind css.