Skip to content

Runtime colors / theme properties #191

Answered by blvdmitry
its-monotype asked this question in Q&A
Discussion options

You must be logged in to vote

Currently js definitions are not shipped to not double the theme size in the css/js bundles.

However, you can still use css variables right in your js string:
"var(--rs-color-background-primary)"

As an example, we use it this way on our website to style the Stripe payment form. Let me know if this works for your case

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@its-monotype
Comment options

@blvdmitry
Comment options

Answer selected by blvdmitry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants