Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Analyze theme variables #523

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Analyze theme variables #523

wants to merge 2 commits into from

Conversation

dskloetd
Copy link
Collaborator

I analyzed the dark.scss and light.scss files to get an idea of what theme variables we might need.
A theme variable will have a value for dark and a different value for light and can be used by multiple components.
To understand which component variables might be able to use the same theme variable we need to know which component variables have the same value in both the light and the dark theme.
Additionally, variables that exist in only one of the themes or that have the same value in both themes, might not need a theme variable.

I changed the input files to make sure that each key/value pair is on a single line to make parsing easier.

Then I ran node theme.js > output.text and added both to the branch.

@dskloetd dskloetd changed the title Analyze theme variable Analyze theme variables Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant