@muraldevkit/ds-foundation 2.26.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.
@@ -68,39 +68,39 @@
68
68
  },
69
69
  "background-info": {
70
70
  "$value": "rgba({status.info}, 1)",
71
- "$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."
72
72
  },
73
73
  "background-info-light": {
74
74
  "$value": "rgba({status.info-light}, 1)",
75
- "$description": "Light background for info status surfaces."
75
+ "$description": "Use for background of inline block notifications and badges."
76
76
  },
77
77
  "background-success": {
78
78
  "$value": "rgba({status.success}, 1)",
79
- "$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."
80
80
  },
81
81
  "background-success-light": {
82
82
  "$value": "rgba({status.success-light}, 1)",
83
- "$description": "Light background for success status surfaces."
83
+ "$description": "Use for background of inline block notifications and badges."
84
84
  },
85
85
  "background-warning": {
86
86
  "$value": "rgba({status.warning}, 1)",
87
- "$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."
88
88
  },
89
89
  "background-warning-light": {
90
90
  "$value": "rgba({status.warning-light}, 1)",
91
- "$description": "Light background for warning status surfaces."
91
+ "$description": "Use for background of inline block notifications and badges."
92
92
  },
93
93
  "background-error": {
94
94
  "$value": "rgba({status.error}, 1)",
95
- "$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."
96
96
  },
97
97
  "background-error-light": {
98
98
  "$value": "rgba({status.error-light}, 1)",
99
- "$description": "Light background for error status surfaces."
99
+ "$description": "Use for background of inline block notifications and badges."
100
100
  },
101
101
  "background-private": {
102
102
  "$value": "rgba({gray.100}, 1)",
103
- "$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."
104
104
  },
105
105
  "background-inverse": {
106
106
  "$value": "rgba({gray.100}, 1)",
@@ -108,31 +108,31 @@
108
108
  },
109
109
  "background-inverse-hover": {
110
110
  "$value": "rgba({gray.90}, 1)",
111
- "$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."
112
112
  },
113
113
  "background-disabled": {
114
114
  "$value": "rgba({gray.40}, 1)",
115
- "$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."
116
116
  },
117
117
  "line": {
118
118
  "$value": "rgba({gray.70}, 1)",
119
- "$description": "Default line/border color."
119
+ "$description": "Use with the Base style set."
120
120
  },
121
121
  "line-hover": {
122
122
  "$value": "rgba({gray.90}, 1)",
123
- "$description": "Line color, hover state."
123
+ "$description": "Use with the Base style set."
124
124
  },
125
125
  "line-active": {
126
126
  "$value": "rgba({gray.100}, 1)",
127
- "$description": "Line color, active state."
127
+ "$description": "Use with the Base style set."
128
128
  },
129
129
  "line-selected": {
130
130
  "$value": "rgba({gray.90}, 1)",
131
- "$description": "Line color, selected state."
131
+ "$description": "Use with the Base style set."
132
132
  },
133
133
  "line-disabled": {
134
134
  "$value": "rgba({gray.40}, 1)",
135
- "$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."
136
136
  },
137
137
  "line-secondary": {
138
138
  "$value": "rgba({gray.30}, 1)",
@@ -144,23 +144,23 @@
144
144
  },
145
145
  "line-divider": {
146
146
  "$value": "rgba({gray.20}, 1)",
147
- "$description": "Divider line color."
147
+ "$description": "Design calls this Light but we want a more semantic name in the code base."
148
148
  },
149
149
  "line-divider-inverse": {
150
150
  "$value": "rgba({gray.80}, 1)",
151
- "$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."
152
152
  },
153
153
  "line-emph": {
154
154
  "$value": "rgba({gray.20}, 1)",
155
- "$description": "Emphasized line color."
155
+ "$description": "Use with the Base with Emphasis style set."
156
156
  },
157
157
  "line-emph-hover": {
158
158
  "$value": "rgba({gray.90}, 1)",
159
- "$description": "Emphasized line color, hover state."
159
+ "$description": "Use with the Base with Emphasis style set."
160
160
  },
161
161
  "line-emph-active": {
162
162
  "$value": "rgba({black}, 1)",
163
- "$description": "Emphasized line color, active state."
163
+ "$description": "Use with the Base with Emphasis style set."
164
164
  },
165
165
  "line-inverse": {
166
166
  "$value": "rgba({white}, 1)",
@@ -185,7 +185,7 @@
185
185
  },
186
186
  "emph-selected": {
187
187
  "$value": "rgba({gray.100}, 1)",
188
- "$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."
189
189
  }
190
190
  },
191
191
  "input-icon-default": {
@@ -194,79 +194,79 @@
194
194
  },
195
195
  "text": {
196
196
  "$value": "rgba({gray.80}, 1)",
197
- "$description": "Default body text color."
197
+ "$description": "Use for the Base style set."
198
198
  },
