question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is there some thought for dark/light theme doesn't only by `dark:`

See original GitHub issue

Now, not only unocss but also wind, tailwind support dark mode only with dark variant.

It means We should write more class name for supporting dark mode.

A better method for this that use color palette (refer to mui: https://mui.com/material-ui/customization/dark-mode/#main-content):

We design two color tokens, and automaticly change those tokens with compute mode changed or by user manual.

unocss has any plans to implement this?

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:3
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
Xwudaocommented, Aug 8, 2022

@antfu

All right. In fact, I am not familiar with the development of uno preset. But I’d like to try it in my spare time.

2reactions
Dunqingcommented, Oct 16, 2022

Now I’ve made a preset that supports it

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dark Mode vs. Light Mode: Which Is Better?
Dark-mode displays emit less light than light-mode ones (and, because of that, they might extend battery life). But the amount of light in...
Read more >
Dark vs. Light theme: which is better? | by FunCorp | Medium
It is believed to reduce eye strain and is easier to work within low light ; Some people like it better. But, leaving...
Read more >
Light Mode vs. Dark Mode: What is Better? | by Fireart Studio
To learn how a dark theme affects vision, you need to understand how the eye reacts to different colors. Colors that are too...
Read more >
What Is Dark Mode – And Should You Be Using It? - Forbes
Dark mode is a display setting for user interfaces, such as a smartphone or laptop. ... black mode; dark theme; night mode; light-on-dark....
Read more >
Dark UI themes are new and cool — but are they accessible?
However, it appears that not much thought has been given to dark mode ... Definitely true, but only helpful if a flicker issue...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found