Skip to content

Update variable value #1046

Answered by askoufis
cojoclaudiu asked this question in Q&A
Mar 20, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Discussed this on discord, the option that made the most sense in this case was to use setElementVars on the document element, for example:

setElementVars(document.documentElement, {
  [theme.colors.currentColor]: 'blue'
});

Replies: 1 comment 1 reply

Comment options

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

Answer selected by cojoclaudiu
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