Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
90 changes: 74 additions & 16 deletions data/component-design-tokens/tabs-design-tokens.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"tab-border-focus": {
"value": {
"width": "{borderWidth.l}",
"width": "{borderWidth.xl}",
"style": "solid",
"color": "{color.interactive.focus}"
},
Expand Down Expand Up @@ -31,48 +31,106 @@
},
"type": "border"
},
"tab-indicator-width": {
"value": "{borderWidth.xl}",
"type": "sizing",
"description": "Width of the active/hover indicator line (desktop bottom bar, mobile left bar)"
},
"tab-border-radius-desktop": {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It could be helpful to rename these to tab-indicator-border-radius- for clarity.

"value": "{borderRadius.s} {borderRadius.s} 0px 0px",
"type": "other"
},
"tab-border-radius-mobile": {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is -mobile the same as -small-screen? If so, we should make them all the same to be consistent.

"value": "0px {borderRadius.s} {borderRadius.s} 0px",
"type": "other"
},
"tab-color-bg-selected": {
"value": "transparent",
"type": "color"
},
"tab-color-bg-selected-small-screen": {
"value": "{color.info.background}",
"value": "{color.info.light}",
"type": "color"
},
"tab-padding": {
"value": "{space.xs} {space.m}",
"type": "spacing"
"tab-color-bg-hover-small-screen": {
"value": "{color.greyscale.50}",
"type": "color",
"description": "Mobile hover background color"
},
"tab-padding-mobile": {
"value": "6px {space.m}",
"type": "spacing"
"tab-color-text": {
"value": "{color.text.default}",
"type": "color"
},
"tab-text-color": {
"tab-color-text-hover": {
"value": "{color.text.default}",
"type": "color",
"description": "Text color on hover state"
},
"tab-color-text-selected": {
"value": "{color.interactive.default}",
"type": "color"
},
"tab-color-text-not-selected": {
"value": "{color.greyscale.600}",
"type": "color"
},
"tab-indicator-color-active": {
"value": "{color.interactive.default}",
"type": "color",
"description": "Active tab indicator color (blue underline/left bar)"
},
"tab-indicator-color-hover": {
"value": "{color.greyscale.300}",
"type": "color",
"description": "Hover tab indicator color (grey underline/left bar)"
},
"tab-padding": {
"value": "{space.xs} {space.2xs} 9px {space.2xs}",
"type": "spacing",
"description": "Desktop tab padding"
},
"tab-padding-mobile": {
"value": "{space.2xs} {space.s} {space.2xs} 15px",
"type": "spacing"
},
"tab-typography": {
"value": "{typography.body.m}",
"type": "other"
"value": {
"fontFamily": "{fontFamily.sans}",
"fontWeight": "{fontWeight.medium}",
"fontSize": "{fontSize.3}",
"lineHeight": "{lineHeight.2}",
"letterSpacing": "{letterSpacing.3xs}"
},
"type": "typography"
},
"tab-typography-selected": {
"value": "{typography.heading.s}",
"type": "other"
"value": {
"fontFamily": "{fontFamily.sans}",
"fontWeight": "{fontWeight.semiBold}",
"fontSize": "{fontSize.3}",
"lineHeight": "{lineHeight.2}",
"letterSpacing": "{letterSpacing.3xs}"
},
"type": "typography"
},
"tabs-bottom-border": {
"value": {
"width": "{borderWidth.s}",
"style": "solid",
"color": "{color.greyscale.200}"
"color": "{color.greyscale.150}"
},
"type": "border"
},
"tabs-gap": {
"value": "{space.xl}",
"value": "{space.m}",
"type": "spacing"
},
"tabs-gap-small-screen": {
"value": "{space.2xs}",
"type": "spacing"
},
"tabs-padding-bottom-mobile": {
"value": "{space.m}",
"type": "spacing"
}
}
}