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

State-based Customization (in app.config) #2876

Open
IMTanuki opened this issue Dec 10, 2024 · 0 comments
Open

State-based Customization (in app.config) #2876

IMTanuki opened this issue Dec 10, 2024 · 0 comments
Labels
question Further information is requested

Comments

@IMTanuki
Copy link

For what version of Nuxt UI are you asking this question?

v2.x

Description

It seems that the default state-based styling for Nuxt UI components is inverted.

Instead of:

hover: { color: xxx, bg: xxx, other-props: xxx }

Nuxt-UI components do this:

bg: { base: xxx, hover: xxx, active: xxx }

IMO, this inversion sems like it would be extremely difficult to modify in app.config, and in fact, I can't find anything in the Nuxt UI docs that explains how to customize the default state-based styling (maybe it's staring me right in the face).

Question(s)

  1. Can state-based customization be implemented in app.config?
  2. If so, could someone provide even a simple example of the syntax?

Thx

@IMTanuki IMTanuki added the question Further information is requested label Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant