@gitlab/ui 125.0.0 → 126.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/base/form/form_select/form_select.js +1 -9
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/tailwind.css +1 -1
- package/dist/tailwind.css.map +1 -1
- package/dist/tokens/build/js/tokens.dark.js +193 -1
- package/dist/tokens/build/js/tokens.js +193 -1
- package/package.json +3 -8
- package/src/components/base/form/form_select/form_select.vue +1 -15
- package/src/tokens/build/css/tokens.css +192 -0
- package/src/tokens/build/css/tokens.dark.css +192 -0
- package/src/tokens/build/docs/tokens-tailwind-docs.dark.json +59 -0
- package/src/tokens/build/docs/tokens-tailwind-docs.json +59 -0
- package/src/tokens/build/figma/constants.tokens.json +180 -0
- package/src/tokens/build/figma/semantic.tokens.json +209 -0
- package/src/tokens/build/js/tokens.dark.js +198 -0
- package/src/tokens/build/js/tokens.js +198 -0
- package/src/tokens/build/json/tokens.dark.json +1117 -0
- package/src/tokens/build/json/tokens.json +1117 -0
- package/src/tokens/build/scss/_tokens.dark.scss +192 -0
- package/src/tokens/build/scss/_tokens.scss +192 -0
- package/src/tokens/build/scss/_tokens_custom_properties.scss +192 -0
- package/src/tokens/build/tailwind/components.cjs +253 -0
- package/src/tokens/build/tailwind/tokens.cjs +2 -0
- package/src/tokens/constant/heading.tokens.json +182 -0
- package/src/tokens/semantic/font.tokens.json +11 -0
- package/src/tokens/semantic/heading.tokens.json +178 -0
- package/src/tokens/semantic/letter_spacing.tokens.json +13 -0
- package/src/tokens/semantic/line_height.tokens.json +13 -0
- package/tailwind.defaults.js +2 -253
- package/bin/migrate_custom_utils_to_tw.bundled.mjs +0 -205443
- package/dist/tokens/css/tokens.css +0 -1156
- package/dist/tokens/css/tokens.dark.css +0 -1156
- package/dist/tokens/docs/tokens-tailwind-docs.dark.json +0 -42846
- package/dist/tokens/docs/tokens-tailwind-docs.json +0 -42846
- package/dist/tokens/figma/constants.tokens.json +0 -2756
- package/dist/tokens/figma/contextual.tokens.json +0 -5929
- package/dist/tokens/figma/deprecated.tokens.json +0 -2899
- package/dist/tokens/figma/semantic.tokens.json +0 -2479
- package/dist/tokens/js/tokens.dark.js +0 -1286
- package/dist/tokens/js/tokens.js +0 -1275
- package/dist/tokens/json/tokens.dark.json +0 -36934
- package/dist/tokens/json/tokens.json +0 -36934
- package/dist/tokens/scss/_tokens.dark.scss +0 -1153
- package/dist/tokens/scss/_tokens.scss +0 -1153
- package/dist/tokens/scss/_tokens_custom_properties.scss +0 -1154
- package/dist/tokens/tailwind/tokens.cjs +0 -558
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
{
|
|
2
|
+
"heading": {
|
|
3
|
+
"scale": {
|
|
4
|
+
"100": {
|
|
5
|
+
"$value": {
|
|
6
|
+
"fontWeight": "{font.weight.heading}",
|
|
7
|
+
"marginTop": "{heading.default.margin.top}",
|
|
8
|
+
"fontSize": "{font.size.100}",
|
|
9
|
+
"letterSpacing": "inherit",
|
|
10
|
+
"lineHeight": "{line-height.heading}",
|
|
11
|
+
"color": "{text.color.heading}"
|
|
12
|
+
},
|
|
13
|
+
"$type": "typography"
|
|
14
|
+
},
|
|
15
|
+
"100-fixed": {
|
|
16
|
+
"$value": {
|
|
17
|
+
"fontWeight": "{font.weight.heading}",
|
|
18
|
+
"marginTop": "{heading.default.margin.top}",
|
|
19
|
+
"fontSize": "{font.size.100-fixed}",
|
|
20
|
+
"letterSpacing": "inherit",
|
|
21
|
+
"lineHeight": "{line-height.heading}",
|
|
22
|
+
"color": "{text.color.heading}"
|
|
23
|
+
},
|
|
24
|
+
"$type": "typography"
|
|
25
|
+
},
|
|
26
|
+
"200": {
|
|
27
|
+
"$value": {
|
|
28
|
+
"fontWeight": "{font.weight.heading}",
|
|
29
|
+
"marginTop": "{heading.default.margin.top}",
|
|
30
|
+
"fontSize": "{font.size.200}",
|
|
31
|
+
"letterSpacing": "inherit",
|
|
32
|
+
"lineHeight": "{line-height.heading}",
|
|
33
|
+
"color": "{text.color.heading}"
|
|
34
|
+
},
|
|
35
|
+
"$type": "typography"
|
|
36
|
+
},
|
|
37
|
+
"200-fixed": {
|
|
38
|
+
"$value": {
|
|
39
|
+
"fontWeight": "{font.weight.heading}",
|
|
40
|
+
"marginTop": "{heading.default.margin.top}",
|
|
41
|
+
"fontSize": "{font.size.200-fixed}",
|
|
42
|
+
"letterSpacing": "inherit",
|
|
43
|
+
"lineHeight": "{line-height.heading}",
|
|
44
|
+
"color": "{text.color.heading}"
|
|
45
|
+
},
|
|
46
|
+
"$type": "typography"
|
|
47
|
+
},
|
|
48
|
+
"300": {
|
|
49
|
+
"$value": {
|
|
50
|
+
"fontWeight": "{font.weight.heading}",
|
|
51
|
+
"marginTop": "{heading.default.margin.top}",
|
|
52
|
+
"fontSize": "{font.size.300}",
|
|
53
|
+
"letterSpacing": "inherit",
|
|
54
|
+
"lineHeight": "{line-height.heading}",
|
|
55
|
+
"color": "{text.color.heading}"
|
|
56
|
+
},
|
|
57
|
+
"$type": "typography"
|
|
58
|
+
},
|
|
59
|
+
"300-fixed": {
|
|
60
|
+
"$value": {
|
|
61
|
+
"fontWeight": "{font.weight.heading}",
|
|
62
|
+
"marginTop": "{heading.default.margin.top}",
|
|
63
|
+
"fontSize": "{font.size.300-fixed}",
|
|
64
|
+
"letterSpacing": "inherit",
|
|
65
|
+
"lineHeight": "{line-height.heading}",
|
|
66
|
+
"color": "{text.color.heading}"
|
|
67
|
+
},
|
|
68
|
+
"$type": "typography"
|
|
69
|
+
},
|
|
70
|
+
"400": {
|
|
71
|
+
"$value": {
|
|
72
|
+
"fontWeight": "{font.weight.heading}",
|
|
73
|
+
"marginTop": "{heading.default.margin.top}",
|
|
74
|
+
"fontSize": "{font.size.400}",
|
|
75
|
+
"letterSpacing": "inherit",
|
|
76
|
+
"lineHeight": "{line-height.heading}",
|
|
77
|
+
"color": "{text.color.heading}"
|
|
78
|
+
},
|
|
79
|
+
"$type": "typography"
|
|
80
|
+
},
|
|
81
|
+
"400-fixed": {
|
|
82
|
+
"$value": {
|
|
83
|
+
"fontWeight": "{font.weight.heading}",
|
|
84
|
+
"marginTop": "{heading.default.margin.top}",
|
|
85
|
+
"fontSize": "{font.size.400-fixed}",
|
|
86
|
+
"letterSpacing": "inherit",
|
|
87
|
+
"lineHeight": "{line-height.heading}",
|
|
88
|
+
"color": "{text.color.heading}"
|
|
89
|
+
},
|
|
90
|
+
"$type": "typography"
|
|
91
|
+
},
|
|
92
|
+
"500": {
|
|
93
|
+
"$value": {
|
|
94
|
+
"fontWeight": "{font.weight.heading}",
|
|
95
|
+
"marginTop": "{heading.default.margin.top}",
|
|
96
|
+
"fontSize": "{font.size.500}",
|
|
97
|
+
"letterSpacing": "inherit",
|
|
98
|
+
"lineHeight": "{line-height.heading}",
|
|
99
|
+
"color": "{text.color.heading}"
|
|
100
|
+
},
|
|
101
|
+
"$type": "typography"
|
|
102
|
+
},
|
|
103
|
+
"500-fixed": {
|
|
104
|
+
"$value": {
|
|
105
|
+
"fontWeight": "{font.weight.heading}",
|
|
106
|
+
"marginTop": "{heading.default.margin.top}",
|
|
107
|
+
"fontSize": "{font.size.500-fixed}",
|
|
108
|
+
"letterSpacing": "inherit",
|
|
109
|
+
"lineHeight": "{line-height.heading}",
|
|
110
|
+
"color": "{text.color.heading}"
|
|
111
|
+
},
|
|
112
|
+
"$type": "typography"
|
|
113
|
+
},
|
|
114
|
+
"600": {
|
|
115
|
+
"$value": {
|
|
116
|
+
"fontWeight": "{font.weight.heading}",
|
|
117
|
+
"marginTop": "{heading.default.margin.top}",
|
|
118
|
+
"fontSize": "{font.size.600}",
|
|
119
|
+
"letterSpacing": "{letter-spacing.heading}",
|
|
120
|
+
"lineHeight": "{line-height.heading}",
|
|
121
|
+
"color": "{text.color.heading}"
|
|
122
|
+
},
|
|
123
|
+
"$type": "typography"
|
|
124
|
+
},
|
|
125
|
+
"600-fixed": {
|
|
126
|
+
"$value": {
|
|
127
|
+
"fontWeight": "{font.weight.heading}",
|
|
128
|
+
"marginTop": "{heading.default.margin.top}",
|
|
129
|
+
"fontSize": "{font.size.600-fixed}",
|
|
130
|
+
"letterSpacing": "{letter-spacing.heading}",
|
|
131
|
+
"lineHeight": "{line-height.heading}",
|
|
132
|
+
"color": "{text.color.heading}"
|
|
133
|
+
},
|
|
134
|
+
"$type": "typography"
|
|
135
|
+
},
|
|
136
|
+
"700": {
|
|
137
|
+
"$value": {
|
|
138
|
+
"fontWeight": "{font.weight.heading}",
|
|
139
|
+
"marginTop": "{heading.default.margin.top}",
|
|
140
|
+
"fontSize": "{font.size.700}",
|
|
141
|
+
"letterSpacing": "{letter-spacing.heading}",
|
|
142
|
+
"lineHeight": "{line-height.heading}",
|
|
143
|
+
"color": "{text.color.heading}"
|
|
144
|
+
},
|
|
145
|
+
"$type": "typography"
|
|
146
|
+
},
|
|
147
|
+
"700-fixed": {
|
|
148
|
+
"$value": {
|
|
149
|
+
"fontWeight": "{font.weight.heading}",
|
|
150
|
+
"marginTop": "{heading.default.margin.top}",
|
|
151
|
+
"fontSize": "{font.size.700-fixed}",
|
|
152
|
+
"letterSpacing": "{letter-spacing.heading}",
|
|
153
|
+
"lineHeight": "{line-height.heading}",
|
|
154
|
+
"color": "{text.color.heading}"
|
|
155
|
+
},
|
|
156
|
+
"$type": "typography"
|
|
157
|
+
},
|
|
158
|
+
"800": {
|
|
159
|
+
"$value": {
|
|
160
|
+
"fontWeight": "{font.weight.heading}",
|
|
161
|
+
"marginTop": "{heading.default.margin.top}",
|
|
162
|
+
"fontSize": "{font.size.800}",
|
|
163
|
+
"letterSpacing": "{letter-spacing.heading}",
|
|
164
|
+
"lineHeight": 1.125,
|
|
165
|
+
"color": "{text.color.heading}"
|
|
166
|
+
},
|
|
167
|
+
"$type": "typography"
|
|
168
|
+
},
|
|
169
|
+
"800-fixed": {
|
|
170
|
+
"$value": {
|
|
171
|
+
"fontWeight": "{font.weight.heading}",
|
|
172
|
+
"marginTop": "{heading.default.margin.top}",
|
|
173
|
+
"fontSize": "{font.size.800-fixed}",
|
|
174
|
+
"letterSpacing": "{letter-spacing.heading}",
|
|
175
|
+
"lineHeight": 1.125,
|
|
176
|
+
"color": "{text.color.heading}"
|
|
177
|
+
},
|
|
178
|
+
"$type": "typography"
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
{
|
|
2
|
+
"heading": {
|
|
3
|
+
"default": {
|
|
4
|
+
"margin": {
|
|
5
|
+
"top": {
|
|
6
|
+
"$value": 0,
|
|
7
|
+
"$type": "dimension",
|
|
8
|
+
"$extensions": {
|
|
9
|
+
"com.figma.scope": []
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"bottom": {
|
|
13
|
+
"$value": "{spacing-scale.5}",
|
|
14
|
+
"$type": "dimension",
|
|
15
|
+
"$extensions": {
|
|
16
|
+
"com.figma.scope": []
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"display": {
|
|
22
|
+
"$value": {
|
|
23
|
+
"fontWeight": "{font.weight.heading}",
|
|
24
|
+
"marginTop": "{heading.default.margin.top}",
|
|
25
|
+
"fontSize": "{font.size.800}",
|
|
26
|
+
"letterSpacing": "{letter-spacing.heading}",
|
|
27
|
+
"lineHeight": 1.125,
|
|
28
|
+
"marginBottom": "{spacing-scale.6}",
|
|
29
|
+
"color": "{text.color.heading}"
|
|
30
|
+
},
|
|
31
|
+
"$type": "typography"
|
|
32
|
+
},
|
|
33
|
+
"1-fixed": {
|
|
34
|
+
"$value": {
|
|
35
|
+
"fontWeight": "{font.weight.heading}",
|
|
36
|
+
"marginTop": "{heading.default.margin.top}",
|
|
37
|
+
"fontSize": "{font.size.700-fixed}",
|
|
38
|
+
"letterSpacing": "{letter-spacing.heading}",
|
|
39
|
+
"lineHeight": "{line-height.heading}",
|
|
40
|
+
"marginBottom": "{heading.default.margin.bottom}",
|
|
41
|
+
"color": "{text.color.heading}"
|
|
42
|
+
},
|
|
43
|
+
"$type": "typography"
|
|
44
|
+
},
|
|
45
|
+
"1": {
|
|
46
|
+
"$value": {
|
|
47
|
+
"fontWeight": "{font.weight.heading}",
|
|
48
|
+
"marginTop": "{heading.default.margin.top}",
|
|
49
|
+
"fontSize": "{font.size.700}",
|
|
50
|
+
"letterSpacing": "{letter-spacing.heading}",
|
|
51
|
+
"lineHeight": "{line-height.heading}",
|
|
52
|
+
"marginBottom": "{heading.default.margin.bottom}",
|
|
53
|
+
"color": "{text.color.heading}"
|
|
54
|
+
},
|
|
55
|
+
"$type": "typography"
|
|
56
|
+
},
|
|
57
|
+
"2-fixed": {
|
|
58
|
+
"$value": {
|
|
59
|
+
"fontWeight": "{font.weight.heading}",
|
|
60
|
+
"marginTop": "{heading.default.margin.top}",
|
|
61
|
+
"fontSize": "{font.size.600-fixed}",
|
|
62
|
+
"letterSpacing": "{letter-spacing.heading}",
|
|
63
|
+
"lineHeight": "{line-height.heading}",
|
|
64
|
+
"marginBottom": "{heading.default.margin.bottom}",
|
|
65
|
+
"color": "{text.color.heading}"
|
|
66
|
+
},
|
|
67
|
+
"$type": "typography"
|
|
68
|
+
},
|
|
69
|
+
"2": {
|
|
70
|
+
"$value": {
|
|
71
|
+
"fontWeight": "{font.weight.heading}",
|
|
72
|
+
"marginTop": "{heading.default.margin.top}",
|
|
73
|
+
"fontSize": "{font.size.600}",
|
|
74
|
+
"letterSpacing": "{letter-spacing.heading}",
|
|
75
|
+
"lineHeight": "{line-height.heading}",
|
|
76
|
+
"marginBottom": "{heading.default.margin.bottom}",
|
|
77
|
+
"color": "{text.color.heading}"
|
|
78
|
+
},
|
|
79
|
+
"$type": "typography"
|
|
80
|
+
},
|
|
81
|
+
"3-fixed": {
|
|
82
|
+
"$value": {
|
|
83
|
+
"fontWeight": "{font.weight.heading}",
|
|
84
|
+
"marginTop": "{heading.default.margin.top}",
|
|
85
|
+
"fontSize": "{font.size.500-fixed}",
|
|
86
|
+
"letterSpacing": "inherit",
|
|
87
|
+
"lineHeight": "{line-height.heading}",
|
|
88
|
+
"marginBottom": "{heading.default.margin.bottom}",
|
|
89
|
+
"color": "{text.color.heading}"
|
|
90
|
+
},
|
|
91
|
+
"$type": "typography"
|
|
92
|
+
},
|
|
93
|
+
"3": {
|
|
94
|
+
"$value": {
|
|
95
|
+
"fontWeight": "{font.weight.heading}",
|
|
96
|
+
"marginTop": "{heading.default.margin.top}",
|
|
97
|
+
"fontSize": "{font.size.500}",
|
|
98
|
+
"letterSpacing": "inherit",
|
|
99
|
+
"lineHeight": "{line-height.heading}",
|
|
100
|
+
"marginBottom": "{heading.default.margin.bottom}",
|
|
101
|
+
"color": "{text.color.heading}"
|
|
102
|
+
},
|
|
103
|
+
"$type": "typography"
|
|
104
|
+
},
|
|
105
|
+
"4-fixed": {
|
|
106
|
+
"$value": {
|
|
107
|
+
"fontWeight": "{font.weight.heading}",
|
|
108
|
+
"marginTop": "{heading.default.margin.top}",
|
|
109
|
+
"fontSize": "{font.size.400-fixed}",
|
|
110
|
+
"letterSpacing": "inherit",
|
|
111
|
+
"lineHeight": "{line-height.heading}",
|
|
112
|
+
"marginBottom": "{heading.default.margin.bottom}",
|
|
113
|
+
"color": "{text.color.heading}"
|
|
114
|
+
},
|
|
115
|
+
"$type": "typography"
|
|
116
|
+
},
|
|
117
|
+
"4": {
|
|
118
|
+
"$value": {
|
|
119
|
+
"fontWeight": "{font.weight.heading}",
|
|
120
|
+
"marginTop": "{heading.default.margin.top}",
|
|
121
|
+
"fontSize": "{font.size.400}",
|
|
122
|
+
"letterSpacing": "inherit",
|
|
123
|
+
"lineHeight": "{line-height.heading}",
|
|
124
|
+
"marginBottom": "{heading.default.margin.bottom}",
|
|
125
|
+
"color": "{text.color.heading}"
|
|
126
|
+
},
|
|
127
|
+
"$type": "typography"
|
|
128
|
+
},
|
|
129
|
+
"5-fixed": {
|
|
130
|
+
"$value": {
|
|
131
|
+
"fontWeight": "{font.weight.heading}",
|
|
132
|
+
"marginTop": "{heading.default.margin.top}",
|
|
133
|
+
"fontSize": "{font.size.300-fixed}",
|
|
134
|
+
"letterSpacing": "inherit",
|
|
135
|
+
"lineHeight": "{line-height.heading}",
|
|
136
|
+
"marginBottom": "{heading.default.margin.bottom}",
|
|
137
|
+
"color": "{text.color.heading}"
|
|
138
|
+
},
|
|
139
|
+
"$type": "typography"
|
|
140
|
+
},
|
|
141
|
+
"5": {
|
|
142
|
+
"$value": {
|
|
143
|
+
"fontWeight": "{font.weight.heading}",
|
|
144
|
+
"marginTop": "{heading.default.margin.top}",
|
|
145
|
+
"fontSize": "{font.size.300}",
|
|
146
|
+
"letterSpacing": "inherit",
|
|
147
|
+
"lineHeight": "{line-height.heading}",
|
|
148
|
+
"marginBottom": "{heading.default.margin.bottom}",
|
|
149
|
+
"color": "{text.color.heading}"
|
|
150
|
+
},
|
|
151
|
+
"$type": "typography"
|
|
152
|
+
},
|
|
153
|
+
"6-fixed": {
|
|
154
|
+
"$value": {
|
|
155
|
+
"fontWeight": "{font.weight.heading}",
|
|
156
|
+
"marginTop": "{heading.default.margin.top}",
|
|
157
|
+
"fontSize": "{font.size.200-fixed}",
|
|
158
|
+
"letterSpacing": "inherit",
|
|
159
|
+
"lineHeight": "{line-height.heading}",
|
|
160
|
+
"marginBottom": "{heading.default.margin.bottom}",
|
|
161
|
+
"color": "{text.color.heading}"
|
|
162
|
+
},
|
|
163
|
+
"$type": "typography"
|
|
164
|
+
},
|
|
165
|
+
"6": {
|
|
166
|
+
"$value": {
|
|
167
|
+
"fontWeight": "{font.weight.heading}",
|
|
168
|
+
"marginTop": "{heading.default.margin.top}",
|
|
169
|
+
"fontSize": "{font.size.200}",
|
|
170
|
+
"letterSpacing": "inherit",
|
|
171
|
+
"lineHeight": "{line-height.heading}",
|
|
172
|
+
"marginBottom": "{heading.default.margin.bottom}",
|
|
173
|
+
"color": "{text.color.heading}"
|
|
174
|
+
},
|
|
175
|
+
"$type": "typography"
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
package/tailwind.defaults.js
CHANGED
|
@@ -18,6 +18,7 @@ const {
|
|
|
18
18
|
fontSize,
|
|
19
19
|
fontWeight,
|
|
20
20
|
} = require('./src/tokens/build/tailwind/tokens.cjs');
|
|
21
|
+
const { typographyComponents } = require('./src/tokens/build/tailwind/components.cjs');
|
|
21
22
|
|
|
22
23
|
const buildCQs = Boolean(process.env.USE_TAILWIND_CONTAINER_QUERIES);
|
|
23
24
|
|
|
@@ -127,259 +128,7 @@ function addCustomDefinitions({ addComponents, addUtilities }) {
|
|
|
127
128
|
},
|
|
128
129
|
'-moz-appearance': 'textfield',
|
|
129
130
|
},
|
|
130
|
-
|
|
131
|
-
'font-weight': '600',
|
|
132
|
-
'margin-top': '0',
|
|
133
|
-
'font-size': '0.8125rem',
|
|
134
|
-
'letter-spacing': 'inherit',
|
|
135
|
-
'line-height': '1.25',
|
|
136
|
-
'margin-bottom': '1rem',
|
|
137
|
-
color: 'var(--gl-text-color-heading)',
|
|
138
|
-
},
|
|
139
|
-
'.heading-6-fixed': {
|
|
140
|
-
'font-weight': '600',
|
|
141
|
-
'margin-top': '0',
|
|
142
|
-
'font-size': '0.8125rem',
|
|
143
|
-
'letter-spacing': 'inherit',
|
|
144
|
-
'line-height': '1.25',
|
|
145
|
-
'margin-bottom': '1rem',
|
|
146
|
-
color: 'var(--gl-text-color-heading)',
|
|
147
|
-
},
|
|
148
|
-
'.heading-5': {
|
|
149
|
-
'font-weight': '600',
|
|
150
|
-
'margin-top': '0',
|
|
151
|
-
'font-size': '0.875rem',
|
|
152
|
-
'letter-spacing': 'inherit',
|
|
153
|
-
'line-height': '1.25',
|
|
154
|
-
'margin-bottom': '1rem',
|
|
155
|
-
color: 'var(--gl-text-color-heading)',
|
|
156
|
-
},
|
|
157
|
-
'.heading-5-fixed': {
|
|
158
|
-
'font-weight': '600',
|
|
159
|
-
'margin-top': '0',
|
|
160
|
-
'font-size': '0.875rem',
|
|
161
|
-
'letter-spacing': 'inherit',
|
|
162
|
-
'line-height': '1.25',
|
|
163
|
-
'margin-bottom': '1rem',
|
|
164
|
-
color: 'var(--gl-text-color-heading)',
|
|
165
|
-
},
|
|
166
|
-
'.heading-4': {
|
|
167
|
-
'font-weight': '600',
|
|
168
|
-
'margin-top': '0',
|
|
169
|
-
'font-size': '1rem',
|
|
170
|
-
'letter-spacing': 'inherit',
|
|
171
|
-
'line-height': '1.25',
|
|
172
|
-
'margin-bottom': '1rem',
|
|
173
|
-
color: 'var(--gl-text-color-heading)',
|
|
174
|
-
},
|
|
175
|
-
'.heading-4-fixed': {
|
|
176
|
-
'font-weight': '600',
|
|
177
|
-
'margin-top': '0',
|
|
178
|
-
'font-size': '1rem',
|
|
179
|
-
'letter-spacing': 'inherit',
|
|
180
|
-
'line-height': '1.25',
|
|
181
|
-
'margin-bottom': '1rem',
|
|
182
|
-
color: 'var(--gl-text-color-heading)',
|
|
183
|
-
},
|
|
184
|
-
'.heading-3': {
|
|
185
|
-
'font-weight': '600',
|
|
186
|
-
'margin-top': '0',
|
|
187
|
-
'font-size': 'clamp(1.125rem, 0.9027777778rem + 0.462962963vw, 1.25rem)',
|
|
188
|
-
'letter-spacing': 'inherit',
|
|
189
|
-
'line-height': '1.25',
|
|
190
|
-
'margin-bottom': '1rem',
|
|
191
|
-
color: 'var(--gl-text-color-heading)',
|
|
192
|
-
},
|
|
193
|
-
'.heading-3-fixed': {
|
|
194
|
-
'font-weight': '600',
|
|
195
|
-
'margin-top': '0',
|
|
196
|
-
'font-size': '1.125rem',
|
|
197
|
-
'letter-spacing': 'inherit',
|
|
198
|
-
'line-height': '1.25',
|
|
199
|
-
'margin-bottom': '1rem',
|
|
200
|
-
color: 'var(--gl-text-color-heading)',
|
|
201
|
-
},
|
|
202
|
-
'.heading-2': {
|
|
203
|
-
'font-weight': '600',
|
|
204
|
-
'margin-top': '0',
|
|
205
|
-
'font-size': 'clamp(1.3125rem, 0.8680555556rem + 0.9259259259vw, 1.5625rem)',
|
|
206
|
-
'letter-spacing': '-0.01em',
|
|
207
|
-
'line-height': '1.25',
|
|
208
|
-
'margin-bottom': '1rem',
|
|
209
|
-
color: 'var(--gl-text-color-heading)',
|
|
210
|
-
},
|
|
211
|
-
'.heading-2-fixed': {
|
|
212
|
-
'font-weight': '600',
|
|
213
|
-
'margin-top': '0',
|
|
214
|
-
'font-size': '1.3125rem',
|
|
215
|
-
'letter-spacing': '-0.01em',
|
|
216
|
-
'line-height': '1.25',
|
|
217
|
-
'margin-bottom': '1rem',
|
|
218
|
-
color: 'var(--gl-text-color-heading)',
|
|
219
|
-
},
|
|
220
|
-
'.heading-1': {
|
|
221
|
-
'font-weight': '600',
|
|
222
|
-
'margin-top': '0',
|
|
223
|
-
'font-size': 'clamp(1.5rem, 0.8333333333rem + 1.3888888889vw, 1.875rem)',
|
|
224
|
-
'letter-spacing': '-0.01em',
|
|
225
|
-
'line-height': '1.25',
|
|
226
|
-
'margin-bottom': '1rem',
|
|
227
|
-
color: 'var(--gl-text-color-heading)',
|
|
228
|
-
},
|
|
229
|
-
'.heading-1-fixed': {
|
|
230
|
-
'font-weight': '600',
|
|
231
|
-
'margin-top': '0',
|
|
232
|
-
'font-size': '1.5rem',
|
|
233
|
-
'letter-spacing': '-0.01em',
|
|
234
|
-
'line-height': '1.25',
|
|
235
|
-
'margin-bottom': '1rem',
|
|
236
|
-
color: 'var(--gl-text-color-heading)',
|
|
237
|
-
},
|
|
238
|
-
'.heading-display': {
|
|
239
|
-
'font-weight': '600',
|
|
240
|
-
'margin-top': '0',
|
|
241
|
-
'font-size': 'clamp(1.75rem, 0.8611111111rem + 1.8518518519vw, 2.25rem)',
|
|
242
|
-
'letter-spacing': '-0.01em',
|
|
243
|
-
'line-height': '1.125',
|
|
244
|
-
'margin-bottom': '1.5rem',
|
|
245
|
-
color: 'var(--gl-text-color-heading)',
|
|
246
|
-
},
|
|
247
|
-
/**
|
|
248
|
-
* gl-heading-scale classes define default properties for heading typography
|
|
249
|
-
* based on font-size scale value and default or fixed sizing.
|
|
250
|
-
*
|
|
251
|
-
* Note: overrides Bootstrap margin-top, other margin is determined by
|
|
252
|
-
* individual context. Larger headings have reduced letter spacing.
|
|
253
|
-
* Display heading (800) has different line height.
|
|
254
|
-
*/
|
|
255
|
-
'.heading-scale-100': {
|
|
256
|
-
'font-weight': '600',
|
|
257
|
-
'margin-top': '0',
|
|
258
|
-
'font-size': '0.75rem',
|
|
259
|
-
'letter-spacing': 'inherit',
|
|
260
|
-
'line-height': '1.25',
|
|
261
|
-
color: 'var(--gl-text-color-heading)',
|
|
262
|
-
},
|
|
263
|
-
'.heading-scale-100-fixed': {
|
|
264
|
-
'font-weight': '600',
|
|
265
|
-
'margin-top': '0',
|
|
266
|
-
'font-size': '0.75rem',
|
|
267
|
-
'letter-spacing': 'inherit',
|
|
268
|
-
'line-height': '1.25',
|
|
269
|
-
color: 'var(--gl-text-color-heading)',
|
|
270
|
-
},
|
|
271
|
-
'.heading-scale-200': {
|
|
272
|
-
'font-weight': '600',
|
|
273
|
-
'margin-top': '0',
|
|
274
|
-
'font-size': '0.8125rem',
|
|
275
|
-
'letter-spacing': 'inherit',
|
|
276
|
-
'line-height': '1.25',
|
|
277
|
-
color: 'var(--gl-text-color-heading)',
|
|
278
|
-
},
|
|
279
|
-
'.heading-scale-200-fixed': {
|
|
280
|
-
'font-weight': '600',
|
|
281
|
-
'margin-top': '0',
|
|
282
|
-
'font-size': '0.8125rem',
|
|
283
|
-
'letter-spacing': 'inherit',
|
|
284
|
-
'line-height': '1.25',
|
|
285
|
-
color: 'var(--gl-text-color-heading)',
|
|
286
|
-
},
|
|
287
|
-
'.heading-scale-300': {
|
|
288
|
-
'font-weight': '600',
|
|
289
|
-
'margin-top': '0',
|
|
290
|
-
'font-size': '0.875rem',
|
|
291
|
-
'letter-spacing': 'inherit',
|
|
292
|
-
'line-height': '1.25',
|
|
293
|
-
color: 'var(--gl-text-color-heading)',
|
|
294
|
-
},
|
|
295
|
-
'.heading-scale-300-fixed': {
|
|
296
|
-
'font-weight': '600',
|
|
297
|
-
'margin-top': '0',
|
|
298
|
-
'font-size': '0.875rem',
|
|
299
|
-
'letter-spacing': 'inherit',
|
|
300
|
-
'line-height': '1.25',
|
|
301
|
-
color: 'var(--gl-text-color-heading)',
|
|
302
|
-
},
|
|
303
|
-
'.heading-scale-400': {
|
|
304
|
-
'font-weight': '600',
|
|
305
|
-
'margin-top': '0',
|
|
306
|
-
'font-size': '1rem',
|
|
307
|
-
'letter-spacing': 'inherit',
|
|
308
|
-
'line-height': '1.25',
|
|
309
|
-
color: 'var(--gl-text-color-heading)',
|
|
310
|
-
},
|
|
311
|
-
'.heading-scale-400-fixed': {
|
|
312
|
-
'font-weight': '600',
|
|
313
|
-
'margin-top': '0',
|
|
314
|
-
'font-size': '1rem',
|
|
315
|
-
'letter-spacing': 'inherit',
|
|
316
|
-
'line-height': '1.25',
|
|
317
|
-
color: 'var(--gl-text-color-heading)',
|
|
318
|
-
},
|
|
319
|
-
'.heading-scale-500': {
|
|
320
|
-
'font-weight': '600',
|
|
321
|
-
'margin-top': '0',
|
|
322
|
-
'font-size': 'clamp(1.125rem, 0.9027777778rem + 0.462962963vw, 1.25rem)',
|
|
323
|
-
'letter-spacing': 'inherit',
|
|
324
|
-
'line-height': '1.25',
|
|
325
|
-
color: 'var(--gl-text-color-heading)',
|
|
326
|
-
},
|
|
327
|
-
'.heading-scale-500-fixed': {
|
|
328
|
-
'font-weight': '600',
|
|
329
|
-
'margin-top': '0',
|
|
330
|
-
'font-size': '1.125rem',
|
|
331
|
-
'letter-spacing': 'inherit',
|
|
332
|
-
'line-height': '1.25',
|
|
333
|
-
color: 'var(--gl-text-color-heading)',
|
|
334
|
-
},
|
|
335
|
-
'.heading-scale-600': {
|
|
336
|
-
'font-weight': '600',
|
|
337
|
-
'margin-top': '0',
|
|
338
|
-
'font-size': 'clamp(1.3125rem, 0.8680555556rem + 0.9259259259vw, 1.5625rem)',
|
|
339
|
-
'letter-spacing': '-0.01em',
|
|
340
|
-
'line-height': '1.25',
|
|
341
|
-
color: 'var(--gl-text-color-heading)',
|
|
342
|
-
},
|
|
343
|
-
'.heading-scale-600-fixed': {
|
|
344
|
-
'font-weight': '600',
|
|
345
|
-
'margin-top': '0',
|
|
346
|
-
'font-size': '1.3125rem',
|
|
347
|
-
'letter-spacing': '-0.01em',
|
|
348
|
-
'line-height': '1.25',
|
|
349
|
-
color: 'var(--gl-text-color-heading)',
|
|
350
|
-
},
|
|
351
|
-
'.heading-scale-700': {
|
|
352
|
-
'font-weight': '600',
|
|
353
|
-
'margin-top': '0',
|
|
354
|
-
'font-size': 'clamp(1.5rem, 0.8333333333rem + 1.3888888889vw, 1.875rem)',
|
|
355
|
-
'letter-spacing': '-0.01em',
|
|
356
|
-
'line-height': '1.25',
|
|
357
|
-
color: 'var(--gl-text-color-heading)',
|
|
358
|
-
},
|
|
359
|
-
'.heading-scale-700-fixed': {
|
|
360
|
-
'font-weight': '600',
|
|
361
|
-
'margin-top': '0',
|
|
362
|
-
'font-size': '1.5rem',
|
|
363
|
-
'letter-spacing': '-0.01em',
|
|
364
|
-
'line-height': '1.25',
|
|
365
|
-
color: 'var(--gl-text-color-heading)',
|
|
366
|
-
},
|
|
367
|
-
'.heading-scale-800': {
|
|
368
|
-
'font-weight': '600',
|
|
369
|
-
'margin-top': '0',
|
|
370
|
-
'font-size': 'clamp(1.75rem, 0.8611111111rem + 1.8518518519vw, 2.25rem)',
|
|
371
|
-
'letter-spacing': '-0.01em',
|
|
372
|
-
'line-height': '1.125',
|
|
373
|
-
color: 'var(--gl-text-color-heading)',
|
|
374
|
-
},
|
|
375
|
-
'.heading-scale-800-fixed': {
|
|
376
|
-
'font-weight': '600',
|
|
377
|
-
'margin-top': '0',
|
|
378
|
-
'font-size': '1.75rem',
|
|
379
|
-
'letter-spacing': '-0.01em',
|
|
380
|
-
'line-height': '1.125',
|
|
381
|
-
color: 'var(--gl-text-color-heading)',
|
|
382
|
-
},
|
|
131
|
+
...typographyComponents,
|
|
383
132
|
});
|
|
384
133
|
|
|
385
134
|
addUtilities({
|