Skip to content
Grav 2.0 is officially stable. Read the announcement →
Themes & Styling

GRAV and TailwindCSS

first-time theme

Started by Jonathan Davis 4 years ago · 2 replies · 880 views
4 years ago

I'm trying to sort out using tailwindcss and grav. I followed the docs on installing devtools, and created a new theme with them using the tailwind template type.

First thing I noticed was the base.deafult was including the wrong CSS file, trying to include a css/app' ~ extension ~ '.css' when package.json scripts were building site.css

Second thing I noticed is the tailwind.config.js that it produced is missing the content section that tells Tailwind what Tailwind class names you've used (It's using the older purge export?).

4 years ago

Hello @davis,

you get it working? You still need help?

4 years ago

After updating base.default and replacing app with site, and updating tailwind.config.js changing purge: [ ... ] to content: [ ... ] (and removing pretty much everything else in that file that overriding a lot of the tailwind base theme), it's working.

Are they pushing fixes for this in the next release?

Suggested topics

Topic Participants Replies Views Activity
Themes & Styling · by Justin Young, 2 weeks ago
1 168 2 weeks ago
Themes & Styling · by Slebeig, 1 month ago
4 297 1 month ago
Themes & Styling · by Pedro M, 3 months ago
4 624 3 months ago
Themes & Styling · by Ian, 3 months ago
3 328 3 months ago
Themes & Styling · by Norbert, 2 years ago
11 756 4 months ago