Skip to content

Does Tailwind CSS natively understand Hiccup? #376

Answered by jacekschae
gerdint asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for your question. I hope i can clarify this a bit. It is important to notice that we reference in dev and prod two different directories as written in the readme:

... It will observe cljs-runtime/*.js files in dev and will use main.js for creating a release build.

Tailwind works by scanning files specified in config and then going through strings. If you have:

[:div {:class "sm:mx-auto sm:w-full sm:max-w-md"}]

or this hiccup

[:div.sm:mx-auto.sm:w-full.sm:max-w-md]

Then it should work with the current setup - CLJS and shadow-cljs.

There is a bit of things you need to take into account the current setup is using shadow-cljs and parsing js files (in cljs-runtime folder, which are…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by gerdint
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants