Skip to content

Tailwind 3.x shadows and rings removed when NuxtJs extractCSS is set to true #7802

@danielrjames

Description

@danielrjames

What version of Tailwind CSS are you using?

3.0.23

What build tool (or framework if it abstracts the build tool) are you using?

nuxt 2.15.8 using the official installation guide: https://tailwindcss.com/docs/guides/nuxtjs

What version of Node.js are you using?

v16

What browser are you using?

Chrome & Firefox

What operating system are you using?

Windows 10

Reproduction URL

https://github.com/danielrjames/tailwind-test

  • Added a simple header with a shadow and a button with a ring on the index.vue page. Toggle the extractCSS option in nuxt.config.js to demonstrate the bug.

Describe your issue

Nuxt's extractCSS build option removes Tailwind v3 shadow and ring classes. I used this build setting with Tailwind v2 shadows and rings with no issue.

https://nuxtjs.org/docs/configuration-glossary/configuration-build/#extractcss

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions