Tailwind ignores my extend spacing #2497
-
Hi everyone, I have been stuck with this for so long. I'm using TailwindCSS with default Nuxt.js config. Everything seems to be working fine, I can add my own colors, customize the container div. It doesn't allow me to extend spacing to add my own custom spacing utilities. This is my entire Tailwind config file:
So, the issue is, Tailwind is not creating the Thanks ahead. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hey! 👋 Are you able to share your setup in a GitHub repo? There must be something wrong somewhere. I have just copied your config file above in a new project (not Nuxt, but I'd like to look at your setup). It generated the Are you maybe accidentally looking at your side with Side note: speaking of If you share your project (or a minimal repro) in a repo, I'll have a look for you 👍 |
Beta Was this translation helpful? Give feedback.
-
Hey Simon, Thank you for an incredibly quick reply. The problem seems to have been magically fixed. For an hour or so it refused to add my custom I have no idea what went wrong or how it got fixed, but I am happy that everything is working as it should. I just want to thank you for being so helpful, Tailwind team is amazing. I'm glad I purchased TailwindUI and will surely purchase any product which comes from you. Consider this issue solved. |
Beta Was this translation helpful? Give feedback.
Hey! 👋
Are you able to share your setup in a GitHub repo? There must be something wrong somewhere. I have just copied your config file above in a new project (not Nuxt, but I'd like to look at your setup). It generated the
px-custom
class for me, as well as all other expected (211 😅) utility classes.Are you maybe accidentally looking at your side with
NODE_ENV=production
, and the spacing classes are not present in your templates, and therefore purged?Side note: speaking of
NODE_ENV
, yourenabled
rule forpurge
(only run ifNODE_ENV === 'production'
is the default behaviour, so you technically don't need to define that.If you share your project (or a minimal repro) in a repo, I'll have…