Skip to content

Almost all tailwind classes are ignoredΒ #3891

Open
@prof-schnitzel

Description

@prof-schnitzel

Environment

  • Operating System: Windows_NT
  • Node Version: v20.10.0
  • Nuxt Version: 3.16.2
  • CLI Version: 3.24.1
  • Nitro Version: 2.11.9
  • Package Manager: [email protected]
  • Builder: -
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Is this bug related to Nuxt or Vue?

Nuxt

Version

v3.0.2

Reproduction

https://github.com/prof-schnitzel/nuxt-ui3-module

Description

I have this little vue component:

<script setup>
</script>

<template>
  <div class="w-full h-[var(--my-height)] z-10 md:h-[96px]" />
  <div class="hidden md:block">Test</div>
</template>

My expectation would be that all styles belonging to those tailwind classes are applied, but instead I can only see the styles of the classes w-full and hidden. The other classes are ignored. I can't see why. Is this a nuxt ui bug? All of this was still working with the latest alpha version.

Additional context

No response

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingv3#1289

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions