Replies: 1 comment
|
You can use custom theme objects or the provided themes (DefaultTheme, DarkTheme) in the stylesheet, but you can't include them in the stylesheet conditionally for the dark and light themes. It would be best if you wrote the condition inside the component. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I have a functional component (Card.tsx) and an external style file (Card.style.ts)
I can import my colors by using useTheme() in my component.
How to import these colors in my style file.
All reactions