News for hackers. Stuff that matters.
Re:Tailwind UI by ahallock on Wednesday February 26, 2020 @02:12PM (#22426169)
Why not use view templates to capture these?
Re:Tailwind UI by bensochar on Wednesday February 26, 2020 @03:28PM (#22426960)
For alerts a sharable template is doable. So maybe a bad example, LOL.

But for buttons & heros not so much. I've worked with apps that have a "button" template. I find it overkill.

For one project we have some components rendered both server-side & with Vue.

Other cases I've had are sharing styles across multiple apps and pulling in markup from a 3rd party, like Stripe or a WYSIWYG.

But you're right. Ideally this wouldn't be an issue w/ view templates.

Re:Tailwind UI by ahallock on Wednesday February 26, 2020 @08:45PM (#22429570)
I agree; for smaller components like labels and buttons, having some compound rules would help. They tend to be well-defined. I believe you can create composite styles in Tailwind.