Code Monkey home page Code Monkey logo

Comments (8)

georgiosd avatar georgiosd commented on May 13, 2024

I'm also noticing that the theme overrides the font imported by Next and there's no way to configure that?

from themes.

joaom00 avatar joaom00 commented on May 13, 2024

The docs has a section about how to setup with next/fonts

from themes.

georgiosd avatar georgiosd commented on May 13, 2024

Ok, thanks, but that's not the main issue. Why does the dark theme disappear in the second snippet?

from themes.

vladmoroz avatar vladmoroz commented on May 13, 2024

I used your code to create an example:
https://codesandbox.io/p/sandbox/twilight-firefly-h8q8j7

Screenshot 2023-08-14 at 11 18 39

Seems to work fine. Is the example accurate?

from themes.

jd-carroll avatar jd-carroll commented on May 13, 2024

This appears to be related to #22

I think if that is solved, so will this issue

from themes.

jd-carroll avatar jd-carroll commented on May 13, 2024

@georgiosd See if this comment describes your environment.

Specifically, look for the script tag that looks like: (yours may be slightly different)

<script>
  !(function(){try{var d=document.documentElement,c=d.classList;c.remove('light','dark');d.style.colorScheme='dark';c.add('dark');}catch(e){}})();
</script>

Is it mounted directly under the <body> or is there a parent between the <body> and <script>?

from themes.

tobowers avatar tobowers commented on May 13, 2024

btw - I see this too but only in production, not in dev mode.

from themes.

georgiosd avatar georgiosd commented on May 13, 2024

Sorry for the radio silence here, meant to provide an explicit repro but life has gotten in the way, still on my list.

I see the opposite however - fine in prod, dev is light theme only...

from themes.

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.