JavaScript Jabber cover image

The CSS Universe with Austin Gil - JSJ 592

JavaScript Jabber

00:00

How to Use Tailwind to Shift CSS Into JavaScript

The most basic solution is okay we have a button we want to make it you know border radius and like a little bit of padding and purple. You just throw those classes on to the button component but then what happens when in one case you want to have a button with a red background? Tailwind class for background purple on the component itself maybe you implement some sort of logic that injects other classes at the implementation level where you implement the button. The cascade of CSS is determined by where in these actual generated CSS style sheet that background purple class is defined and the background red class so it could be that in the HTML background first background purple comes first and then background red  but in the

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app