Custom colours not being included in CSS #103
Replies: 2 comments 1 reply
-
Hi, are you watching the files in which you use those classes? The files you are using the Tailwind classes in should be added here: https://github.com/jeffreyvr/tailpress/blob/master/tailwind.config.js#L6 Otherwise they are not noticed and will be purged. |
Beta Was this translation helpful? Give feedback.
-
Thank you for the reply. That wasn't the solution but it has led me to one. The problem is that I was applying the css class via Gutenberg, so the php files didn't include the actual classname. As I result, I think I'll just have to manually add this into the custom.css file like the attached . |
Beta Was this translation helpful? Give feedback.
-
Hi
Thanks for a great theme.
One question I have though, relates to custom colours using the theme.js. I have set up a colour with 'light-grey' slug and then using an ACF block I then pull in the Gutenberg background colour. This then creates a classname that is being applied that should work w/ Tailwind (bg-light-grey). The problem is that no matter if I run a dev or production build, the .bg-light-grey class is not being added to the app.css file.
Any ideas how I can get this to work? It works with .bg-primary for reference.
Thanks
Adam
Beta Was this translation helpful? Give feedback.
All reactions