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

Allow configuring theme color #788

Closed
shuding opened this issue Sep 1, 2022 · 0 comments
Closed

Allow configuring theme color #788

shuding opened this issue Sep 1, 2022 · 0 comments
Assignees

Comments

@shuding
Copy link
Owner

shuding commented Sep 1, 2022

Currently we have a --nextra-primary-hue variable so you can adjust the global theme color. I think this can be a good theme configuration, we accept a number and render a <style> tag in <NextHead> that contains this hue variable. At the same time we can have another hue for the dark mode too:

primaryHue?: number | {
  light?: number
  dark?: number
}

Originally posted by @alii in #445 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants