Skip to content

Using tailwind css in custom css? #77

Answered by jpanther
trevhunter asked this question in Q&A
Discussion options

You must be logged in to vote

I actually require custom Tailwind for my own site that uses Congo and so the theme is designed with this in mind but as you say, you do need to include the theme in your project separately to go modules.

As long as you have your site set up with the theme in a subfolder, you can then simply issue this command at the site level and it will generate a new main.css file at the site level assets/css/compiled/ directory:

./themes/congo/node_modules/tailwindcss/lib/cli.js -c ./themes/congo/tailwind.config.js -i ./themes/congo/assets/css/main.css -o ./assets/css/compiled/main.css --jit

The CSS generated using this command will include any Tailwind that is required for the theme, as well as any …

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@trevhunter
Comment options

@jpanther
Comment options

@trevhunter
Comment options

@jpanther
Comment options

@trevhunter
Comment options

Answer selected by trevhunter
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