Replies: 3 comments 1 reply
-
The best thing here is to propagate the
|
Beta Was this translation helpful? Give feedback.
-
Currently |
Beta Was this translation helpful? Give feedback.
-
This is a known issue that we're thinking about. Ideally, it would be possible to import CSS variable names from files just like JS files, but At the same time, we want to avoid exposing a JS API for global CSS. |
Beta Was this translation helpful? Give feedback.
-
Hey,
I'm trying to wrap my head around stylex and the only outstanding question I have is around global css questions.
I have an app level setup for some of the basic styles for things like headings, body, main, article, img, etc...
I understand that these are supposed to stay as vanilla html for now, although I wish I could define these in StyelX too.
So the question is
How do I deal with something like this?
I would like to define my theme/variables purely in stylex so I could reuse them in all my components.
How can I make sure I can reuse them in the vanilla css parts too without having to duplicate them?
Beta Was this translation helpful? Give feedback.
All reactions