elegant-cli icon indicating copy to clipboard operation
elegant-cli copied to clipboard

Setting up a default theme

Open hvitis opened this issue 1 year ago • 1 comments

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?

hvitis avatar Apr 25 '24 02:04 hvitis

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

https://github.com/elegantframework/elegant-cli/blob/319204bc1916792e8b5539cc107b9a979d946f1c/source/elegant/src/pages/_document.js#L12

Bowens20832 avatar Apr 27 '24 01:04 Bowens20832

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 😎

Bowens20832 avatar May 21 '24 21:05 Bowens20832