Custom css vars & get class name #507
Unanswered
olivierpascal
asked this question in
Q&A
Replies: 1 comment 4 replies
-
const styles = stylex.create({
editor: {
'--baseBg': myStylexVars.baseBg, // does not work
},
});This should work with StyleX. There's likely a different issue. Could you share a small repro? |
Beta Was this translation helpful? Give feedback.
4 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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am using stylex and I need to make it compatible with a third-party library I am using.
This library requires for theming:
editorClassNamepropI want to style it with:
Questions:
styles.editor?--baseBgin stylex?Thanks.
Beta Was this translation helpful? Give feedback.
All reactions