Giter Site home page Giter Site logo

Setting up a default theme about elegant-cli HOT 2 CLOSED

hvitis avatar hvitis commented on June 21, 2024
Setting up a default theme

from elegant-cli.

Comments (2)

Bowens20832 avatar Bowens20832 commented on June 21, 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?

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]">

from elegant-cli.

Bowens20832 avatar Bowens20832 commented on June 21, 2024

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 😎

from elegant-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.