Skip to content

Commit 12f48e1

Browse files
committed
feat(#3095): update tabs to v2
1 parent 5501cb2 commit 12f48e1

File tree

1 file changed

+74
-16
lines changed

1 file changed

+74
-16
lines changed

data/component-design-tokens/tabs-design-tokens.json

Lines changed: 74 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"tab-border-focus": {
33
"value": {
4-
"width": "{borderWidth.l}",
4+
"width": "{borderWidth.xl}",
55
"style": "solid",
66
"color": "{color.interactive.focus}"
77
},
@@ -31,48 +31,106 @@
3131
},
3232
"type": "border"
3333
},
34+
"tab-indicator-width": {
35+
"value": "{borderWidth.xl}",
36+
"type": "sizing",
37+
"description": "Width of the active/hover indicator line (desktop bottom bar, mobile left bar)"
38+
},
39+
"tab-indicator-border-radius-desktop": {
40+
"value": "{borderRadius.s} {borderRadius.s} 0px 0px",
41+
"type": "other"
42+
},
43+
"tab-indicator-border-radius-small-screen": {
44+
"value": "0px {borderRadius.s} {borderRadius.s} 0px",
45+
"type": "other"
46+
},
3447
"tab-color-bg-selected": {
3548
"value": "transparent",
3649
"type": "color"
3750
},
3851
"tab-color-bg-selected-small-screen": {
39-
"value": "{color.info.background}",
52+
"value": "{color.info.light}",
4053
"type": "color"
4154
},
42-
"tab-padding": {
43-
"value": "{space.xs} {space.m}",
44-
"type": "spacing"
55+
"tab-color-bg-hover-small-screen": {
56+
"value": "{color.greyscale.50}",
57+
"type": "color",
58+
"description": "Mobile hover background color"
4559
},
46-
"tab-padding-mobile": {
47-
"value": "6px {space.m}",
48-
"type": "spacing"
60+
"tab-color-text": {
61+
"value": "{color.text.default}",
62+
"type": "color"
4963
},
50-
"tab-text-color": {
64+
"tab-color-text-hover": {
5165
"value": "{color.text.default}",
66+
"type": "color",
67+
"description": "Text color on hover state"
68+
},
69+
"tab-color-text-selected": {
70+
"value": "{color.interactive.default}",
71+
"type": "color"
72+
},
73+
"tab-color-text-not-selected": {
74+
"value": "{color.greyscale.600}",
5275
"type": "color"
5376
},
77+
"tab-indicator-color-active": {
78+
"value": "{color.interactive.default}",
79+
"type": "color",
80+
"description": "Active tab indicator color (blue underline/left bar)"
81+
},
82+
"tab-indicator-color-hover": {
83+
"value": "{color.greyscale.300}",
84+
"type": "color",
85+
"description": "Hover tab indicator color (grey underline/left bar)"
86+
},
87+
"tab-padding": {
88+
"value": "{space.xs} {space.2xs} 9px {space.2xs}",
89+
"type": "spacing",
90+
"description": "Desktop tab padding"
91+
},
92+
"tab-padding-mobile": {
93+
"value": "{space.2xs} {space.s} {space.2xs} 15px",
94+
"type": "spacing"
95+
},
5496
"tab-typography": {
55-
"value": "{typography.body.m}",
56-
"type": "other"
97+
"value": {
98+
"fontFamily": "{fontFamily.sans}",
99+
"fontWeight": "{fontWeight.medium}",
100+
"fontSize": "{fontSize.3}",
101+
"lineHeight": "{lineHeight.2}",
102+
"letterSpacing": "{letterSpacing.3xs}"
103+
},
104+
"type": "typography"
57105
},
58106
"tab-typography-selected": {
59-
"value": "{typography.heading.s}",
60-
"type": "other"
107+
"value": {
108+
"fontFamily": "{fontFamily.sans}",
109+
"fontWeight": "{fontWeight.semiBold}",
110+
"fontSize": "{fontSize.3}",
111+
"lineHeight": "{lineHeight.2}",
112+
"letterSpacing": "{letterSpacing.3xs}"
113+
},
114+
"type": "typography"
61115
},
62116
"tabs-bottom-border": {
63117
"value": {
64118
"width": "{borderWidth.s}",
65119
"style": "solid",
66-
"color": "{color.greyscale.200}"
120+
"color": "{color.greyscale.150}"
67121
},
68122
"type": "border"
69123
},
70124
"tabs-gap": {
71-
"value": "{space.xl}",
125+
"value": "{space.m}",
72126
"type": "spacing"
73127
},
74128
"tabs-gap-small-screen": {
75129
"value": "{space.2xs}",
76130
"type": "spacing"
131+
},
132+
"tabs-padding-bottom-small-screen": {
133+
"value": "{space.m}",
134+
"type": "spacing"
77135
}
78-
}
136+
}

0 commit comments

Comments
 (0)