@seanyeh77/tokens 0.52.1 → 0.54.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/dist/index.d.ts +2 -2
- package/dist/index.js +7 -5
- package/dist/tailwind.css +6 -4
- package/dist/tokens.css +35 -27
- package/package.json +1 -1
- package/tokens.json +44 -30
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** Generated from tokens.json by scripts/build.ts. Do not edit by hand. */
|
|
2
2
|
|
|
3
|
-
export type ColorToken = 'bg' | 'surface' | 'surface-sub' | 'surface-chrome' | 'surface-input' | 'ink' | 'ink-muted' | 'line' | 'line-strong' | 'graph-edge' | 'graph-node' | 'code-keyword' | 'code-constant' | 'accent' | 'accent-hover' | 'accent-press' | 'accent-text' | 'accent-soft' | 'on-accent' | 'focus' | 'focus-ring' | 'success' | 'success-text' | 'success-soft' | 'warning' | 'warning-text' | 'warning-soft' | 'danger' | 'on-danger' | 'danger-text' | 'danger-soft' | 'info-text' | 'info-soft' | 'on-solid' | 'danger-ring' | 'mark' | 'scrim' | 'scrim-strong' | 'edge-shadow' | 'file-other' | 'file-pdf' | 'file-video' | 'file-audio' | 'file-slides' | 'file-doc' | 'file-sheet' | 'file-image' | 'file-code' | 'neutral-0' | 'neutral-50' | 'neutral-100' | 'neutral-200' | 'neutral-300' | 'neutral-400' | 'neutral-500' | 'neutral-600' | 'neutral-700' | 'neutral-800' | 'neutral-900' | 'neutral-950' | 'chart-1' | 'chart-2' | 'chart-3' | 'chart-4' | 'heat-1' | 'heat-2' | 'heat-3' | 'heat-4' | 'heat-5' | 'heat-6' | 'heat-7' | 'diverge-neg-strong' | 'diverge-neg' | 'diverge-zero' | 'diverge-pos' | 'diverge-pos-strong' | 'forecast-stripe';
|
|
4
|
-
export type SpaceToken = 'space-1' | 'space-2' | 'space-3' | 'space-4' | 'space-5' | 'space-6' | 'space-8' | 'space-12';
|
|
3
|
+
export type ColorToken = 'bg' | 'surface' | 'surface-sub' | 'surface-chrome' | 'surface-input' | 'ink' | 'ink-muted' | 'line' | 'line-strong' | 'line-soft' | 'graph-edge' | 'graph-node' | 'code-keyword' | 'code-constant' | 'accent' | 'accent-hover' | 'accent-press' | 'accent-text' | 'accent-soft' | 'on-accent' | 'focus' | 'focus-ring' | 'success' | 'success-text' | 'success-soft' | 'warning' | 'warning-text' | 'warning-soft' | 'danger' | 'on-danger' | 'danger-text' | 'danger-soft' | 'info-text' | 'info-soft' | 'on-solid' | 'danger-ring' | 'mark' | 'scrim' | 'scrim-strong' | 'edge-shadow' | 'file-other' | 'file-pdf' | 'file-video' | 'file-audio' | 'file-slides' | 'file-doc' | 'file-sheet' | 'file-image' | 'file-code' | 'neutral-0' | 'neutral-50' | 'neutral-100' | 'neutral-200' | 'neutral-300' | 'neutral-400' | 'neutral-500' | 'neutral-600' | 'neutral-700' | 'neutral-800' | 'neutral-900' | 'neutral-950' | 'chart-1' | 'chart-2' | 'chart-3' | 'chart-4' | 'heat-1' | 'heat-2' | 'heat-3' | 'heat-4' | 'heat-5' | 'heat-6' | 'heat-7' | 'diverge-neg-strong' | 'diverge-neg' | 'diverge-zero' | 'diverge-pos' | 'diverge-pos-strong' | 'forecast-stripe';
|
|
4
|
+
export type SpaceToken = 'space-1' | 'space-2' | 'space-3' | 'space-4' | 'space-5' | 'space-6' | 'space-8' | 'block-gap' | 'space-12';
|
|
5
5
|
export type RadiusToken = 'radius-xs' | 'radius-sm' | 'radius-chip' | 'radius-md' | 'radius-lg' | 'radius-full';
|
|
6
6
|
export type ShadowToken = 'shadow-sm' | 'shadow-chip' | 'shadow-card' | 'shadow-card-hover' | 'shadow-overlay';
|
|
7
7
|
export type SizeToken = 'control-height' | 'chip-height' | 'touch-target' | 'header-height' | 'sidebar-width' | 'sidebar-collapsed' | 'tabbar-height' | 'icon-stroke' | 'alert-bar' | 'bp-tablet' | 'bp-desktop' | 'bp-wide';
|
package/dist/index.js
CHANGED
|
@@ -9,6 +9,7 @@ export const tokens = /* @__PURE__ */ Object.freeze({
|
|
|
9
9
|
"ink-muted": "#6d645a",
|
|
10
10
|
"line": "#e2dfdc",
|
|
11
11
|
"line-strong": "#8c8073",
|
|
12
|
+
"line-soft": "#f1efed",
|
|
12
13
|
"graph-edge": "#8c8073",
|
|
13
14
|
"graph-node": "#f6f5f4",
|
|
14
15
|
"code-keyword": "#2457d6",
|
|
@@ -84,12 +85,13 @@ export const tokens = /* @__PURE__ */ Object.freeze({
|
|
|
84
85
|
"space-5": "20px",
|
|
85
86
|
"space-6": "24px",
|
|
86
87
|
"space-8": "32px",
|
|
88
|
+
"block-gap": "32px",
|
|
87
89
|
"space-12": "48px",
|
|
88
90
|
"radius-xs": "4px",
|
|
89
|
-
"radius-sm": "
|
|
91
|
+
"radius-sm": "8px",
|
|
90
92
|
"radius-chip": "8px",
|
|
91
93
|
"radius-md": "10px",
|
|
92
|
-
"radius-lg": "
|
|
94
|
+
"radius-lg": "12px",
|
|
93
95
|
"radius-full": "9999px",
|
|
94
96
|
"shadow-sm": "0 1px 2px rgba(16, 24, 40, 0.12)",
|
|
95
97
|
"shadow-chip": "0 1px 2px rgba(16, 24, 40, 0.14), 0 2px 6px rgba(16, 24, 40, 0.08)",
|
|
@@ -100,7 +102,7 @@ export const tokens = /* @__PURE__ */ Object.freeze({
|
|
|
100
102
|
"chip-height": "32px",
|
|
101
103
|
"touch-target": "48px",
|
|
102
104
|
"header-height": "64px",
|
|
103
|
-
"sidebar-width": "
|
|
105
|
+
"sidebar-width": "208px",
|
|
104
106
|
"sidebar-collapsed": "72px",
|
|
105
107
|
"tabbar-height": "68px",
|
|
106
108
|
"icon-stroke": "2px",
|
|
@@ -109,14 +111,14 @@ export const tokens = /* @__PURE__ */ Object.freeze({
|
|
|
109
111
|
"bp-desktop": "960px",
|
|
110
112
|
"bp-wide": "1280px",
|
|
111
113
|
"text-mini": "12px",
|
|
112
|
-
"text-small": "
|
|
114
|
+
"text-small": "12px",
|
|
113
115
|
"text-compact": "14px",
|
|
114
116
|
"text-control": "15px",
|
|
115
117
|
"text-body": "16px",
|
|
116
118
|
"text-title": "17px",
|
|
117
119
|
"text-lead": "18px",
|
|
118
120
|
"text-h4": "20px",
|
|
119
|
-
"text-h3": "
|
|
121
|
+
"text-h3": "24px",
|
|
120
122
|
"text-h2": "31px",
|
|
121
123
|
"text-h1": "39px",
|
|
122
124
|
"text-display": "49px",
|
package/dist/tailwind.css
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
--color-ink-muted: var(--ink-muted);
|
|
11
11
|
--color-line: var(--line);
|
|
12
12
|
--color-line-strong: var(--line-strong);
|
|
13
|
+
--color-line-soft: var(--line-soft);
|
|
13
14
|
--color-graph-edge: var(--graph-edge);
|
|
14
15
|
--color-graph-node: var(--graph-node);
|
|
15
16
|
--color-code-keyword: var(--code-keyword);
|
|
@@ -85,6 +86,7 @@
|
|
|
85
86
|
--spacing-5: var(--space-5);
|
|
86
87
|
--spacing-6: var(--space-6);
|
|
87
88
|
--spacing-8: var(--space-8);
|
|
89
|
+
--spacing-block-gap: var(--block-gap);
|
|
88
90
|
--spacing-12: var(--space-12);
|
|
89
91
|
--shadow-sm: var(--shadow-sm);
|
|
90
92
|
--shadow-chip: var(--shadow-chip);
|
|
@@ -94,16 +96,16 @@
|
|
|
94
96
|
}
|
|
95
97
|
@theme {
|
|
96
98
|
--radius-xs: 4px;
|
|
97
|
-
--radius-sm:
|
|
99
|
+
--radius-sm: 8px;
|
|
98
100
|
--radius-chip: 8px;
|
|
99
101
|
--radius-md: 10px;
|
|
100
|
-
--radius-lg:
|
|
102
|
+
--radius-lg: 12px;
|
|
101
103
|
--radius-full: 9999px;
|
|
102
104
|
--font-sans: Inter, "Noto Sans TC", system-ui, sans-serif;
|
|
103
105
|
--font-mono: "Geist Mono", "Noto Sans TC", ui-monospace, monospace;
|
|
104
106
|
--text-mini: 12px;
|
|
105
107
|
--text-mini--line-height: 16px;
|
|
106
|
-
--text-small:
|
|
108
|
+
--text-small: 12px;
|
|
107
109
|
--text-small--line-height: 20px;
|
|
108
110
|
--text-compact: 14px;
|
|
109
111
|
--text-compact--line-height: 20px;
|
|
@@ -117,7 +119,7 @@
|
|
|
117
119
|
--text-lead--line-height: 30px;
|
|
118
120
|
--text-h4: 20px;
|
|
119
121
|
--text-h4--line-height: 28px;
|
|
120
|
-
--text-h3:
|
|
122
|
+
--text-h3: 24px;
|
|
121
123
|
--text-h3--line-height: 32px;
|
|
122
124
|
--text-h2: 31px;
|
|
123
125
|
--text-h2--line-height: 40px;
|
package/dist/tokens.css
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
--ink-muted: #6d645a;
|
|
14
14
|
--line: #e2dfdc;
|
|
15
15
|
--line-strong: #8c8073;
|
|
16
|
+
--line-soft: #f1efed;
|
|
16
17
|
--graph-edge: #8c8073;
|
|
17
18
|
--graph-node: #f6f5f4;
|
|
18
19
|
--code-keyword: #2457d6;
|
|
@@ -88,12 +89,13 @@
|
|
|
88
89
|
--space-5: 20px;
|
|
89
90
|
--space-6: 24px;
|
|
90
91
|
--space-8: 32px;
|
|
92
|
+
--block-gap: 32px;
|
|
91
93
|
--space-12: 48px;
|
|
92
94
|
--radius-xs: 4px;
|
|
93
|
-
--radius-sm:
|
|
95
|
+
--radius-sm: 8px;
|
|
94
96
|
--radius-chip: 8px;
|
|
95
97
|
--radius-md: 10px;
|
|
96
|
-
--radius-lg:
|
|
98
|
+
--radius-lg: 12px;
|
|
97
99
|
--radius-full: 9999px;
|
|
98
100
|
--shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.12);
|
|
99
101
|
--shadow-chip: 0 1px 2px rgba(16, 24, 40, 0.14), 0 2px 6px rgba(16, 24, 40, 0.08);
|
|
@@ -104,7 +106,7 @@
|
|
|
104
106
|
--chip-height: 32px;
|
|
105
107
|
--touch-target: 48px;
|
|
106
108
|
--header-height: 64px;
|
|
107
|
-
--sidebar-width:
|
|
109
|
+
--sidebar-width: 208px;
|
|
108
110
|
--sidebar-collapsed: 72px;
|
|
109
111
|
--tabbar-height: 68px;
|
|
110
112
|
--icon-stroke: 2px;
|
|
@@ -113,14 +115,14 @@
|
|
|
113
115
|
--bp-desktop: 960px;
|
|
114
116
|
--bp-wide: 1280px;
|
|
115
117
|
--text-mini: 12px;
|
|
116
|
-
--text-small:
|
|
118
|
+
--text-small: 12px;
|
|
117
119
|
--text-compact: 14px;
|
|
118
120
|
--text-control: 15px;
|
|
119
121
|
--text-body: 16px;
|
|
120
122
|
--text-title: 17px;
|
|
121
123
|
--text-lead: 18px;
|
|
122
124
|
--text-h4: 20px;
|
|
123
|
-
--text-h3:
|
|
125
|
+
--text-h3: 24px;
|
|
124
126
|
--text-h2: 31px;
|
|
125
127
|
--text-h1: 39px;
|
|
126
128
|
--text-display: 49px;
|
|
@@ -156,40 +158,41 @@
|
|
|
156
158
|
}
|
|
157
159
|
[data-theme="dark"] {
|
|
158
160
|
color-scheme: dark;
|
|
159
|
-
--bg: #
|
|
160
|
-
--surface: #
|
|
161
|
-
--surface-sub: #
|
|
162
|
-
--surface-chrome: #
|
|
161
|
+
--bg: #292725;
|
|
162
|
+
--surface: #393632;
|
|
163
|
+
--surface-sub: #413d38;
|
|
164
|
+
--surface-chrome: #34312e;
|
|
163
165
|
--surface-input: #26221e;
|
|
164
166
|
--ink: #f6f5f4;
|
|
165
|
-
--ink-muted: #
|
|
167
|
+
--ink-muted: #ada8a0;
|
|
166
168
|
--line: #4c4844;
|
|
167
169
|
--line-strong: #988c80;
|
|
168
|
-
--
|
|
169
|
-
--graph-
|
|
170
|
+
--line-soft: #433f3b;
|
|
171
|
+
--graph-edge: #ada8a0;
|
|
172
|
+
--graph-node: #413d38;
|
|
170
173
|
--code-keyword: #a3b7ee;
|
|
171
174
|
--code-constant: #3cc4ae;
|
|
172
|
-
--accent: #
|
|
173
|
-
--accent-hover: #
|
|
174
|
-
--accent-press: #
|
|
175
|
+
--accent: #92abeb;
|
|
176
|
+
--accent-hover: #9fb5ed;
|
|
177
|
+
--accent-press: #aabdef;
|
|
175
178
|
--accent-text: #92abeb;
|
|
176
|
-
--accent-soft: #
|
|
179
|
+
--accent-soft: #283045;
|
|
177
180
|
--on-accent: #171512;
|
|
178
181
|
--focus: #92abeb;
|
|
179
182
|
--focus-ring: #92abeb;
|
|
180
|
-
--success: #
|
|
181
|
-
--success-text: #
|
|
183
|
+
--success: #80cba5;
|
|
184
|
+
--success-text: #80cba5;
|
|
182
185
|
--success-soft: #2c3e2d;
|
|
183
|
-
--warning: #
|
|
184
|
-
--warning-text: #
|
|
186
|
+
--warning: #e6b66d;
|
|
187
|
+
--warning-text: #e6b66d;
|
|
185
188
|
--warning-soft: #4a3922;
|
|
186
|
-
--danger: #
|
|
189
|
+
--danger: #e58d8d;
|
|
187
190
|
--on-danger: #171512;
|
|
188
|
-
--danger-text: #
|
|
191
|
+
--danger-text: #e69292;
|
|
189
192
|
--danger-soft: #482a25;
|
|
190
193
|
--info-text: #90aaea;
|
|
191
194
|
--info-soft: #2d3141;
|
|
192
|
-
--danger-ring: #
|
|
195
|
+
--danger-ring: #e69292;
|
|
193
196
|
--mark: #7c5d12;
|
|
194
197
|
--chart-1: #819ee7;
|
|
195
198
|
--chart-2: #3cc4ae;
|
|
@@ -208,10 +211,10 @@
|
|
|
208
211
|
--diverge-pos: #d9772f;
|
|
209
212
|
--diverge-pos-strong: #f0a35e;
|
|
210
213
|
--forecast-stripe: rgba(246, 245, 244, 0.14);
|
|
211
|
-
--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.
|
|
212
|
-
--shadow-chip: 0 1px 2px rgba(0, 0, 0, 0.
|
|
213
|
-
--shadow-card: 0 1px 2px rgba(0, 0, 0, 0.
|
|
214
|
-
--shadow-card-hover: 0 2px
|
|
214
|
+
--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
|
|
215
|
+
--shadow-chip: 0 1px 2px rgba(0, 0, 0, 0.28);
|
|
216
|
+
--shadow-card: 0 1px 2px rgba(0, 0, 0, 0.24);
|
|
217
|
+
--shadow-card-hover: 0 2px 6px rgba(0, 0, 0, 0.3);
|
|
215
218
|
--shadow-overlay: 0 20px 48px rgba(0, 0, 0, 0.5);
|
|
216
219
|
}
|
|
217
220
|
[data-theme="teaching"] {
|
|
@@ -234,4 +237,9 @@
|
|
|
234
237
|
--shadow-card: none;
|
|
235
238
|
--shadow-card-hover: none;
|
|
236
239
|
}
|
|
240
|
+
@media (max-width: 599px) {
|
|
241
|
+
:root {
|
|
242
|
+
--block-gap: 16px;
|
|
243
|
+
}
|
|
244
|
+
}
|
|
237
245
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seanyeh77/tokens",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.54.0",
|
|
4
4
|
"description": "Design tokens of SeanYeh's design system: CSS variables for light, dark and the teaching preset, a Tailwind v4 theme, typed token names and self-hosted fonts.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Hsiu-An Yeh",
|
package/tokens.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"name": "bg",
|
|
18
18
|
"value": {
|
|
19
19
|
"light": "#fcfbfb",
|
|
20
|
-
"dark": "#
|
|
20
|
+
"dark": "#292725"
|
|
21
21
|
},
|
|
22
22
|
"usage": "Page background (light: very light warm gray, neutral-0; dark: dark gray)."
|
|
23
23
|
},
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"name": "surface",
|
|
26
26
|
"value": {
|
|
27
27
|
"light": "#ffffff",
|
|
28
|
-
"dark": "#
|
|
28
|
+
"dark": "#393632"
|
|
29
29
|
},
|
|
30
30
|
"usage": "Cards, panels, dialogs. Sits on bg with shadow-card."
|
|
31
31
|
},
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"name": "surface-sub",
|
|
34
34
|
"value": {
|
|
35
35
|
"light": "#f6f5f4",
|
|
36
|
-
"dark": "#
|
|
36
|
+
"dark": "#413d38"
|
|
37
37
|
},
|
|
38
38
|
"usage": "Zebra rows, segmented controls, gray buttons, skeletons, code blocks in light."
|
|
39
39
|
},
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"name": "surface-chrome",
|
|
42
42
|
"value": {
|
|
43
43
|
"light": "#ffffff",
|
|
44
|
-
"dark": "#
|
|
44
|
+
"dark": "#34312e"
|
|
45
45
|
},
|
|
46
46
|
"usage": "Top bar, sidebar and bottom tab bar. In dark a step lighter than bg so the frame separates from the page."
|
|
47
47
|
},
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"name": "ink-muted",
|
|
66
66
|
"value": {
|
|
67
67
|
"light": "#6d645a",
|
|
68
|
-
"dark": "#
|
|
68
|
+
"dark": "#ada8a0"
|
|
69
69
|
},
|
|
70
70
|
"usage": "Secondary text, labels, captions. 4.5:1 or more on bg, surface, surface-sub, surface-chrome and accent-soft."
|
|
71
71
|
},
|
|
@@ -85,11 +85,19 @@
|
|
|
85
85
|
},
|
|
86
86
|
"usage": "Control borders: text fields, outline buttons, checkboxes. Meets 3:1 on surface and surface-sub."
|
|
87
87
|
},
|
|
88
|
+
{
|
|
89
|
+
"name": "line-soft",
|
|
90
|
+
"value": {
|
|
91
|
+
"light": "#f1efed",
|
|
92
|
+
"dark": "#433f3b"
|
|
93
|
+
},
|
|
94
|
+
"usage": "Dividers between table rows (DataTable, Markdown tables): half way from line to the surface, so rows read as one list. Other dividers use line."
|
|
95
|
+
},
|
|
88
96
|
{
|
|
89
97
|
"name": "graph-edge",
|
|
90
98
|
"value": {
|
|
91
99
|
"light": "#8c8073",
|
|
92
|
-
"dark": "#
|
|
100
|
+
"dark": "#ada8a0"
|
|
93
101
|
},
|
|
94
102
|
"usage": "Lines, arrows and node borders in diagrams (architecture graphs). Lighter in dark so lines stay visible on surface."
|
|
95
103
|
},
|
|
@@ -97,7 +105,7 @@
|
|
|
97
105
|
"name": "graph-node",
|
|
98
106
|
"value": {
|
|
99
107
|
"light": "#f6f5f4",
|
|
100
|
-
"dark": "#
|
|
108
|
+
"dark": "#413d38"
|
|
101
109
|
},
|
|
102
110
|
"usage": "Node fill in diagrams; selected nodes use accent-soft with an accent border."
|
|
103
111
|
},
|
|
@@ -121,7 +129,7 @@
|
|
|
121
129
|
"name": "accent",
|
|
122
130
|
"value": {
|
|
123
131
|
"light": "#2457d6",
|
|
124
|
-
"dark": "#
|
|
132
|
+
"dark": "#92abeb"
|
|
125
133
|
},
|
|
126
134
|
"usage": "The one brand hue as a fill: primary buttons, switches, checkboxes, progress, the selected nav indicator. 3:1 or more on bg, surface, surface-sub, surface-chrome and accent-soft, with on-accent text 4.5:1 on it; in dark the default #2457d6 is lightened (white 5% at a time) until it does. Replaceable by the user; setAccent derives it with the same rule."
|
|
127
135
|
},
|
|
@@ -129,7 +137,7 @@
|
|
|
129
137
|
"name": "accent-hover",
|
|
130
138
|
"value": {
|
|
131
139
|
"light": "#204dbc",
|
|
132
|
-
"dark": "#
|
|
140
|
+
"dark": "#9fb5ed"
|
|
133
141
|
},
|
|
134
142
|
"usage": "Primary button hover: the accent with 12% black in light, 12% white in dark."
|
|
135
143
|
},
|
|
@@ -137,7 +145,7 @@
|
|
|
137
145
|
"name": "accent-press",
|
|
138
146
|
"value": {
|
|
139
147
|
"light": "#1c44a7",
|
|
140
|
-
"dark": "#
|
|
148
|
+
"dark": "#aabdef"
|
|
141
149
|
},
|
|
142
150
|
"usage": "Primary button pressed: the accent with 22% black in light, 22% white in dark."
|
|
143
151
|
},
|
|
@@ -153,7 +161,7 @@
|
|
|
153
161
|
"name": "accent-soft",
|
|
154
162
|
"value": {
|
|
155
163
|
"light": "#e5ebfa",
|
|
156
|
-
"dark": "#
|
|
164
|
+
"dark": "#283045"
|
|
157
165
|
},
|
|
158
166
|
"usage": "Soft accent fill: selected options, rows and dates, the phone tab bar pill, highlighted code lines, drop zones, bulk-action bars, selected diagram nodes. Light: white with 12% accent; dark: surface with 22% accent."
|
|
159
167
|
},
|
|
@@ -185,7 +193,7 @@
|
|
|
185
193
|
"name": "success",
|
|
186
194
|
"value": {
|
|
187
195
|
"light": "#1b9f52",
|
|
188
|
-
"dark": "#
|
|
196
|
+
"dark": "#80cba5"
|
|
189
197
|
},
|
|
190
198
|
"usage": "Success fill, bar and icon. 3:1 or more on bg, surface, surface-sub, surface-chrome and the table's row hover. Status marks beside text use success-text."
|
|
191
199
|
},
|
|
@@ -193,7 +201,7 @@
|
|
|
193
201
|
"name": "success-text",
|
|
194
202
|
"value": {
|
|
195
203
|
"light": "#14743b",
|
|
196
|
-
"dark": "#
|
|
204
|
+
"dark": "#80cba5"
|
|
197
205
|
},
|
|
198
206
|
"usage": "Success text on success-soft, bg, surface, surface-sub, surface-chrome and accent-soft (4.5:1)."
|
|
199
207
|
},
|
|
@@ -209,7 +217,7 @@
|
|
|
209
217
|
"name": "warning",
|
|
210
218
|
"value": {
|
|
211
219
|
"light": "#bc770e",
|
|
212
|
-
"dark": "#
|
|
220
|
+
"dark": "#e6b66d"
|
|
213
221
|
},
|
|
214
222
|
"usage": "Warning fill, bar and icon. 3:1 or more on bg, surface, surface-sub, surface-chrome and the table's row hover. Status marks beside text use warning-text."
|
|
215
223
|
},
|
|
@@ -217,7 +225,7 @@
|
|
|
217
225
|
"name": "warning-text",
|
|
218
226
|
"value": {
|
|
219
227
|
"light": "#945d0b",
|
|
220
|
-
"dark": "#
|
|
228
|
+
"dark": "#e6b66d"
|
|
221
229
|
},
|
|
222
230
|
"usage": "Warning text on warning-soft, bg, surface, surface-sub, surface-chrome and accent-soft (4.5:1)."
|
|
223
231
|
},
|
|
@@ -233,7 +241,7 @@
|
|
|
233
241
|
"name": "danger",
|
|
234
242
|
"value": {
|
|
235
243
|
"light": "#cd2823",
|
|
236
|
-
"dark": "#
|
|
244
|
+
"dark": "#e58d8d"
|
|
237
245
|
},
|
|
238
246
|
"usage": "Error borders, error icon, destructive button fill (on-danger text). 3:1 or more on bg, surface, surface-sub, surface-chrome and the table's row hover; lighter in dark for that."
|
|
239
247
|
},
|
|
@@ -249,7 +257,7 @@
|
|
|
249
257
|
"name": "danger-text",
|
|
250
258
|
"value": {
|
|
251
259
|
"light": "#901c19",
|
|
252
|
-
"dark": "#
|
|
260
|
+
"dark": "#e69292"
|
|
253
261
|
},
|
|
254
262
|
"usage": "Error messages on danger-soft, bg, surface, surface-sub, surface-chrome and accent-soft (4.5:1)."
|
|
255
263
|
},
|
|
@@ -289,7 +297,7 @@
|
|
|
289
297
|
"name": "danger-ring",
|
|
290
298
|
"value": {
|
|
291
299
|
"light": "#901c19",
|
|
292
|
-
"dark": "#
|
|
300
|
+
"dark": "#e69292"
|
|
293
301
|
},
|
|
294
302
|
"usage": "Old focus glow of a field with an error, kept for pages written before; now the value of danger-text. Fields with an error show the focus outline like every control."
|
|
295
303
|
},
|
|
@@ -635,7 +643,7 @@
|
|
|
635
643
|
},
|
|
636
644
|
{
|
|
637
645
|
"name": "h3",
|
|
638
|
-
"fontSize": "
|
|
646
|
+
"fontSize": "24px",
|
|
639
647
|
"lineHeight": "32px",
|
|
640
648
|
"fontWeight": 700,
|
|
641
649
|
"letterSpacing": "-0.01em",
|
|
@@ -682,7 +690,7 @@
|
|
|
682
690
|
},
|
|
683
691
|
{
|
|
684
692
|
"name": "small",
|
|
685
|
-
"fontSize": "
|
|
693
|
+
"fontSize": "12px",
|
|
686
694
|
"lineHeight": "20px",
|
|
687
695
|
"fontWeight": 400,
|
|
688
696
|
"sample": "上次部署:[時間]",
|
|
@@ -696,7 +704,7 @@
|
|
|
696
704
|
"styles": [
|
|
697
705
|
{
|
|
698
706
|
"name": "label",
|
|
699
|
-
"fontSize": "
|
|
707
|
+
"fontSize": "12px",
|
|
700
708
|
"lineHeight": "20px",
|
|
701
709
|
"fontWeight": 600,
|
|
702
710
|
"sample": "首頁 / 專案",
|
|
@@ -732,7 +740,7 @@
|
|
|
732
740
|
},
|
|
733
741
|
{
|
|
734
742
|
"name": "text-small",
|
|
735
|
-
"value": "
|
|
743
|
+
"value": "12px",
|
|
736
744
|
"lineHeight": "20px",
|
|
737
745
|
"usage": "Hints, helper text, captions, meta lines, breadcrumbs; the minimum on monitoring screens."
|
|
738
746
|
},
|
|
@@ -774,7 +782,7 @@
|
|
|
774
782
|
},
|
|
775
783
|
{
|
|
776
784
|
"name": "text-h3",
|
|
777
|
-
"value": "
|
|
785
|
+
"value": "24px",
|
|
778
786
|
"lineHeight": "32px",
|
|
779
787
|
"usage": "Title of a page that stands alone (login, error page, settings page), chart headline, Markdown ###."
|
|
780
788
|
},
|
|
@@ -835,6 +843,12 @@
|
|
|
835
843
|
"value": "32px",
|
|
836
844
|
"usage": "Gap between page sections (compact)."
|
|
837
845
|
},
|
|
846
|
+
{
|
|
847
|
+
"name": "block-gap",
|
|
848
|
+
"value": "32px",
|
|
849
|
+
"phone": "16px",
|
|
850
|
+
"usage": "The one vertical distance between blocks stacked on a page (cards, KPI rows, alerts, tables): Page, the rows of a Grid, a Page inside a Grid and the settings sections all use it, so two neighbouring blocks are always the same distance apart. 32 px; 16 px on phones (under 600 px)."
|
|
851
|
+
},
|
|
838
852
|
{
|
|
839
853
|
"name": "space-12",
|
|
840
854
|
"value": "48px",
|
|
@@ -851,7 +865,7 @@
|
|
|
851
865
|
},
|
|
852
866
|
{
|
|
853
867
|
"name": "radius-sm",
|
|
854
|
-
"value": "
|
|
868
|
+
"value": "8px",
|
|
855
869
|
"usage": "Checkboxes, skeleton bars, inner segments."
|
|
856
870
|
},
|
|
857
871
|
{
|
|
@@ -866,7 +880,7 @@
|
|
|
866
880
|
},
|
|
867
881
|
{
|
|
868
882
|
"name": "radius-lg",
|
|
869
|
-
"value": "
|
|
883
|
+
"value": "12px",
|
|
870
884
|
"usage": "Cards, panels, dialogs."
|
|
871
885
|
},
|
|
872
886
|
{
|
|
@@ -882,7 +896,7 @@
|
|
|
882
896
|
"name": "shadow-sm",
|
|
883
897
|
"value": {
|
|
884
898
|
"light": "0 1px 2px rgba(16, 24, 40, 0.12)",
|
|
885
|
-
"dark": "0 1px 2px rgba(0, 0, 0, 0.
|
|
899
|
+
"dark": "0 1px 2px rgba(0, 0, 0, 0.3)"
|
|
886
900
|
},
|
|
887
901
|
"usage": "Raised controls on surface-sub."
|
|
888
902
|
},
|
|
@@ -890,7 +904,7 @@
|
|
|
890
904
|
"name": "shadow-chip",
|
|
891
905
|
"value": {
|
|
892
906
|
"light": "0 1px 2px rgba(16, 24, 40, 0.14), 0 2px 6px rgba(16, 24, 40, 0.08)",
|
|
893
|
-
"dark": "0 1px 2px rgba(0, 0, 0, 0.
|
|
907
|
+
"dark": "0 1px 2px rgba(0, 0, 0, 0.28)"
|
|
894
908
|
},
|
|
895
909
|
"usage": "Shadow of a raised Badge (chip)."
|
|
896
910
|
},
|
|
@@ -898,7 +912,7 @@
|
|
|
898
912
|
"name": "shadow-card",
|
|
899
913
|
"value": {
|
|
900
914
|
"light": "0 1px 2px rgba(16, 24, 40, 0.06), 0 8px 24px rgba(16, 24, 40, 0.1)",
|
|
901
|
-
"dark": "0 1px 2px rgba(0, 0, 0, 0.
|
|
915
|
+
"dark": "0 1px 2px rgba(0, 0, 0, 0.24)"
|
|
902
916
|
},
|
|
903
917
|
"usage": "Cards and panels: the system separates layers with shadow, not borders."
|
|
904
918
|
},
|
|
@@ -906,7 +920,7 @@
|
|
|
906
920
|
"name": "shadow-card-hover",
|
|
907
921
|
"value": {
|
|
908
922
|
"light": "0 2px 4px rgba(16, 24, 40, 0.08), 0 16px 36px rgba(16, 24, 40, 0.14)",
|
|
909
|
-
"dark": "0 2px
|
|
923
|
+
"dark": "0 2px 6px rgba(0, 0, 0, 0.3)"
|
|
910
924
|
},
|
|
911
925
|
"usage": "Clickable card on hover, with a 3px lift."
|
|
912
926
|
},
|
|
@@ -944,7 +958,7 @@
|
|
|
944
958
|
},
|
|
945
959
|
{
|
|
946
960
|
"name": "sidebar-width",
|
|
947
|
-
"value": "
|
|
961
|
+
"value": "208px",
|
|
948
962
|
"usage": "Expanded sidebar."
|
|
949
963
|
},
|
|
950
964
|
{
|