3 ms·
So if I understand correctly all JS is custom-written Alpine JS components. And all CSS is custom classes that use Tailwind @apply, I'm not sure why, can someo
by diiiimaaaa 1y ago
So if I understand correctly all JS is custom-written Alpine JS components.
And all CSS is custom classes that use Tailwind @apply, I'm not sure why, can someone elaborate.
- hunvreus 1y ago- I prefer using Alpine rather than Vanilla JS these days. But the JS code is only for dialogs, combobox and tabs. I don't even use it myself on most simple projects. Curious what you would recommend using instead? Web components? - I use `@apply` in all of my custom Tailwind classes. It's easy to keep it consistent with the rest of your styles, and in this case it meant it was pretty easy for me to copy a good chunk of shadcn/ui's own components. You usually just use regular CSS for custom Tailwind utility classes?
- strzibny 1y agoI also use @apply with Tailwind, makes this a beautiful not spagetti experience.