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

How can I improve the dark style of USelect #3595

Closed
ZanzibarNuclear opened this issue Mar 18, 2025 · 4 comments
Closed

How can I improve the dark style of USelect #3595

ZanzibarNuclear opened this issue Mar 18, 2025 · 4 comments
Labels
question Further information is requested v3 #1289

Comments

@ZanzibarNuclear
Copy link

Description

The light mode defaults for Select are pretty good. Not as good for dark mode. How can I at least modify the background and text color of the popup list for dark mode? What is the recommended approach?

Image
Image

@ZanzibarNuclear ZanzibarNuclear added question Further information is requested v3 #1289 labels Mar 18, 2025
Copy link
Member

This is not how the Select is supposed to be styled 🤔 Did you add theme(static) when importing tailwindcss? https://ui.nuxt.com/getting-started/installation/nuxt#import-tailwind-css-and-nuxt-ui-in-your-css

@ZanzibarNuclear
Copy link
Author

I did. Since I am updating an existing app, I am using some custom colors and fonts. That's about it,

'assets/css/main.css'

@import 'tailwindcss' theme(static);
@import '@nuxt/ui-pro';

@theme static {
--container-8xl: 90rem;

--color-nuclear-50: #f0f9ff;
--color-nuclear-100: #e0f2fe;
--color-nuclear-200: #b9e6fe;

...and so on.

@ZanzibarNuclear
Copy link
Author

I am going to try starting from scratch and applying my custom styles. At least I'll get to know the component updates better that way, and I can see how things are meant to be before I change them.

Thanks for the support.

Copy link
Member

Sure! Feel free to open a new issue or reopen this one with a reproduction if you're still stuck 😊

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