199
199
  "text-hover": {
200
200
  "$value": "rgba({gray.90}, 1)",
201
- "$description": "Text color, hover state."
201
+ "$description": "Use for the Base style set."
202
202
  },
203
203
  "text-active": {
204
204
  "$value": "rgba({gray.90}, 1)",
205
- "$description": "Text color, active state."
205
+ "$description": "Use for the Base style set."
206
206
  },
207
207
  "text-selected": {
208
208
  "$value": "rgba({gray.100}, 1)",
209
- "$description": "Text color, selected state."
209
+ "$description": "Use for the Base style set."
210
210
  },
211
211
  "text-disabled": {
212
212
  "$value": "rgba({gray.40}, 1)",
213
- "$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."
214
214
  },
215
215
  "text-disabled-inverse": {
216
216
  "$value": "rgba({white}, 1)",
217
- "$description": "Disabled text color on inverse surfaces."
217
+ "$description": "Use when the background of the element uses --mrl-color-background-disabled."
218
218
  },
219
219
  "text-emph": {
220
220
  "$value": "rgba({gray.90}, 1)",
221
- "$description": "Emphasized text color."
221
+ "$description": "Use for the Base with Emphasis style set."
222
222
  },
223
223
  "text-emph-hover": {
224
224
  "$value": "rgba({gray.90}, 1)",
225
- "$description": "Emphasized text color, hover state."
225
+ "$description": "Use for the Base with Emphasis style set."
226
226
  },
227
227
  "text-emph-active": {
228
228
  "$value": "rgba({black}, 1)",
229
- "$description": "Emphasized text color, active state."
229
+ "$description": "Use for the Base with Emphasis style set."
230
230
  },
231
231
  "text-inverse": {
232
232
  "$value": "rgba({white}, 1)",
233
- "$description": "Text color on inverse surfaces."
233
+ "$description": "Use for Inverse or any saturated background color, such as statuses."
234
234
  },
235
235
  "text-inverse-secondary": {
236
236
  "$value": "rgba({gray.10}, 1)",
237
- "$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."
238
238
  },
239
239
  "text-inverse-hover": {
240
240
  "$value": "rgba({white}, 1)",
241
- "$description": "Inverse text color, hover state."
241
+ "$description": "Use for Inverse or any saturated background color, such as statuses."
242
242
  },
243
243
  "text-inverse-active": {
244
244
  "$value": "rgba({white}, 1)",
245
- "$description": "Inverse text color, active state."
245
+ "$description": "Use for Inverse or any saturated background color, such as statuses."
246
246
  },
247
247
  "text-inverse-selected": {
248
248
  "$value": "rgba({white}, 1)",
249
- "$description": "Inverse text color, selected state."
249
+ "$description": "Use for Inverse or any saturated background color, such as statuses."
250
250
  },
251
251
  "text-secondary": {
252
252
  "$value": "rgba({gray.70}, 1)",
253
- "$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."
254
254
  },
255
255
  "text-label": {
256
256
  "$value": "rgba({gray.100}, 1)",
257
- "$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."
258
258
  },
259
259
  "text-heading": {
260
260
  "$value": "rgba({gray.100}, 1)",
261
- "$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."
262
262
  },
263
263
  "text-success": {
264
264
  "$value": "rgba({status.success}, 1)",
265
- "$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."
266
266
  },
267
267
  "text-warning": {
268
268
  "$value": "rgba({gray.90}, 1)",
269
- "$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."
270
270
  },
271
271
  "text-warning-light": {
272
272
  "$value": "rgba({gray.80}, 1)",
@@ -274,11 +274,11 @@
274
274
  },
275
275
  "text-error": {
276
276
  "$value": "rgba({status.error}, 1)",
277
- "$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."
278
278
  },
279
279
  "text-info": {
280
280
  "$value": "rgba({status.info}, 1)",
281
- "$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."
282
282
  },
283
283
  "text-private": {
284
284
  "$value": "rgba({gray.100}, 1)",
@@ -286,23 +286,23 @@
286
286
  },
287
287
  "background-inverse-active": {
288
288
  "$value": "{color.accent}",
289
- "$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."
290
290
  },
291
291
  "background-inverse-selected": {
292
292
  "$value": "{color.accent}",
293
- "$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."
294
294
  },
295
295
  "line-emph-selected": {
296
296
  "$value": "{color.accent}",
297
- "$description": "Emphasized line color, selected state."
297
+ "$description": "Use with the Base with Emphasis style set."
298
298
  },
299
299
  "text-emph-selected": {
300
300
  "$value": "{color.accent}",
301
- "$description": "Emphasized text color, selected state."
301
+ "$description": "Use for the Base with Emphasis style set."
302
302
  },
303
303
  "background-page": {
304
304
  "$value": "rgb(243, 245, 246)",
305
- "$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."
306
306
  },
307
307
  "background-hover": {
308
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.26.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": {