-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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(css): add support for the subtle color map #30306
base: next
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
), | ||
// neutral/base equivalent | ||
light: |
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.
I think we should probably make light use a lighter version but I am not sure
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.
Looking at the Colors page, I think is already light enough and different form Medium and Dark, I'm ok with this :)
contrast-rgb: globals.$ion-text-default-rgb, | ||
// TODO this fails AA testing | ||
// shade: globals.$ion-bg-neutral-base-press, | ||
shade: globals.$ion-primitives-neutral-600, |
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.
The 600 token is one step lighter but it fails AA with default text
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.
Maybe use --ion-color-dark-subtle-contrast
or --ion-bg-neutral-bold-press?
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.
The bg-neutral-bold-press
token is too dark for this, it uses #242424
compared to the current token I am using #8c8c8c
. I couldn't find any tokens with “dark” in their name. The issue is the light color is using the default (black) text so the pressed state can't be too dark to not fail the contrast check.
Issue number: internal
What is the current behavior?
The colors are only available in bold colors.
What is the new behavior?
Adds support for a
subtle
hue to the colors map, generating all of the same variants but in more subtle colors. This only applies for theionic
theme. Adds an additional variant,foreground
to be used by components when the color is being used for text.The
ios
andmd
themes do not add theforeground
variant because this would be a breaking change, requiring all color overrides, palettes, and new colors to include this variant. I have added tests to make sure they still work without it.Does this introduce a breaking change?
No changes are made to the existing colors.
Other information
Preview