Lovely. Verbosity aside, now on top of knowing CSS you need to learn another hierarchical system within class names.
Yes I agree - it's nice to be able to see exactly what's happening without needing to dive into a rats nest of fragile CSS cascades.
Vanilla JavaScript support for Tailwind Plus
71–80 of 202 posts
Re: Vanilla JavaScript support for Tailwind Plus
#72This is a exciting use-case for custom elements, and probably how tailwind should have been implemented from the start, but it’s hilariously a paid feature?! ( https://tailwindcss.com/plus#pricing ) Intuitively, I’d expect the custom elements to be free and the framework integrations to cost money.
Tailwind Plus is a paid collection of UI components and templates. TailwindCSS itself is meant to be nothing more than a styling tool, like Bootstrap...
Re: Vanilla JavaScript support for Tailwind Plus
#73The world would be a significantly better place if someone could throw a small mountain of money at the Tailwind folks so that they can stop worrying about money and simply make the full tailwind experience freely available. There are so many lost opportunities for deep integration with other projects. Kind of like how Jeff Bezos threw a bunch of money at 37signals at some insane valuation, which helped them complete…
Fwiw I feel like their components are something I'd be less likely to want to pay for now that you can generate tailwind components so easily with ai. I guess now that I think of it I actually paid for them back when it was called Tailwind UI, but instead of using them I'm just telling claude to generate a UI for me, which has the advantage that there's no licensing issues. It'll be interesting to see how their busin…
We will see how long it takes for LLMs to make headway in this area specifically.
Re: Vanilla JavaScript support for Tailwind Plus
#74Re: Vanilla JavaScript support for Tailwind Plus
#75Earlier quoted context omitted.
Yes I agree - it's nice to be able to see exactly what's happening without needing to dive into a rats nest of fragile CSS cascades.
Why not use the web inspector? That’s usually the quickest way to see which style is applied to an element.
Re: Vanilla JavaScript support for Tailwind Plus
#76Lovely. Verbosity aside, now on top of knowing CSS you need to learn another hierarchical system within class names.
Re: Vanilla JavaScript support for Tailwind Plus
#77There are so many framework specific libraries like shadcn, and the community set about building half finished conversions for different frameworks like Vue, which are always several iterations behind and don't really work properly. They have their own version of the docs and it all relies on a specific version of Vue and a specific version of Tailwind and whatever else. It's an abomination.
Start with headless UI as a base and then build wrappers for specific frameworks if you really feel the need. But the wrappers should be syntax sugar only and linked directly to the base library.
I'm sure it's all more complicated than that but a man can dream.
Re: Vanilla JavaScript support for Tailwind Plus
#78Has Tailwind support out of the box, just had to mod oxide to get non threaded wasm support in the browser
Re: Vanilla JavaScript support for Tailwind Plus
#79 Instead of being coupled to a specific JavaScript framework, these custom elements work anywhere you can use a tag
But...React is still the elephant in the room here. Maybe TW is just in a different world if they're truly just anticipating folks using this via a `` tag, but if not, very curious how they're going to deal with some of the web component (WC) stuff we've dealt with, like:- Despite signals/promises, React 19 didn't add full support for WC. React uses a diff algorithm for reconciliation. There are some rough edges for any "complex value" cases in the incomplete solution for 19's WC support with client vs server side rendering. This results in us being required to use 'use client' for parts of our component architectures, meaning WC providers aren't able to take full advantage of SSR.
- WCs are async loading, which in combination with React can have a negative impact on performance for things like core web vitals (and the dreaded cumulative layout shift).
- WCs are just different from React patterns. Each WC creates a DOM element, but React components don't have to, which just inherently means different shapes of code.
- React focus management libraries don't play nice with WCs. We've talked to multiple devs/companies that were excited about/using WCs that backed out because of cross-ecosystem complexities like this.
- React Native is, uh....a whole thing.
On a somewhat separate note...one of my complaints about TW historically has been that it feels like "just classes" (great!), yet requires a build step (oh...). I'm a little confused to see them leaning into `` tags given that, so am I just missing something?
Re: Vanilla JavaScript support for Tailwind Plus
#80Lovely. Verbosity aside, now on top of knowing CSS you need to learn another hierarchical system within class names.
Yes I agree - it's nice to be able to see exactly what's happening without needing to dive into a rats nest of fragile CSS cascades.