blip-tokens 2.2.0 → 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 +92 -6
- package/build/assets/v1/manifest.json +19 -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
|
@@ -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>>;
|
package/build/tokens.js
CHANGED
|
@@ -4,13 +4,15 @@ export const light = {
|
|
|
4
4
|
"uai-action-outline-default": "#ffffff",
|
|
5
5
|
"uai-action-outline-hover": "#f2f3f3",
|
|
6
6
|
"uai-action-outline-pressed": "#e4e6e7",
|
|
7
|
+
"uai-action-positive": "#047857",
|
|
8
|
+
"uai-action-positive-foreground": "#ffffff",
|
|
7
9
|
"uai-action-primary-default": "#242729",
|
|
8
10
|
"uai-action-primary-foreground": "#ffffff",
|
|
9
11
|
"uai-action-primary-hover": "#181a1b",
|
|
10
12
|
"uai-action-primary-pressed": "#0a0a0a",
|
|
11
13
|
"uai-border-default": "#e4e6e7",
|
|
12
14
|
"uai-border-input": "#adb4b8",
|
|
13
|
-
"uai-border-ring": "#
|
|
15
|
+
"uai-border-ring": "#242729",
|
|
14
16
|
"uai-content-disabled": "#848e94",
|
|
15
17
|
"uai-content-inverse": "#ffffff",
|
|
16
18
|
"uai-content-link": "#0073e5",
|
|
@@ -41,6 +43,7 @@ export const light = {
|
|
|
41
43
|
"uai-border-width-default": "1px",
|
|
42
44
|
"uai-border-width-none": "0px",
|
|
43
45
|
"uai-border-width-thick": "2px",
|
|
46
|
+
"uai-opacity-focus-ring": 0.3,
|
|
44
47
|
"uai-radius-2xl": "1.5rem",
|
|
45
48
|
"uai-radius-full": "624.9375rem",
|
|
46
49
|
"uai-radius-lg": "0.75rem",
|
|
@@ -100,31 +103,33 @@ export const light = {
|
|
|
100
103
|
"uai-title-line-height": "1.5rem"
|
|
101
104
|
};
|
|
102
105
|
export const dark = {
|
|
103
|
-
"uai-action-destructive": "#
|
|
104
|
-
"uai-action-destructive-foreground": "#
|
|
106
|
+
"uai-action-destructive": "#fca5a5",
|
|
107
|
+
"uai-action-destructive-foreground": "#181a1b",
|
|
105
108
|
"uai-action-outline-default": "#242729",
|
|
106
109
|
"uai-action-outline-hover": "#2f3437",
|
|
107
110
|
"uai-action-outline-pressed": "#3b4144",
|
|
111
|
+
"uai-action-positive": "#35de90",
|
|
112
|
+
"uai-action-positive-foreground": "#181a1b",
|
|
108
113
|
"uai-action-primary-default": "#e4e6e7",
|
|
109
114
|
"uai-action-primary-foreground": "#242729",
|
|
110
115
|
"uai-action-primary-hover": "#d6d9db",
|
|
111
116
|
"uai-action-primary-pressed": "#c8cccf",
|
|
112
117
|
"uai-border-default": "#2f3437",
|
|
113
|
-
"uai-border-input": "#
|
|
114
|
-
"uai-border-ring": "#
|
|
118
|
+
"uai-border-input": "#848e94",
|
|
119
|
+
"uai-border-ring": "#ffffff",
|
|
115
120
|
"uai-content-disabled": "#768188",
|
|
116
121
|
"uai-content-inverse": "#181a1b",
|
|
117
|
-
"uai-content-link": "#
|
|
118
|
-
"uai-content-placeholder": "#
|
|
122
|
+
"uai-content-link": "#93c5fd",
|
|
123
|
+
"uai-content-placeholder": "#adb4b8",
|
|
119
124
|
"uai-content-primary": "#ffffff",
|
|
120
125
|
"uai-content-secondary": "#adb4b8",
|
|
121
|
-
"uai-feedback-error": "#
|
|
126
|
+
"uai-feedback-error": "#fca5a5",
|
|
122
127
|
"uai-feedback-error-subtle": "#450a0a",
|
|
123
|
-
"uai-feedback-info": "#
|
|
128
|
+
"uai-feedback-info": "#93c5fd",
|
|
124
129
|
"uai-feedback-info-subtle": "#072563",
|
|
125
|
-
"uai-feedback-success": "#
|
|
130
|
+
"uai-feedback-success": "#35de90",
|
|
126
131
|
"uai-feedback-success-subtle": "#022c22",
|
|
127
|
-
"uai-feedback-warning": "#
|
|
132
|
+
"uai-feedback-warning": "#fb923c",
|
|
128
133
|
"uai-feedback-warning-subtle": "#431407",
|
|
129
134
|
"uai-fixed-blue": "#1e6bf1",
|
|
130
135
|
"uai-fixed-brand": "#0099ff",
|
|
@@ -142,6 +147,7 @@ export const dark = {
|
|
|
142
147
|
"uai-border-width-default": "1px",
|
|
143
148
|
"uai-border-width-none": "0px",
|
|
144
149
|
"uai-border-width-thick": "2px",
|
|
150
|
+
"uai-opacity-focus-ring": 0.3,
|
|
145
151
|
"uai-radius-2xl": "1.5rem",
|
|
146
152
|
"uai-radius-full": "624.9375rem",
|
|
147
153
|
"uai-radius-lg": "0.75rem",
|
|
@@ -722,7 +728,7 @@ export const textStyles = {
|
|
|
722
728
|
};
|
|
723
729
|
export const metadata = {
|
|
724
730
|
"uai-action-destructive": {
|
|
725
|
-
"description": "Destructive
|
|
731
|
+
"description": "Destructive action accent. Filled buttons must use action/destructive-foreground, never fixed/bright. Outline/text actions use this accent on standard surfaces.",
|
|
726
732
|
"type": "color",
|
|
727
733
|
"collection": "Colors",
|
|
728
734
|
"scopes": [
|
|
@@ -734,7 +740,7 @@ export const metadata = {
|
|
|
734
740
|
"figmaVariableId": "VariableID:2:290"
|
|
735
741
|
},
|
|
736
742
|
"uai-action-destructive-foreground": {
|
|
737
|
-
"description": "Text and icons on destructive
|
|
743
|
+
"description": "Text and icons on action/destructive. Theme-aware: white in Light, dark neutral in Dark. Do not replace with fixed/bright.",
|
|
738
744
|
"type": "color",
|
|
739
745
|
"collection": "Colors",
|
|
740
746
|
"scopes": [
|
|
@@ -774,6 +780,27 @@ export const metadata = {
|
|
|
774
780
|
],
|
|
775
781
|
"figmaVariableId": "VariableID:2:289"
|
|
776
782
|
},
|
|
783
|
+
"uai-action-positive": {
|
|
784
|
+
"description": "Filled positive button background. Always pair with action/positive-foreground, never fixed/bright. Feedback text and outline/text actions use feedback/success instead.",
|
|
785
|
+
"type": "color",
|
|
786
|
+
"collection": "Colors",
|
|
787
|
+
"scopes": [
|
|
788
|
+
"FRAME_FILL",
|
|
789
|
+
"SHAPE_FILL",
|
|
790
|
+
"STROKE_COLOR"
|
|
791
|
+
],
|
|
792
|
+
"figmaVariableId": "VariableID:202:2"
|
|
793
|
+
},
|
|
794
|
+
"uai-action-positive-foreground": {
|
|
795
|
+
"description": "Text and icons on action/positive. Theme-aware foreground for filled positive buttons.",
|
|
796
|
+
"type": "color",
|
|
797
|
+
"collection": "Colors",
|
|
798
|
+
"scopes": [
|
|
799
|
+
"SHAPE_FILL",
|
|
800
|
+
"TEXT_FILL"
|
|
801
|
+
],
|
|
802
|
+
"figmaVariableId": "VariableID:202:3"
|
|
803
|
+
},
|
|
777
804
|
"uai-action-primary-default": {
|
|
778
805
|
"description": "Primary button background — default state.",
|
|
779
806
|
"type": "color",
|
|
@@ -816,7 +843,7 @@ export const metadata = {
|
|
|
816
843
|
"figmaVariableId": "VariableID:2:285"
|
|
817
844
|
},
|
|
818
845
|
"uai-border-default": {
|
|
819
|
-
"description": "
|
|
846
|
+
"description": "Decorative cards, dividers and separators. Not an accessible control boundary or sole state indicator; use border/input or border/ring.",
|
|
820
847
|
"type": "color",
|
|
821
848
|
"collection": "Colors",
|
|
822
849
|
"scopes": [
|
|
@@ -825,7 +852,7 @@ export const metadata = {
|
|
|
825
852
|
"figmaVariableId": "VariableID:2:296"
|
|
826
853
|
},
|
|
827
854
|
"uai-border-input": {
|
|
828
|
-
"description": "
|
|
855
|
+
"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.",
|
|
829
856
|
"type": "color",
|
|
830
857
|
"collection": "Colors",
|
|
831
858
|
"scopes": [
|
|
@@ -834,7 +861,7 @@ export const metadata = {
|
|
|
834
861
|
"figmaVariableId": "VariableID:2:297"
|
|
835
862
|
},
|
|
836
863
|
"uai-border-ring": {
|
|
837
|
-
"description": "
|
|
864
|
+
"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.",
|
|
838
865
|
"type": "color",
|
|
839
866
|
"collection": "Colors",
|
|
840
867
|
"scopes": [
|
|
@@ -865,7 +892,7 @@ export const metadata = {
|
|
|
865
892
|
"figmaVariableId": "VariableID:144:636"
|
|
866
893
|
},
|
|
867
894
|
"uai-content-link": {
|
|
868
|
-
"description": "Links and interactive navigation text.",
|
|
895
|
+
"description": "Links and interactive navigation text on standard surfaces. Keep an underline or another non-color cue when embedded in body text.",
|
|
869
896
|
"type": "color",
|
|
870
897
|
"collection": "Colors",
|
|
871
898
|
"scopes": [
|
|
@@ -876,7 +903,7 @@ export const metadata = {
|
|
|
876
903
|
"figmaVariableId": "VariableID:2:280"
|
|
877
904
|
},
|
|
878
905
|
"uai-content-placeholder": {
|
|
879
|
-
"description": "Input placeholder and hint text. Not for disabled content.",
|
|
906
|
+
"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.",
|
|
880
907
|
"type": "color",
|
|
881
908
|
"collection": "Colors",
|
|
882
909
|
"scopes": [
|
|
@@ -909,7 +936,7 @@ export const metadata = {
|
|
|
909
936
|
"figmaVariableId": "VariableID:2:278"
|
|
910
937
|
},
|
|
911
938
|
"uai-feedback-error": {
|
|
912
|
-
"description": "Error.
|
|
939
|
+
"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.",
|
|
913
940
|
"type": "color",
|
|
914
941
|
"collection": "Colors",
|
|
915
942
|
"scopes": [
|
|
@@ -931,7 +958,7 @@ export const metadata = {
|
|
|
931
958
|
"figmaVariableId": "VariableID:2:308"
|
|
932
959
|
},
|
|
933
960
|
"uai-feedback-info": {
|
|
934
|
-
"description": "Information
|
|
961
|
+
"description": "Information text and icons on standard surfaces or feedback/info-subtle. Not a filled button background.",
|
|
935
962
|
"type": "color",
|
|
936
963
|
"collection": "Colors",
|
|
937
964
|
"scopes": [
|
|
@@ -953,7 +980,7 @@ export const metadata = {
|
|
|
953
980
|
"figmaVariableId": "VariableID:2:305"
|
|
954
981
|
},
|
|
955
982
|
"uai-feedback-success": {
|
|
956
|
-
"description": "Success
|
|
983
|
+
"description": "Success text and icons on standard surfaces or feedback/success-subtle. Use action/positive with action/positive-foreground for filled positive buttons.",
|
|
957
984
|
"type": "color",
|
|
958
985
|
"collection": "Colors",
|
|
959
986
|
"scopes": [
|
|
@@ -975,7 +1002,7 @@ export const metadata = {
|
|
|
975
1002
|
"figmaVariableId": "VariableID:2:306"
|
|
976
1003
|
},
|
|
977
1004
|
"uai-feedback-warning": {
|
|
978
|
-
"description": "Warning
|
|
1005
|
+
"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.",
|
|
979
1006
|
"type": "color",
|
|
980
1007
|
"collection": "Colors",
|
|
981
1008
|
"scopes": [
|
|
@@ -997,7 +1024,7 @@ export const metadata = {
|
|
|
997
1024
|
"figmaVariableId": "VariableID:2:307"
|
|
998
1025
|
},
|
|
999
1026
|
"uai-fixed-blue": {
|
|
1000
|
-
"description": "Blip blue
|
|
1027
|
+
"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.",
|
|
1001
1028
|
"type": "color",
|
|
1002
1029
|
"collection": "Colors",
|
|
1003
1030
|
"scopes": [
|
|
@@ -1009,7 +1036,7 @@ export const metadata = {
|
|
|
1009
1036
|
"figmaVariableId": "VariableID:2:315"
|
|
1010
1037
|
},
|
|
1011
1038
|
"uai-fixed-brand": {
|
|
1012
|
-
"description": "Product brand color.
|
|
1039
|
+
"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.",
|
|
1013
1040
|
"type": "color",
|
|
1014
1041
|
"collection": "Colors",
|
|
1015
1042
|
"scopes": [
|
|
@@ -1021,7 +1048,7 @@ export const metadata = {
|
|
|
1021
1048
|
"figmaVariableId": "VariableID:2:316"
|
|
1022
1049
|
},
|
|
1023
1050
|
"uai-fixed-bright": {
|
|
1024
|
-
"description": "
|
|
1051
|
+
"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.",
|
|
1025
1052
|
"type": "color",
|
|
1026
1053
|
"collection": "Colors",
|
|
1027
1054
|
"scopes": [
|
|
@@ -1161,6 +1188,15 @@ export const metadata = {
|
|
|
1161
1188
|
],
|
|
1162
1189
|
"figmaVariableId": "VariableID:10:53"
|
|
1163
1190
|
},
|
|
1191
|
+
"uai-opacity-focus-ring": {
|
|
1192
|
+
"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.",
|
|
1193
|
+
"type": "number",
|
|
1194
|
+
"collection": "Dimensions",
|
|
1195
|
+
"scopes": [
|
|
1196
|
+
"OPACITY"
|
|
1197
|
+
],
|
|
1198
|
+
"figmaVariableId": "VariableID:192:2"
|
|
1199
|
+
},
|
|
1164
1200
|
"uai-radius-2xl": {
|
|
1165
1201
|
"description": "Border radius. 24px.",
|
|
1166
1202
|
"type": "dimension",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@font-face { font-family: "uai-icon"; src: url("https://cdn.blip.ai/blip-tokens/2.
|
|
1
|
+
@font-face { font-family: "uai-icon"; src: url("https://cdn.blip.ai/blip-tokens/2.3.0/uai-icon/font/uai-icon.woff2") format("woff2"); font-weight: normal; font-style: normal; font-display: block; }
|
|
2
2
|
.uai-icon { display: inline-block; font-family: "uai-icon" !important; font-style: normal; font-weight: normal !important; font-variant: normal; text-transform: none; line-height: 1; speak: never; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
|
|
3
3
|
.uai-icon.uai-icon-outline-123:before { content: "\e000"; }
|
|
4
4
|
.uai-icon.uai-icon-outline-ab:before { content: "\e001"; }
|