@seanyeh77/tokens 0.53.0 → 0.54.1
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 +1 -1
- package/dist/index.js +6 -5
- package/dist/tailwind.css +5 -4
- package/dist/tokens.css +29 -27
- package/package.json +1 -1
- package/tokens.json +38 -30
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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';
|
|
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
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';
|
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",
|
|
@@ -87,10 +88,10 @@ export const tokens = /* @__PURE__ */ Object.freeze({
|
|
|
87
88
|
"block-gap": "32px",
|
|
88
89
|
"space-12": "48px",
|
|
89
90
|
"radius-xs": "4px",
|
|
90
|
-
"radius-sm": "
|
|
91
|
+
"radius-sm": "8px",
|
|
91
92
|
"radius-chip": "8px",
|
|
92
93
|
"radius-md": "10px",
|
|
93
|
-
"radius-lg": "
|
|
94
|
+
"radius-lg": "12px",
|
|
94
95
|
"radius-full": "9999px",
|
|
95
96
|
"shadow-sm": "0 1px 2px rgba(16, 24, 40, 0.12)",
|
|
96
97
|
"shadow-chip": "0 1px 2px rgba(16, 24, 40, 0.14), 0 2px 6px rgba(16, 24, 40, 0.08)",
|
|
@@ -101,7 +102,7 @@ export const tokens = /* @__PURE__ */ Object.freeze({
|
|
|
101
102
|
"chip-height": "32px",
|
|
102
103
|
"touch-target": "48px",
|
|
103
104
|
"header-height": "64px",
|
|
104
|
-
"sidebar-width": "
|
|
105
|
+
"sidebar-width": "208px",
|
|
105
106
|
"sidebar-collapsed": "72px",
|
|
106
107
|
"tabbar-height": "68px",
|
|
107
108
|
"icon-stroke": "2px",
|
|
@@ -110,14 +111,14 @@ export const tokens = /* @__PURE__ */ Object.freeze({
|
|
|
110
111
|
"bp-desktop": "960px",
|
|
111
112
|
"bp-wide": "1280px",
|
|
112
113
|
"text-mini": "12px",
|
|
113
|
-
"text-small": "
|
|
114
|
+
"text-small": "12px",
|
|
114
115
|
"text-compact": "14px",
|
|
115
116
|
"text-control": "15px",
|
|
116
117
|
"text-body": "16px",
|
|
117
118
|
"text-title": "17px",
|
|
118
119
|
"text-lead": "18px",
|
|
119
120
|
"text-h4": "20px",
|
|
120
|
-
"text-h3": "
|
|
121
|
+
"text-h3": "24px",
|
|
121
122
|
"text-h2": "31px",
|
|
122
123
|
"text-h1": "39px",
|
|
123
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);
|
|
@@ -95,16 +96,16 @@
|
|
|
95
96
|
}
|
|
96
97
|
@theme {
|
|
97
98
|
--radius-xs: 4px;
|
|
98
|
-
--radius-sm:
|
|
99
|
+
--radius-sm: 8px;
|
|
99
100
|
--radius-chip: 8px;
|
|
100
101
|
--radius-md: 10px;
|
|
101
|
-
--radius-lg:
|
|
102
|
+
--radius-lg: 12px;
|
|
102
103
|
--radius-full: 9999px;
|
|
103
104
|
--font-sans: Inter, "Noto Sans TC", system-ui, sans-serif;
|
|
104
105
|
--font-mono: "Geist Mono", "Noto Sans TC", ui-monospace, monospace;
|
|
105
106
|
--text-mini: 12px;
|
|
106
107
|
--text-mini--line-height: 16px;
|
|
107
|
-
--text-small:
|
|
108
|
+
--text-small: 12px;
|
|
108
109
|
--text-small--line-height: 20px;
|
|
109
110
|
--text-compact: 14px;
|
|
110
111
|
--text-compact--line-height: 20px;
|
|
@@ -118,7 +119,7 @@
|
|
|
118
119
|
--text-lead--line-height: 30px;
|
|
119
120
|
--text-h4: 20px;
|
|
120
121
|
--text-h4--line-height: 28px;
|
|
121
|
-
--text-h3:
|
|
122
|
+
--text-h3: 24px;
|
|
122
123
|
--text-h3--line-height: 32px;
|
|
123
124
|
--text-h2: 31px;
|
|
124
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;
|
|
@@ -91,10 +92,10 @@
|
|
|
91
92
|
--block-gap: 32px;
|
|
92
93
|
--space-12: 48px;
|
|
93
94
|
--radius-xs: 4px;
|
|
94
|
-
--radius-sm:
|
|
95
|
+
--radius-sm: 8px;
|
|
95
96
|
--radius-chip: 8px;
|
|
96
97
|
--radius-md: 10px;
|
|
97
|
-
--radius-lg:
|
|
98
|
+
--radius-lg: 12px;
|
|
98
99
|
--radius-full: 9999px;
|
|
99
100
|
--shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.12);
|
|
100
101
|
--shadow-chip: 0 1px 2px rgba(16, 24, 40, 0.14), 0 2px 6px rgba(16, 24, 40, 0.08);
|
|
@@ -105,7 +106,7 @@
|
|
|
105
106
|
--chip-height: 32px;
|
|
106
107
|
--touch-target: 48px;
|
|
107
108
|
--header-height: 64px;
|
|
108
|
-
--sidebar-width:
|
|
109
|
+
--sidebar-width: 208px;
|
|
109
110
|
--sidebar-collapsed: 72px;
|
|
110
111
|
--tabbar-height: 68px;
|
|
111
112
|
--icon-stroke: 2px;
|
|
@@ -114,14 +115,14 @@
|
|
|
114
115
|
--bp-desktop: 960px;
|
|
115
116
|
--bp-wide: 1280px;
|
|
116
117
|
--text-mini: 12px;
|
|
117
|
-
--text-small:
|
|
118
|
+
--text-small: 12px;
|
|
118
119
|
--text-compact: 14px;
|
|
119
120
|
--text-control: 15px;
|
|
120
121
|
--text-body: 16px;
|
|
121
122
|
--text-title: 17px;
|
|
122
123
|
--text-lead: 18px;
|
|
123
124
|
--text-h4: 20px;
|
|
124
|
-
--text-h3:
|
|
125
|
+
--text-h3: 24px;
|
|
125
126
|
--text-h2: 31px;
|
|
126
127
|
--text-h1: 39px;
|
|
127
128
|
--text-display: 49px;
|
|
@@ -157,40 +158,41 @@
|
|
|
157
158
|
}
|
|
158
159
|
[data-theme="dark"] {
|
|
159
160
|
color-scheme: dark;
|
|
160
|
-
--bg: #
|
|
161
|
-
--surface: #
|
|
162
|
-
--surface-sub: #
|
|
163
|
-
--surface-chrome: #
|
|
161
|
+
--bg: #292725;
|
|
162
|
+
--surface: #393632;
|
|
163
|
+
--surface-sub: #413d38;
|
|
164
|
+
--surface-chrome: #34312e;
|
|
164
165
|
--surface-input: #26221e;
|
|
165
166
|
--ink: #f6f5f4;
|
|
166
|
-
--ink-muted: #
|
|
167
|
+
--ink-muted: #ada8a0;
|
|
167
168
|
--line: #4c4844;
|
|
168
169
|
--line-strong: #988c80;
|
|
169
|
-
--
|
|
170
|
-
--graph-
|
|
170
|
+
--line-soft: #433f3b;
|
|
171
|
+
--graph-edge: #ada8a0;
|
|
172
|
+
--graph-node: #413d38;
|
|
171
173
|
--code-keyword: #a3b7ee;
|
|
172
174
|
--code-constant: #3cc4ae;
|
|
173
|
-
--accent: #
|
|
174
|
-
--accent-hover: #
|
|
175
|
-
--accent-press: #
|
|
175
|
+
--accent: #92abeb;
|
|
176
|
+
--accent-hover: #9fb5ed;
|
|
177
|
+
--accent-press: #aabdef;
|
|
176
178
|
--accent-text: #92abeb;
|
|
177
|
-
--accent-soft: #
|
|
179
|
+
--accent-soft: #283045;
|
|
178
180
|
--on-accent: #171512;
|
|
179
181
|
--focus: #92abeb;
|
|
180
182
|
--focus-ring: #92abeb;
|
|
181
|
-
--success: #
|
|
182
|
-
--success-text: #
|
|
183
|
+
--success: #80cba5;
|
|
184
|
+
--success-text: #80cba5;
|
|
183
185
|
--success-soft: #2c3e2d;
|
|
184
|
-
--warning: #
|
|
185
|
-
--warning-text: #
|
|
186
|
+
--warning: #e6b66d;
|
|
187
|
+
--warning-text: #e6b66d;
|
|
186
188
|
--warning-soft: #4a3922;
|
|
187
|
-
--danger: #
|
|
189
|
+
--danger: #e58d8d;
|
|
188
190
|
--on-danger: #171512;
|
|
189
|
-
--danger-text: #
|
|
191
|
+
--danger-text: #e69292;
|
|
190
192
|
--danger-soft: #482a25;
|
|
191
193
|
--info-text: #90aaea;
|
|
192
194
|
--info-soft: #2d3141;
|
|
193
|
-
--danger-ring: #
|
|
195
|
+
--danger-ring: #e69292;
|
|
194
196
|
--mark: #7c5d12;
|
|
195
197
|
--chart-1: #819ee7;
|
|
196
198
|
--chart-2: #3cc4ae;
|
|
@@ -209,10 +211,10 @@
|
|
|
209
211
|
--diverge-pos: #d9772f;
|
|
210
212
|
--diverge-pos-strong: #f0a35e;
|
|
211
213
|
--forecast-stripe: rgba(246, 245, 244, 0.14);
|
|
212
|
-
--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.
|
|
213
|
-
--shadow-chip: 0 1px 2px rgba(0, 0, 0, 0.
|
|
214
|
-
--shadow-card: 0 1px 2px rgba(0, 0, 0, 0.
|
|
215
|
-
--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);
|
|
216
218
|
--shadow-overlay: 0 20px 48px rgba(0, 0, 0, 0.5);
|
|
217
219
|
}
|
|
218
220
|
[data-theme="teaching"] {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seanyeh77/tokens",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.54.1",
|
|
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
|
},
|
|
@@ -857,7 +865,7 @@
|
|
|
857
865
|
},
|
|
858
866
|
{
|
|
859
867
|
"name": "radius-sm",
|
|
860
|
-
"value": "
|
|
868
|
+
"value": "8px",
|
|
861
869
|
"usage": "Checkboxes, skeleton bars, inner segments."
|
|
862
870
|
},
|
|
863
871
|
{
|
|
@@ -872,7 +880,7 @@
|
|
|
872
880
|
},
|
|
873
881
|
{
|
|
874
882
|
"name": "radius-lg",
|
|
875
|
-
"value": "
|
|
883
|
+
"value": "12px",
|
|
876
884
|
"usage": "Cards, panels, dialogs."
|
|
877
885
|
},
|
|
878
886
|
{
|
|
@@ -888,7 +896,7 @@
|
|
|
888
896
|
"name": "shadow-sm",
|
|
889
897
|
"value": {
|
|
890
898
|
"light": "0 1px 2px rgba(16, 24, 40, 0.12)",
|
|
891
|
-
"dark": "0 1px 2px rgba(0, 0, 0, 0.
|
|
899
|
+
"dark": "0 1px 2px rgba(0, 0, 0, 0.3)"
|
|
892
900
|
},
|
|
893
901
|
"usage": "Raised controls on surface-sub."
|
|
894
902
|
},
|
|
@@ -896,7 +904,7 @@
|
|
|
896
904
|
"name": "shadow-chip",
|
|
897
905
|
"value": {
|
|
898
906
|
"light": "0 1px 2px rgba(16, 24, 40, 0.14), 0 2px 6px rgba(16, 24, 40, 0.08)",
|
|
899
|
-
"dark": "0 1px 2px rgba(0, 0, 0, 0.
|
|
907
|
+
"dark": "0 1px 2px rgba(0, 0, 0, 0.28)"
|
|
900
908
|
},
|
|
901
909
|
"usage": "Shadow of a raised Badge (chip)."
|
|
902
910
|
},
|
|
@@ -904,7 +912,7 @@
|
|
|
904
912
|
"name": "shadow-card",
|
|
905
913
|
"value": {
|
|
906
914
|
"light": "0 1px 2px rgba(16, 24, 40, 0.06), 0 8px 24px rgba(16, 24, 40, 0.1)",
|
|
907
|
-
"dark": "0 1px 2px rgba(0, 0, 0, 0.
|
|
915
|
+
"dark": "0 1px 2px rgba(0, 0, 0, 0.24)"
|
|
908
916
|
},
|
|
909
917
|
"usage": "Cards and panels: the system separates layers with shadow, not borders."
|
|
910
918
|
},
|
|
@@ -912,7 +920,7 @@
|
|
|
912
920
|
"name": "shadow-card-hover",
|
|
913
921
|
"value": {
|
|
914
922
|
"light": "0 2px 4px rgba(16, 24, 40, 0.08), 0 16px 36px rgba(16, 24, 40, 0.14)",
|
|
915
|
-
"dark": "0 2px
|
|
923
|
+
"dark": "0 2px 6px rgba(0, 0, 0, 0.3)"
|
|
916
924
|
},
|
|
917
925
|
"usage": "Clickable card on hover, with a 3px lift."
|
|
918
926
|
},
|
|
@@ -950,7 +958,7 @@
|
|
|
950
958
|
},
|
|
951
959
|
{
|
|
952
960
|
"name": "sidebar-width",
|
|
953
|
-
"value": "
|
|
961
|
+
"value": "208px",
|
|
954
962
|
"usage": "Expanded sidebar."
|
|
955
963
|
},
|
|
956
964
|
{
|