blip-tokens 2.0.2 → 2.1.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 +469 -28
- package/build/assets/v1/manifest.json +1 -1
- package/build/css/uai-colors.css +163 -0
- package/build/css/uai-dimensions.css +72 -0
- package/build/css/uai-shadows.css +18 -0
- package/build/css/uai-typography.css +52 -0
- package/build/css/uai.css +4 -0
- package/build/json/uai-dark.tokens.json +2078 -0
- package/build/json/uai-light.tokens.json +2078 -0
- package/build/json/uai-metadata.json +955 -0
- package/build/json/uai-shadows.json +42 -0
- package/build/json/uai-text-styles.json +478 -0
- 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 +39 -0
- package/build/scss/uai-colors-light.scss +39 -0
- package/build/scss/uai-dimensions.scss +35 -0
- package/build/scss/uai-shadows.scss +8 -0
- package/build/scss/uai-typography.scss +25 -0
- package/build/scss/variables.scss +1 -1
- package/build/tokens.d.ts +12 -0
- package/build/tokens.js +1677 -0
- package/package.json +29 -6
- package/docs/ad/003-icon-type-exports.md +0 -166
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
:where([data-uai-theme="light"]) {
|
|
2
|
+
/* Destructive button (delete, remove). Same red as feedback/error. */
|
|
3
|
+
--uai-action-destructive: #cf0022;
|
|
4
|
+
/* Text and icons on destructive buttons. */
|
|
5
|
+
--uai-action-destructive-foreground: #ffffff;
|
|
6
|
+
/* Outline and text button background — default state. */
|
|
7
|
+
--uai-action-outline-default: #ffffff;
|
|
8
|
+
/* Outline and text button background — hover state. Also list item hover. */
|
|
9
|
+
--uai-action-outline-hover: #f2f3f3;
|
|
10
|
+
/* Outline and text button background — pressed state. Also selected list item. */
|
|
11
|
+
--uai-action-outline-pressed: #e4e6e7;
|
|
12
|
+
/* Primary button background — default state. */
|
|
13
|
+
--uai-action-primary-default: #242729;
|
|
14
|
+
/* Text and icons on primary buttons. */
|
|
15
|
+
--uai-action-primary-foreground: #ffffff;
|
|
16
|
+
/* Primary button background — hover state. */
|
|
17
|
+
--uai-action-primary-hover: #181a1b;
|
|
18
|
+
/* Primary button background — pressed state. */
|
|
19
|
+
--uai-action-primary-pressed: #0a0a0a;
|
|
20
|
+
/* Default border. Cards, dividers, separators. */
|
|
21
|
+
--uai-border-default: #e4e6e7;
|
|
22
|
+
/* Form control border. Inputs, selects, checkboxes, outline buttons. */
|
|
23
|
+
--uai-border-input: #adb4b8;
|
|
24
|
+
/* Focus ring for keyboard navigation. */
|
|
25
|
+
--uai-border-ring: #c084fc;
|
|
26
|
+
/* Disabled text and icons. */
|
|
27
|
+
--uai-content-disabled: #848e94;
|
|
28
|
+
/* Text and icons on inverse or dark surfaces, such as surface/inverse and action/primary. */
|
|
29
|
+
--uai-content-inverse: #ffffff;
|
|
30
|
+
/* Links and interactive navigation text. */
|
|
31
|
+
--uai-content-link: #0073e5;
|
|
32
|
+
/* Input placeholder and hint text. Not for disabled content. */
|
|
33
|
+
--uai-content-placeholder: #adb4b8;
|
|
34
|
+
/* Primary text and icons. Headings, body text, form labels. */
|
|
35
|
+
--uai-content-primary: #242729;
|
|
36
|
+
/* Secondary text and icons. Descriptions, supporting text, text on muted surfaces. */
|
|
37
|
+
--uai-content-secondary: #5f676d;
|
|
38
|
+
/* Error. Field errors, failures, destructive confirmations. Components call it "negative". */
|
|
39
|
+
--uai-feedback-error: #cf0022;
|
|
40
|
+
/* Error alert background. Pair with feedback/error for the icon. */
|
|
41
|
+
--uai-feedback-error-subtle: #fef2f2;
|
|
42
|
+
/* Information. Info alerts, status badges and icons. */
|
|
43
|
+
--uai-feedback-info: #0073e5;
|
|
44
|
+
/* Info alert background. Pair with feedback/info for the icon. */
|
|
45
|
+
--uai-feedback-info-subtle: #eff6ff;
|
|
46
|
+
/* Success. Confirmations, positive validation, completed states. Components call it "positive". */
|
|
47
|
+
--uai-feedback-success: #3da329;
|
|
48
|
+
/* Success alert background. Pair with feedback/success for the icon. */
|
|
49
|
+
--uai-feedback-success-subtle: #ecfdf5;
|
|
50
|
+
/* Warning. States that need attention. For text on light surfaces, check contrast. */
|
|
51
|
+
--uai-feedback-warning: #ff8000;
|
|
52
|
+
/* Warning alert background. Pair with feedback/warning for the icon. */
|
|
53
|
+
--uai-feedback-warning-subtle: #fff7ed;
|
|
54
|
+
/* Blip blue that does not change with the theme. Selected states and highlights. */
|
|
55
|
+
--uai-fixed-blue: #1e6bf1;
|
|
56
|
+
/* Product brand color. Changes per product, not per theme. Banners, highlights. */
|
|
57
|
+
--uai-fixed-brand: #0099ff;
|
|
58
|
+
/* Light color that does not change with the theme. Text on fixed/brand. */
|
|
59
|
+
--uai-fixed-bright: #ffffff;
|
|
60
|
+
/* Dark color that does not change with the theme. */
|
|
61
|
+
--uai-fixed-dim: #242729;
|
|
62
|
+
/* Backdrop behind modals, drawers and dialogs. */
|
|
63
|
+
--uai-overlay-default: rgba(0, 0, 0, 0.72);
|
|
64
|
+
/* Translucent layer for hover on any interactive surface. */
|
|
65
|
+
--uai-overlay-hover: rgba(0, 0, 0, 0.08);
|
|
66
|
+
/* Translucent background for insight panels and floating cards. */
|
|
67
|
+
--uai-overlay-insight: rgba(255, 255, 255, 0.9);
|
|
68
|
+
/* Translucent layer for pressed state on any interactive surface. */
|
|
69
|
+
--uai-overlay-pressed: rgba(0, 0, 0, 0.16);
|
|
70
|
+
/* Page background. The base layer behind every screen. */
|
|
71
|
+
--uai-surface-background: #f2f3f3;
|
|
72
|
+
/* Subtle contrast surface. Secondary panels, alternating sections, hovered or selected rows. */
|
|
73
|
+
--uai-surface-contrast: #e4e6e7;
|
|
74
|
+
/* Inverted surface. Tooltips, snackbars, dark banners in light mode (and the reverse). Use content/inverse on it. */
|
|
75
|
+
--uai-surface-inverse: #242729;
|
|
76
|
+
/* Muted surface. Chips, tags, code blocks, table headers. Use content/secondary on it. */
|
|
77
|
+
--uai-surface-muted: #f2f3f3;
|
|
78
|
+
/* Cards, modals, popovers, dropdowns and drawers. Add an elevation style when it floats. */
|
|
79
|
+
--uai-surface-paper: #ffffff;
|
|
80
|
+
color-scheme: light;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
:where([data-uai-theme="dark"]) {
|
|
84
|
+
/* Destructive button (delete, remove). Same red as feedback/error. */
|
|
85
|
+
--uai-action-destructive: #cf0022;
|
|
86
|
+
/* Text and icons on destructive buttons. */
|
|
87
|
+
--uai-action-destructive-foreground: #ffffff;
|
|
88
|
+
/* Outline and text button background — default state. */
|
|
89
|
+
--uai-action-outline-default: #242729;
|
|
90
|
+
/* Outline and text button background — hover state. Also list item hover. */
|
|
91
|
+
--uai-action-outline-hover: #2f3437;
|
|
92
|
+
/* Outline and text button background — pressed state. Also selected list item. */
|
|
93
|
+
--uai-action-outline-pressed: #3b4144;
|
|
94
|
+
/* Primary button background — default state. */
|
|
95
|
+
--uai-action-primary-default: #e4e6e7;
|
|
96
|
+
/* Text and icons on primary buttons. */
|
|
97
|
+
--uai-action-primary-foreground: #242729;
|
|
98
|
+
/* Primary button background — hover state. */
|
|
99
|
+
--uai-action-primary-hover: #d6d9db;
|
|
100
|
+
/* Primary button background — pressed state. */
|
|
101
|
+
--uai-action-primary-pressed: #c8cccf;
|
|
102
|
+
/* Default border. Cards, dividers, separators. */
|
|
103
|
+
--uai-border-default: #2f3437;
|
|
104
|
+
/* Form control border. Inputs, selects, checkboxes, outline buttons. */
|
|
105
|
+
--uai-border-input: #5f676d;
|
|
106
|
+
/* Focus ring for keyboard navigation. */
|
|
107
|
+
--uai-border-ring: #c084fc;
|
|
108
|
+
/* Disabled text and icons. */
|
|
109
|
+
--uai-content-disabled: #768188;
|
|
110
|
+
/* Text and icons on inverse or dark surfaces, such as surface/inverse and action/primary. */
|
|
111
|
+
--uai-content-inverse: #181a1b;
|
|
112
|
+
/* Links and interactive navigation text. */
|
|
113
|
+
--uai-content-link: #0099ff;
|
|
114
|
+
/* Input placeholder and hint text. Not for disabled content. */
|
|
115
|
+
--uai-content-placeholder: #768188;
|
|
116
|
+
/* Primary text and icons. Headings, body text, form labels. */
|
|
117
|
+
--uai-content-primary: #ffffff;
|
|
118
|
+
/* Secondary text and icons. Descriptions, supporting text, text on muted surfaces. */
|
|
119
|
+
--uai-content-secondary: #adb4b8;
|
|
120
|
+
/* Error. Field errors, failures, destructive confirmations. Components call it "negative". */
|
|
121
|
+
--uai-feedback-error: #cf0022;
|
|
122
|
+
/* Error alert background. Pair with feedback/error for the icon. */
|
|
123
|
+
--uai-feedback-error-subtle: #450a0a;
|
|
124
|
+
/* Information. Info alerts, status badges and icons. */
|
|
125
|
+
--uai-feedback-info: #0073e5;
|
|
126
|
+
/* Info alert background. Pair with feedback/info for the icon. */
|
|
127
|
+
--uai-feedback-info-subtle: #072563;
|
|
128
|
+
/* Success. Confirmations, positive validation, completed states. Components call it "positive". */
|
|
129
|
+
--uai-feedback-success: #3da329;
|
|
130
|
+
/* Success alert background. Pair with feedback/success for the icon. */
|
|
131
|
+
--uai-feedback-success-subtle: #022c22;
|
|
132
|
+
/* Warning. States that need attention. For text on light surfaces, check contrast. */
|
|
133
|
+
--uai-feedback-warning: #ff8000;
|
|
134
|
+
/* Warning alert background. Pair with feedback/warning for the icon. */
|
|
135
|
+
--uai-feedback-warning-subtle: #431407;
|
|
136
|
+
/* Blip blue that does not change with the theme. Selected states and highlights. */
|
|
137
|
+
--uai-fixed-blue: #1e6bf1;
|
|
138
|
+
/* Product brand color. Changes per product, not per theme. Banners, highlights. */
|
|
139
|
+
--uai-fixed-brand: #0099ff;
|
|
140
|
+
/* Light color that does not change with the theme. Text on fixed/brand. */
|
|
141
|
+
--uai-fixed-bright: #ffffff;
|
|
142
|
+
/* Dark color that does not change with the theme. */
|
|
143
|
+
--uai-fixed-dim: #242729;
|
|
144
|
+
/* Backdrop behind modals, drawers and dialogs. */
|
|
145
|
+
--uai-overlay-default: rgba(0, 0, 0, 0.8);
|
|
146
|
+
/* Translucent layer for hover on any interactive surface. */
|
|
147
|
+
--uai-overlay-hover: rgba(255, 255, 255, 0.08);
|
|
148
|
+
/* Translucent background for insight panels and floating cards. */
|
|
149
|
+
--uai-overlay-insight: rgba(0, 0, 0, 0.8);
|
|
150
|
+
/* Translucent layer for pressed state on any interactive surface. */
|
|
151
|
+
--uai-overlay-pressed: rgba(255, 255, 255, 0.16);
|
|
152
|
+
/* Page background. The base layer behind every screen. */
|
|
153
|
+
--uai-surface-background: #181a1b;
|
|
154
|
+
/* Subtle contrast surface. Secondary panels, alternating sections, hovered or selected rows. */
|
|
155
|
+
--uai-surface-contrast: #2f3437;
|
|
156
|
+
/* Inverted surface. Tooltips, snackbars, dark banners in light mode (and the reverse). Use content/inverse on it. */
|
|
157
|
+
--uai-surface-inverse: #f2f3f3;
|
|
158
|
+
/* Muted surface. Chips, tags, code blocks, table headers. Use content/secondary on it. */
|
|
159
|
+
--uai-surface-muted: #2f3437;
|
|
160
|
+
/* Cards, modals, popovers, dropdowns and drawers. Add an elevation style when it floats. */
|
|
161
|
+
--uai-surface-paper: #242729;
|
|
162
|
+
color-scheme: dark;
|
|
163
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
:where([data-uai-theme]:not([data-uai-theme] *)) {
|
|
2
|
+
/* Border width. 1px. Standard borders. */
|
|
3
|
+
--uai-border-width-default: 1px;
|
|
4
|
+
/* Border width. 0px. */
|
|
5
|
+
--uai-border-width-none: 0px;
|
|
6
|
+
/* Border width. 2px. Focus rings and emphasis borders. */
|
|
7
|
+
--uai-border-width-thick: 2px;
|
|
8
|
+
/* Border radius. 24px. */
|
|
9
|
+
--uai-radius-2xl: 1.5rem;
|
|
10
|
+
/* Border radius. Full round. */
|
|
11
|
+
--uai-radius-full: 624.9375rem;
|
|
12
|
+
/* Border radius. 12px. */
|
|
13
|
+
--uai-radius-lg: 0.75rem;
|
|
14
|
+
/* Border radius. 8px. */
|
|
15
|
+
--uai-radius-md: 0.5rem;
|
|
16
|
+
/* Border radius. 0px. */
|
|
17
|
+
--uai-radius-none: 0rem;
|
|
18
|
+
/* Border radius. 4px. */
|
|
19
|
+
--uai-radius-sm: 0.25rem;
|
|
20
|
+
/* Border radius. 16px. */
|
|
21
|
+
--uai-radius-xl: 1rem;
|
|
22
|
+
/* Border radius. 2px. */
|
|
23
|
+
--uai-radius-xs: 0.125rem;
|
|
24
|
+
/* Fixed size. 40px. Medium avatars. */
|
|
25
|
+
--uai-sizing-2xl: 2.5rem;
|
|
26
|
+
/* Fixed size. 48px. Large avatars. */
|
|
27
|
+
--uai-sizing-3xl: 3rem;
|
|
28
|
+
/* Fixed size. 64px. Extra large avatars. */
|
|
29
|
+
--uai-sizing-4xl: 4rem;
|
|
30
|
+
/* Fixed size. 24px. Icon medium (default). */
|
|
31
|
+
--uai-sizing-lg: 1.5rem;
|
|
32
|
+
/* Fixed size. 20px. Icon small. */
|
|
33
|
+
--uai-sizing-md: 1.25rem;
|
|
34
|
+
/* Fixed size. 16px. Icon x-small. */
|
|
35
|
+
--uai-sizing-sm: 1rem;
|
|
36
|
+
/* Fixed size. 32px. Small avatars. */
|
|
37
|
+
--uai-sizing-xl: 2rem;
|
|
38
|
+
/* Fixed size. 12px. Status dots, tiny indicators. */
|
|
39
|
+
--uai-sizing-xs: 0.75rem;
|
|
40
|
+
/* Spacing. 40px. */
|
|
41
|
+
--uai-spacing-2xl: 2.5rem;
|
|
42
|
+
/* Spacing. 4px. */
|
|
43
|
+
--uai-spacing-2xs: 0.25rem;
|
|
44
|
+
/* Spacing. 48px. */
|
|
45
|
+
--uai-spacing-3xl: 3rem;
|
|
46
|
+
/* Spacing. 2px. */
|
|
47
|
+
--uai-spacing-3xs: 0.125rem;
|
|
48
|
+
/* Spacing. 56px. */
|
|
49
|
+
--uai-spacing-4xl: 3.5rem;
|
|
50
|
+
/* Spacing. 64px. */
|
|
51
|
+
--uai-spacing-5xl: 4rem;
|
|
52
|
+
/* Spacing. 72px. */
|
|
53
|
+
--uai-spacing-6xl: 4.5rem;
|
|
54
|
+
/* Spacing. 80px. */
|
|
55
|
+
--uai-spacing-7xl: 5rem;
|
|
56
|
+
/* Spacing. 88px. */
|
|
57
|
+
--uai-spacing-8xl: 5.5rem;
|
|
58
|
+
/* Spacing. 96px. */
|
|
59
|
+
--uai-spacing-9xl: 6rem;
|
|
60
|
+
/* Spacing. 24px. */
|
|
61
|
+
--uai-spacing-lg: 1.5rem;
|
|
62
|
+
/* Spacing. 16px. */
|
|
63
|
+
--uai-spacing-md: 1rem;
|
|
64
|
+
/* Spacing. 0px. */
|
|
65
|
+
--uai-spacing-none: 0rem;
|
|
66
|
+
/* Spacing. 12px. */
|
|
67
|
+
--uai-spacing-sm: 0.75rem;
|
|
68
|
+
/* Spacing. 32px. */
|
|
69
|
+
--uai-spacing-xl: 2rem;
|
|
70
|
+
/* Spacing. 8px. */
|
|
71
|
+
--uai-spacing-xs: 0.5rem;
|
|
72
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
:where([data-uai-theme]:not([data-uai-theme] *)) {
|
|
2
|
+
/* Cards and raised surfaces. CSS var(--uai-elevation-1). */
|
|
3
|
+
--uai-elevation-1: 0px 2px 8px -2px rgb(0 0 0 / 0.16);
|
|
4
|
+
/* Floating panels above other content. CSS var(--uai-elevation-3). */
|
|
5
|
+
--uai-elevation-3: 0px 8px 4px -4px rgb(0 0 0 / 0.08), 0px 12px 12px -4px rgb(0 0 0 / 0.12);
|
|
6
|
+
/* Modals and dialogs. CSS var(--uai-elevation-dialog). */
|
|
7
|
+
--uai-elevation-dialog: 0px 32px 32px -20px rgb(0 0 0 / 0.1);
|
|
8
|
+
/* Dropdowns, popovers, tooltips. CSS var(--uai-elevation-2). */
|
|
9
|
+
--uai-elevation-2: 0px 6px 16px -4px rgb(0 0 0 / 0.16);
|
|
10
|
+
/* Active tab. CSS var(--uai-elevation-tab-active). */
|
|
11
|
+
--uai-elevation-tab-active: 0px 1px 4px 0px rgb(0 0 0 / 0.1);
|
|
12
|
+
/* Drawer or sidebar opening from the left (shadow to the right). CSS var(--uai-elevation-sidebar-right). */
|
|
13
|
+
--uai-elevation-sidebar-right: 48px 0px 100px 0px rgb(0 0 0 / 0.25);
|
|
14
|
+
/* Small floating controls and chips. CSS var(--uai-elevation-floating-control). */
|
|
15
|
+
--uai-elevation-floating-control: 0px 1.67px 6.67px -1.67px rgb(0 0 0 / 0.16);
|
|
16
|
+
/* Drawer or sidebar opening from the right (shadow to the left). CSS var(--uai-elevation-sidebar-left). */
|
|
17
|
+
--uai-elevation-sidebar-left: -48px 0px 100px 0px rgb(0 0 0 / 0.25);
|
|
18
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
:where([data-uai-theme]:not([data-uai-theme] *)) {
|
|
2
|
+
/* Body Base — 14px. Default application text. */
|
|
3
|
+
--uai-body-base-font-size: 0.875rem;
|
|
4
|
+
/* Body Base — 22px. */
|
|
5
|
+
--uai-body-base-line-height: 1.375rem;
|
|
6
|
+
/* Caption — 12px. Helpers, badges, small body text. */
|
|
7
|
+
--uai-caption-font-size: 0.75rem;
|
|
8
|
+
/* Caption — 20px. */
|
|
9
|
+
--uai-caption-line-height: 1.25rem;
|
|
10
|
+
/* Display — 40px. Hero, landing pages. */
|
|
11
|
+
--uai-display-font-size: 2.5rem;
|
|
12
|
+
/* Display — 48px. */
|
|
13
|
+
--uai-display-line-height: 3rem;
|
|
14
|
+
/* Display font for hero and marketing titles. Figtree today; may diverge per product. */
|
|
15
|
+
--uai-font-family-display: Figtree;
|
|
16
|
+
/* Primary font for all interface text. Figtree. */
|
|
17
|
+
--uai-font-family-sans: Figtree;
|
|
18
|
+
/* Bold weight (700). Titles, strong emphasis. */
|
|
19
|
+
--uai-font-weight-bold: 700;
|
|
20
|
+
/* ExtraBold weight (800). Hero emphasis; maps to blip-ds bold="extra-bold". */
|
|
21
|
+
--uai-font-weight-extrabold: 800;
|
|
22
|
+
/* Medium weight (500). Labels, buttons. */
|
|
23
|
+
--uai-font-weight-medium: 500;
|
|
24
|
+
/* Regular weight (400). Default body text. */
|
|
25
|
+
--uai-font-weight-regular: 400;
|
|
26
|
+
/* SemiBold weight (600). Subtitles, navigation. */
|
|
27
|
+
--uai-font-weight-semibold: 600;
|
|
28
|
+
/* Heading LG — 24px. Content sections. */
|
|
29
|
+
--uai-heading-lg-font-size: 1.5rem;
|
|
30
|
+
/* Heading LG — 32px. */
|
|
31
|
+
--uai-heading-lg-line-height: 2rem;
|
|
32
|
+
/* Heading MD — 20px. Subsections. */
|
|
33
|
+
--uai-heading-md-font-size: 1.25rem;
|
|
34
|
+
/* Heading MD — 28px. */
|
|
35
|
+
--uai-heading-md-line-height: 1.75rem;
|
|
36
|
+
/* Heading XL — 32px. Main page title. */
|
|
37
|
+
--uai-heading-xl-font-size: 2rem;
|
|
38
|
+
/* Heading XL — 40px. */
|
|
39
|
+
--uai-heading-xl-line-height: 2.5rem;
|
|
40
|
+
/* Expanded letter spacing (0.2em). Spaced body variant. */
|
|
41
|
+
--uai-letter-spacing-expanded: 2.8px;
|
|
42
|
+
/* Default letter spacing for all text styles. */
|
|
43
|
+
--uai-letter-spacing-normal: 0px;
|
|
44
|
+
/* Overline — 10px. Tags, restricted use. */
|
|
45
|
+
--uai-overline-font-size: 0.625rem;
|
|
46
|
+
/* Overline — 16px. */
|
|
47
|
+
--uai-overline-line-height: 1rem;
|
|
48
|
+
/* Title — 16px. Card titles, strong labels, navigation. Use regular weight for large body text. */
|
|
49
|
+
--uai-title-font-size: 1rem;
|
|
50
|
+
/* Title — 24px. */
|
|
51
|
+
--uai-title-line-height: 1.5rem;
|
|
52
|
+
}
|