Skip to content

Theme classes don't work (eg "text-primary") #3959

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ThomasKientz opened this issue Apr 23, 2025 · 1 comment
Closed

Theme classes don't work (eg "text-primary") #3959

ThomasKientz opened this issue Apr 23, 2025 · 1 comment
Labels
bug Something isn't working v3 #1289

Comments

@ThomasKientz
Copy link

ThomasKientz commented Apr 23, 2025

Environment

  • Operating System: Darwin
  • Node Version: v20.14.0
  • Nuxt Version: 3.16.2
  • CLI Version: 3.25.0
  • Nitro Version: 2.11.9
  • Package Manager: [email protected]
  • Builder: -
  • User Config: devtools, modules, css, future, compatibilityDate
  • Runtime Modules: @nuxt/[email protected], @nuxt/[email protected]
  • Build Modules: -

Is this bug related to Nuxt or Vue?

Nuxt and Vue

Version

v3.0.2

Reproduction

https://codesandbox.io/p/devbox/silly-yalow-gjr5w2 (I have used Vue template as Nuxt codesandbox is broken (error : Unable to start the microVM).

Description

Docs says:

These CSS variables are defined in Tailwind CSS's @theme so you can use them as classes:

And gives an exemple

<template>
  <span class="text-primary">Primary</span>
  <span class="text-secondary">Secondary</span>
  <span class="text-success">Success</span>
  <span class="text-info">Info</span>
  <span class="text-warning">Warning</span>
  <span class="text-error">Error</span>
</template>

But it doesn't work; the text is not colored.

Additional context

Same for other classes (text-dimmed etc...)

@ThomasKientz ThomasKientz added bug Something isn't working triage v3 #1289 labels Apr 23, 2025
Copy link
Member

This has been implemented in #3629 and will be released soon!

@benjamincanac benjamincanac removed the triage label Apr 23, 2025 — with Volta.net
@benjamincanac benjamincanac closed this as not planned Won't fix, can't repro, duplicate, stale Apr 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working v3 #1289
Projects
None yet
Development

No branches or pull requests

2 participants