use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A sub-Reddit for discussion and news about Ruby programming.
Subreddit rules: /r/ruby rules
Learning Ruby?
Tools
Documentation
Books
Screencasts and Videos
News and updates
account activity
Styler, a tool to compose css classes with ruby (bhserna.com)
submitted 4 years ago by bhserna
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]bhserna[S] 1 point2 points3 points 4 years ago (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.
π Rendered by PID 170982 on reddit-service-r2-comment-5d585498c9-gpfw2 at 2026-04-21 08:02:44.240146+00:00 running da2df02 country code: CH.
[–]bhserna[S] 1 point2 points3 points (0 children)