daflh / eleventy-plugin-tailwindcss

An Eleventy plugin to add Tailwind CSS support for your website
MIT License
31 stars 9 forks source link

Partially styled elements #27

Closed kylesloper closed 3 years ago

kylesloper commented 3 years ago

After doing a shift around with my 11ty setup, Tailwind seems to have broken slightly. Only some elements are styled for some reason. I'll attach a screenshot. image

I think that the styles.css is not being used alongside tailwind (tw.css) but I'm not too sure on a fix. It's likely something to do with Tailwind purging.

Would appreciate it if you could check it out.

Here's the repo: [Redacted]

kylesloper commented 3 years ago

Simple fix:

Update purge settings in tailwind.config.js, ensure that Tailwind is purging every file that uses classes.