@commmerce/tokens 1.4.0 → 1.5.1
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/tokens.css +103 -46
- package/dist/tokens.d.ts +98 -20
- package/dist/tokens.js +41 -2
- package/dist/tokens.json +425 -78
- package/package.json +1 -1
package/dist/tokens.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @commmerce/tokens v1.
|
|
1
|
+
/* @commmerce/tokens v1.5.1 — generated, do not edit */
|
|
2
2
|
|
|
3
3
|
:root, [data-cm-theme] {
|
|
4
4
|
color-scheme: light;
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
--cm-text-on-dark-secondary: #b5b5b5;
|
|
36
36
|
--cm-text-speciality: #008800;
|
|
37
37
|
--cm-text-counter: #3b68f9;
|
|
38
|
-
--cm-border-default: #
|
|
38
|
+
--cm-border-default: #e5e5e5;
|
|
39
39
|
--cm-border-strong: #000000;
|
|
40
40
|
--cm-border-input: #8b8b8b;
|
|
41
41
|
--cm-action-primary: #000000;
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
--cm-action-disabled-text: #707070;
|
|
46
46
|
--cm-text-speciality-on-dark: #1ec81a;
|
|
47
47
|
--cm-border-critical: #ff0000;
|
|
48
|
-
--cm-border-card:
|
|
48
|
+
--cm-border-card: #e5e5e5;
|
|
49
49
|
--cm-gray-1000: #000000;
|
|
50
50
|
--cm-gray-700: #707070;
|
|
51
51
|
--cm-gray-600: #8b8b8b;
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
--cm-gray-900: #1e1e1e;
|
|
58
58
|
--cm-gray-800: #414141;
|
|
59
59
|
--cm-bg-panel-header: #1b1b1b;
|
|
60
|
-
--cm-border-subtle: #
|
|
60
|
+
--cm-border-subtle: #e5e5e5;
|
|
61
61
|
--cm-toggle-on: #92cf8d;
|
|
62
62
|
--cm-toggle-off: #d5d5d5;
|
|
63
63
|
--cm-avatar-bg: #c4e5cd;
|
|
@@ -69,64 +69,121 @@
|
|
|
69
69
|
--cm-bg-information-soft: rgba(241, 169, 83, 0.16);
|
|
70
70
|
--cm-bg-success-soft: rgba(129, 187, 71, 0.16);
|
|
71
71
|
--cm-bg-attention-soft: #e8ebf5;
|
|
72
|
-
--cm-
|
|
72
|
+
--cm-font-size-12: 12px;
|
|
73
|
+
--cm-font-size-13: 13px;
|
|
74
|
+
--cm-font-size-14: 14px;
|
|
75
|
+
--cm-font-size-16: 16px;
|
|
76
|
+
--cm-font-size-18: 18px;
|
|
77
|
+
--cm-font-size-20: 20px;
|
|
78
|
+
--cm-font-size-24: 24px;
|
|
79
|
+
--cm-font-size-30: 30px;
|
|
80
|
+
--cm-font-size-40: 40px;
|
|
81
|
+
--cm-line-height-12: 16px;
|
|
82
|
+
--cm-line-height-13: 18px;
|
|
83
|
+
--cm-line-height-14: 20px;
|
|
84
|
+
--cm-line-height-16: 24px;
|
|
85
|
+
--cm-line-height-18: 26px;
|
|
86
|
+
--cm-line-height-20: 28px;
|
|
87
|
+
--cm-line-height-24: 32px;
|
|
88
|
+
--cm-line-height-30: 36px;
|
|
89
|
+
--cm-line-height-40: 48px;
|
|
90
|
+
--cm-space-4: 4px;
|
|
91
|
+
--cm-space-8: 8px;
|
|
73
92
|
--cm-space-12: 12px;
|
|
74
|
-
--cm-space-
|
|
93
|
+
--cm-space-16: 16px;
|
|
75
94
|
--cm-space-20: 20px;
|
|
95
|
+
--cm-space-24: 24px;
|
|
96
|
+
--cm-space-32: 32px;
|
|
97
|
+
--cm-space-40: 40px;
|
|
98
|
+
--cm-space-48: 48px;
|
|
99
|
+
--cm-space-64: 64px;
|
|
100
|
+
--cm-space-10: 10px;
|
|
101
|
+
--cm-space-15: 15px;
|
|
76
102
|
--cm-space-22: 22px;
|
|
77
103
|
--cm-space-30: 30px;
|
|
78
|
-
--cm-
|
|
79
|
-
--cm-
|
|
80
|
-
--cm-
|
|
104
|
+
--cm-control-height-sm: 32px;
|
|
105
|
+
--cm-control-height-md: 36px;
|
|
106
|
+
--cm-control-height-lg: 40px;
|
|
107
|
+
--cm-control-height-touch: 44px;
|
|
108
|
+
--cm-icon-size-sm: 16px;
|
|
109
|
+
--cm-icon-size-md: 20px;
|
|
110
|
+
--cm-icon-size-lg: 24px;
|
|
111
|
+
--cm-radius-xs: 4px;
|
|
112
|
+
--cm-radius-sm: 6px;
|
|
113
|
+
--cm-radius-md: 8px;
|
|
81
114
|
--cm-radius-lg: 12px;
|
|
82
115
|
--cm-radius-full: 9999px;
|
|
83
116
|
--cm-border-1: 1px;
|
|
84
117
|
--cm-shadow-0: none;
|
|
85
|
-
--cm-shadow-
|
|
118
|
+
--cm-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.08);
|
|
119
|
+
--cm-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
|
|
120
|
+
--cm-shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.14), 0 4px 12px rgba(0, 0, 0, 0.06);
|
|
121
|
+
--cm-shadow-100: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
|
|
122
|
+
--cm-duration-fast: 120ms;
|
|
123
|
+
--cm-duration-base: 200ms;
|
|
124
|
+
--cm-easing-standard: cubic-bezier(0.2, 0, 0, 1);
|
|
86
125
|
--cm-tracking-caps: 0.16em;
|
|
87
126
|
--cm-font-sans: "Poppins", system-ui, sans-serif;
|
|
88
|
-
--cm-type-
|
|
89
|
-
--cm-type-
|
|
127
|
+
--cm-type-display-lg-size: 40px;
|
|
128
|
+
--cm-type-display-lg-line-height: 48px;
|
|
129
|
+
--cm-type-display-lg-weight: 600;
|
|
130
|
+
--cm-type-display-size: 30px;
|
|
131
|
+
--cm-type-display-line-height: 36px;
|
|
132
|
+
--cm-type-display-weight: 600;
|
|
133
|
+
--cm-type-heading-lg-size: 24px;
|
|
134
|
+
--cm-type-heading-lg-line-height: 32px;
|
|
90
135
|
--cm-type-heading-lg-weight: 600;
|
|
91
|
-
--cm-type-heading-
|
|
92
|
-
--cm-type-heading-
|
|
93
|
-
--cm-type-heading-
|
|
136
|
+
--cm-type-heading-md-size: 20px;
|
|
137
|
+
--cm-type-heading-md-line-height: 28px;
|
|
138
|
+
--cm-type-heading-md-weight: 600;
|
|
139
|
+
--cm-type-heading-sm-size: 16px;
|
|
140
|
+
--cm-type-heading-sm-line-height: 24px;
|
|
141
|
+
--cm-type-heading-sm-weight: 600;
|
|
94
142
|
--cm-type-body-lg-size: 16px;
|
|
95
|
-
--cm-type-body-lg-line-height:
|
|
143
|
+
--cm-type-body-lg-line-height: 24px;
|
|
96
144
|
--cm-type-body-lg-weight: 400;
|
|
97
145
|
--cm-type-body-md-size: 14px;
|
|
98
|
-
--cm-type-body-md-line-height:
|
|
146
|
+
--cm-type-body-md-line-height: 20px;
|
|
99
147
|
--cm-type-body-md-weight: 400;
|
|
100
|
-
--cm-type-body-sm-size:
|
|
101
|
-
--cm-type-body-sm-line-height:
|
|
148
|
+
--cm-type-body-sm-size: 13px;
|
|
149
|
+
--cm-type-body-sm-line-height: 18px;
|
|
102
150
|
--cm-type-body-sm-weight: 400;
|
|
103
|
-
--cm-type-body-xs-size:
|
|
104
|
-
--cm-type-body-xs-line-height:
|
|
151
|
+
--cm-type-body-xs-size: 12px;
|
|
152
|
+
--cm-type-body-xs-line-height: 16px;
|
|
105
153
|
--cm-type-body-xs-weight: 400;
|
|
106
|
-
--cm-type-label-size:
|
|
107
|
-
--cm-type-label-line-height:
|
|
108
|
-
--cm-type-label-weight:
|
|
109
|
-
--cm-type-
|
|
110
|
-
--cm-type-
|
|
154
|
+
--cm-type-label-size: 14px;
|
|
155
|
+
--cm-type-label-line-height: 20px;
|
|
156
|
+
--cm-type-label-weight: 500;
|
|
157
|
+
--cm-type-display-lg-resp-size: 30px;
|
|
158
|
+
--cm-type-display-lg-resp-line-height: 36px;
|
|
159
|
+
--cm-type-display-lg-resp-weight: 600;
|
|
160
|
+
--cm-type-display-resp-size: 24px;
|
|
161
|
+
--cm-type-display-resp-line-height: 32px;
|
|
162
|
+
--cm-type-display-resp-weight: 600;
|
|
163
|
+
--cm-type-heading-lg-resp-size: 20px;
|
|
164
|
+
--cm-type-heading-lg-resp-line-height: 28px;
|
|
111
165
|
--cm-type-heading-lg-resp-weight: 600;
|
|
112
|
-
--cm-type-heading-
|
|
113
|
-
--cm-type-heading-
|
|
114
|
-
--cm-type-heading-
|
|
115
|
-
--cm-type-
|
|
116
|
-
--cm-type-
|
|
166
|
+
--cm-type-heading-md-resp-size: 18px;
|
|
167
|
+
--cm-type-heading-md-resp-line-height: 26px;
|
|
168
|
+
--cm-type-heading-md-resp-weight: 600;
|
|
169
|
+
--cm-type-heading-sm-resp-size: 16px;
|
|
170
|
+
--cm-type-heading-sm-resp-line-height: 24px;
|
|
171
|
+
--cm-type-heading-sm-resp-weight: 600;
|
|
172
|
+
--cm-type-body-lg-resp-size: 16px;
|
|
173
|
+
--cm-type-body-lg-resp-line-height: 24px;
|
|
117
174
|
--cm-type-body-lg-resp-weight: 400;
|
|
118
|
-
--cm-type-body-md-resp-size:
|
|
119
|
-
--cm-type-body-md-resp-line-height:
|
|
175
|
+
--cm-type-body-md-resp-size: 14px;
|
|
176
|
+
--cm-type-body-md-resp-line-height: 20px;
|
|
120
177
|
--cm-type-body-md-resp-weight: 400;
|
|
121
|
-
--cm-type-body-sm-resp-size:
|
|
122
|
-
--cm-type-body-sm-resp-line-height:
|
|
178
|
+
--cm-type-body-sm-resp-size: 13px;
|
|
179
|
+
--cm-type-body-sm-resp-line-height: 18px;
|
|
123
180
|
--cm-type-body-sm-resp-weight: 400;
|
|
124
|
-
--cm-type-body-xs-resp-size:
|
|
125
|
-
--cm-type-body-xs-resp-line-height:
|
|
181
|
+
--cm-type-body-xs-resp-size: 12px;
|
|
182
|
+
--cm-type-body-xs-resp-line-height: 16px;
|
|
126
183
|
--cm-type-body-xs-resp-weight: 400;
|
|
127
|
-
--cm-type-label-resp-size:
|
|
128
|
-
--cm-type-label-resp-line-height:
|
|
129
|
-
--cm-type-label-resp-weight:
|
|
184
|
+
--cm-type-label-resp-size: 14px;
|
|
185
|
+
--cm-type-label-resp-line-height: 20px;
|
|
186
|
+
--cm-type-label-resp-weight: 500;
|
|
130
187
|
}
|
|
131
188
|
|
|
132
189
|
[data-cm-theme="dark"] {
|
|
@@ -164,7 +221,7 @@
|
|
|
164
221
|
--cm-text-on-dark-secondary: #b5b5b5;
|
|
165
222
|
--cm-text-speciality: #1ec81a;
|
|
166
223
|
--cm-text-counter: #4b7cff;
|
|
167
|
-
--cm-border-default: #
|
|
224
|
+
--cm-border-default: #2e2e2e;
|
|
168
225
|
--cm-border-strong: #f4f4f4;
|
|
169
226
|
--cm-border-input: #6f6f6f;
|
|
170
227
|
--cm-action-primary: #f4f4f4;
|
|
@@ -174,9 +231,9 @@
|
|
|
174
231
|
--cm-action-disabled-text: #8b8b8b;
|
|
175
232
|
--cm-text-speciality-on-dark: #1ec81a;
|
|
176
233
|
--cm-border-critical: #ff3c2e;
|
|
177
|
-
--cm-border-card:
|
|
234
|
+
--cm-border-card: #2e2e2e;
|
|
178
235
|
--cm-bg-panel-header: #000000;
|
|
179
|
-
--cm-border-subtle: #
|
|
236
|
+
--cm-border-subtle: #2e2e2e;
|
|
180
237
|
--cm-toggle-on: #92cf8d;
|
|
181
238
|
--cm-toggle-off: #4a4a4a;
|
|
182
239
|
--cm-avatar-bg: #2f4a37;
|
|
@@ -225,7 +282,7 @@
|
|
|
225
282
|
--cm-text-on-dark-secondary: #b5b5b5;
|
|
226
283
|
--cm-text-speciality: #1ec81a;
|
|
227
284
|
--cm-text-counter: #4b7cff;
|
|
228
|
-
--cm-border-default: #
|
|
285
|
+
--cm-border-default: #2e2e2e;
|
|
229
286
|
--cm-border-strong: #f4f4f4;
|
|
230
287
|
--cm-border-input: #6f6f6f;
|
|
231
288
|
--cm-action-primary: #f4f4f4;
|
|
@@ -235,9 +292,9 @@
|
|
|
235
292
|
--cm-action-disabled-text: #8b8b8b;
|
|
236
293
|
--cm-text-speciality-on-dark: #1ec81a;
|
|
237
294
|
--cm-border-critical: #ff3c2e;
|
|
238
|
-
--cm-border-card:
|
|
295
|
+
--cm-border-card: #2e2e2e;
|
|
239
296
|
--cm-bg-panel-header: #000000;
|
|
240
|
-
--cm-border-subtle: #
|
|
297
|
+
--cm-border-subtle: #2e2e2e;
|
|
241
298
|
--cm-toggle-on: #92cf8d;
|
|
242
299
|
--cm-toggle-off: #4a4a4a;
|
|
243
300
|
--cm-avatar-bg: #2f4a37;
|
package/dist/tokens.d.ts
CHANGED
|
@@ -66,11 +66,11 @@ export declare const tokens: {
|
|
|
66
66
|
readonly textSpeciality: string;
|
|
67
67
|
/** Counters and badges. Figma #3E6CFF nudged to 4.6:1. */
|
|
68
68
|
readonly textCounter: string;
|
|
69
|
-
/**
|
|
69
|
+
/** Deprecated since 1.5: use border-subtle (same value). @deprecated */
|
|
70
70
|
readonly borderDefault: string;
|
|
71
71
|
/** Focused or highlighted input, secondary button, checkbox and radio outlines, focus rings. */
|
|
72
72
|
readonly borderStrong: string;
|
|
73
|
-
/** Outline of text fields, selects and other form controls (3.4:1 on white, 3.4:1 dark). gray-600 from the Figma black scale. */
|
|
73
|
+
/** Outline of text fields, selects and other form controls (3.4:1 on white, 3.4:1 dark). gray-600 from the Figma black scale. Since 1.5 the second border level: every form control outline (3:1 or more on surfaces). */
|
|
74
74
|
readonly borderInput: string;
|
|
75
75
|
/** Primary button fill. Black is the brand; inverts in dark. */
|
|
76
76
|
readonly actionPrimary: string;
|
|
@@ -86,7 +86,7 @@ export declare const tokens: {
|
|
|
86
86
|
readonly textSpecialityOnDark: string;
|
|
87
87
|
/** Input in error. */
|
|
88
88
|
readonly borderCritical: string;
|
|
89
|
-
/**
|
|
89
|
+
/** Deprecated since 1.5: use border-subtle (same value). @deprecated */
|
|
90
90
|
readonly borderCard: string;
|
|
91
91
|
/** Black scale step from the Typography & Colors board. Raw palette, not themed: prefer semantic tokens. */
|
|
92
92
|
readonly gray1000: string;
|
|
@@ -110,7 +110,7 @@ export declare const tokens: {
|
|
|
110
110
|
readonly gray800: string;
|
|
111
111
|
/** Header strip of the filter and notification panels. Text: text-on-dark. */
|
|
112
112
|
readonly bgPanelHeader: string;
|
|
113
|
-
/**
|
|
113
|
+
/** Dividers, card and panel outlines, table rules, popover edges (decorative; 1px). Since 1.5 one of the two border levels: border-subtle for structure, border-input for controls. */
|
|
114
114
|
readonly borderSubtle: string;
|
|
115
115
|
/** Toggle track when on (List and Sub Tabs boards). */
|
|
116
116
|
readonly toggleOn: string;
|
|
@@ -134,35 +134,113 @@ export declare const tokens: {
|
|
|
134
134
|
readonly bgSuccessSoft: string;
|
|
135
135
|
/** Attention icon tile in notifications. */
|
|
136
136
|
readonly bgAttentionSoft: string;
|
|
137
|
-
/**
|
|
138
|
-
readonly
|
|
139
|
-
/**
|
|
137
|
+
/** Captions, badges, counts, table headers. Smallest size. */
|
|
138
|
+
readonly fontSize12: string;
|
|
139
|
+
/** Help text, slim buttons, secondary lines. */
|
|
140
|
+
readonly fontSize13: string;
|
|
141
|
+
/** Default UI text. */
|
|
142
|
+
readonly fontSize14: string;
|
|
143
|
+
/** Card and section headings, reading text. */
|
|
144
|
+
readonly fontSize16: string;
|
|
145
|
+
/** Small headings on phones. */
|
|
146
|
+
readonly fontSize18: string;
|
|
147
|
+
/** Modal titles, page titles on phones. */
|
|
148
|
+
readonly fontSize20: string;
|
|
149
|
+
/** Page titles. */
|
|
150
|
+
readonly fontSize24: string;
|
|
151
|
+
/** Display numbers. */
|
|
152
|
+
readonly fontSize30: string;
|
|
153
|
+
/** Marketing and hero headings only (the docs home page). Not for product UI: components never use it. */
|
|
154
|
+
readonly fontSize40: string;
|
|
155
|
+
/** Line height for font-size-12. */
|
|
156
|
+
readonly lineHeight12: string;
|
|
157
|
+
/** Line height for font-size-13. */
|
|
158
|
+
readonly lineHeight13: string;
|
|
159
|
+
/** Line height for font-size-14. */
|
|
160
|
+
readonly lineHeight14: string;
|
|
161
|
+
/** Line height for font-size-16. */
|
|
162
|
+
readonly lineHeight16: string;
|
|
163
|
+
/** Line height for font-size-18. */
|
|
164
|
+
readonly lineHeight18: string;
|
|
165
|
+
/** Line height for font-size-20. */
|
|
166
|
+
readonly lineHeight20: string;
|
|
167
|
+
/** Line height for font-size-24. */
|
|
168
|
+
readonly lineHeight24: string;
|
|
169
|
+
/** Line height for font-size-30. */
|
|
170
|
+
readonly lineHeight30: string;
|
|
171
|
+
/** Line height for font-size-40. */
|
|
172
|
+
readonly lineHeight40: string;
|
|
173
|
+
/** Icon to text inside small controls; badge and tag gaps. */
|
|
174
|
+
readonly space4: string;
|
|
175
|
+
/** Default gap inside controls and between related items (buttons in a row, label to field). */
|
|
176
|
+
readonly space8: string;
|
|
177
|
+
/** Control side padding; gap between list rows and small cards. */
|
|
140
178
|
readonly space12: string;
|
|
141
|
-
/**
|
|
142
|
-
readonly
|
|
143
|
-
/**
|
|
179
|
+
/** Card padding on phones; gap between fields in a form. */
|
|
180
|
+
readonly space16: string;
|
|
181
|
+
/** Card padding; the default gap between cards (cm-stack, cm-grid, cm-layout); gap between form sections. */
|
|
144
182
|
readonly space20: string;
|
|
145
|
-
/**
|
|
183
|
+
/** Page side padding (cm-page, cm-page-header); gap between page sections. */
|
|
184
|
+
readonly space24: string;
|
|
185
|
+
/** Gap between page sections. */
|
|
186
|
+
readonly space32: string;
|
|
187
|
+
/** Large section spacing. */
|
|
188
|
+
readonly space40: string;
|
|
189
|
+
/** Empty-state and hero spacing. */
|
|
190
|
+
readonly space48: string;
|
|
191
|
+
/** Largest layout spacing. */
|
|
192
|
+
readonly space64: string;
|
|
193
|
+
/** Deprecated since 1.5: off the 4px grid, kept with its old value for existing apps. Use space-8 (or space-12). @deprecated */
|
|
194
|
+
readonly space10: string;
|
|
195
|
+
/** Deprecated since 1.5: off the 4px grid, kept with its old value for existing apps. Use space-16 (or space-12). @deprecated */
|
|
196
|
+
readonly space15: string;
|
|
197
|
+
/** Deprecated since 1.5: off the 4px grid, kept with its old value for existing apps. Use space-24. @deprecated */
|
|
146
198
|
readonly space22: string;
|
|
147
|
-
/**
|
|
199
|
+
/** Deprecated since 1.5: off the 4px grid, kept with its old value for existing apps. Use space-32. @deprecated */
|
|
148
200
|
readonly space30: string;
|
|
149
|
-
/**
|
|
201
|
+
/** Small controls: toolbar and filter fields (size="small"), slim buttons, segmented controls. */
|
|
202
|
+
readonly controlHeightSm: string;
|
|
203
|
+
/** Default height of buttons, text fields, selects and pickers. */
|
|
204
|
+
readonly controlHeightMd: string;
|
|
205
|
+
/** Large buttons (save bars, page actions) and large search. */
|
|
206
|
+
readonly controlHeightLg: string;
|
|
207
|
+
/** Minimum height (and width for icon buttons) of every control on touch screens (pointer: coarse). */
|
|
208
|
+
readonly controlHeightTouch: string;
|
|
209
|
+
/** Icons inside controls: buttons, fields, menu items. */
|
|
210
|
+
readonly iconSizeSm: string;
|
|
211
|
+
/** Navigation icons. */
|
|
212
|
+
readonly iconSizeMd: string;
|
|
213
|
+
/** Feature icons: empty states, tiles. */
|
|
214
|
+
readonly iconSizeLg: string;
|
|
215
|
+
/** Checkboxes and other small marks. */
|
|
150
216
|
readonly radiusXs: string;
|
|
151
|
-
/**
|
|
217
|
+
/** Controls: buttons, inputs, selects, badges, segmented controls, menu items. */
|
|
152
218
|
readonly radiusSm: string;
|
|
153
|
-
/** Cards. */
|
|
219
|
+
/** Cards, popovers, dropdowns, menus, toasts. */
|
|
154
220
|
readonly radiusMd: string;
|
|
155
|
-
/**
|
|
221
|
+
/** Panels, modals, side panels, bottom sheets. */
|
|
156
222
|
readonly radiusLg: string;
|
|
157
|
-
/**
|
|
223
|
+
/** Pills, avatars, toggles and circular icon buttons. */
|
|
158
224
|
readonly radiusFull: string;
|
|
159
225
|
/** Every border and separator in the file is 1px. */
|
|
160
226
|
readonly border1: string;
|
|
161
|
-
/**
|
|
227
|
+
/** Cards and panels: flat, with a border-subtle line. */
|
|
162
228
|
readonly shadow0: string;
|
|
163
|
-
/**
|
|
229
|
+
/** Small overlays: tooltips, menus. */
|
|
230
|
+
readonly shadowSm: string;
|
|
231
|
+
/** Popovers and dropdowns: select and combobox lists, date pickers, search results, notification panel. */
|
|
232
|
+
readonly shadowMd: string;
|
|
233
|
+
/** Modals, side panels, bottom sheets, toasts, save bars, dragged cards. */
|
|
234
|
+
readonly shadowLg: string;
|
|
235
|
+
/** Deprecated since 1.5: use shadow-md (same value). @deprecated */
|
|
164
236
|
readonly shadow100: string;
|
|
165
|
-
/**
|
|
237
|
+
/** Hover, press, toggles, chevrons. */
|
|
238
|
+
readonly durationFast: string;
|
|
239
|
+
/** Opening and closing: popovers, panels, accordions. */
|
|
240
|
+
readonly durationBase: string;
|
|
241
|
+
/** Every transition. Under prefers-reduced-motion components turn transitions off. */
|
|
242
|
+
readonly easingStandard: string;
|
|
243
|
+
/** Deprecated since 1.5: components no longer use uppercase text (sentence case everywhere). Kept for existing apps. @deprecated */
|
|
166
244
|
readonly trackingCaps: string;
|
|
167
245
|
/** */
|
|
168
246
|
readonly fontSans: string;
|
package/dist/tokens.js
CHANGED
|
@@ -67,12 +67,45 @@ export const tokens = {
|
|
|
67
67
|
"bgInformationSoft": "var(--cm-bg-information-soft)",
|
|
68
68
|
"bgSuccessSoft": "var(--cm-bg-success-soft)",
|
|
69
69
|
"bgAttentionSoft": "var(--cm-bg-attention-soft)",
|
|
70
|
-
"
|
|
70
|
+
"fontSize12": "var(--cm-font-size-12)",
|
|
71
|
+
"fontSize13": "var(--cm-font-size-13)",
|
|
72
|
+
"fontSize14": "var(--cm-font-size-14)",
|
|
73
|
+
"fontSize16": "var(--cm-font-size-16)",
|
|
74
|
+
"fontSize18": "var(--cm-font-size-18)",
|
|
75
|
+
"fontSize20": "var(--cm-font-size-20)",
|
|
76
|
+
"fontSize24": "var(--cm-font-size-24)",
|
|
77
|
+
"fontSize30": "var(--cm-font-size-30)",
|
|
78
|
+
"fontSize40": "var(--cm-font-size-40)",
|
|
79
|
+
"lineHeight12": "var(--cm-line-height-12)",
|
|
80
|
+
"lineHeight13": "var(--cm-line-height-13)",
|
|
81
|
+
"lineHeight14": "var(--cm-line-height-14)",
|
|
82
|
+
"lineHeight16": "var(--cm-line-height-16)",
|
|
83
|
+
"lineHeight18": "var(--cm-line-height-18)",
|
|
84
|
+
"lineHeight20": "var(--cm-line-height-20)",
|
|
85
|
+
"lineHeight24": "var(--cm-line-height-24)",
|
|
86
|
+
"lineHeight30": "var(--cm-line-height-30)",
|
|
87
|
+
"lineHeight40": "var(--cm-line-height-40)",
|
|
88
|
+
"space4": "var(--cm-space-4)",
|
|
89
|
+
"space8": "var(--cm-space-8)",
|
|
71
90
|
"space12": "var(--cm-space-12)",
|
|
72
|
-
"
|
|
91
|
+
"space16": "var(--cm-space-16)",
|
|
73
92
|
"space20": "var(--cm-space-20)",
|
|
93
|
+
"space24": "var(--cm-space-24)",
|
|
94
|
+
"space32": "var(--cm-space-32)",
|
|
95
|
+
"space40": "var(--cm-space-40)",
|
|
96
|
+
"space48": "var(--cm-space-48)",
|
|
97
|
+
"space64": "var(--cm-space-64)",
|
|
98
|
+
"space10": "var(--cm-space-10)",
|
|
99
|
+
"space15": "var(--cm-space-15)",
|
|
74
100
|
"space22": "var(--cm-space-22)",
|
|
75
101
|
"space30": "var(--cm-space-30)",
|
|
102
|
+
"controlHeightSm": "var(--cm-control-height-sm)",
|
|
103
|
+
"controlHeightMd": "var(--cm-control-height-md)",
|
|
104
|
+
"controlHeightLg": "var(--cm-control-height-lg)",
|
|
105
|
+
"controlHeightTouch": "var(--cm-control-height-touch)",
|
|
106
|
+
"iconSizeSm": "var(--cm-icon-size-sm)",
|
|
107
|
+
"iconSizeMd": "var(--cm-icon-size-md)",
|
|
108
|
+
"iconSizeLg": "var(--cm-icon-size-lg)",
|
|
76
109
|
"radiusXs": "var(--cm-radius-xs)",
|
|
77
110
|
"radiusSm": "var(--cm-radius-sm)",
|
|
78
111
|
"radiusMd": "var(--cm-radius-md)",
|
|
@@ -80,7 +113,13 @@ export const tokens = {
|
|
|
80
113
|
"radiusFull": "var(--cm-radius-full)",
|
|
81
114
|
"border1": "var(--cm-border-1)",
|
|
82
115
|
"shadow0": "var(--cm-shadow-0)",
|
|
116
|
+
"shadowSm": "var(--cm-shadow-sm)",
|
|
117
|
+
"shadowMd": "var(--cm-shadow-md)",
|
|
118
|
+
"shadowLg": "var(--cm-shadow-lg)",
|
|
83
119
|
"shadow100": "var(--cm-shadow-100)",
|
|
120
|
+
"durationFast": "var(--cm-duration-fast)",
|
|
121
|
+
"durationBase": "var(--cm-duration-base)",
|
|
122
|
+
"easingStandard": "var(--cm-easing-standard)",
|
|
84
123
|
"trackingCaps": "var(--cm-tracking-caps)",
|
|
85
124
|
"fontSans": "var(--cm-font-sans)"
|
|
86
125
|
};
|
package/dist/tokens.json
CHANGED
|
@@ -339,10 +339,11 @@
|
|
|
339
339
|
"family": "color",
|
|
340
340
|
"cssVar": "--cm-border-default",
|
|
341
341
|
"value": {
|
|
342
|
-
"light": "#
|
|
343
|
-
"dark": "#
|
|
342
|
+
"light": "#e5e5e5",
|
|
343
|
+
"dark": "#2e2e2e"
|
|
344
344
|
},
|
|
345
|
-
"usage": "
|
|
345
|
+
"usage": "Deprecated since 1.5: use border-subtle (same value).",
|
|
346
|
+
"deprecated": true
|
|
346
347
|
},
|
|
347
348
|
{
|
|
348
349
|
"name": "border-strong",
|
|
@@ -362,7 +363,7 @@
|
|
|
362
363
|
"light": "#8b8b8b",
|
|
363
364
|
"dark": "#6f6f6f"
|
|
364
365
|
},
|
|
365
|
-
"usage": "Outline of text fields, selects and other form controls (3.4:1 on white, 3.4:1 dark). gray-600 from the Figma black scale."
|
|
366
|
+
"usage": "Outline of text fields, selects and other form controls (3.4:1 on white, 3.4:1 dark). gray-600 from the Figma black scale. Since 1.5 the second border level: every form control outline (3:1 or more on surfaces)."
|
|
366
367
|
},
|
|
367
368
|
{
|
|
368
369
|
"name": "action-primary",
|
|
@@ -439,10 +440,11 @@
|
|
|
439
440
|
"family": "color",
|
|
440
441
|
"cssVar": "--cm-border-card",
|
|
441
442
|
"value": {
|
|
442
|
-
"light": "
|
|
443
|
-
"dark": "
|
|
443
|
+
"light": "#e5e5e5",
|
|
444
|
+
"dark": "#2e2e2e"
|
|
444
445
|
},
|
|
445
|
-
"usage": "
|
|
446
|
+
"usage": "Deprecated since 1.5: use border-subtle (same value).",
|
|
447
|
+
"deprecated": true
|
|
446
448
|
},
|
|
447
449
|
{
|
|
448
450
|
"name": "gray-1000",
|
|
@@ -549,10 +551,10 @@
|
|
|
549
551
|
"family": "color",
|
|
550
552
|
"cssVar": "--cm-border-subtle",
|
|
551
553
|
"value": {
|
|
552
|
-
"light": "#
|
|
553
|
-
"dark": "#
|
|
554
|
+
"light": "#e5e5e5",
|
|
555
|
+
"dark": "#2e2e2e"
|
|
554
556
|
},
|
|
555
|
-
"usage": "
|
|
557
|
+
"usage": "Dividers, card and panel outlines, table rules, popover edges (decorative; 1px). Since 1.5 one of the two border levels: border-subtle for structure, border-input for controls."
|
|
556
558
|
},
|
|
557
559
|
{
|
|
558
560
|
"name": "toggle-on",
|
|
@@ -665,81 +667,316 @@
|
|
|
665
667
|
"usage": "Attention icon tile in notifications."
|
|
666
668
|
},
|
|
667
669
|
{
|
|
668
|
-
"name": "
|
|
670
|
+
"name": "font-size-12",
|
|
671
|
+
"family": "fontSize",
|
|
672
|
+
"cssVar": "--cm-font-size-12",
|
|
673
|
+
"value": "12px",
|
|
674
|
+
"usage": "Captions, badges, counts, table headers. Smallest size."
|
|
675
|
+
},
|
|
676
|
+
{
|
|
677
|
+
"name": "font-size-13",
|
|
678
|
+
"family": "fontSize",
|
|
679
|
+
"cssVar": "--cm-font-size-13",
|
|
680
|
+
"value": "13px",
|
|
681
|
+
"usage": "Help text, slim buttons, secondary lines."
|
|
682
|
+
},
|
|
683
|
+
{
|
|
684
|
+
"name": "font-size-14",
|
|
685
|
+
"family": "fontSize",
|
|
686
|
+
"cssVar": "--cm-font-size-14",
|
|
687
|
+
"value": "14px",
|
|
688
|
+
"usage": "Default UI text."
|
|
689
|
+
},
|
|
690
|
+
{
|
|
691
|
+
"name": "font-size-16",
|
|
692
|
+
"family": "fontSize",
|
|
693
|
+
"cssVar": "--cm-font-size-16",
|
|
694
|
+
"value": "16px",
|
|
695
|
+
"usage": "Card and section headings, reading text."
|
|
696
|
+
},
|
|
697
|
+
{
|
|
698
|
+
"name": "font-size-18",
|
|
699
|
+
"family": "fontSize",
|
|
700
|
+
"cssVar": "--cm-font-size-18",
|
|
701
|
+
"value": "18px",
|
|
702
|
+
"usage": "Small headings on phones."
|
|
703
|
+
},
|
|
704
|
+
{
|
|
705
|
+
"name": "font-size-20",
|
|
706
|
+
"family": "fontSize",
|
|
707
|
+
"cssVar": "--cm-font-size-20",
|
|
708
|
+
"value": "20px",
|
|
709
|
+
"usage": "Modal titles, page titles on phones."
|
|
710
|
+
},
|
|
711
|
+
{
|
|
712
|
+
"name": "font-size-24",
|
|
713
|
+
"family": "fontSize",
|
|
714
|
+
"cssVar": "--cm-font-size-24",
|
|
715
|
+
"value": "24px",
|
|
716
|
+
"usage": "Page titles."
|
|
717
|
+
},
|
|
718
|
+
{
|
|
719
|
+
"name": "font-size-30",
|
|
720
|
+
"family": "fontSize",
|
|
721
|
+
"cssVar": "--cm-font-size-30",
|
|
722
|
+
"value": "30px",
|
|
723
|
+
"usage": "Display numbers."
|
|
724
|
+
},
|
|
725
|
+
{
|
|
726
|
+
"name": "font-size-40",
|
|
727
|
+
"family": "fontSize",
|
|
728
|
+
"cssVar": "--cm-font-size-40",
|
|
729
|
+
"value": "40px",
|
|
730
|
+
"usage": "Marketing and hero headings only (the docs home page). Not for product UI: components never use it."
|
|
731
|
+
},
|
|
732
|
+
{
|
|
733
|
+
"name": "line-height-12",
|
|
734
|
+
"family": "lineHeight",
|
|
735
|
+
"cssVar": "--cm-line-height-12",
|
|
736
|
+
"value": "16px",
|
|
737
|
+
"usage": "Line height for font-size-12."
|
|
738
|
+
},
|
|
739
|
+
{
|
|
740
|
+
"name": "line-height-13",
|
|
741
|
+
"family": "lineHeight",
|
|
742
|
+
"cssVar": "--cm-line-height-13",
|
|
743
|
+
"value": "18px",
|
|
744
|
+
"usage": "Line height for font-size-13."
|
|
745
|
+
},
|
|
746
|
+
{
|
|
747
|
+
"name": "line-height-14",
|
|
748
|
+
"family": "lineHeight",
|
|
749
|
+
"cssVar": "--cm-line-height-14",
|
|
750
|
+
"value": "20px",
|
|
751
|
+
"usage": "Line height for font-size-14."
|
|
752
|
+
},
|
|
753
|
+
{
|
|
754
|
+
"name": "line-height-16",
|
|
755
|
+
"family": "lineHeight",
|
|
756
|
+
"cssVar": "--cm-line-height-16",
|
|
757
|
+
"value": "24px",
|
|
758
|
+
"usage": "Line height for font-size-16."
|
|
759
|
+
},
|
|
760
|
+
{
|
|
761
|
+
"name": "line-height-18",
|
|
762
|
+
"family": "lineHeight",
|
|
763
|
+
"cssVar": "--cm-line-height-18",
|
|
764
|
+
"value": "26px",
|
|
765
|
+
"usage": "Line height for font-size-18."
|
|
766
|
+
},
|
|
767
|
+
{
|
|
768
|
+
"name": "line-height-20",
|
|
769
|
+
"family": "lineHeight",
|
|
770
|
+
"cssVar": "--cm-line-height-20",
|
|
771
|
+
"value": "28px",
|
|
772
|
+
"usage": "Line height for font-size-20."
|
|
773
|
+
},
|
|
774
|
+
{
|
|
775
|
+
"name": "line-height-24",
|
|
776
|
+
"family": "lineHeight",
|
|
777
|
+
"cssVar": "--cm-line-height-24",
|
|
778
|
+
"value": "32px",
|
|
779
|
+
"usage": "Line height for font-size-24."
|
|
780
|
+
},
|
|
781
|
+
{
|
|
782
|
+
"name": "line-height-30",
|
|
783
|
+
"family": "lineHeight",
|
|
784
|
+
"cssVar": "--cm-line-height-30",
|
|
785
|
+
"value": "36px",
|
|
786
|
+
"usage": "Line height for font-size-30."
|
|
787
|
+
},
|
|
788
|
+
{
|
|
789
|
+
"name": "line-height-40",
|
|
790
|
+
"family": "lineHeight",
|
|
791
|
+
"cssVar": "--cm-line-height-40",
|
|
792
|
+
"value": "48px",
|
|
793
|
+
"usage": "Line height for font-size-40."
|
|
794
|
+
},
|
|
795
|
+
{
|
|
796
|
+
"name": "space-4",
|
|
669
797
|
"family": "spacing",
|
|
670
|
-
"cssVar": "--cm-space-
|
|
671
|
-
"value": "
|
|
672
|
-
"usage": "
|
|
798
|
+
"cssVar": "--cm-space-4",
|
|
799
|
+
"value": "4px",
|
|
800
|
+
"usage": "Icon to text inside small controls; badge and tag gaps."
|
|
801
|
+
},
|
|
802
|
+
{
|
|
803
|
+
"name": "space-8",
|
|
804
|
+
"family": "spacing",
|
|
805
|
+
"cssVar": "--cm-space-8",
|
|
806
|
+
"value": "8px",
|
|
807
|
+
"usage": "Default gap inside controls and between related items (buttons in a row, label to field)."
|
|
673
808
|
},
|
|
674
809
|
{
|
|
675
810
|
"name": "space-12",
|
|
676
811
|
"family": "spacing",
|
|
677
812
|
"cssVar": "--cm-space-12",
|
|
678
813
|
"value": "12px",
|
|
679
|
-
"usage": "
|
|
814
|
+
"usage": "Control side padding; gap between list rows and small cards."
|
|
680
815
|
},
|
|
681
816
|
{
|
|
682
|
-
"name": "space-
|
|
817
|
+
"name": "space-16",
|
|
683
818
|
"family": "spacing",
|
|
684
|
-
"cssVar": "--cm-space-
|
|
685
|
-
"value": "
|
|
686
|
-
"usage": "
|
|
819
|
+
"cssVar": "--cm-space-16",
|
|
820
|
+
"value": "16px",
|
|
821
|
+
"usage": "Card padding on phones; gap between fields in a form."
|
|
687
822
|
},
|
|
688
823
|
{
|
|
689
824
|
"name": "space-20",
|
|
690
825
|
"family": "spacing",
|
|
691
826
|
"cssVar": "--cm-space-20",
|
|
692
827
|
"value": "20px",
|
|
693
|
-
"usage": "
|
|
828
|
+
"usage": "Card padding; the default gap between cards (cm-stack, cm-grid, cm-layout); gap between form sections."
|
|
829
|
+
},
|
|
830
|
+
{
|
|
831
|
+
"name": "space-24",
|
|
832
|
+
"family": "spacing",
|
|
833
|
+
"cssVar": "--cm-space-24",
|
|
834
|
+
"value": "24px",
|
|
835
|
+
"usage": "Page side padding (cm-page, cm-page-header); gap between page sections."
|
|
836
|
+
},
|
|
837
|
+
{
|
|
838
|
+
"name": "space-32",
|
|
839
|
+
"family": "spacing",
|
|
840
|
+
"cssVar": "--cm-space-32",
|
|
841
|
+
"value": "32px",
|
|
842
|
+
"usage": "Gap between page sections."
|
|
843
|
+
},
|
|
844
|
+
{
|
|
845
|
+
"name": "space-40",
|
|
846
|
+
"family": "spacing",
|
|
847
|
+
"cssVar": "--cm-space-40",
|
|
848
|
+
"value": "40px",
|
|
849
|
+
"usage": "Large section spacing."
|
|
850
|
+
},
|
|
851
|
+
{
|
|
852
|
+
"name": "space-48",
|
|
853
|
+
"family": "spacing",
|
|
854
|
+
"cssVar": "--cm-space-48",
|
|
855
|
+
"value": "48px",
|
|
856
|
+
"usage": "Empty-state and hero spacing."
|
|
857
|
+
},
|
|
858
|
+
{
|
|
859
|
+
"name": "space-64",
|
|
860
|
+
"family": "spacing",
|
|
861
|
+
"cssVar": "--cm-space-64",
|
|
862
|
+
"value": "64px",
|
|
863
|
+
"usage": "Largest layout spacing."
|
|
864
|
+
},
|
|
865
|
+
{
|
|
866
|
+
"name": "space-10",
|
|
867
|
+
"family": "spacing",
|
|
868
|
+
"cssVar": "--cm-space-10",
|
|
869
|
+
"value": "10px",
|
|
870
|
+
"usage": "Deprecated since 1.5: off the 4px grid, kept with its old value for existing apps. Use space-8 (or space-12).",
|
|
871
|
+
"deprecated": true
|
|
872
|
+
},
|
|
873
|
+
{
|
|
874
|
+
"name": "space-15",
|
|
875
|
+
"family": "spacing",
|
|
876
|
+
"cssVar": "--cm-space-15",
|
|
877
|
+
"value": "15px",
|
|
878
|
+
"usage": "Deprecated since 1.5: off the 4px grid, kept with its old value for existing apps. Use space-16 (or space-12).",
|
|
879
|
+
"deprecated": true
|
|
694
880
|
},
|
|
695
881
|
{
|
|
696
882
|
"name": "space-22",
|
|
697
883
|
"family": "spacing",
|
|
698
884
|
"cssVar": "--cm-space-22",
|
|
699
885
|
"value": "22px",
|
|
700
|
-
"usage": "
|
|
886
|
+
"usage": "Deprecated since 1.5: off the 4px grid, kept with its old value for existing apps. Use space-24.",
|
|
887
|
+
"deprecated": true
|
|
701
888
|
},
|
|
702
889
|
{
|
|
703
890
|
"name": "space-30",
|
|
704
891
|
"family": "spacing",
|
|
705
892
|
"cssVar": "--cm-space-30",
|
|
706
893
|
"value": "30px",
|
|
707
|
-
"usage": "
|
|
894
|
+
"usage": "Deprecated since 1.5: off the 4px grid, kept with its old value for existing apps. Use space-32.",
|
|
895
|
+
"deprecated": true
|
|
896
|
+
},
|
|
897
|
+
{
|
|
898
|
+
"name": "control-height-sm",
|
|
899
|
+
"family": "size",
|
|
900
|
+
"cssVar": "--cm-control-height-sm",
|
|
901
|
+
"value": "32px",
|
|
902
|
+
"usage": "Small controls: toolbar and filter fields (size=\"small\"), slim buttons, segmented controls."
|
|
903
|
+
},
|
|
904
|
+
{
|
|
905
|
+
"name": "control-height-md",
|
|
906
|
+
"family": "size",
|
|
907
|
+
"cssVar": "--cm-control-height-md",
|
|
908
|
+
"value": "36px",
|
|
909
|
+
"usage": "Default height of buttons, text fields, selects and pickers."
|
|
910
|
+
},
|
|
911
|
+
{
|
|
912
|
+
"name": "control-height-lg",
|
|
913
|
+
"family": "size",
|
|
914
|
+
"cssVar": "--cm-control-height-lg",
|
|
915
|
+
"value": "40px",
|
|
916
|
+
"usage": "Large buttons (save bars, page actions) and large search."
|
|
917
|
+
},
|
|
918
|
+
{
|
|
919
|
+
"name": "control-height-touch",
|
|
920
|
+
"family": "size",
|
|
921
|
+
"cssVar": "--cm-control-height-touch",
|
|
922
|
+
"value": "44px",
|
|
923
|
+
"usage": "Minimum height (and width for icon buttons) of every control on touch screens (pointer: coarse)."
|
|
924
|
+
},
|
|
925
|
+
{
|
|
926
|
+
"name": "icon-size-sm",
|
|
927
|
+
"family": "size",
|
|
928
|
+
"cssVar": "--cm-icon-size-sm",
|
|
929
|
+
"value": "16px",
|
|
930
|
+
"usage": "Icons inside controls: buttons, fields, menu items."
|
|
931
|
+
},
|
|
932
|
+
{
|
|
933
|
+
"name": "icon-size-md",
|
|
934
|
+
"family": "size",
|
|
935
|
+
"cssVar": "--cm-icon-size-md",
|
|
936
|
+
"value": "20px",
|
|
937
|
+
"usage": "Navigation icons."
|
|
938
|
+
},
|
|
939
|
+
{
|
|
940
|
+
"name": "icon-size-lg",
|
|
941
|
+
"family": "size",
|
|
942
|
+
"cssVar": "--cm-icon-size-lg",
|
|
943
|
+
"value": "24px",
|
|
944
|
+
"usage": "Feature icons: empty states, tiles."
|
|
708
945
|
},
|
|
709
946
|
{
|
|
710
947
|
"name": "radius-xs",
|
|
711
948
|
"family": "radius",
|
|
712
949
|
"cssVar": "--cm-radius-xs",
|
|
713
|
-
"value": "
|
|
714
|
-
"usage": "Checkboxes
|
|
950
|
+
"value": "4px",
|
|
951
|
+
"usage": "Checkboxes and other small marks."
|
|
715
952
|
},
|
|
716
953
|
{
|
|
717
954
|
"name": "radius-sm",
|
|
718
955
|
"family": "radius",
|
|
719
956
|
"cssVar": "--cm-radius-sm",
|
|
720
|
-
"value": "
|
|
721
|
-
"usage": "
|
|
957
|
+
"value": "6px",
|
|
958
|
+
"usage": "Controls: buttons, inputs, selects, badges, segmented controls, menu items."
|
|
722
959
|
},
|
|
723
960
|
{
|
|
724
961
|
"name": "radius-md",
|
|
725
962
|
"family": "radius",
|
|
726
963
|
"cssVar": "--cm-radius-md",
|
|
727
|
-
"value": "
|
|
728
|
-
"usage": "Cards."
|
|
964
|
+
"value": "8px",
|
|
965
|
+
"usage": "Cards, popovers, dropdowns, menus, toasts."
|
|
729
966
|
},
|
|
730
967
|
{
|
|
731
968
|
"name": "radius-lg",
|
|
732
969
|
"family": "radius",
|
|
733
970
|
"cssVar": "--cm-radius-lg",
|
|
734
971
|
"value": "12px",
|
|
735
|
-
"usage": "
|
|
972
|
+
"usage": "Panels, modals, side panels, bottom sheets."
|
|
736
973
|
},
|
|
737
974
|
{
|
|
738
975
|
"name": "radius-full",
|
|
739
976
|
"family": "radius",
|
|
740
977
|
"cssVar": "--cm-radius-full",
|
|
741
978
|
"value": "9999px",
|
|
742
|
-
"usage": "
|
|
979
|
+
"usage": "Pills, avatars, toggles and circular icon buttons."
|
|
743
980
|
},
|
|
744
981
|
{
|
|
745
982
|
"name": "border-1",
|
|
@@ -753,21 +990,65 @@
|
|
|
753
990
|
"family": "shadow",
|
|
754
991
|
"cssVar": "--cm-shadow-0",
|
|
755
992
|
"value": "none",
|
|
756
|
-
"usage": "
|
|
993
|
+
"usage": "Cards and panels: flat, with a border-subtle line."
|
|
994
|
+
},
|
|
995
|
+
{
|
|
996
|
+
"name": "shadow-sm",
|
|
997
|
+
"family": "shadow",
|
|
998
|
+
"cssVar": "--cm-shadow-sm",
|
|
999
|
+
"value": "0 1px 2px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.08)",
|
|
1000
|
+
"usage": "Small overlays: tooltips, menus."
|
|
1001
|
+
},
|
|
1002
|
+
{
|
|
1003
|
+
"name": "shadow-md",
|
|
1004
|
+
"family": "shadow",
|
|
1005
|
+
"cssVar": "--cm-shadow-md",
|
|
1006
|
+
"value": "0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04)",
|
|
1007
|
+
"usage": "Popovers and dropdowns: select and combobox lists, date pickers, search results, notification panel."
|
|
1008
|
+
},
|
|
1009
|
+
{
|
|
1010
|
+
"name": "shadow-lg",
|
|
1011
|
+
"family": "shadow",
|
|
1012
|
+
"cssVar": "--cm-shadow-lg",
|
|
1013
|
+
"value": "0 16px 40px rgba(0, 0, 0, 0.14), 0 4px 12px rgba(0, 0, 0, 0.06)",
|
|
1014
|
+
"usage": "Modals, side panels, bottom sheets, toasts, save bars, dragged cards."
|
|
757
1015
|
},
|
|
758
1016
|
{
|
|
759
1017
|
"name": "shadow-100",
|
|
760
1018
|
"family": "shadow",
|
|
761
1019
|
"cssVar": "--cm-shadow-100",
|
|
762
|
-
"value": "
|
|
763
|
-
"usage": "
|
|
1020
|
+
"value": "0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04)",
|
|
1021
|
+
"usage": "Deprecated since 1.5: use shadow-md (same value).",
|
|
1022
|
+
"deprecated": true
|
|
1023
|
+
},
|
|
1024
|
+
{
|
|
1025
|
+
"name": "duration-fast",
|
|
1026
|
+
"family": "motion",
|
|
1027
|
+
"cssVar": "--cm-duration-fast",
|
|
1028
|
+
"value": "120ms",
|
|
1029
|
+
"usage": "Hover, press, toggles, chevrons."
|
|
1030
|
+
},
|
|
1031
|
+
{
|
|
1032
|
+
"name": "duration-base",
|
|
1033
|
+
"family": "motion",
|
|
1034
|
+
"cssVar": "--cm-duration-base",
|
|
1035
|
+
"value": "200ms",
|
|
1036
|
+
"usage": "Opening and closing: popovers, panels, accordions."
|
|
1037
|
+
},
|
|
1038
|
+
{
|
|
1039
|
+
"name": "easing-standard",
|
|
1040
|
+
"family": "motion",
|
|
1041
|
+
"cssVar": "--cm-easing-standard",
|
|
1042
|
+
"value": "cubic-bezier(0.2, 0, 0, 1)",
|
|
1043
|
+
"usage": "Every transition. Under prefers-reduced-motion components turn transitions off."
|
|
764
1044
|
},
|
|
765
1045
|
{
|
|
766
1046
|
"name": "tracking-caps",
|
|
767
1047
|
"family": "letterSpacing",
|
|
768
1048
|
"cssVar": "--cm-tracking-caps",
|
|
769
1049
|
"value": "0.16em",
|
|
770
|
-
"usage": "
|
|
1050
|
+
"usage": "Deprecated since 1.5: components no longer use uppercase text (sentence case everywhere). Kept for existing apps.",
|
|
1051
|
+
"deprecated": true
|
|
771
1052
|
},
|
|
772
1053
|
{
|
|
773
1054
|
"name": "font-sans",
|
|
@@ -775,27 +1056,60 @@
|
|
|
775
1056
|
"cssVar": "--cm-font-sans",
|
|
776
1057
|
"value": "\"Poppins\", system-ui, sans-serif"
|
|
777
1058
|
},
|
|
1059
|
+
{
|
|
1060
|
+
"name": "type-display-lg",
|
|
1061
|
+
"family": "type",
|
|
1062
|
+
"group": "Desktop",
|
|
1063
|
+
"value": {
|
|
1064
|
+
"fontSize": "40px",
|
|
1065
|
+
"lineHeight": "48px",
|
|
1066
|
+
"fontWeight": 600
|
|
1067
|
+
},
|
|
1068
|
+
"usage": "Marketing/hero only: the one big heading of a marketing-style page (the docs home). 40/48. Never in product UI."
|
|
1069
|
+
},
|
|
1070
|
+
{
|
|
1071
|
+
"name": "type-display",
|
|
1072
|
+
"family": "type",
|
|
1073
|
+
"group": "Desktop",
|
|
1074
|
+
"value": {
|
|
1075
|
+
"fontSize": "30px",
|
|
1076
|
+
"lineHeight": "36px",
|
|
1077
|
+
"fontWeight": 600
|
|
1078
|
+
},
|
|
1079
|
+
"usage": "Large numbers and the rare marketing-style heading. 30/36."
|
|
1080
|
+
},
|
|
778
1081
|
{
|
|
779
1082
|
"name": "type-heading-lg",
|
|
780
1083
|
"family": "type",
|
|
781
1084
|
"group": "Desktop",
|
|
782
1085
|
"value": {
|
|
783
|
-
"fontSize": "
|
|
784
|
-
"lineHeight":
|
|
1086
|
+
"fontSize": "24px",
|
|
1087
|
+
"lineHeight": "32px",
|
|
785
1088
|
"fontWeight": 600
|
|
786
1089
|
},
|
|
787
|
-
"usage": "Page titles (
|
|
1090
|
+
"usage": "Page titles (cm-page-header). 24/32 semibold."
|
|
788
1091
|
},
|
|
789
1092
|
{
|
|
790
|
-
"name": "type-heading-
|
|
1093
|
+
"name": "type-heading-md",
|
|
791
1094
|
"family": "type",
|
|
792
1095
|
"group": "Desktop",
|
|
793
1096
|
"value": {
|
|
794
1097
|
"fontSize": "20px",
|
|
795
|
-
"lineHeight":
|
|
796
|
-
"fontWeight":
|
|
1098
|
+
"lineHeight": "28px",
|
|
1099
|
+
"fontWeight": 600
|
|
1100
|
+
},
|
|
1101
|
+
"usage": "Modal and side panel titles, big section headings. 20/28."
|
|
1102
|
+
},
|
|
1103
|
+
{
|
|
1104
|
+
"name": "type-heading-sm",
|
|
1105
|
+
"family": "type",
|
|
1106
|
+
"group": "Desktop",
|
|
1107
|
+
"value": {
|
|
1108
|
+
"fontSize": "16px",
|
|
1109
|
+
"lineHeight": "24px",
|
|
1110
|
+
"fontWeight": 600
|
|
797
1111
|
},
|
|
798
|
-
"usage": "Card and
|
|
1112
|
+
"usage": "Card, section and form-group titles. 16/24 semibold."
|
|
799
1113
|
},
|
|
800
1114
|
{
|
|
801
1115
|
"name": "type-body-lg",
|
|
@@ -803,10 +1117,10 @@
|
|
|
803
1117
|
"group": "Desktop",
|
|
804
1118
|
"value": {
|
|
805
1119
|
"fontSize": "16px",
|
|
806
|
-
"lineHeight":
|
|
1120
|
+
"lineHeight": "24px",
|
|
807
1121
|
"fontWeight": 400
|
|
808
1122
|
},
|
|
809
|
-
"usage": "
|
|
1123
|
+
"usage": "Long reading text. 16/24."
|
|
810
1124
|
},
|
|
811
1125
|
{
|
|
812
1126
|
"name": "type-body-md",
|
|
@@ -814,120 +1128,153 @@
|
|
|
814
1128
|
"group": "Desktop",
|
|
815
1129
|
"value": {
|
|
816
1130
|
"fontSize": "14px",
|
|
817
|
-
"lineHeight":
|
|
1131
|
+
"lineHeight": "20px",
|
|
818
1132
|
"fontWeight": 400
|
|
819
1133
|
},
|
|
820
|
-
"usage": "
|
|
1134
|
+
"usage": "Default UI text: field values, buttons, list and table text. 14/20."
|
|
821
1135
|
},
|
|
822
1136
|
{
|
|
823
1137
|
"name": "type-body-sm",
|
|
824
1138
|
"family": "type",
|
|
825
1139
|
"group": "Desktop",
|
|
826
1140
|
"value": {
|
|
827
|
-
"fontSize": "
|
|
828
|
-
"lineHeight":
|
|
1141
|
+
"fontSize": "13px",
|
|
1142
|
+
"lineHeight": "18px",
|
|
829
1143
|
"fontWeight": 400
|
|
830
1144
|
},
|
|
831
|
-
"usage": "Help text,
|
|
1145
|
+
"usage": "Help text, secondary lines, slim buttons. 13/18."
|
|
832
1146
|
},
|
|
833
1147
|
{
|
|
834
1148
|
"name": "type-body-xs",
|
|
835
1149
|
"family": "type",
|
|
836
1150
|
"group": "Desktop",
|
|
837
1151
|
"value": {
|
|
838
|
-
"fontSize": "
|
|
839
|
-
"lineHeight":
|
|
1152
|
+
"fontSize": "12px",
|
|
1153
|
+
"lineHeight": "16px",
|
|
840
1154
|
"fontWeight": 400
|
|
841
1155
|
},
|
|
842
|
-
"usage": "Captions,
|
|
1156
|
+
"usage": "Captions, badges, counts, table headers. 12/16. Nothing is smaller."
|
|
843
1157
|
},
|
|
844
1158
|
{
|
|
845
1159
|
"name": "type-label",
|
|
846
1160
|
"family": "type",
|
|
847
1161
|
"group": "Desktop",
|
|
848
1162
|
"value": {
|
|
849
|
-
"fontSize": "
|
|
850
|
-
"lineHeight":
|
|
851
|
-
"fontWeight":
|
|
1163
|
+
"fontSize": "14px",
|
|
1164
|
+
"lineHeight": "20px",
|
|
1165
|
+
"fontWeight": 500
|
|
852
1166
|
},
|
|
853
|
-
"usage": "Form labels."
|
|
1167
|
+
"usage": "Form labels. 14/20 medium."
|
|
854
1168
|
},
|
|
855
1169
|
{
|
|
856
|
-
"name": "type-
|
|
1170
|
+
"name": "type-display-lg-resp",
|
|
1171
|
+
"family": "type",
|
|
1172
|
+
"group": "Responsive",
|
|
1173
|
+
"value": {
|
|
1174
|
+
"fontSize": "30px",
|
|
1175
|
+
"lineHeight": "36px",
|
|
1176
|
+
"fontWeight": 600
|
|
1177
|
+
},
|
|
1178
|
+
"usage": "Marketing/hero only, on phones. 30/36."
|
|
1179
|
+
},
|
|
1180
|
+
{
|
|
1181
|
+
"name": "type-display-resp",
|
|
857
1182
|
"family": "type",
|
|
858
1183
|
"group": "Responsive",
|
|
859
1184
|
"value": {
|
|
860
1185
|
"fontSize": "24px",
|
|
861
|
-
"lineHeight":
|
|
1186
|
+
"lineHeight": "32px",
|
|
862
1187
|
"fontWeight": 600
|
|
863
1188
|
},
|
|
864
|
-
"usage": "
|
|
1189
|
+
"usage": "Display text on phones."
|
|
865
1190
|
},
|
|
866
1191
|
{
|
|
867
|
-
"name": "type-heading-
|
|
1192
|
+
"name": "type-heading-lg-resp",
|
|
1193
|
+
"family": "type",
|
|
1194
|
+
"group": "Responsive",
|
|
1195
|
+
"value": {
|
|
1196
|
+
"fontSize": "20px",
|
|
1197
|
+
"lineHeight": "28px",
|
|
1198
|
+
"fontWeight": 600
|
|
1199
|
+
},
|
|
1200
|
+
"usage": "Page titles on phones."
|
|
1201
|
+
},
|
|
1202
|
+
{
|
|
1203
|
+
"name": "type-heading-md-resp",
|
|
868
1204
|
"family": "type",
|
|
869
1205
|
"group": "Responsive",
|
|
870
1206
|
"value": {
|
|
871
1207
|
"fontSize": "18px",
|
|
872
|
-
"lineHeight":
|
|
873
|
-
"fontWeight":
|
|
1208
|
+
"lineHeight": "26px",
|
|
1209
|
+
"fontWeight": 600
|
|
874
1210
|
},
|
|
875
|
-
"usage": "
|
|
1211
|
+
"usage": "Modal and panel titles on phones."
|
|
1212
|
+
},
|
|
1213
|
+
{
|
|
1214
|
+
"name": "type-heading-sm-resp",
|
|
1215
|
+
"family": "type",
|
|
1216
|
+
"group": "Responsive",
|
|
1217
|
+
"value": {
|
|
1218
|
+
"fontSize": "16px",
|
|
1219
|
+
"lineHeight": "24px",
|
|
1220
|
+
"fontWeight": 600
|
|
1221
|
+
},
|
|
1222
|
+
"usage": "Section titles on phones (same as desktop)."
|
|
876
1223
|
},
|
|
877
1224
|
{
|
|
878
1225
|
"name": "type-body-lg-resp",
|
|
879
1226
|
"family": "type",
|
|
880
1227
|
"group": "Responsive",
|
|
881
1228
|
"value": {
|
|
882
|
-
"fontSize": "
|
|
883
|
-
"lineHeight":
|
|
1229
|
+
"fontSize": "16px",
|
|
1230
|
+
"lineHeight": "24px",
|
|
884
1231
|
"fontWeight": 400
|
|
885
1232
|
},
|
|
886
|
-
"usage": "
|
|
1233
|
+
"usage": "Reading text on phones."
|
|
887
1234
|
},
|
|
888
1235
|
{
|
|
889
1236
|
"name": "type-body-md-resp",
|
|
890
1237
|
"family": "type",
|
|
891
1238
|
"group": "Responsive",
|
|
892
1239
|
"value": {
|
|
893
|
-
"fontSize": "
|
|
894
|
-
"lineHeight":
|
|
1240
|
+
"fontSize": "14px",
|
|
1241
|
+
"lineHeight": "20px",
|
|
895
1242
|
"fontWeight": 400
|
|
896
1243
|
},
|
|
897
|
-
"usage": "
|
|
1244
|
+
"usage": "UI text on phones (same as desktop: text never shrinks below 14 on phones)."
|
|
898
1245
|
},
|
|
899
1246
|
{
|
|
900
1247
|
"name": "type-body-sm-resp",
|
|
901
1248
|
"family": "type",
|
|
902
1249
|
"group": "Responsive",
|
|
903
1250
|
"value": {
|
|
904
|
-
"fontSize": "
|
|
905
|
-
"lineHeight":
|
|
1251
|
+
"fontSize": "13px",
|
|
1252
|
+
"lineHeight": "18px",
|
|
906
1253
|
"fontWeight": 400
|
|
907
1254
|
},
|
|
908
|
-
"usage": "Help text on
|
|
1255
|
+
"usage": "Help text on phones."
|
|
909
1256
|
},
|
|
910
1257
|
{
|
|
911
1258
|
"name": "type-body-xs-resp",
|
|
912
1259
|
"family": "type",
|
|
913
1260
|
"group": "Responsive",
|
|
914
1261
|
"value": {
|
|
915
|
-
"fontSize": "
|
|
916
|
-
"lineHeight":
|
|
1262
|
+
"fontSize": "12px",
|
|
1263
|
+
"lineHeight": "16px",
|
|
917
1264
|
"fontWeight": 400
|
|
918
1265
|
},
|
|
919
|
-
"usage": "Captions on
|
|
1266
|
+
"usage": "Captions on phones."
|
|
920
1267
|
},
|
|
921
1268
|
{
|
|
922
1269
|
"name": "type-label-resp",
|
|
923
1270
|
"family": "type",
|
|
924
1271
|
"group": "Responsive",
|
|
925
1272
|
"value": {
|
|
926
|
-
"fontSize": "
|
|
927
|
-
"lineHeight":
|
|
928
|
-
"fontWeight":
|
|
1273
|
+
"fontSize": "14px",
|
|
1274
|
+
"lineHeight": "20px",
|
|
1275
|
+
"fontWeight": 500
|
|
929
1276
|
},
|
|
930
|
-
"usage": "Form labels on
|
|
1277
|
+
"usage": "Form labels on phones."
|
|
931
1278
|
}
|
|
932
1279
|
]
|
|
933
1280
|
}
|
package/package.json
CHANGED