Adam Wathan
+ Your AuthorsArchive @adamwathan Creator of @tailwindcss. Host of @fullstackradio. Listener of Slayer. Austin 3:16. Aug. 07, 2020 1 min read

I'm never going to actually do this because you would all lose your minds, but I kinda wish I could remove @​apply in Tailwind 2.0 😅

Use theme(), it's way simpler with way fewer quirks and gotchas.

If the extra typing bothers you, just stop extracting CSS classes altogether 👀

This is what I mean regarding the theme() function. You don't need @​apply to access your Tailwind design tokens.

Little bit more typing admittedly, but way fewer quirks.

One thing I'm learning from this thread is that a lot of people aren't actually familiar with the Tailwind config/theme object!

It's worth learning — it's foundational for customizing Tailwind with your own colors, fonts, etc. 

The official Tailwind IntelliSense plugin has great autocompletion for the theme() function which is super helpful:

You can follow @adamwathan.


Tip: mention @threader_app on a Twitter thread with the keyword “compile” to get a link to it.

Enjoy Threader? Sign up.

Since you’re here...

... we’re asking visitors like you to make a contribution to support this independent project. In these uncertain times, access to information is vital. Threader gets 1,000,000+ visits a month and our iOS Twitter client was featured as an App of the Day by Apple. Your financial support will help two developers to keep working on this app. Everyone’s contribution, big or small, is so valuable. Support Threader by becoming premium or by donating on PayPal. Thank you.

Follow Threader