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

Setting up a default theme #461

Closed
hvitis opened this issue Apr 25, 2024 · 2 comments
Closed

Setting up a default theme #461

hvitis opened this issue Apr 25, 2024 · 2 comments

Comments

@hvitis
Copy link

hvitis commented Apr 25, 2024

Describe the solution you'd like
I would like to know or to have a variable that sets the default theme. Currelty I see that the system theme is being implemented as default, but my website is not prepared for themes yet so I would like to HARDCODE light theme. How would I do that?

Describe alternatives you've considered
I was thinking about throwing out all theme settings in tailwind config but I dont want to do that since I will soon move to setting up themes.

Additional context
That´s more of a question if it´s possible to set a light theme as default somewhere now?

@Bowens20832
Copy link
Contributor

Describe the solution you'd like I would like to know or to have a variable that sets the default theme. Currelty I see that the system theme is being implemented as default, but my website is not prepared for themes yet so I would like to HARDCODE light theme. How would I do that?

Describe alternatives you've considered I was thinking about throwing out all theme settings in tailwind config but I dont want to do that since I will soon move to setting up themes.

Additional context That´s more of a question if it´s possible to set a light theme as default somewhere now?

Hey @hvitis! Thanks for reaching out and opening an issue.

To have the theme default to light, simply remove the dark css class in the element in src/pages/_document.js on line 12

<Html lang="en" className="dark [--scroll-mt:9.875rem] lg:[--scroll-mt:6.3125rem]">

@Bowens20832
Copy link
Contributor

Hey @hvitis, I hope all is well!

I have not heard any more feedback on this issue, and it has gone stale. I am closing this issue for now, but feel free to comment or reopen it if you are still having issues.

Thank you again for supporting Elegant 😎

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