-
Notifications
You must be signed in to change notification settings - Fork 0
fix / CLOUD-25242 / definition of foundation and semantic colors #21
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
fix / CLOUD-25242 / definition of foundation and semantic colors #21
Conversation
add unit tests
.github/workflows/build.yml
Outdated
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.
Changed default spacing from 4 to 2 characters
<ColorModeProvider | ||
value="dark" | ||
options={{ useSystemColorMode: false, initialColorMode: 'dark' }} | ||
> |
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.
This is the equivalent of <DarkMode>
, but I wanted to show different ways of achieving the same thing
default: string | ||
_dark: string |
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.
This is the type Chakra uses internally (default
for light mode, _dark
for dark mode). By sticking to this convention, it makes the semantic color coding much simpler, without requiring any conversion
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.
LGTM! 🐊
Issue
The semantic colors layer is not defined properly, which means that:
Done
Demo
Short video (when played at 1.5x speed) explaining the changes.
Screenshots