-
-
Save snejugal/f9f3defdf0ec1485e721a06295910734 to your computer and use it in GitHub Desktop.
Invert theme's colors in .attheme editor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const variables = activeTheme.getVariables(); | |
for (const variable of variables) { | |
const color = activeTheme.getVariable(variable); | |
color.red = 255 - color.red; | |
color.green = 255 - color.green; | |
color.blue = 255 - color.blue; | |
activeTheme.setVariable(variable, color); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment