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.