Conversation
|
This pull request is being automatically deployed with ZEIT Now (learn more). 🔍 Inspect: https://zeit.co/uber-ui-platform/baseweb/bxfxov9y5 |
|
Visual changes were detected on this branch. Please review the following PR containing updated snapshots: #2455 |
src/card/styled-components.js
Outdated
| borderBottomLeftRadius: borders.surfaceBorderRadius, | ||
| borderBottomRightRadius: borders.surfaceBorderRadius, | ||
| backgroundColor: colors.backgroundAlt, | ||
| backgroundColor: colors.backgroundSecondary, |
There was a problem hiding this comment.
shouldn't it stay in the light theme?
|
looks great! |
|
many of the 'surface' backgrounds have changed from white to light grey in the vrts, was that intentional? Otherwise, the change lgtm |
| const foundation: FoundationSemanticColorTokensT = { | ||
| primaryA: colors.gray200, | ||
| primaryB: colors.gray900, | ||
| accent: colors.blue500, |
There was a problem hiding this comment.
if people have these already set as primitives in their current theme will they be overwritten by these keys with the same name?
There was a problem hiding this comment.
You mean if they create a custom theme and extend it with custom props? Then it depends on how they extend the current theme, should their custom props come last then it overrides what's in the default theme.
There was a problem hiding this comment.
What would accent end up as on the final theme object if I did the following?
createTheme({
// other primitives...
accent: 'pink',
});In createTheme we combine a bunch of colors:
const theme = {
colors: {
...colorTokensWithOverrides, // user defined primitives
...getColorComponentTokens(colorTokensWithOverrides),
...getDeprecatedSemanticColors(colorTokensWithOverrides),
...semanticColors, // has `accent`, `positive`, etc.
},
};semanticColors has keys for accent, positive, etc. so wouldn't they override the primitives on the final theme object?
There was a problem hiding this comment.
I see. The accent, etc, will be overriden but not the other props that have value set from the theme primitives. I guess foundation semantic colors can be included in the theme building primitives and the sert of semantic values also built it taking overrides into account. What do you think?
There was a problem hiding this comment.
yeah, maybe add primaryA and primaryB to ColorTokensT.
then we can use a getter like getSemanticColors(colorTokensWithOverrides) which will override the foundation values with the passed in primitives.
|
Visual changes have been resolved. #2455 has been closed. If future commits on |
You're right, I think the legacy |
Description
The change is broken down in 3 separate commits:
Scope