blip-tokens 2.2.1 → 2.3.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/README.md +69 -2
- package/build/assets/v1/manifest.json +1 -1
- package/build/css/uai-colors.css +47 -39
- package/build/css/uai-dimensions.css +2 -0
- package/build/json/uai-dark.tokens.json +110 -44
- package/build/json/uai-light.tokens.json +83 -17
- package/build/json/uai-metadata.json +44 -14
- package/build/scss/extended-color.scss +1 -1
- package/build/scss/theme-dark.scss +1 -1
- package/build/scss/theme-high-contrast.scss +1 -1
- package/build/scss/theme-light.scss +1 -1
- package/build/scss/uai-colors-dark.scss +16 -14
- package/build/scss/uai-colors-light.scss +16 -14
- package/build/scss/uai-dimensions.scss +1 -0
- package/build/scss/variables.scss +1 -1
- package/build/tokens.d.ts +1 -1
- package/build/tokens.js +61 -25
- package/build/uai-icons/uai-icon.css +1 -1
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"action": {
|
|
4
4
|
"destructive": {
|
|
5
5
|
"$type": "color",
|
|
6
|
-
"$description": "Destructive
|
|
6
|
+
"$description": "Destructive action accent. Filled buttons must use action/destructive-foreground, never fixed/bright. Outline/text actions use this accent on standard surfaces.",
|
|
7
7
|
"$extensions": {
|
|
8
8
|
"com.blip.figma": {
|
|
9
9
|
"variableId": "VariableID:2:290",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
},
|
|
30
30
|
"destructive-foreground": {
|
|
31
31
|
"$type": "color",
|
|
32
|
-
"$description": "Text and icons on destructive
|
|
32
|
+
"$description": "Text and icons on action/destructive. Theme-aware: white in Light, dark neutral in Dark. Do not replace with fixed/bright.",
|
|
33
33
|
"$extensions": {
|
|
34
34
|
"com.blip.figma": {
|
|
35
35
|
"variableId": "VariableID:2:291",
|
|
@@ -126,6 +126,55 @@
|
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
128
|
},
|
|
129
|
+
"positive": {
|
|
130
|
+
"$type": "color",
|
|
131
|
+
"$description": "Filled positive button background. Always pair with action/positive-foreground, never fixed/bright. Feedback text and outline/text actions use feedback/success instead.",
|
|
132
|
+
"$extensions": {
|
|
133
|
+
"com.blip.figma": {
|
|
134
|
+
"variableId": "VariableID:202:2",
|
|
135
|
+
"collectionId": "VariableCollectionId:2:262",
|
|
136
|
+
"collection": "Colors",
|
|
137
|
+
"scopes": [
|
|
138
|
+
"FRAME_FILL",
|
|
139
|
+
"SHAPE_FILL",
|
|
140
|
+
"STROKE_COLOR"
|
|
141
|
+
]
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
"$value": {
|
|
145
|
+
"colorSpace": "srgb",
|
|
146
|
+
"components": [
|
|
147
|
+
0.015686,
|
|
148
|
+
0.470588,
|
|
149
|
+
0.341176
|
|
150
|
+
],
|
|
151
|
+
"alpha": 1
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
"positive-foreground": {
|
|
155
|
+
"$type": "color",
|
|
156
|
+
"$description": "Text and icons on action/positive. Theme-aware foreground for filled positive buttons.",
|
|
157
|
+
"$extensions": {
|
|
158
|
+
"com.blip.figma": {
|
|
159
|
+
"variableId": "VariableID:202:3",
|
|
160
|
+
"collectionId": "VariableCollectionId:2:262",
|
|
161
|
+
"collection": "Colors",
|
|
162
|
+
"scopes": [
|
|
163
|
+
"SHAPE_FILL",
|
|
164
|
+
"TEXT_FILL"
|
|
165
|
+
]
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
"$value": {
|
|
169
|
+
"colorSpace": "srgb",
|
|
170
|
+
"components": [
|
|
171
|
+
1,
|
|
172
|
+
1,
|
|
173
|
+
1
|
|
174
|
+
],
|
|
175
|
+
"alpha": 1
|
|
176
|
+
}
|
|
177
|
+
},
|
|
129
178
|
"primary": {
|
|
130
179
|
"default": {
|
|
131
180
|
"$type": "color",
|
|
@@ -229,7 +278,7 @@
|
|
|
229
278
|
"border": {
|
|
230
279
|
"default": {
|
|
231
280
|
"$type": "color",
|
|
232
|
-
"$description": "
|
|
281
|
+
"$description": "Decorative cards, dividers and separators. Not an accessible control boundary or sole state indicator; use border/input or border/ring.",
|
|
233
282
|
"$extensions": {
|
|
234
283
|
"com.blip.figma": {
|
|
235
284
|
"variableId": "VariableID:2:296",
|
|
@@ -252,7 +301,7 @@
|
|
|
252
301
|
},
|
|
253
302
|
"input": {
|
|
254
303
|
"$type": "color",
|
|
255
|
-
"$description": "
|
|
304
|
+
"$description": "Essential form control boundary. Dark mode meets 3:1 on background, paper, contrast, muted and outline pressed surfaces. Do not use border/default as the only control boundary.",
|
|
256
305
|
"$extensions": {
|
|
257
306
|
"com.blip.figma": {
|
|
258
307
|
"variableId": "VariableID:2:297",
|
|
@@ -275,7 +324,7 @@
|
|
|
275
324
|
},
|
|
276
325
|
"ring": {
|
|
277
326
|
"$type": "color",
|
|
278
|
-
"$description": "
|
|
327
|
+
"$description": "Solid neutral focus indicator, dark in Light and light in Dark. Use at full opacity. Inputs may add a separate outer halo with opacity/focus-ring, while keeping the solid focus border. Never reduce the opacity of the whole control.",
|
|
279
328
|
"$extensions": {
|
|
280
329
|
"com.blip.figma": {
|
|
281
330
|
"variableId": "VariableID:2:298",
|
|
@@ -289,9 +338,9 @@
|
|
|
289
338
|
"$value": {
|
|
290
339
|
"colorSpace": "srgb",
|
|
291
340
|
"components": [
|
|
292
|
-
0.
|
|
293
|
-
0.
|
|
294
|
-
0.
|
|
341
|
+
0.141176,
|
|
342
|
+
0.152941,
|
|
343
|
+
0.160784
|
|
295
344
|
],
|
|
296
345
|
"alpha": 1
|
|
297
346
|
}
|
|
@@ -350,7 +399,7 @@
|
|
|
350
399
|
},
|
|
351
400
|
"link": {
|
|
352
401
|
"$type": "color",
|
|
353
|
-
"$description": "Links and interactive navigation text.",
|
|
402
|
+
"$description": "Links and interactive navigation text on standard surfaces. Keep an underline or another non-color cue when embedded in body text.",
|
|
354
403
|
"$extensions": {
|
|
355
404
|
"com.blip.figma": {
|
|
356
405
|
"variableId": "VariableID:2:280",
|
|
@@ -375,7 +424,7 @@
|
|
|
375
424
|
},
|
|
376
425
|
"placeholder": {
|
|
377
426
|
"$type": "color",
|
|
378
|
-
"$description": "Input placeholder and hint text. Not for disabled content.",
|
|
427
|
+
"$description": "Input placeholder and hint text on standard surfaces. Not for disabled content. Dark mode meets 4.5:1 on background, paper, contrast, muted and outline pressed surfaces.",
|
|
379
428
|
"$extensions": {
|
|
380
429
|
"com.blip.figma": {
|
|
381
430
|
"variableId": "VariableID:2:281",
|
|
@@ -452,7 +501,7 @@
|
|
|
452
501
|
"feedback": {
|
|
453
502
|
"error": {
|
|
454
503
|
"$type": "color",
|
|
455
|
-
"$description": "Error.
|
|
504
|
+
"$description": "Error text and icons on standard surfaces or feedback/error-subtle. Keep a message or icon as a non-color cue. Filled destructive actions use action/destructive and its foreground.",
|
|
456
505
|
"$extensions": {
|
|
457
506
|
"com.blip.figma": {
|
|
458
507
|
"variableId": "VariableID:2:303",
|
|
@@ -502,7 +551,7 @@
|
|
|
502
551
|
},
|
|
503
552
|
"info": {
|
|
504
553
|
"$type": "color",
|
|
505
|
-
"$description": "Information
|
|
554
|
+
"$description": "Information text and icons on standard surfaces or feedback/info-subtle. Not a filled button background.",
|
|
506
555
|
"$extensions": {
|
|
507
556
|
"com.blip.figma": {
|
|
508
557
|
"variableId": "VariableID:2:300",
|
|
@@ -552,7 +601,7 @@
|
|
|
552
601
|
},
|
|
553
602
|
"success": {
|
|
554
603
|
"$type": "color",
|
|
555
|
-
"$description": "Success
|
|
604
|
+
"$description": "Success text and icons on standard surfaces or feedback/success-subtle. Use action/positive with action/positive-foreground for filled positive buttons.",
|
|
556
605
|
"$extensions": {
|
|
557
606
|
"com.blip.figma": {
|
|
558
607
|
"variableId": "VariableID:2:301",
|
|
@@ -602,7 +651,7 @@
|
|
|
602
651
|
},
|
|
603
652
|
"warning": {
|
|
604
653
|
"$type": "color",
|
|
605
|
-
"$description": "Warning
|
|
654
|
+
"$description": "Warning text and icons on standard surfaces or feedback/warning-subtle. Light-mode text still requires a contrast check. Not a filled button background.",
|
|
606
655
|
"$extensions": {
|
|
607
656
|
"com.blip.figma": {
|
|
608
657
|
"variableId": "VariableID:2:302",
|
|
@@ -654,7 +703,7 @@
|
|
|
654
703
|
"fixed": {
|
|
655
704
|
"blue": {
|
|
656
705
|
"$type": "color",
|
|
657
|
-
"$description": "Blip blue
|
|
706
|
+
"$description": "Fixed Blip blue. Pair with fixed/bright for text on it. Do not use it as the sole selected-state boundary on every surface.",
|
|
658
707
|
"$extensions": {
|
|
659
708
|
"com.blip.figma": {
|
|
660
709
|
"variableId": "VariableID:2:315",
|
|
@@ -680,7 +729,7 @@
|
|
|
680
729
|
},
|
|
681
730
|
"brand": {
|
|
682
731
|
"$type": "color",
|
|
683
|
-
"$description": "Product brand color.
|
|
732
|
+
"$description": "Product brand color, invariant across themes. Use fixed/dim for normal text on this background, not fixed/bright. Brand color alone is not an accessible selected-state boundary on every surface.",
|
|
684
733
|
"$extensions": {
|
|
685
734
|
"com.blip.figma": {
|
|
686
735
|
"variableId": "VariableID:2:316",
|
|
@@ -706,7 +755,7 @@
|
|
|
706
755
|
},
|
|
707
756
|
"bright": {
|
|
708
757
|
"$type": "color",
|
|
709
|
-
"$description": "
|
|
758
|
+
"$description": "Fixed white. Not a universal foreground: fails normal-text contrast on fixed/brand and bright feedback colors. Use on fixed/dim or fixed/blue; use fixed/dim on fixed/brand.",
|
|
710
759
|
"$extensions": {
|
|
711
760
|
"com.blip.figma": {
|
|
712
761
|
"variableId": "VariableID:2:314",
|
|
@@ -1035,6 +1084,23 @@
|
|
|
1035
1084
|
}
|
|
1036
1085
|
}
|
|
1037
1086
|
},
|
|
1087
|
+
"opacity": {
|
|
1088
|
+
"focus-ring": {
|
|
1089
|
+
"$type": "number",
|
|
1090
|
+
"$description": "Supplementary outer focus halo opacity: 30 percent in Figma, normalized to unitless 0.3 in web outputs. Apply only to the halo layer; retain a solid focus border or outline. Never apply to the full control or as the sole focus indication.",
|
|
1091
|
+
"$extensions": {
|
|
1092
|
+
"com.blip.figma": {
|
|
1093
|
+
"variableId": "VariableID:192:2",
|
|
1094
|
+
"collectionId": "VariableCollectionId:10:16",
|
|
1095
|
+
"collection": "Dimensions",
|
|
1096
|
+
"scopes": [
|
|
1097
|
+
"OPACITY"
|
|
1098
|
+
]
|
|
1099
|
+
}
|
|
1100
|
+
},
|
|
1101
|
+
"$value": 0.3
|
|
1102
|
+
}
|
|
1103
|
+
},
|
|
1038
1104
|
"radius": {
|
|
1039
1105
|
"2xl": {
|
|
1040
1106
|
"$type": "dimension",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"uai-action-destructive": {
|
|
3
|
-
"description": "Destructive
|
|
3
|
+
"description": "Destructive action accent. Filled buttons must use action/destructive-foreground, never fixed/bright. Outline/text actions use this accent on standard surfaces.",
|
|
4
4
|
"type": "color",
|
|
5
5
|
"collection": "Colors",
|
|
6
6
|
"scopes": [
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"figmaVariableId": "VariableID:2:290"
|
|
13
13
|
},
|
|
14
14
|
"uai-action-destructive-foreground": {
|
|
15
|
-
"description": "Text and icons on destructive
|
|
15
|
+
"description": "Text and icons on action/destructive. Theme-aware: white in Light, dark neutral in Dark. Do not replace with fixed/bright.",
|
|
16
16
|
"type": "color",
|
|
17
17
|
"collection": "Colors",
|
|
18
18
|
"scopes": [
|
|
@@ -52,6 +52,27 @@
|
|
|
52
52
|
],
|
|
53
53
|
"figmaVariableId": "VariableID:2:289"
|
|
54
54
|
},
|
|
55
|
+
"uai-action-positive": {
|
|
56
|
+
"description": "Filled positive button background. Always pair with action/positive-foreground, never fixed/bright. Feedback text and outline/text actions use feedback/success instead.",
|
|
57
|
+
"type": "color",
|
|
58
|
+
"collection": "Colors",
|
|
59
|
+
"scopes": [
|
|
60
|
+
"FRAME_FILL",
|
|
61
|
+
"SHAPE_FILL",
|
|
62
|
+
"STROKE_COLOR"
|
|
63
|
+
],
|
|
64
|
+
"figmaVariableId": "VariableID:202:2"
|
|
65
|
+
},
|
|
66
|
+
"uai-action-positive-foreground": {
|
|
67
|
+
"description": "Text and icons on action/positive. Theme-aware foreground for filled positive buttons.",
|
|
68
|
+
"type": "color",
|
|
69
|
+
"collection": "Colors",
|
|
70
|
+
"scopes": [
|
|
71
|
+
"SHAPE_FILL",
|
|
72
|
+
"TEXT_FILL"
|
|
73
|
+
],
|
|
74
|
+
"figmaVariableId": "VariableID:202:3"
|
|
75
|
+
},
|
|
55
76
|
"uai-action-primary-default": {
|
|
56
77
|
"description": "Primary button background — default state.",
|
|
57
78
|
"type": "color",
|
|
@@ -94,7 +115,7 @@
|
|
|
94
115
|
"figmaVariableId": "VariableID:2:285"
|
|
95
116
|
},
|
|
96
117
|
"uai-border-default": {
|
|
97
|
-
"description": "
|
|
118
|
+
"description": "Decorative cards, dividers and separators. Not an accessible control boundary or sole state indicator; use border/input or border/ring.",
|
|
98
119
|
"type": "color",
|
|
99
120
|
"collection": "Colors",
|
|
100
121
|
"scopes": [
|
|
@@ -103,7 +124,7 @@
|
|
|
103
124
|
"figmaVariableId": "VariableID:2:296"
|
|
104
125
|
},
|
|
105
126
|
"uai-border-input": {
|
|
106
|
-
"description": "
|
|
127
|
+
"description": "Essential form control boundary. Dark mode meets 3:1 on background, paper, contrast, muted and outline pressed surfaces. Do not use border/default as the only control boundary.",
|
|
107
128
|
"type": "color",
|
|
108
129
|
"collection": "Colors",
|
|
109
130
|
"scopes": [
|
|
@@ -112,7 +133,7 @@
|
|
|
112
133
|
"figmaVariableId": "VariableID:2:297"
|
|
113
134
|
},
|
|
114
135
|
"uai-border-ring": {
|
|
115
|
-
"description": "
|
|
136
|
+
"description": "Solid neutral focus indicator, dark in Light and light in Dark. Use at full opacity. Inputs may add a separate outer halo with opacity/focus-ring, while keeping the solid focus border. Never reduce the opacity of the whole control.",
|
|
116
137
|
"type": "color",
|
|
117
138
|
"collection": "Colors",
|
|
118
139
|
"scopes": [
|
|
@@ -143,7 +164,7 @@
|
|
|
143
164
|
"figmaVariableId": "VariableID:144:636"
|
|
144
165
|
},
|
|
145
166
|
"uai-content-link": {
|
|
146
|
-
"description": "Links and interactive navigation text.",
|
|
167
|
+
"description": "Links and interactive navigation text on standard surfaces. Keep an underline or another non-color cue when embedded in body text.",
|
|
147
168
|
"type": "color",
|
|
148
169
|
"collection": "Colors",
|
|
149
170
|
"scopes": [
|
|
@@ -154,7 +175,7 @@
|
|
|
154
175
|
"figmaVariableId": "VariableID:2:280"
|
|
155
176
|
},
|
|
156
177
|
"uai-content-placeholder": {
|
|
157
|
-
"description": "Input placeholder and hint text. Not for disabled content.",
|
|
178
|
+
"description": "Input placeholder and hint text on standard surfaces. Not for disabled content. Dark mode meets 4.5:1 on background, paper, contrast, muted and outline pressed surfaces.",
|
|
158
179
|
"type": "color",
|
|
159
180
|
"collection": "Colors",
|
|
160
181
|
"scopes": [
|
|
@@ -187,7 +208,7 @@
|
|
|
187
208
|
"figmaVariableId": "VariableID:2:278"
|
|
188
209
|
},
|
|
189
210
|
"uai-feedback-error": {
|
|
190
|
-
"description": "Error.
|
|
211
|
+
"description": "Error text and icons on standard surfaces or feedback/error-subtle. Keep a message or icon as a non-color cue. Filled destructive actions use action/destructive and its foreground.",
|
|
191
212
|
"type": "color",
|
|
192
213
|
"collection": "Colors",
|
|
193
214
|
"scopes": [
|
|
@@ -209,7 +230,7 @@
|
|
|
209
230
|
"figmaVariableId": "VariableID:2:308"
|
|
210
231
|
},
|
|
211
232
|
"uai-feedback-info": {
|
|
212
|
-
"description": "Information
|
|
233
|
+
"description": "Information text and icons on standard surfaces or feedback/info-subtle. Not a filled button background.",
|
|
213
234
|
"type": "color",
|
|
214
235
|
"collection": "Colors",
|
|
215
236
|
"scopes": [
|
|
@@ -231,7 +252,7 @@
|
|
|
231
252
|
"figmaVariableId": "VariableID:2:305"
|
|
232
253
|
},
|
|
233
254
|
"uai-feedback-success": {
|
|
234
|
-
"description": "Success
|
|
255
|
+
"description": "Success text and icons on standard surfaces or feedback/success-subtle. Use action/positive with action/positive-foreground for filled positive buttons.",
|
|
235
256
|
"type": "color",
|
|
236
257
|
"collection": "Colors",
|
|
237
258
|
"scopes": [
|
|
@@ -253,7 +274,7 @@
|
|
|
253
274
|
"figmaVariableId": "VariableID:2:306"
|
|
254
275
|
},
|
|
255
276
|
"uai-feedback-warning": {
|
|
256
|
-
"description": "Warning
|
|
277
|
+
"description": "Warning text and icons on standard surfaces or feedback/warning-subtle. Light-mode text still requires a contrast check. Not a filled button background.",
|
|
257
278
|
"type": "color",
|
|
258
279
|
"collection": "Colors",
|
|
259
280
|
"scopes": [
|
|
@@ -275,7 +296,7 @@
|
|
|
275
296
|
"figmaVariableId": "VariableID:2:307"
|
|
276
297
|
},
|
|
277
298
|
"uai-fixed-blue": {
|
|
278
|
-
"description": "Blip blue
|
|
299
|
+
"description": "Fixed Blip blue. Pair with fixed/bright for text on it. Do not use it as the sole selected-state boundary on every surface.",
|
|
279
300
|
"type": "color",
|
|
280
301
|
"collection": "Colors",
|
|
281
302
|
"scopes": [
|
|
@@ -287,7 +308,7 @@
|
|
|
287
308
|
"figmaVariableId": "VariableID:2:315"
|
|
288
309
|
},
|
|
289
310
|
"uai-fixed-brand": {
|
|
290
|
-
"description": "Product brand color.
|
|
311
|
+
"description": "Product brand color, invariant across themes. Use fixed/dim for normal text on this background, not fixed/bright. Brand color alone is not an accessible selected-state boundary on every surface.",
|
|
291
312
|
"type": "color",
|
|
292
313
|
"collection": "Colors",
|
|
293
314
|
"scopes": [
|
|
@@ -299,7 +320,7 @@
|
|
|
299
320
|
"figmaVariableId": "VariableID:2:316"
|
|
300
321
|
},
|
|
301
322
|
"uai-fixed-bright": {
|
|
302
|
-
"description": "
|
|
323
|
+
"description": "Fixed white. Not a universal foreground: fails normal-text contrast on fixed/brand and bright feedback colors. Use on fixed/dim or fixed/blue; use fixed/dim on fixed/brand.",
|
|
303
324
|
"type": "color",
|
|
304
325
|
"collection": "Colors",
|
|
305
326
|
"scopes": [
|
|
@@ -439,6 +460,15 @@
|
|
|
439
460
|
],
|
|
440
461
|
"figmaVariableId": "VariableID:10:53"
|
|
441
462
|
},
|
|
463
|
+
"uai-opacity-focus-ring": {
|
|
464
|
+
"description": "Supplementary outer focus halo opacity: 30 percent in Figma, normalized to unitless 0.3 in web outputs. Apply only to the halo layer; retain a solid focus border or outline. Never apply to the full control or as the sole focus indication.",
|
|
465
|
+
"type": "number",
|
|
466
|
+
"collection": "Dimensions",
|
|
467
|
+
"scopes": [
|
|
468
|
+
"OPACITY"
|
|
469
|
+
],
|
|
470
|
+
"figmaVariableId": "VariableID:192:2"
|
|
471
|
+
},
|
|
442
472
|
"uai-radius-2xl": {
|
|
443
473
|
"description": "Border radius. 24px.",
|
|
444
474
|
"type": "dimension",
|
|
@@ -1,32 +1,34 @@
|
|
|
1
|
-
$uai-action-destructive: #
|
|
2
|
-
$uai-action-destructive-foreground: #
|
|
1
|
+
$uai-action-destructive: #fca5a5; // Destructive action accent. Filled buttons must use action/destructive-foreground, never fixed/bright. Outline/text actions use this accent on standard surfaces.
|
|
2
|
+
$uai-action-destructive-foreground: #181a1b; // Text and icons on action/destructive. Theme-aware: white in Light, dark neutral in Dark. Do not replace with fixed/bright.
|
|
3
3
|
$uai-action-outline-default: #242729; // Outline and text button background — default state.
|
|
4
4
|
$uai-action-outline-hover: #2f3437; // Outline and text button background — hover state. Also list item hover.
|
|
5
5
|
$uai-action-outline-pressed: #3b4144; // Outline and text button background — pressed state. Also selected list item.
|
|
6
|
+
$uai-action-positive: #35de90; // Filled positive button background. Always pair with action/positive-foreground, never fixed/bright. Feedback text and outline/text actions use feedback/success instead.
|
|
7
|
+
$uai-action-positive-foreground: #181a1b; // Text and icons on action/positive. Theme-aware foreground for filled positive buttons.
|
|
6
8
|
$uai-action-primary-default: #e4e6e7; // Primary button background — default state.
|
|
7
9
|
$uai-action-primary-foreground: #242729; // Text and icons on primary buttons.
|
|
8
10
|
$uai-action-primary-hover: #d6d9db; // Primary button background — hover state.
|
|
9
11
|
$uai-action-primary-pressed: #c8cccf; // Primary button background — pressed state.
|
|
10
|
-
$uai-border-default: #2f3437; //
|
|
11
|
-
$uai-border-input: #
|
|
12
|
-
$uai-border-ring: #
|
|
12
|
+
$uai-border-default: #2f3437; // Decorative cards, dividers and separators. Not an accessible control boundary or sole state indicator; use border/input or border/ring.
|
|
13
|
+
$uai-border-input: #848e94; // Essential form control boundary. Dark mode meets 3:1 on background, paper, contrast, muted and outline pressed surfaces. Do not use border/default as the only control boundary.
|
|
14
|
+
$uai-border-ring: #ffffff; // Solid neutral focus indicator, dark in Light and light in Dark. Use at full opacity. Inputs may add a separate outer halo with opacity/focus-ring, while keeping the solid focus border. Never reduce the opacity of the whole control.
|
|
13
15
|
$uai-content-disabled: #768188; // Disabled text and icons.
|
|
14
16
|
$uai-content-inverse: #181a1b; // Text and icons on inverse or dark surfaces, such as surface/inverse and action/primary.
|
|
15
|
-
$uai-content-link: #
|
|
16
|
-
$uai-content-placeholder: #
|
|
17
|
+
$uai-content-link: #93c5fd; // Links and interactive navigation text on standard surfaces. Keep an underline or another non-color cue when embedded in body text.
|
|
18
|
+
$uai-content-placeholder: #adb4b8; // Input placeholder and hint text on standard surfaces. Not for disabled content. Dark mode meets 4.5:1 on background, paper, contrast, muted and outline pressed surfaces.
|
|
17
19
|
$uai-content-primary: #ffffff; // Primary text and icons. Headings, body text, form labels.
|
|
18
20
|
$uai-content-secondary: #adb4b8; // Secondary text and icons. Descriptions, supporting text, text on muted surfaces.
|
|
19
|
-
$uai-feedback-error: #
|
|
21
|
+
$uai-feedback-error: #fca5a5; // Error text and icons on standard surfaces or feedback/error-subtle. Keep a message or icon as a non-color cue. Filled destructive actions use action/destructive and its foreground.
|
|
20
22
|
$uai-feedback-error-subtle: #450a0a; // Error alert background. Pair with feedback/error for the icon.
|
|
21
|
-
$uai-feedback-info: #
|
|
23
|
+
$uai-feedback-info: #93c5fd; // Information text and icons on standard surfaces or feedback/info-subtle. Not a filled button background.
|
|
22
24
|
$uai-feedback-info-subtle: #072563; // Info alert background. Pair with feedback/info for the icon.
|
|
23
|
-
$uai-feedback-success: #
|
|
25
|
+
$uai-feedback-success: #35de90; // Success text and icons on standard surfaces or feedback/success-subtle. Use action/positive with action/positive-foreground for filled positive buttons.
|
|
24
26
|
$uai-feedback-success-subtle: #022c22; // Success alert background. Pair with feedback/success for the icon.
|
|
25
|
-
$uai-feedback-warning: #
|
|
27
|
+
$uai-feedback-warning: #fb923c; // Warning text and icons on standard surfaces or feedback/warning-subtle. Light-mode text still requires a contrast check. Not a filled button background.
|
|
26
28
|
$uai-feedback-warning-subtle: #431407; // Warning alert background. Pair with feedback/warning for the icon.
|
|
27
|
-
$uai-fixed-blue: #1e6bf1; // Blip blue
|
|
28
|
-
$uai-fixed-brand: #0099ff; // Product brand color.
|
|
29
|
-
$uai-fixed-bright: #ffffff; //
|
|
29
|
+
$uai-fixed-blue: #1e6bf1; // Fixed Blip blue. Pair with fixed/bright for text on it. Do not use it as the sole selected-state boundary on every surface.
|
|
30
|
+
$uai-fixed-brand: #0099ff; // Product brand color, invariant across themes. Use fixed/dim for normal text on this background, not fixed/bright. Brand color alone is not an accessible selected-state boundary on every surface.
|
|
31
|
+
$uai-fixed-bright: #ffffff; // Fixed white. Not a universal foreground: fails normal-text contrast on fixed/brand and bright feedback colors. Use on fixed/dim or fixed/blue; use fixed/dim on fixed/brand.
|
|
30
32
|
$uai-fixed-dim: #242729; // Dark color that does not change with the theme.
|
|
31
33
|
$uai-overlay-default: rgba(0, 0, 0, 0.8); // Backdrop behind modals, drawers and dialogs.
|
|
32
34
|
$uai-overlay-hover: rgba(255, 255, 255, 0.08); // Translucent layer for hover on any interactive surface.
|
|
@@ -1,32 +1,34 @@
|
|
|
1
|
-
$uai-action-destructive: #cf0022; // Destructive
|
|
2
|
-
$uai-action-destructive-foreground: #ffffff; // Text and icons on destructive
|
|
1
|
+
$uai-action-destructive: #cf0022; // Destructive action accent. Filled buttons must use action/destructive-foreground, never fixed/bright. Outline/text actions use this accent on standard surfaces.
|
|
2
|
+
$uai-action-destructive-foreground: #ffffff; // Text and icons on action/destructive. Theme-aware: white in Light, dark neutral in Dark. Do not replace with fixed/bright.
|
|
3
3
|
$uai-action-outline-default: #ffffff; // Outline and text button background — default state.
|
|
4
4
|
$uai-action-outline-hover: #f2f3f3; // Outline and text button background — hover state. Also list item hover.
|
|
5
5
|
$uai-action-outline-pressed: #e4e6e7; // Outline and text button background — pressed state. Also selected list item.
|
|
6
|
+
$uai-action-positive: #047857; // Filled positive button background. Always pair with action/positive-foreground, never fixed/bright. Feedback text and outline/text actions use feedback/success instead.
|
|
7
|
+
$uai-action-positive-foreground: #ffffff; // Text and icons on action/positive. Theme-aware foreground for filled positive buttons.
|
|
6
8
|
$uai-action-primary-default: #242729; // Primary button background — default state.
|
|
7
9
|
$uai-action-primary-foreground: #ffffff; // Text and icons on primary buttons.
|
|
8
10
|
$uai-action-primary-hover: #181a1b; // Primary button background — hover state.
|
|
9
11
|
$uai-action-primary-pressed: #0a0a0a; // Primary button background — pressed state.
|
|
10
|
-
$uai-border-default: #e4e6e7; //
|
|
11
|
-
$uai-border-input: #adb4b8; //
|
|
12
|
-
$uai-border-ring: #
|
|
12
|
+
$uai-border-default: #e4e6e7; // Decorative cards, dividers and separators. Not an accessible control boundary or sole state indicator; use border/input or border/ring.
|
|
13
|
+
$uai-border-input: #adb4b8; // Essential form control boundary. Dark mode meets 3:1 on background, paper, contrast, muted and outline pressed surfaces. Do not use border/default as the only control boundary.
|
|
14
|
+
$uai-border-ring: #242729; // Solid neutral focus indicator, dark in Light and light in Dark. Use at full opacity. Inputs may add a separate outer halo with opacity/focus-ring, while keeping the solid focus border. Never reduce the opacity of the whole control.
|
|
13
15
|
$uai-content-disabled: #848e94; // Disabled text and icons.
|
|
14
16
|
$uai-content-inverse: #ffffff; // Text and icons on inverse or dark surfaces, such as surface/inverse and action/primary.
|
|
15
|
-
$uai-content-link: #0073e5; // Links and interactive navigation text.
|
|
16
|
-
$uai-content-placeholder: #adb4b8; // Input placeholder and hint text. Not for disabled content.
|
|
17
|
+
$uai-content-link: #0073e5; // Links and interactive navigation text on standard surfaces. Keep an underline or another non-color cue when embedded in body text.
|
|
18
|
+
$uai-content-placeholder: #adb4b8; // Input placeholder and hint text on standard surfaces. Not for disabled content. Dark mode meets 4.5:1 on background, paper, contrast, muted and outline pressed surfaces.
|
|
17
19
|
$uai-content-primary: #242729; // Primary text and icons. Headings, body text, form labels.
|
|
18
20
|
$uai-content-secondary: #5f676d; // Secondary text and icons. Descriptions, supporting text, text on muted surfaces.
|
|
19
|
-
$uai-feedback-error: #cf0022; // Error.
|
|
21
|
+
$uai-feedback-error: #cf0022; // Error text and icons on standard surfaces or feedback/error-subtle. Keep a message or icon as a non-color cue. Filled destructive actions use action/destructive and its foreground.
|
|
20
22
|
$uai-feedback-error-subtle: #fef2f2; // Error alert background. Pair with feedback/error for the icon.
|
|
21
|
-
$uai-feedback-info: #0073e5; // Information
|
|
23
|
+
$uai-feedback-info: #0073e5; // Information text and icons on standard surfaces or feedback/info-subtle. Not a filled button background.
|
|
22
24
|
$uai-feedback-info-subtle: #eff6ff; // Info alert background. Pair with feedback/info for the icon.
|
|
23
|
-
$uai-feedback-success: #3da329; // Success
|
|
25
|
+
$uai-feedback-success: #3da329; // Success text and icons on standard surfaces or feedback/success-subtle. Use action/positive with action/positive-foreground for filled positive buttons.
|
|
24
26
|
$uai-feedback-success-subtle: #ecfdf5; // Success alert background. Pair with feedback/success for the icon.
|
|
25
|
-
$uai-feedback-warning: #ff8000; // Warning
|
|
27
|
+
$uai-feedback-warning: #ff8000; // Warning text and icons on standard surfaces or feedback/warning-subtle. Light-mode text still requires a contrast check. Not a filled button background.
|
|
26
28
|
$uai-feedback-warning-subtle: #fff7ed; // Warning alert background. Pair with feedback/warning for the icon.
|
|
27
|
-
$uai-fixed-blue: #1e6bf1; // Blip blue
|
|
28
|
-
$uai-fixed-brand: #0099ff; // Product brand color.
|
|
29
|
-
$uai-fixed-bright: #ffffff; //
|
|
29
|
+
$uai-fixed-blue: #1e6bf1; // Fixed Blip blue. Pair with fixed/bright for text on it. Do not use it as the sole selected-state boundary on every surface.
|
|
30
|
+
$uai-fixed-brand: #0099ff; // Product brand color, invariant across themes. Use fixed/dim for normal text on this background, not fixed/bright. Brand color alone is not an accessible selected-state boundary on every surface.
|
|
31
|
+
$uai-fixed-bright: #ffffff; // Fixed white. Not a universal foreground: fails normal-text contrast on fixed/brand and bright feedback colors. Use on fixed/dim or fixed/blue; use fixed/dim on fixed/brand.
|
|
30
32
|
$uai-fixed-dim: #242729; // Dark color that does not change with the theme.
|
|
31
33
|
$uai-overlay-default: rgba(0, 0, 0, 0.72); // Backdrop behind modals, drawers and dialogs.
|
|
32
34
|
$uai-overlay-hover: rgba(0, 0, 0, 0.08); // Translucent layer for hover on any interactive surface.
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
$uai-border-width-default: 1px; // Border width. 1px. Standard borders.
|
|
2
2
|
$uai-border-width-none: 0px; // Border width. 0px.
|
|
3
3
|
$uai-border-width-thick: 2px; // Border width. 2px. Focus rings and emphasis borders.
|
|
4
|
+
$uai-opacity-focus-ring: 0.3; // Supplementary outer focus halo opacity: 30 percent in Figma, normalized to unitless 0.3 in web outputs. Apply only to the halo layer; retain a solid focus border or outline. Never apply to the full control or as the sole focus indication.
|
|
4
5
|
$uai-radius-2xl: 1.5rem; // Border radius. 24px.
|
|
5
6
|
$uai-radius-full: 624.9375rem; // Border radius. Full round.
|
|
6
7
|
$uai-radius-lg: 0.75rem; // Border radius. 12px.
|
package/build/tokens.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type TokenName = "uai-action-destructive" | "uai-action-destructive-foreground" | "uai-action-outline-default" | "uai-action-outline-hover" | "uai-action-outline-pressed" | "uai-action-primary-default" | "uai-action-primary-foreground" | "uai-action-primary-hover" | "uai-action-primary-pressed" | "uai-border-default" | "uai-border-input" | "uai-border-ring" | "uai-content-disabled" | "uai-content-inverse" | "uai-content-link" | "uai-content-placeholder" | "uai-content-primary" | "uai-content-secondary" | "uai-feedback-error" | "uai-feedback-error-subtle" | "uai-feedback-info" | "uai-feedback-info-subtle" | "uai-feedback-success" | "uai-feedback-success-subtle" | "uai-feedback-warning" | "uai-feedback-warning-subtle" | "uai-fixed-blue" | "uai-fixed-brand" | "uai-fixed-bright" | "uai-fixed-dim" | "uai-overlay-default" | "uai-overlay-hover" | "uai-overlay-insight" | "uai-overlay-pressed" | "uai-surface-background" | "uai-surface-contrast" | "uai-surface-inverse" | "uai-surface-muted" | "uai-surface-paper" | "uai-border-width-default" | "uai-border-width-none" | "uai-border-width-thick" | "uai-radius-2xl" | "uai-radius-full" | "uai-radius-lg" | "uai-radius-md" | "uai-radius-none" | "uai-radius-sm" | "uai-radius-xl" | "uai-radius-xs" | "uai-sizing-2xl" | "uai-sizing-3xl" | "uai-sizing-4xl" | "uai-sizing-lg" | "uai-sizing-md" | "uai-sizing-sm" | "uai-sizing-xl" | "uai-sizing-xs" | "uai-spacing-2xl" | "uai-spacing-2xs" | "uai-spacing-3xl" | "uai-spacing-3xs" | "uai-spacing-4xl" | "uai-spacing-5xl" | "uai-spacing-6xl" | "uai-spacing-7xl" | "uai-spacing-8xl" | "uai-spacing-9xl" | "uai-spacing-lg" | "uai-spacing-md" | "uai-spacing-none" | "uai-spacing-sm" | "uai-spacing-xl" | "uai-spacing-xs" | "uai-body-base-font-size" | "uai-body-base-line-height" | "uai-caption-font-size" | "uai-caption-line-height" | "uai-display-font-size" | "uai-display-line-height" | "uai-font-family-display" | "uai-font-family-sans" | "uai-font-weight-bold" | "uai-font-weight-extrabold" | "uai-font-weight-medium" | "uai-font-weight-regular" | "uai-font-weight-semibold" | "uai-heading-lg-font-size" | "uai-heading-lg-line-height" | "uai-heading-md-font-size" | "uai-heading-md-line-height" | "uai-heading-xl-font-size" | "uai-heading-xl-line-height" | "uai-letter-spacing-expanded" | "uai-letter-spacing-normal" | "uai-overline-font-size" | "uai-overline-line-height" | "uai-title-font-size" | "uai-title-line-height";
|
|
1
|
+
export type TokenName = "uai-action-destructive" | "uai-action-destructive-foreground" | "uai-action-outline-default" | "uai-action-outline-hover" | "uai-action-outline-pressed" | "uai-action-positive" | "uai-action-positive-foreground" | "uai-action-primary-default" | "uai-action-primary-foreground" | "uai-action-primary-hover" | "uai-action-primary-pressed" | "uai-border-default" | "uai-border-input" | "uai-border-ring" | "uai-content-disabled" | "uai-content-inverse" | "uai-content-link" | "uai-content-placeholder" | "uai-content-primary" | "uai-content-secondary" | "uai-feedback-error" | "uai-feedback-error-subtle" | "uai-feedback-info" | "uai-feedback-info-subtle" | "uai-feedback-success" | "uai-feedback-success-subtle" | "uai-feedback-warning" | "uai-feedback-warning-subtle" | "uai-fixed-blue" | "uai-fixed-brand" | "uai-fixed-bright" | "uai-fixed-dim" | "uai-overlay-default" | "uai-overlay-hover" | "uai-overlay-insight" | "uai-overlay-pressed" | "uai-surface-background" | "uai-surface-contrast" | "uai-surface-inverse" | "uai-surface-muted" | "uai-surface-paper" | "uai-border-width-default" | "uai-border-width-none" | "uai-border-width-thick" | "uai-opacity-focus-ring" | "uai-radius-2xl" | "uai-radius-full" | "uai-radius-lg" | "uai-radius-md" | "uai-radius-none" | "uai-radius-sm" | "uai-radius-xl" | "uai-radius-xs" | "uai-sizing-2xl" | "uai-sizing-3xl" | "uai-sizing-4xl" | "uai-sizing-lg" | "uai-sizing-md" | "uai-sizing-sm" | "uai-sizing-xl" | "uai-sizing-xs" | "uai-spacing-2xl" | "uai-spacing-2xs" | "uai-spacing-3xl" | "uai-spacing-3xs" | "uai-spacing-4xl" | "uai-spacing-5xl" | "uai-spacing-6xl" | "uai-spacing-7xl" | "uai-spacing-8xl" | "uai-spacing-9xl" | "uai-spacing-lg" | "uai-spacing-md" | "uai-spacing-none" | "uai-spacing-sm" | "uai-spacing-xl" | "uai-spacing-xs" | "uai-body-base-font-size" | "uai-body-base-line-height" | "uai-caption-font-size" | "uai-caption-line-height" | "uai-display-font-size" | "uai-display-line-height" | "uai-font-family-display" | "uai-font-family-sans" | "uai-font-weight-bold" | "uai-font-weight-extrabold" | "uai-font-weight-medium" | "uai-font-weight-regular" | "uai-font-weight-semibold" | "uai-heading-lg-font-size" | "uai-heading-lg-line-height" | "uai-heading-md-font-size" | "uai-heading-md-line-height" | "uai-heading-xl-font-size" | "uai-heading-xl-line-height" | "uai-letter-spacing-expanded" | "uai-letter-spacing-normal" | "uai-overline-font-size" | "uai-overline-line-height" | "uai-title-font-size" | "uai-title-line-height";
|
|
2
2
|
export type ShadowName = "uai-elevation-1" | "uai-elevation-3" | "uai-elevation-dialog" | "uai-elevation-2" | "uai-elevation-tab-active" | "uai-elevation-sidebar-right" | "uai-elevation-floating-control" | "uai-elevation-sidebar-left";
|
|
3
3
|
export type TextStyleName = "uai-typography-overline-medium" | "uai-typography-caption-regular" | "uai-typography-heading-lg-semibold" | "uai-typography-title-semibold" | "uai-typography-display-semibold" | "uai-typography-title-medium" | "uai-typography-overline-regular" | "uai-typography-overline-semibold" | "uai-typography-heading-xl-semibold" | "uai-typography-heading-md-regular" | "uai-typography-body-base-bold" | "uai-typography-heading-lg-regular" | "uai-typography-display-bold" | "uai-typography-title-regular" | "uai-typography-heading-lg-bold" | "uai-typography-heading-md-bold" | "uai-typography-caption-bold" | "uai-typography-display-regular" | "uai-typography-heading-md-semibold" | "uai-typography-caption-medium" | "uai-typography-caption-semibold" | "uai-typography-heading-xl-regular" | "uai-typography-body-base-medium" | "uai-typography-body-base-regular" | "uai-typography-body-base-regular-space" | "uai-typography-title-bold" | "uai-typography-heading-xl-bold" | "uai-typography-body-base-semibold";
|
|
4
4
|
export type ThemeTokens = Readonly<Record<TokenName, string | number>>;
|