tailwind-highlightjs icon indicating copy to clipboard operation
tailwind-highlightjs copied to clipboard

dark mode support?

Open arily opened this issue 3 years ago • 7 comments

do we have a plan to choose a different theme for dark mode?

arily avatar Sep 29 '22 17:09 arily

Not at the moment but I'll look into it later when I have a chance. I'm open to ideas.

GeoffSelby avatar Sep 29 '22 17:09 GeoffSelby

    hljs: {
      theme: 'night-owl', // light
      darkTheme: 'another-theme', // dark
    }

then generate another set of styles for dark mode

.dark\:{
    &hljs {
        &...styles
    }
}

this is basically the config of daisyui. What do you think?

arily avatar Sep 30 '22 02:09 arily

@arily the only issue with that is how highlight.js works in general. I'd like to avoid needing to reinstantiate hljs when toggling dark mode. I have some other ideas that I'll hack on this weekend if I can find time.

GeoffSelby avatar Sep 30 '22 03:09 GeoffSelby

Any updates on this? I'm also looking to use a different theme for dark/light mode.

7rebux avatar Nov 02 '23 23:11 7rebux

Any updates on this? I'm also looking to use a different theme for dark/light mode.

I'll look into this more tomorrow. I've been meaning to do some cleanup anyway.

GeoffSelby avatar Nov 03 '23 00:11 GeoffSelby

i would also love darkmode support...

mrink68 avatar Dec 05 '23 16:12 mrink68

same lol

diVid3 avatar Aug 23 '24 09:08 diVid3