We've moved discussions to Discord

CSS in JS?

Will Read
Does anyone have any recommendations about a CSS-in-JS library to use? I want to define my CSS classes in my StimulusJS controller files so they move together. I'm not using React, just sticking to StimulusJS for now. 
Chris Oliver
You'll probably want to search the esbuild docs. This might do what you need: https://esbuild.github.io/content-types/#css-from-js

I haven't tried it though. I wonder if it would override the application.css file when it outputs to the app/assets/builds folder.
Notifications
You’re not receiving notifications from this thread.