-
Notifications
You must be signed in to change notification settings - Fork 1
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
Feat(variables-scss): Formatting color tokens and support themes #DS-1461 #1624
Conversation
✅ Deploy Preview for spirit-design-system ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for spirit-design-system-storybook canceled.
|
1 similar comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
uf... good job xD
exporters/variables-scss/src/generators/__tests__/contentGenerator.test.ts
Outdated
Show resolved
Hide resolved
exporters/variables-scss/src/helpers/__tests__/colorHelper.test.ts
Outdated
Show resolved
Hide resolved
Good job for solving all those parsing issues 👏 I know that some parts of the code are copied from previous exporters, but also think that we can do better. I have reserved some time to do the code review again together. There are a few blind spots for me, so let's discuss them :-) Thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$focus-color: (
basic: (
color 01: $focus-basic-color-01,
),
) !default;
color 01
-> color-01
$gradients-color: (
basic-overlay: (
color 01: $gradients-basic-overlay-color-01,
color 02: $gradients-basic-overlay-color-02,
),
) !default;
can this object be called gradient-colors? Or is it an exception?
You are missing the global colors map
$colors: (
action: $action-colors,
background: $background-colors,
border: $border-colors,
custom: $custom-colors,
disabled: $disabled-colors,
emotion: $emotion-colors,
focus: $focus-colors,
gradient: $gradient-colors,
neutral: $neutral-colors,
selected: $selected-colors,
shadow: $shadow-colors,
text: $text-colors,
) !default;
It links other maps
36b2095
to
d519195
Compare
ad 1 - fixed in figma/supernova ad 2 - in Supernova, there is a gradients name of the group, so its correct. ad 3 - added logic for global color object at the end of the file |
bc2032a
to
5eb4144
Compare
5e1aa86
to
f988888
Compare
2414485
to
15d94e6
Compare
15d94e6
to
0cd6cbc
Compare
0cd6cbc
to
1402cb5
Compare
Description
Additional context
Issue reference