Tailwindcss: Repeating classes #520
Replies: 1 comment 1 reply
-
I really want to introduce view components. I’ve been spending a decent chunk of time digging into different ones: ViewComponent and Phlex being the two most popular, but I don’t love either of those. I have quite a list of ones I’ve been working through. I’d ideally like to lean on the new Web Components standard which is supported in all browsers, so I’m trying to find a good rails library that leans on the browser support. I need to do some more digging still. I think components is a bit better of a solution than the @apply directive, although it’s going to be more complex to implement. However, it should result in a lot of nice wins. Just for my own learning, where did this feedback come up? |
Beta Was this translation helpful? Give feedback.
-
I got some feedback about a lot of copy/paste of the styling for llnks and button elements in the views of this app. How to improve this so it is maintainable?
Tailwind has a discussion about this leading up to the
@apply
directive.What is a good way to organize this?
Beta Was this translation helpful? Give feedback.
All reactions