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 do you set theme variables? #8

Closed
3 tasks done
jf908 opened this issue Mar 15, 2024 · 2 comments
Closed
3 tasks done

How do you set theme variables? #8

jf908 opened this issue Mar 15, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@jf908
Copy link

jf908 commented Mar 15, 2024

Clear and concise description of the problem

Do you know if there is a good way to set the theme colours with this preset?

I know that with cssVariables: true it's possibly to just manually override them but I assume there must be some config to edit shadcn's theme variables before they are generated, including a way to easily set light/dark variables separately.

Suggested solution

It would be great if this repo included an example for this, if possible.

Alternative

If you've got no ideas, feel free to close.

Additional context

This is a great resource, thanks for creating it!

Validations

@jf908 jf908 added the enhancement New feature or request label Mar 15, 2024
@hyoban
Copy link
Collaborator

hyoban commented Mar 15, 2024

hyoban/unocss-preset-shadcn#3

Does this work for you? Sorry for missing documentation in the readme.

@jf908
Copy link
Author

jf908 commented Mar 15, 2024

Perfect, I somehow missed that when I looked at the d.ts. Thank you!

@jf908 jf908 closed this as completed Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants