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 · 904 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 Sebadamus, 7 days ago
5 148 15 hours ago
Themes & Styling · by martynfoster735, 1 week ago
1 192 1 week ago
Themes & Styling · by Justin Young, 3 weeks ago
1 241 3 weeks ago
Themes & Styling · by Slebeig, 1 month ago
4 376 1 month ago
Themes & Styling · by Pedro M, 3 months ago
4 745 3 months ago