Skip to content
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

Button hover effect #3524

Closed
suchorski opened this issue Mar 11, 2025 · 3 comments
Closed

Button hover effect #3524

suchorski opened this issue Mar 11, 2025 · 3 comments
Labels
question Further information is requested v3 #1289

Comments

@suchorski
Copy link

suchorski commented Mar 11, 2025

Environment

  • Operating System: Windows_NT
  • Node Version: v22.14.0
  • Nuxt Version: 3.16.0
  • CLI Version: 3.22.5
  • Nitro Version: 2.11.6
  • Package Manager: pnpm@10.6.1
  • Builder: -
  • User Config: compatibilityDate, devtools, typescript, ssr, app, modules, ui, colorMode, i18n, gtag, icon, robots, pwa, runtimeConfig
  • Runtime Modules: @nuxt/ui@2.21.1, @nuxtjs/i18n@9.3.1, nuxt-gtag@3.0.2, @pinia/nuxt@0.10.1, pinia-plugin-persistedstate/nuxt@4.2.0, @nuxt/icon@1.10.3, @nuxtjs/robots@5.2.6, @vite-pwa/nuxt@0.10.6, @formkit/auto-animate/nuxt@0.8.2
  • Build Modules:

Is this bug related to Nuxt or Vue?

Nuxt

Version

2.21.1

Reproduction

https://codesandbox.io/p/sandbox/optimistic-http-yz8djj

Description

The hover effect doest work when you pass the color as variable. Doesn't work with some colors like indigo, pink, sky...

Additional context

No response

Logs

@suchorski suchorski added bug Something isn't working triage v3 #1289 labels Mar 11, 2025
@romhml
Copy link
Collaborator

romhml commented Mar 14, 2025

The color you are using is not valid, you must use color aliases in v3, see https://ui.nuxt.com/getting-started/theme#colors. Your can customize them using CSS variables too if you want to change them.

@romhml romhml added question Further information is requested and removed bug Something isn't working triage labels Mar 14, 2025
@suchorski
Copy link
Author

I'm using ui v2.

But I found that I was missing. My tailwindcss config was wrong

It was purging classes that was on script tag. So the classes of that color wasn't bundled

@romhml
Copy link
Collaborator

romhml commented Mar 14, 2025

Ok, the reproduction you send was for v3, please use the v2 playground next time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested v3 #1289
Projects
None yet
Development

No branches or pull requests

2 participants