@muraldevkit/ds-foundation 2.25.0 → 2.27.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.
@@ -28,11 +28,11 @@
28
28
  "border-radius": {
29
29
  "tight": {
30
30
  "$value": "{radii.01}",
31
- "$description": "Tight corner radius."
31
+ "$description": "When the content has tight spacing considerations."
32
32
  },
33
33
  "content": {
34
34
  "$value": "{radii.02}",
35
- "$description": "Default content corner radius."
35
+ "$description": "For elements that are static content."
36
36
  },
37
37
  "content-large": {
38
38
  "$value": "{radii.03}",
@@ -40,7 +40,7 @@
40
40
  },
41
41
  "functional": {
42
42
  "$value": "{radii.03}",
43
- "$description": "Corner radius for functional elements."
43
+ "$description": "For interactive elements. If a component can be both static and functional (e.g., Avatars), use the functional token over the \"Content\" token."
44
44
  },
45
45
  "functional-large": {
46
46
  "$value": "{radii.04}",
@@ -48,15 +48,15 @@
48
48
  },
49
49
  "container": {
50
50
  "$value": "{radii.04}",
51
- "$description": "Corner radius for containers."
51
+ "$description": "For components/elements that are shells, meaning that the element itself doesn't typically know or care what the child elements are and simply provide a bounding element, for example, drawers, popovers, etc."
52
52
  },
53
53
  "container-large": {
54
54
  "$value": "{radii.05}",
55
- "$description": "Large corner radius for containers."
55
+ "$description": "For components/elements that are large, shell containers (e.g., modals or other near full-page elements)."
56
56
  },
57
57
  "rounded": {
58
58
  "$value": "{radii.07}",
59
- "$description": "Rounded corner radius."
59
+ "$description": "For components/elements that intentionally have an overly rounded appearance. Special note for elements that are pure circles (e.g. spinner, radio button, etc.), in these cases use a component token overwrite to make it 100% rounded."
60
60
  },
61
61
  "rounded-large": {
62
62
  "$value": "{radii.08}",
@@ -56,34 +56,6 @@
56
56
  "$value": "rgba({gray.100}, 1)",
57
57
  "$description": "Background, selected state."
58
58
  },
59
- "background-highlight": {
60
- "secondary": {
61
- "$value": "{color.background-decorative}",
62
- "$description": "Deprecated — use `background-decorative` instead."
63
- },
64
- "hover": {
65
- "$value": "{color.background-hover}",
66
- "$description": "Deprecated — use `background-hover` instead."
67
- },
68
- "active": {
69
- "$value": "{color.background-active}",
70
- "$description": "Deprecated — use `background-active` instead."
71
- },
72
- "selected": {
73
- "$value": "{color.background-selected}",
74
- "$description": "Deprecated — use `background-selected` instead."
75
- },
76
- "emph": {
77
- "active": {
78
- "$value": "{color.background-emph.active}",
79
- "$description": "Deprecated — use `background-emph-active` instead."
80
- },
81
- "selected": {
82
- "$value": "{color.background-active}",
83
- "$description": "Deprecated — use `background-active` instead."
84
- }
85
- }
86
- },
87
59
  "background-emph": {
88
60
  "hover": {
89
61
  "$value": "rgba({gray.10}, 1)",
@@ -96,39 +68,39 @@
96
68
  },
97
69
  "background-info": {
98
70
  "$value": "rgba({status.info}, 1)",
99
- "$description": "Background for info status surfaces."
71
+ "$description": "Use for all use cases where we denote a status and there is a colored background. Use --mrl-color-text-inverse with these background colors."
100
72
  },
101
73
  "background-info-light": {
102
74
  "$value": "rgba({status.info-light}, 1)",
103
- "$description": "Light background for info status surfaces."
75
+ "$description": "Use for background of inline block notifications and badges."
104
76
  },
105
77
  "background-success": {
106
78
  "$value": "rgba({status.success}, 1)",
107
- "$description": "Background for success status surfaces."
79
+ "$description": "Use for all use cases where we denote a status and there is a colored background. Use --mrl-color-text-inverse with these background colors."
108
80
  },
109
81
  "background-success-light": {
110
82
  "$value": "rgba({status.success-light}, 1)",
111
- "$description": "Light background for success status surfaces."
83
+ "$description": "Use for background of inline block notifications and badges."
112
84
  },
113
85
  "background-warning": {
114
86
  "$value": "rgba({status.warning}, 1)",
115
- "$description": "Background for warning status surfaces."
87
+ "$description": "Use for all use cases where we denote a status and there is a colored background. Use --mrl-color-text-inverse with these background colors."
116
88
  },
117
89
  "background-warning-light": {
118
90
  "$value": "rgba({status.warning-light}, 1)",
119
- "$description": "Light background for warning status surfaces."
91
+ "$description": "Use for background of inline block notifications and badges."
120
92
  },
121
93
  "background-error": {
122
94
  "$value": "rgba({status.error}, 1)",
123
- "$description": "Background for error status surfaces."
95
+ "$description": "Use for all use cases where we denote a status and there is a colored background. Use --mrl-color-text-inverse with these background colors."
124
96
  },
125
97
  "background-error-light": {
126
98
  "$value": "rgba({status.error-light}, 1)",
127
- "$description": "Light background for error status surfaces."
99
+ "$description": "Use for background of inline block notifications and badges."
128
100
  },
129
101
  "background-private": {
130
102
  "$value": "rgba({gray.100}, 1)",
131
- "$description": "Background for private content warnings."
103
+ "$description": "Use for all use cases where we denote a status and there is a colored background. Use --mrl-color-text-inverse with these background colors. The private variable is deprecated and will be removed in v2."
132
104
  },
133
105
  "background-inverse": {
134
106
  "$value": "rgba({gray.100}, 1)",
@@ -136,31 +108,31 @@
136
108
  },
137
109
  "background-inverse-hover": {
138
110
  "$value": "rgba({gray.90}, 1)",
139
- "$description": "Inverse surface background, hover state."
111
+ "$description": "Use only with --mrl-color-background-inverse; other colored backgrounds will have a different style set that's TBD."
140
112
  },
141
113
  "background-disabled": {
142
114
  "$value": "rgba({gray.40}, 1)",
143
- "$description": "Background for disabled controls."
115
+ "$description": "Use only when there is a background on a disabled element and the text used would be --mrl-color-text-inverse. In the product the current usage aligns to --mrl-gray-50 but Design provided new guidelines for all future work."
144
116
  },
145
117
  "line": {
146
118
  "$value": "rgba({gray.70}, 1)",
147
- "$description": "Default line/border color."
119
+ "$description": "Use with the Base style set."
148
120
  },
149
121
  "line-hover": {
150
122
  "$value": "rgba({gray.90}, 1)",
151
- "$description": "Line color, hover state."
123
+ "$description": "Use with the Base style set."
152
124
  },
153
125
  "line-active": {
154
126
  "$value": "rgba({gray.100}, 1)",
155
- "$description": "Line color, active state."
127
+ "$description": "Use with the Base style set."
156
128
  },
157
129
  "line-selected": {
158
130
  "$value": "rgba({gray.90}, 1)",
159
- "$description": "Line color, selected state."
131
+ "$description": "Use with the Base style set."
160
132
  },
161
133
  "line-disabled": {
162
134
  "$value": "rgba({gray.40}, 1)",
163
- "$description": "Line color for disabled controls."
135
+ "$description": "In the product the current usage aligns to --mrl-gray-50 but Design provided new guidelines for all future work."
164
136
  },
165
137
  "line-secondary": {
166
138
  "$value": "rgba({gray.30}, 1)",
@@ -170,29 +142,25 @@
170
142
  "$value": "rgba({blue.20}, 1)",
171
143
  "$description": "Line color for decorative, non-interactive surfaces."
172
144
  },
173
- "line-highlight-secondary": {
174
- "$value": "{color.line-secondary}",
175
- "$description": "Deprecated — use `line-secondary` instead."
176
- },
177
145
  "line-divider": {
178
146
  "$value": "rgba({gray.20}, 1)",
179
- "$description": "Divider line color."
147
+ "$description": "Design calls this Light but we want a more semantic name in the code base."
180
148
  },
181
149
  "line-divider-inverse": {
182
150
  "$value": "rgba({gray.80}, 1)",
183
- "$description": "Divider line color on inverse surfaces."
151
+ "$description": "Design calls this Dark but we want a more semantic name in the code base. This is intended for use on dark or saturated backgrounds."
184
152
  },
185
153
  "line-emph": {
186
154
  "$value": "rgba({gray.20}, 1)",
187
- "$description": "Emphasized line color."
155
+ "$description": "Use with the Base with Emphasis style set."
188
156
  },
189
157
  "line-emph-hover": {
190
158
  "$value": "rgba({gray.90}, 1)",
191
- "$description": "Emphasized line color, hover state."
159
+ "$description": "Use with the Base with Emphasis style set."
192
160
  },
193
161
  "line-emph-active": {
194
162
  "$value": "rgba({black}, 1)",
195
- "$description": "Emphasized line color, active state."
163
+ "$description": "Use with the Base with Emphasis style set."
196
164
  },
197
165
  "line-inverse": {
198
166
  "$value": "rgba({white}, 1)",
@@ -217,7 +185,7 @@
217
185
  },
218
186
  "emph-selected": {
219
187
  "$value": "rgba({gray.100}, 1)",
220
- "$description": "Emphasized icon color, selected state."
188
+ "$description": "Used when there is an icon and you're following the Base with Emphasis style set. For all other states, the icon is the same color as the text."
221
189
  }
222
190
  },
223
191
  "input-icon-default": {
@@ -226,115 +194,79 @@
226
194
  },
227
195
  "text": {
228
196
  "$value": "rgba({gray.80}, 1)",
229
- "$description": "Default body text color."
197
+ "$description": "Use for the Base style set."
230
198
  },
231
199
  "text-hover": {
232
200
  "$value": "rgba({gray.90}, 1)",
233
- "$description": "Text color, hover state."
201
+ "$description": "Use for the Base style set."
234
202
  },
235
203
  "text-active": {
236
204
  "$value": "rgba({gray.90}, 1)",
237
- "$description": "Text color, active state."
205
+ "$description": "Use for the Base style set."
238
206
  },
239
207
  "text-selected": {
240
208
  "$value": "rgba({gray.100}, 1)",
241
- "$description": "Text color, selected state."
209
+ "$description": "Use for the Base style set."
242
210
  },
243
211
  "text-disabled": {
244
212
  "$value": "rgba({gray.40}, 1)",
245
- "$description": "Text color for disabled controls."
213
+ "$description": "In the product the current usage aligns to --mrl-gray-50 but Design provided new guidelines for all future work."
246
214
  },
247
215
  "text-disabled-inverse": {
248
216
  "$value": "rgba({white}, 1)",
249
- "$description": "Disabled text color on inverse surfaces."
217
+ "$description": "Use when the background of the element uses --mrl-color-background-disabled."
250
218
  },
251
219
  "text-emph": {
252
220
  "$value": "rgba({gray.90}, 1)",
253
- "$description": "Emphasized text color."
221
+ "$description": "Use for the Base with Emphasis style set."
254
222
  },
255
223
  "text-emph-hover": {
256
224
  "$value": "rgba({gray.90}, 1)",
257
- "$description": "Emphasized text color, hover state."
225
+ "$description": "Use for the Base with Emphasis style set."
258
226
  },
259
227
  "text-emph-active": {
260
228
  "$value": "rgba({black}, 1)",
261
- "$description": "Emphasized text color, active state."
262
- },
263
- "text-highlight": {
264
- "$value": "{color.text-emph}",
265
- "$description": "Deprecated — use `text-emph` instead."
266
- },
267
- "text-highlight-hover": {
268
- "$value": "{color.text-emph-hover}",
269
- "$description": "Deprecated — use `text-emph-hover` instead."
270
- },
271
- "text-highlight-active": {
272
- "$value": "{color.text-emph-active}",
273
- "$description": "Deprecated — use `text-emph-active` instead."
274
- },
275
- "text-highlight-selected": {
276
- "$value": "{color.text-inverse-selected}",
277
- "$description": "Deprecated — use `text-inverse-selected` instead."
278
- },
279
- "text-highlight-emph": {
280
- "$value": "{color.text-emph}",
281
- "$description": "Deprecated — use `text-emph` instead."
282
- },
283
- "text-highlight-emph-hover": {
284
- "$value": "{color.text-emph-hover}",
285
- "$description": "Deprecated — use `text-emph-hover` instead."
286
- },
287
- "text-highlight-emph-active": {
288
- "$value": "{color.text-emph-active}",
289
- "$description": "Deprecated — use `text-emph-active` instead."
290
- },
291
- "text-highlight-emph-selected": {
292
- "$value": "{color.text-inverse-selected}",
293
- "$description": "Deprecated — use `text-inverse-selected` instead."
229
+ "$description": "Use for the Base with Emphasis style set."
294
230
  },
295
231
  "text-inverse": {
296
232
  "$value": "rgba({white}, 1)",
297
- "$description": "Text color on inverse surfaces."
233
+ "$description": "Use for Inverse or any saturated background color, such as statuses."
298
234
  },
299
235
  "text-inverse-secondary": {
300
236
  "$value": "rgba({gray.10}, 1)",
301
- "$description": "Secondary text color on inverse surfaces."
237
+ "$description": "Use for Inverse or any saturated background color, such as statuses. This should only be used when there are multiple text colors within a single element. If there is only one color, always use --mrl-color-text-inverse to create consistency."
302
238
  },
303
239
  "text-inverse-hover": {
304
240
  "$value": "rgba({white}, 1)",
305
- "$description": "Inverse text color, hover state."
241
+ "$description": "Use for Inverse or any saturated background color, such as statuses."
306
242
  },
307
243
  "text-inverse-active": {
308
244
  "$value": "rgba({white}, 1)",
309
- "$description": "Inverse text color, active state."
245
+ "$description": "Use for Inverse or any saturated background color, such as statuses."
310
246
  },
311
247
  "text-inverse-selected": {
312
248
  "$value": "rgba({white}, 1)",
313
- "$description": "Inverse text color, selected state."
314
- },
315
- "text-02": {
316
- "$value": "{color.text-heading}",
317
- "$description": "Deprecated — use `text-heading` instead."
249
+ "$description": "Use for Inverse or any saturated background color, such as statuses."
318
250
  },
319
251
  "text-secondary": {
320
252
  "$value": "rgba({gray.70}, 1)",
321
- "$description": "Secondary text color."
253
+ "$description": "Use for static text only; if you're working on an interactive element, use one of the defined style sets. This is also used for placeholder text within form elements."
322
254
  },
323
255
  "text-label": {
324
256
  "$value": "rgba({gray.100}, 1)",
325
- "$description": "Text color for form labels."
257
+ "$description": "Use for static text only; if you're working on an interactive element, use one of the defined style sets."
326
258
  },
327
259
  "text-heading": {
328
260
  "$value": "rgba({gray.100}, 1)",
329
- "$description": "Text color for headings."
261
+ "$description": "Use for static text only; if you're working on an interactive element, use one of the defined style sets."
330
262
  },
331
263
  "text-success": {
332
264
  "$value": "rgba({status.success}, 1)",
333
- "$description": "Text color for success messages."
265
+ "$description": "Use when the background is white/transparent only; for elements with a status color background use --mrl-color-text-inverse."
334
266
  },
335
267
  "text-warning": {
336
268
  "$value": "rgba({gray.90}, 1)",
337
- "$description": "Text color for warning messages."
269
+ "$description": "Use when the background is white/transparent only; for elements with a status color background use --mrl-color-text-inverse."
338
270
  },
339
271
  "text-warning-light": {
340
272
  "$value": "rgba({gray.80}, 1)",
@@ -342,11 +274,11 @@
342
274
  },
343
275
  "text-error": {
344
276
  "$value": "rgba({status.error}, 1)",
345
- "$description": "Text color for error messages."
277
+ "$description": "Use when the background is white/transparent only; for elements with a status color background use --mrl-color-text-inverse."
346
278
  },
347
279
  "text-info": {
348
280
  "$value": "rgba({status.info}, 1)",
349
- "$description": "Text color for info messages."
281
+ "$description": "Use when the background is white/transparent only; for elements with a status color background use --mrl-color-text-inverse."
350
282
  },
351
283
  "text-private": {
352
284
  "$value": "rgba({gray.100}, 1)",
@@ -354,23 +286,23 @@
354
286
  },
355
287
  "background-inverse-active": {
356
288
  "$value": "{color.accent}",
357
- "$description": "Inverse surface background, active state."
289
+ "$description": "Use only with --mrl-color-background-inverse; other colored backgrounds will have a different style set that's TBD."
358
290
  },
359
291
  "background-inverse-selected": {
360
292
  "$value": "{color.accent}",
361
- "$description": "Inverse surface background, selected state."
293
+ "$description": "Use only with --mrl-color-background-inverse; other colored backgrounds will have a different style set that's TBD."
362
294
  },
363
295
  "line-emph-selected": {
364
296
  "$value": "{color.accent}",
365
- "$description": "Emphasized line color, selected state."
297
+ "$description": "Use with the Base with Emphasis style set."
366
298
  },
367
299
  "text-emph-selected": {
368
300
  "$value": "{color.accent}",
369
- "$description": "Emphasized text color, selected state."
301
+ "$description": "Use for the Base with Emphasis style set."
370
302
  },
371
303
  "background-page": {
372
304
  "$value": "rgb(243, 245, 246)",
373
- "$description": "Intentional one-off page background (#f3f5f6)."
305
+ "$description": "This is an intentional one-off contextual token that does not use our standard color scales. It should only be used as the background color for non-canvas pages."
374
306
  },
375
307
  "background-hover": {
376
308
  "$value": "{black-opacity.00}",
@@ -2,35 +2,38 @@
2
2
  "$description": "Contextual Typography Tokens. We have 6 different use cases for text: display, headlines, titles, body copy (text), and interactive UI elements. For each category, the default is the medium, [primary] variation. For use cases that have differences between mobile and desktop (display, and headline), we implement mobile as the default since our implementation follows a mobile-first philosophy for performance.",
3
3
  "body-font": {
4
4
  "$value": "{font-family.01}, sans-serif",
5
- "$type": "fontFamily"
5
+ "$type": "fontFamily",
6
+ "$description": "Used for all body copy."
6
7
  },
7
8
  "heading": {
8
9
  "font": {
9
10
  "$value": "{font-family.01}, sans-serif",
10
- "$type": "fontFamily"
11
+ "$type": "fontFamily",
12
+ "$description": "Used for most headings."
11
13
  },
12
14
  "font-alt": {
13
15
  "$value": "{font-family.02}, serif",
14
- "$type": "fontFamily"
16
+ "$type": "fontFamily",
17
+ "$description": "Used for headings with kind=\"display\"."
15
18
  }
16
19
  },
17
20
  "type-size": {
18
21
  "$description": "Typography - Font Size",
19
22
  "display": {
20
23
  "$value": "{font-size.08}",
21
- "$description": "Contextual typography token."
24
+ "$description": "When the viewport is 600px or wider, this token uses --mrl-font-size-09."
22
25
  },
23
26
  "display-large": {
24
27
  "$value": "{font-size.09}",
25
- "$description": "Contextual typography token."
28
+ "$description": "When the viewport is 600px or wider, this token uses --mrl-font-size-10."
26
29
  },
27
30
  "display-small": {
28
31
  "$value": "{font-size.07}",
29
- "$description": "Contextual typography token."
32
+ "$description": "When the viewport is 600px or wider, this token uses --mrl-font-size-08."
30
33
  },
31
34
  "display-xsmall": {
32
35
  "$value": "{font-size.06}",
33
- "$description": "Contextual typography token."
36
+ "$description": "When the viewport is 600px or wider, this token uses --mrl-font-size-07."
34
37
  },
35
38
  "headline": {
36
39
  "$value": "{font-size.06}",
@@ -38,7 +41,7 @@
38
41
  },
39
42
  "headline-large": {
40
43
  "$value": "{font-size.06}",
41
- "$description": "Contextual typography token."
44
+ "$description": "When the viewport is 600px or wider, this token uses --mrl-font-size-07."
42
45
  },
43
46
  "headline-small": {
44
47
  "$value": "{font-size.04}",
@@ -74,23 +77,23 @@
74
77
  "$type": "number",
75
78
  "title": {
76
79
  "$value": "{line-height.05}",
77
- "$description": "Contextual typography token."
80
+ "$description": "The title use case follows the same line-height scale as text."
78
81
  },
79
82
  "title-large": {
80
83
  "$value": "{line-height.06}",
81
- "$description": "Contextual typography token."
84
+ "$description": "The title use case follows the same line-height scale as text."
82
85
  },
83
86
  "title-small": {
84
87
  "$value": "{line-height.08}",
85
- "$description": "Contextual typography token."
88
+ "$description": "The title use case follows the same line-height scale as text."
86
89
  },
87
90
  "title-xsmall": {
88
91
  "$value": "{line-height.06}",
89
- "$description": "Contextual typography token."
92
+ "$description": "The title use case follows the same line-height scale as text."
90
93
  },
91
94
  "title-xxsmall": {
92
95
  "$value": "{line-height.06}",
93
- "$description": "Contextual typography token."
96
+ "$description": "The title use case follows the same line-height scale as text."
94
97
  },
95
98
  "display": {
96
99
  "$value": "{line-height.02}",
@@ -114,11 +117,11 @@
114
117
  },
115
118
  "headline-large": {
116
119
  "$value": "{line-height.07}",
117
- "$description": "Contextual typography token."
120
+ "$description": "When the viewport is 600px or wider, this token uses --mrl-line-height-06."
118
121
  },
119
122
  "headline-small": {
120
123
  "$value": "{line-height.02}",
121
- "$description": "Contextual typography token."
124
+ "$description": "When the viewport is 600px or wider, this token uses --mrl-line-height-09."
122
125
  },
123
126
  "text": {
124
127
  "$value": "{line-height.09}",
@@ -226,7 +229,7 @@
226
229
  },
227
230
  "headline-small": {
228
231
  "$value": "{letter-spacing.04}",
229
- "$description": "Contextual typography token."
232
+ "$description": "When the viewport is 600px or wider, this token uses --mrl-letter-spacing-03."
230
233
  },
231
234
  "text": {
232
235
  "$value": "{letter-spacing.03}",
@@ -167,27 +167,27 @@
167
167
  "01": {
168
168
  "$value": 400,
169
169
  "$type": "fontWeight",
170
- "$description": "Font weight token."
170
+ "$description": "Regular. Font weight token."
171
171
  },
172
172
  "02": {
173
173
  "$value": 500,
174
174
  "$type": "fontWeight",
175
- "$description": "Font weight token."
175
+ "$description": "Medium. Font weight token."
176
176
  },
177
177
  "03": {
178
178
  "$value": 600,
179
179
  "$type": "fontWeight",
180
- "$description": "Font weight token."
180
+ "$description": "Semi-bold. Font weight token."
181
181
  },
182
182
  "04": {
183
183
  "$value": 700,
184
184
  "$type": "fontWeight",
185
- "$description": "Font weight token."
185
+ "$description": "Bold. Font weight token."
186
186
  },
187
187
  "05": {
188
188
  "$value": 800,
189
189
  "$type": "fontWeight",
190
- "$description": "Font weight token."
190
+ "$description": "Extra-bold. Font weight token."
191
191
  }
192
192
  }
193
193
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@muraldevkit/ds-foundation",
3
- "version": "2.25.0",
3
+ "version": "2.27.0",
4
4
  "description": "Mural's design system's Foundation package containing our design language features used across all components",
5
5
  "license": "https://www.mural.co/terms/developer-addendum",
6
6
  "scripts": {