79553410

Date: 2025-04-03 15:50:24
Score: 1
Natty:
Report link

If you're using Shadcn with css variables, you can do this:

:root,
.not-dark {
   --background: ...

Then you apply the .not-dark class to your element that needs to be light mode.

Obviously you can name the class light-mode or anything else you want.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Darko