Building React and Vue Support for Tailwind UI
blog.tailwindcss.com
Building React and Vue Support for Tailwind UI
1–10 of 122 posts
Re: Building React and Vue Support for Tailwind UI
#2Re: Building React and Vue Support for Tailwind UI
#3Re: Building React and Vue Support for Tailwind UI
#4I even built something like Tailwind UI but for Chakra (link is in my bio if you want to check it out)
Re: Building React and Vue Support for Tailwind UI
#5One tends to think of parsing/compiling as a fairly esoteric skillset that a relatively small number of programmers ever actually need at their jobs, but it always makes me glad to see examples like this where a little DSL was a genuine boon to productivity in a real product. Once you know how to do it, you start to notice more and more little opportunities where it could be useful.
Re: Building React and Vue Support for Tailwind UI
#6> We crawl this document as an AST, and actually transform it into four formats...The key to getting sensible output is really just having total control of the input format. It's still hard work, but when you can encode the intent of each example into a custom input format, converting that to another format turns out so much better than trying to write something that can convert arbitrary jQuery to React or something…
Re: Building React and Vue Support for Tailwind UI
#7> We crawl this document as an AST, and actually transform it into four formats...The key to getting sensible output is really just having total control of the input format. It's still hard work, but when you can encode the intent of each example into a custom input format, converting that to another format turns out so much better than trying to write something that can convert arbitrary jQuery to React or something…
That's a great comment. I might use it in the field.
But that said, I had a good usecase of my own a couple months ago where a little s-expression-based DSL was just the ticket to open up some data analysis functionality to internal users without having to prematurely build out a super complex, much more rigid GUI. DSLs are really just small, hyper-flexible user interfaces. Once you frame it that way, there are many applications. (The drawback of course is discoverability/feedback, which GUIs excel at, so you have to balance the two for your usecase)
Re: Building React and Vue Support for Tailwind UI
#8> We crawl this document as an AST, and actually transform it into four formats...The key to getting sensible output is really just having total control of the input format. It's still hard work, but when you can encode the intent of each example into a custom input format, converting that to another format turns out so much better than trying to write something that can convert arbitrary jQuery to React or something…
Parsing is the easy/not so interesting part of a compiler.
Re: Building React and Vue Support for Tailwind UI
#9This part from the blog post kind of confused me a bit, though.
"The promise of Tailwind UI is that it's just a code snippet"
Am I the only one who never looks at the code snippets/tab for Tailwind UI, and instead jumps straight into inspect element? As blueprints the components are great, but I almost always want to make some small tweaks or changes to fit my application. Are there other people out there actually copying/pasting the snippets as they are?
Re: Building React and Vue Support for Tailwind UI
#10Well this completely deprecates my personal react/tailwindui library starting on tax day. I guess that’s good!