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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Themes & Styling

GRAV and TailwindCSS

first-time theme

Started by Jonathan Davis 4 years ago · 2 replies · 769 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 Pedro M, 2 months ago
4 193 2 months ago
Themes & Styling · by Ian, 2 months ago
3 90 2 months ago
Themes & Styling · by Norbert, 2 years ago
11 449 3 months ago
Themes & Styling · by Lukáš Findeis, 3 months ago
0 43 3 months ago
Themes & Styling · by Sebadamus, 4 months ago
5 123 3 months ago