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
flexibility: remove base from color scale & add parseToRgb #1696
Conversation
BREAKING CHANGE: update color.base usages to color[6]
BREAKING CHANGE: switch colorsBackgroundUtility.base usage to
07910be
to
2ddbcfa
Compare
packages/core/src/js/colors.ts
Outdated
@@ -147,7 +138,7 @@ export const colorsBackgroundLight = { | |||
} | |||
|
|||
export const colorsBackgroundUtility = { | |||
base: '#8A99A8', | |||
base: '138,153,168', |
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.
Having some values rgba()-wrapped and some with raw csv will lead to unpredictable usage of these values. I would rather do them all at once and cut over. It's already a breaking change.
What do you think?
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 only color we really need these raw values for. because of how often we combine it with transparentize. The other colors are more one offs.
…stem into refactor/colorVars
* master: build: publish fix(datepicker): closes on click outside resolves #1655 (#1700) tagsinput: fix scroll bar position when items/pills overflow (#1702) flexibility: remove base from color scale & add parseToRgb (#1696) fix(searchinput): weird type bug resolved (#1698) feat(core): temp core util for refactoring to vanillia css (#1689) build: publish select: stop intercepting all key events (#1699) build: publish fix(storybook-addon-theme): update incorrect package name in README feat(storybook-addon-theme): update icon to circle feat(storybook-addon-theme): ability to set theme per-story util: polymorphic primatives (#1690) build: publish fix(select): dropdown zindex added (#1691) Update @pluralsight/ps-design-system-storybook-addon-theme package.json for addon-catalog Update @pluralsight/ps-design-system-storybook-addon-center package.json for addon-catalog
Removes base from color scale based on conversation with @sweeting
Adds new
parseToRgb()
to make refactoring transparentize usage easier.resolves #1684