Skip to content

How can I declare local scoped variables? #887

Answered by astahmer
sudomf asked this question in Q&A
Discussion options

You must be logged in to vote

Hey, what you wrote almost works ! you just need to wrap the CSS var in quotes like "--myCustomVar" so that it remains valid JS syntax

you can see it in action here

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by anubra266
Comment options

You must be logged in to vote
1 reply
@astahmer
Comment options

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