3 ms·
What would be the convention for using tailwind to style components in general?
by Ataraxy 6y ago
What would be the convention for using tailwind to style components in general?
- claviska 6y agoYou can use Tailwind classes on all your markup as you normally would. In terms of Shoelace components, they're more limited to layout, spacing, flexbox, grid, etc. for arranging and positioning (e.g. don't expect class="btn btn-blue" to turn a Shoelace button into a Tailwind button — although you can use them alongside each other if you want). To style the internals of a Shoelace component, you can target it in a stylesheet using CSS custom properties or CSS parts as described in the docs. [1] 1. https://shoelace.style/getting-started/customizing https://shoelace.style/getting-started/customizing