Skip to content
Discussion options

You must be logged in to vote

Hi @saleh-aleid, thanks for the question.

The answer is small little pieces of pixie dust, magic and SVG secrets... 😄

Haha, just kidding, the SVGs are just text strings, so the magic is that the Themes Playground app is actually "editing" and rewriting the SVG files, by replacing a color code string in the used SVG files, with the theme's colorScheme.primary color.

This happens as the theme changes too, even when the theme change lerp animates, the SVG string is even modified repeatedly with the theme lerped color value (happens automatically when you use a theme color and it chnages, themedata transition handles that lerp built-in), and the image is redrawn many times when the theme chan…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rydmike
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question This issue is a usage question and will be moved to the Discussions section.
2 participants
Converted from issue

This discussion was converted from issue #148 on May 10, 2023 20:13.