-
Notifications
You must be signed in to change notification settings - Fork 357
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: [M3-7579] - Design Tokens (CDS 2.0) #10022
feat: [M3-7579] - Design Tokens (CDS 2.0) #10022
Conversation
@@ -6,45 +6,47 @@ | |||
* I'll create a tech debt ticket in jira to keep track of this issue. |
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 entire file was untouched - I just ran ESLINT against it.
@@ -75,8 +75,8 @@ const useStyles = makeStyles<void, 'linkItem'>()( | |||
opacity: 1, | |||
}, | |||
'& svg': { | |||
color: theme.color.teal, | |||
fill: theme.color.teal, |
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.
Teal was green in production, whereas it's actually teal with new design tokens. I just updated this to use our new status color for success (green).
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.
Neat! It's gonna take me a bit to get use to all of the new colors, but things look solid!
The table header looks much different, and slightly less appealing now in my opinion. Is this change to bring us into alignment with Akamai's tables?
Yes! The table will look much different once we actually apply the Table tokens. We can either decide to make that change now or in an upcoming PR. I was hesitant in doing anything drastic with this first PR and was more trying to do a 1:1 mapping. |
borderColor: Select.Default.Border, | ||
// TODO: designTokens - figure out why: | ||
// - Select.Default.Text and Select.Focus.Text would be different colors | ||
// - Why Select.Default.Text (#a3a3ab) looks like a disabled color (maybe that's just the discrepancy) |
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.
@jaalah-akamai any idea about this one? I changed it for now but using Select.Default.Text
looks like a disabled style then color changes on focus which is not what we want
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.
Visually audited the app in light and dark mode ✅
Nice work, I like some aspects of this better than the current design, such as the blue hover/selection state for primary nav items instead of green.
Screenshots & Questions
- Do we expect to keep the jet black background? It feels a bit jarring. And it looks like we have some stray miscoloration in the bottom left.
- Do we expect to keep the light gray borders/outlines on the elements? It makes the app look busier than the current dark gray borders/outlines IMO.
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.
List of things I've noticed. Looks great!
Note
I might keep adding stuff to this comment so keep an eye out for new items added
Popovers/Menus have no contrast
I feel like popovers/menus should have a different background color than the app's background color.Can we add a contrasting background color to the footer?
Previously, we only had contrast in dark mode. I'd personally like to see the footer have a contrasting background color it in both themes…ai/manager into feature/design-tokens-cds-v2
Addressed some of the feedback from @dwiley-akamai & @bnussman-akamai which I will list here (dark theme only, did not touch light theme):
yes, these are the styles for CDS 2.0 which Cloud Manager is adopting now and will increase adoption in the next major update
yeah i agree this isn't the best experience so I added contrast back
fixed!
leaving this one out cause the light theme does not have it and i don't think we need to in the dark mode either (trying to keep themes consistent in terms of main elements)
That will be coming in the future but for now marketing/product styling is out of scope. |
Description 📝
Initial pass to replace the hard-coded styles in the
light.ts
theme file with their corresponding design tokens, so that we can achieve consistency in styling and facilitate future theming. We will be doing more structural changes to the theme files in the near future. These design tokens are in sync with Core Design System (CDS) 2.0 decisions being made for Akamai.Benefits:
Changes 🔄
"@linode/design-language-system": "^1.0.0"
Preview 📷
How to test 🧪
Prerequisites
yarn install && yarn build && yarn dev
Reproduction steps
Verification steps
As an Author I have considered 🤔
Check all that apply