@finstack-com-public/design 0.6.0 → 0.7.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/CHANGELOG.md +171 -0
- package/dist/charts/index.d.ts +7 -2
- package/dist/charts/index.js +20 -17
- package/dist/css/appbar.css +2 -2
- package/dist/css/breadcrumbs.css +1 -1
- package/dist/css/card.css +52 -21
- package/dist/css/card.md +18 -3
- package/dist/css/checkbox.css +61 -1
- package/dist/css/checkbox.md +3 -2
- package/dist/css/chip.css +37 -6
- package/dist/css/chip.md +5 -0
- package/dist/css/control-rows.css +111 -0
- package/dist/css/control-rows.md +46 -0
- package/dist/css/count.css +2 -2
- package/dist/css/dialog.css +5 -1
- package/dist/css/dialog.md +1 -0
- package/dist/css/drag.css +6 -6
- package/dist/css/drag.md +1 -0
- package/dist/css/dropzone.css +3 -3
- package/dist/css/error-message.css +2 -2
- package/dist/css/field.css +1 -1
- package/dist/css/gap.css +7 -7
- package/dist/css/glass.css +11 -7
- package/dist/css/glass.md +4 -3
- package/dist/css/input.css +1 -1
- package/dist/css/kicker.css +12 -2
- package/dist/css/kicker.md +5 -0
- package/dist/css/kpi.css +120 -6
- package/dist/css/kpi.md +28 -1
- package/dist/css/link.css +1 -1
- package/dist/css/menu.css +2 -2
- package/dist/css/meter.css +2 -2
- package/dist/css/page.css +36 -0
- package/dist/css/page.md +28 -0
- package/dist/css/panel.css +2 -4
- package/dist/css/panel.md +1 -1
- package/dist/css/param-badge.css +48 -0
- package/dist/css/param-badge.md +22 -0
- package/dist/css/popover.css +5 -4
- package/dist/css/problems.css +2 -2
- package/dist/css/progress.css +1 -1
- package/dist/css/segmented.css +2 -2
- package/dist/css/sheet.css +4 -4
- package/dist/css/sidenav.css +4 -5
- package/dist/css/sidenav.md +1 -1
- package/dist/css/site.css +3 -2
- package/dist/css/stacked-bar.css +2 -2
- package/dist/css/tabbar.css +36 -13
- package/dist/css/tabbar.md +4 -1
- package/dist/css/table.css +2 -1
- package/dist/css/tabs.css +18 -2
- package/dist/css/tabs.md +1 -0
- package/dist/css/title.css +20 -0
- package/dist/css/title.md +13 -0
- package/dist/css/tokens.css +146 -111
- package/dist/css/tooltip.css +25 -2
- package/dist/css/tooltip.md +1 -0
- package/dist/css/tree.css +44 -9
- package/dist/css/tree.md +1 -0
- package/dist/css/wave.md +4 -0
- package/dist/css/widget.css +7 -9
- package/dist/css-text/appbar.js +1 -1
- package/dist/css-text/breadcrumbs.js +1 -1
- package/dist/css-text/card.js +1 -1
- package/dist/css-text/checkbox.js +1 -1
- package/dist/css-text/chip.js +1 -1
- package/dist/css-text/control-rows.js +1 -0
- package/dist/css-text/count.js +1 -1
- package/dist/css-text/dialog.js +1 -1
- package/dist/css-text/drag.js +1 -1
- package/dist/css-text/dropzone.js +1 -1
- package/dist/css-text/error-message.js +1 -1
- package/dist/css-text/field.js +1 -1
- package/dist/css-text/gap.js +1 -1
- package/dist/css-text/glass.js +1 -1
- package/dist/css-text/input.js +1 -1
- package/dist/css-text/kicker.js +1 -1
- package/dist/css-text/kit.js +852 -353
- package/dist/css-text/kpi.js +1 -1
- package/dist/css-text/link.js +1 -1
- package/dist/css-text/menu.js +1 -1
- package/dist/css-text/meter.js +1 -1
- package/dist/css-text/page.js +1 -0
- package/dist/css-text/panel.js +1 -1
- package/dist/css-text/param-badge.d.ts +2 -0
- package/dist/css-text/param-badge.js +1 -0
- package/dist/css-text/popover.js +1 -1
- package/dist/css-text/problems.js +1 -1
- package/dist/css-text/progress.js +1 -1
- package/dist/css-text/segmented.js +1 -1
- package/dist/css-text/sheet.js +1 -1
- package/dist/css-text/sidenav.js +1 -1
- package/dist/css-text/site.js +1 -1
- package/dist/css-text/stacked-bar.js +1 -1
- package/dist/css-text/tabbar.js +1 -1
- package/dist/css-text/table.js +1 -1
- package/dist/css-text/tabs.js +1 -1
- package/dist/css-text/title.d.ts +2 -0
- package/dist/css-text/title.js +1 -0
- package/dist/css-text/tokens.js +1 -1
- package/dist/css-text/tooltip.js +1 -1
- package/dist/css-text/tree.js +1 -1
- package/dist/css-text/widget.js +1 -1
- package/dist/grid.json +2 -2
- package/dist/kit.css +852 -353
- package/dist/react/data.d.ts +34 -0
- package/dist/react/data.js +7 -3
- package/dist/tokens/color.d.ts +5 -3
- package/dist/tokens/color.js +38 -25
- package/dist/tokens/contrast-pairs.js +23 -6
- package/dist/tokens/density.d.ts +2 -0
- package/dist/tokens/density.js +8 -2
- package/dist/tokens/grid.js +5 -5
- package/dist/tokens/index.d.ts +29 -20
- package/dist/tokens/primitives.d.ts +2 -0
- package/dist/tokens/primitives.js +3 -0
- package/dist/tokens/scale.d.ts +24 -15
- package/dist/tokens/scale.js +20 -9
- package/dist/tokens.json +71 -52
- package/package.json +2 -1
- package/dist/css/blocks.css +0 -47
- package/dist/css/blocks.md +0 -18
- package/dist/css/sweep.css +0 -55
- package/dist/css/sweep.md +0 -20
- package/dist/css-text/blocks.js +0 -1
- package/dist/css-text/sweep.js +0 -1
- /package/dist/css-text/{blocks.d.ts → control-rows.d.ts} +0 -0
- /package/dist/css-text/{sweep.d.ts → page.d.ts} +0 -0
package/dist/tokens/scale.js
CHANGED
|
@@ -13,12 +13,12 @@ export const textSteps = {
|
|
|
13
13
|
sm: { size: 13, line: 20 },
|
|
14
14
|
md: { size: 14, line: 20 },
|
|
15
15
|
base: { size: 16, line: 24 },
|
|
16
|
-
lg: { size:
|
|
17
|
-
xl: { size:
|
|
16
|
+
lg: { size: 16, line: 24 },
|
|
17
|
+
xl: { size: 24, line: 32 },
|
|
18
18
|
'2xl': { size: 26, line: 32 },
|
|
19
|
-
'fig-sm': { size:
|
|
20
|
-
'fig-md': { size:
|
|
21
|
-
'fig-lg': { size:
|
|
19
|
+
'fig-sm': { size: 20, line: 24 },
|
|
20
|
+
'fig-md': { size: 22, line: 28 },
|
|
21
|
+
'fig-lg': { size: 24, line: 32 },
|
|
22
22
|
'fig-xl': { size: 40, line: 44 },
|
|
23
23
|
};
|
|
24
24
|
export const weights = { regular: 400, medium: 500, semibold: 600, bold: 700 };
|
|
@@ -37,10 +37,12 @@ export const space = {
|
|
|
37
37
|
'10': 40,
|
|
38
38
|
'12': 48,
|
|
39
39
|
};
|
|
40
|
-
|
|
40
|
+
// Two radii (D37, T66): 0 for surfaces, 4 px for controls. The names stay so consumers keep working:
|
|
41
|
+
// `sm` and `md` are both 4 (controls), `lg` and `xl` both 0 (surfaces). `pill` is for counts, badges, switches.
|
|
42
|
+
export const radii = { sm: 4, md: 4, lg: 0, xl: 0, pill: 999 };
|
|
41
43
|
export const sizes = {
|
|
42
44
|
appbar: 48,
|
|
43
|
-
tabbar:
|
|
45
|
+
tabbar: 40,
|
|
44
46
|
pagetabs: 40,
|
|
45
47
|
nav: 240,
|
|
46
48
|
pane: 272,
|
|
@@ -55,6 +57,15 @@ export const sizes = {
|
|
|
55
57
|
'content-md': 900,
|
|
56
58
|
'content-sm': 736,
|
|
57
59
|
touch: 24,
|
|
60
|
+
// Page spacing (T69, page plan §1): `--fs-size-page-*`, `--fs-size-widget-gap`.
|
|
61
|
+
'page-top': 24,
|
|
62
|
+
'page-x': 32,
|
|
63
|
+
'page-bottom': 32,
|
|
64
|
+
'page-gap': 24,
|
|
65
|
+
'page-header-gap': 12,
|
|
66
|
+
'page-header-after': 32,
|
|
67
|
+
'page-caption-gap': 4,
|
|
68
|
+
'widget-gap': 8,
|
|
58
69
|
};
|
|
59
70
|
// Widths in em, so they follow the font size of the element that reads them: a 10em input holds
|
|
60
71
|
// about 16 characters at every density (spec 01 §6). CSS: `--fs-size-<key>: <n>em`.
|
|
@@ -84,8 +95,8 @@ export const motionReduced = {
|
|
|
84
95
|
'dur-panel': '0ms',
|
|
85
96
|
'loader-period': '4s',
|
|
86
97
|
};
|
|
87
|
-
// Area fills under a line, as
|
|
88
|
-
export const chartScale = { 'chart-area-alpha': 0.18 };
|
|
98
|
+
// Area fills under a line (`chart-area-alpha`) and the series themselves (`chart-series-alpha`, D40), as an alpha on the chart's own shapes (spec 04 §2.4). CSS: `--fs-<key>`.
|
|
99
|
+
export const chartScale = { 'chart-area-alpha': 0.18, 'chart-series-alpha': 0.6 };
|
|
89
100
|
export const zLayers = { sticky: 10, dropdown: 100, overlay: 200, dialog: 300, toast: 400 };
|
|
90
101
|
// The gap hatch, read at the point of use, so an island's tint recolours it (spec 01 §3.4).
|
|
91
102
|
export const patterns = {
|
package/dist/tokens.json
CHANGED
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
"color": {
|
|
3
3
|
"light": {
|
|
4
4
|
"bg-surface": "#ffffff",
|
|
5
|
-
"bg-page": "#
|
|
6
|
-
"bg-plane": "#
|
|
7
|
-
"bg-chrome": "#
|
|
8
|
-
"bg-sunken": "#
|
|
5
|
+
"bg-page": "#ffffff",
|
|
6
|
+
"bg-plane": "#f7f8fa",
|
|
7
|
+
"bg-chrome": "#f7f8fa",
|
|
8
|
+
"bg-sunken": "#f7f8fa",
|
|
9
9
|
"bg-hover": "rgba(11,26,63,0.05)",
|
|
10
10
|
"bg-active": "rgba(11,26,63,0.09)",
|
|
11
|
-
"bg-selected": "#
|
|
12
|
-
"bg-disabled": "#
|
|
11
|
+
"bg-selected": "#e9edfc",
|
|
12
|
+
"bg-disabled": "#eef1f5",
|
|
13
13
|
"bg-highlight": "#fff6cc",
|
|
14
|
-
"bg-backdrop": "rgba(11,26,63,0.
|
|
14
|
+
"bg-backdrop": "rgba(11,26,63,0.32)",
|
|
15
15
|
"ink": "#0b1a3f",
|
|
16
16
|
"ink-2": "#3b4a6b",
|
|
17
17
|
"ink-muted": "#5b6785",
|
|
@@ -20,11 +20,12 @@
|
|
|
20
20
|
"ink-link": "#1f4fe0",
|
|
21
21
|
"line": "#dfe6f1",
|
|
22
22
|
"line-strong": "#c9d4e6",
|
|
23
|
-
"line-control": "#
|
|
24
|
-
"line-
|
|
23
|
+
"line-control": "#d5dbe5",
|
|
24
|
+
"line-control-strong": "#7a88a6",
|
|
25
|
+
"line-button": "#d5dbe5",
|
|
25
26
|
"accent": "#1f4fe0",
|
|
26
27
|
"accent-strong": "#1a3fb8",
|
|
27
|
-
"accent-wash": "#
|
|
28
|
+
"accent-wash": "#e9edfc",
|
|
28
29
|
"primary-bg": "#1f4fe0",
|
|
29
30
|
"primary-bg-hover": "#1a3fb8",
|
|
30
31
|
"primary-ink": "#ffffff",
|
|
@@ -34,13 +35,11 @@
|
|
|
34
35
|
"brand-wash-start": "#e8f0fe",
|
|
35
36
|
"brand-wash-end": "#e3f8fb",
|
|
36
37
|
"ring-halo": "#ffffff",
|
|
37
|
-
"glass-bg": "rgba(
|
|
38
|
-
"glass-
|
|
39
|
-
"sweep-1": "rgba(43,124,246,0.10)",
|
|
40
|
-
"sweep-2": "rgba(20,212,224,0.16)",
|
|
38
|
+
"glass-bg": "rgba(43,124,246,0.08)",
|
|
39
|
+
"glass-bg-end": "rgba(20,212,224,0.10)",
|
|
41
40
|
"wave-glow": "transparent",
|
|
42
41
|
"neutral-ink": "#3b4a6b",
|
|
43
|
-
"neutral-wash": "#
|
|
42
|
+
"neutral-wash": "#eef1f5",
|
|
44
43
|
"neutral-edge": "#7a88a6",
|
|
45
44
|
"neutral-fill": "#3b4a6b",
|
|
46
45
|
"info-ink": "#1f4fe0",
|
|
@@ -86,12 +85,12 @@
|
|
|
86
85
|
"type-input": "#0b7a75",
|
|
87
86
|
"type-model": "#7445b8",
|
|
88
87
|
"type-access": "#546e7a",
|
|
89
|
-
"computed-bg": "#
|
|
88
|
+
"computed-bg": "#eef1f5",
|
|
90
89
|
"computed-line": "#7a88a6",
|
|
91
|
-
"editor-gutter-bg": "#
|
|
90
|
+
"editor-gutter-bg": "#f7f8fa",
|
|
92
91
|
"editor-gutter-ink": "#5b6785",
|
|
93
92
|
"editor-gutter-line": "#dfe6f1",
|
|
94
|
-
"editor-selection": "#
|
|
93
|
+
"editor-selection": "#e9edfc",
|
|
95
94
|
"editor-selection-blur": "rgba(11,26,63,0.09)",
|
|
96
95
|
"editor-caret": "#0b1a3f",
|
|
97
96
|
"editor-active-line": "rgba(11,26,63,0.05)",
|
|
@@ -111,7 +110,7 @@
|
|
|
111
110
|
"chart-7": "#648c85",
|
|
112
111
|
"chart-8": "#b14e46",
|
|
113
112
|
"chart-other": "#7a88a6",
|
|
114
|
-
"chart-comparison": "#
|
|
113
|
+
"chart-comparison": "#aaaaaa",
|
|
115
114
|
"chart-axis": "#c9d4e6",
|
|
116
115
|
"chart-label": "#5b6785",
|
|
117
116
|
"chart-grid": "#dfe6f1",
|
|
@@ -121,16 +120,16 @@
|
|
|
121
120
|
},
|
|
122
121
|
"dark": {
|
|
123
122
|
"bg-surface": "#0e1d45",
|
|
124
|
-
"bg-page": "#
|
|
123
|
+
"bg-page": "#0e1d45",
|
|
125
124
|
"bg-plane": "#050d26",
|
|
126
125
|
"bg-chrome": "#13244f",
|
|
127
|
-
"bg-sunken": "#
|
|
126
|
+
"bg-sunken": "#13244f",
|
|
128
127
|
"bg-hover": "rgba(232,238,252,0.06)",
|
|
129
128
|
"bg-active": "rgba(232,238,252,0.10)",
|
|
130
129
|
"bg-selected": "#172d64",
|
|
131
130
|
"bg-disabled": "#152a5a",
|
|
132
131
|
"bg-highlight": "#3b3416",
|
|
133
|
-
"bg-backdrop": "rgba(2,6,20,0.
|
|
132
|
+
"bg-backdrop": "rgba(2,6,20,0.64)",
|
|
134
133
|
"ink": "#e8eefc",
|
|
135
134
|
"ink-2": "#b9c6e2",
|
|
136
135
|
"ink-muted": "#93a1c2",
|
|
@@ -139,8 +138,9 @@
|
|
|
139
138
|
"ink-link": "#8db8ff",
|
|
140
139
|
"line": "#22356a",
|
|
141
140
|
"line-strong": "#30467f",
|
|
142
|
-
"line-control": "#
|
|
143
|
-
"line-
|
|
141
|
+
"line-control": "#2a3e76",
|
|
142
|
+
"line-control-strong": "#6f81ad",
|
|
143
|
+
"line-button": "#2a3e76",
|
|
144
144
|
"accent": "#8db8ff",
|
|
145
145
|
"accent-strong": "#c4d9ff",
|
|
146
146
|
"accent-wash": "#172d64",
|
|
@@ -153,10 +153,8 @@
|
|
|
153
153
|
"brand-wash-start": "#13244f",
|
|
154
154
|
"brand-wash-end": "#0f3358",
|
|
155
155
|
"ring-halo": "#071233",
|
|
156
|
-
"glass-bg": "rgba(
|
|
157
|
-
"glass-
|
|
158
|
-
"sweep-1": "rgba(43,124,246,0.20)",
|
|
159
|
-
"sweep-2": "rgba(20,212,224,0.14)",
|
|
156
|
+
"glass-bg": "rgba(43,124,246,0.08)",
|
|
157
|
+
"glass-bg-end": "rgba(20,212,224,0.03)",
|
|
160
158
|
"wave-glow": "rgba(20,212,224,0.55)",
|
|
161
159
|
"neutral-ink": "#b9c6e2",
|
|
162
160
|
"neutral-wash": "#152a5a",
|
|
@@ -207,7 +205,7 @@
|
|
|
207
205
|
"type-access": "#9fb3bd",
|
|
208
206
|
"computed-bg": "#152a5a",
|
|
209
207
|
"computed-line": "#6f81ad",
|
|
210
|
-
"editor-gutter-bg": "#
|
|
208
|
+
"editor-gutter-bg": "#13244f",
|
|
211
209
|
"editor-gutter-ink": "#93a1c2",
|
|
212
210
|
"editor-gutter-line": "#22356a",
|
|
213
211
|
"editor-selection": "#172d64",
|
|
@@ -243,19 +241,25 @@
|
|
|
243
241
|
"light": {
|
|
244
242
|
"1": "0 1px 2px rgba(11,26,63,0.05), 0 8px 28px rgba(31,79,224,0.08)",
|
|
245
243
|
"2": "0 4px 20px rgba(11,26,63,0.12)",
|
|
246
|
-
"3": "0
|
|
244
|
+
"3": "0 12px 32px rgba(11,26,63,0.18)",
|
|
245
|
+
"drawer": "-8px 0 24px rgba(11,26,63,0.12)",
|
|
246
|
+
"tooltip": "0 4px 12px rgba(11,26,63,0.12)",
|
|
247
|
+
"lift": "0 2px 6px rgba(11,26,63,0.08)"
|
|
247
248
|
},
|
|
248
249
|
"dark": {
|
|
249
250
|
"1": "0 1px 2px rgba(2,6,20,0.10), 0 8px 28px rgba(2,6,20,0.16)",
|
|
250
251
|
"2": "0 4px 20px rgba(2,6,20,0.24)",
|
|
251
|
-
"3": "0
|
|
252
|
+
"3": "0 12px 32px rgba(2,6,20,0.36)",
|
|
253
|
+
"drawer": "-8px 0 24px rgba(2,6,20,0.24)",
|
|
254
|
+
"tooltip": "0 4px 12px rgba(2,6,20,0.24)",
|
|
255
|
+
"lift": "0 2px 6px rgba(2,6,20,0.16)"
|
|
252
256
|
}
|
|
253
257
|
},
|
|
254
258
|
"grid": {
|
|
255
259
|
"light": {
|
|
256
260
|
"line": "#dddddd",
|
|
257
|
-
"header-bg": "#
|
|
258
|
-
"label-bg": "#
|
|
261
|
+
"header-bg": "#f7f8fa",
|
|
262
|
+
"label-bg": "#f7f8fa",
|
|
259
263
|
"row-hover": "rgba(0,0,255,0.03)",
|
|
260
264
|
"subtotal-bg": "#eef2f7",
|
|
261
265
|
"input-bg": "#fffde7",
|
|
@@ -359,16 +363,20 @@
|
|
|
359
363
|
"text-body-line": 16,
|
|
360
364
|
"control-h": 24,
|
|
361
365
|
"row-h": 24,
|
|
366
|
+
"table-row-h": 24,
|
|
367
|
+
"table-head-h": 24,
|
|
362
368
|
"pad-x": 6,
|
|
363
369
|
"gap": 4,
|
|
364
370
|
"icon-size": 16,
|
|
365
371
|
"cell-pad-x": 6
|
|
366
372
|
},
|
|
367
373
|
"compact": {
|
|
368
|
-
"text-body-size":
|
|
369
|
-
"text-body-line":
|
|
374
|
+
"text-body-size": 12,
|
|
375
|
+
"text-body-line": 16,
|
|
370
376
|
"control-h": 28,
|
|
371
377
|
"row-h": 28,
|
|
378
|
+
"table-row-h": 24,
|
|
379
|
+
"table-head-h": 28,
|
|
372
380
|
"pad-x": 8,
|
|
373
381
|
"gap": 8,
|
|
374
382
|
"icon-size": 16,
|
|
@@ -379,6 +387,8 @@
|
|
|
379
387
|
"text-body-line": 24,
|
|
380
388
|
"control-h": 40,
|
|
381
389
|
"row-h": 36,
|
|
390
|
+
"table-row-h": 36,
|
|
391
|
+
"table-head-h": 36,
|
|
382
392
|
"pad-x": 12,
|
|
383
393
|
"gap": 12,
|
|
384
394
|
"icon-size": 20,
|
|
@@ -413,28 +423,28 @@
|
|
|
413
423
|
"line": 24
|
|
414
424
|
},
|
|
415
425
|
"lg": {
|
|
416
|
-
"size":
|
|
417
|
-
"line":
|
|
426
|
+
"size": 16,
|
|
427
|
+
"line": 24
|
|
418
428
|
},
|
|
419
429
|
"xl": {
|
|
420
|
-
"size":
|
|
421
|
-
"line":
|
|
430
|
+
"size": 24,
|
|
431
|
+
"line": 32
|
|
422
432
|
},
|
|
423
433
|
"2xl": {
|
|
424
434
|
"size": 26,
|
|
425
435
|
"line": 32
|
|
426
436
|
},
|
|
427
437
|
"fig-sm": {
|
|
428
|
-
"size":
|
|
429
|
-
"line":
|
|
438
|
+
"size": 20,
|
|
439
|
+
"line": 24
|
|
430
440
|
},
|
|
431
441
|
"fig-md": {
|
|
432
|
-
"size":
|
|
433
|
-
"line":
|
|
442
|
+
"size": 22,
|
|
443
|
+
"line": 28
|
|
434
444
|
},
|
|
435
445
|
"fig-lg": {
|
|
436
|
-
"size":
|
|
437
|
-
"line":
|
|
446
|
+
"size": 24,
|
|
447
|
+
"line": 32
|
|
438
448
|
},
|
|
439
449
|
"fig-xl": {
|
|
440
450
|
"size": 40,
|
|
@@ -468,15 +478,15 @@
|
|
|
468
478
|
"0_5": 2
|
|
469
479
|
},
|
|
470
480
|
"radius": {
|
|
471
|
-
"sm":
|
|
472
|
-
"md":
|
|
473
|
-
"lg":
|
|
474
|
-
"xl":
|
|
481
|
+
"sm": 4,
|
|
482
|
+
"md": 4,
|
|
483
|
+
"lg": 0,
|
|
484
|
+
"xl": 0,
|
|
475
485
|
"pill": 999
|
|
476
486
|
},
|
|
477
487
|
"size": {
|
|
478
488
|
"appbar": 48,
|
|
479
|
-
"tabbar":
|
|
489
|
+
"tabbar": 40,
|
|
480
490
|
"pagetabs": 40,
|
|
481
491
|
"nav": 240,
|
|
482
492
|
"pane": 272,
|
|
@@ -490,7 +500,15 @@
|
|
|
490
500
|
"content": 1200,
|
|
491
501
|
"content-md": 900,
|
|
492
502
|
"content-sm": 736,
|
|
493
|
-
"touch": 24
|
|
503
|
+
"touch": 24,
|
|
504
|
+
"page-top": 24,
|
|
505
|
+
"page-x": 32,
|
|
506
|
+
"page-bottom": 32,
|
|
507
|
+
"page-gap": 24,
|
|
508
|
+
"page-header-gap": 12,
|
|
509
|
+
"page-header-after": 32,
|
|
510
|
+
"page-caption-gap": 4,
|
|
511
|
+
"widget-gap": 8
|
|
494
512
|
},
|
|
495
513
|
"sizeEm": {
|
|
496
514
|
"input-sm": 10
|
|
@@ -534,6 +552,7 @@
|
|
|
534
552
|
"gradient-brand-soft": "linear-gradient(135deg, var(--fs-brand-wash-end), var(--fs-brand-wash-start))"
|
|
535
553
|
},
|
|
536
554
|
"chart": {
|
|
537
|
-
"chart-area-alpha": 0.18
|
|
555
|
+
"chart-area-alpha": 0.18,
|
|
556
|
+
"chart-series-alpha": 0.6
|
|
538
557
|
}
|
|
539
558
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@finstack-com-public/design",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "Design kit: tokens, icons, components and a chart theme, shared by Grizzbi, BI App and the calculation engine.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Finstack",
|
|
@@ -92,6 +92,7 @@
|
|
|
92
92
|
"build": "node scripts/build.ts",
|
|
93
93
|
"lint": "eslint . && prettier --check . && node scripts/check-css.ts",
|
|
94
94
|
"format": "prettier --write .",
|
|
95
|
+
"design-system": "sh scripts/design-system/build.sh",
|
|
95
96
|
"typecheck": "tsc -p tsconfig.json",
|
|
96
97
|
"test": "vitest run",
|
|
97
98
|
"test:e2e": "npm run gallery:build && playwright test",
|
package/dist/css/blocks.css
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/* Blocks (spec 02 I). Usage: blocks.md. */
|
|
2
|
-
@layer fs.components {
|
|
3
|
-
/* An empty-looking aria-hidden square of four rounded squares in a regular 2x2 grid, coloured
|
|
4
|
-
along the brand gradient from the first block to the fourth. */
|
|
5
|
-
.fs-blocks {
|
|
6
|
-
display: grid;
|
|
7
|
-
grid-template-columns: 1fr 1fr;
|
|
8
|
-
grid-template-rows: 1fr 1fr;
|
|
9
|
-
gap: 10%;
|
|
10
|
-
width: var(--fs-blocks-size, 48px);
|
|
11
|
-
height: var(--fs-blocks-size, 48px);
|
|
12
|
-
pointer-events: none;
|
|
13
|
-
flex: none;
|
|
14
|
-
}
|
|
15
|
-
.fs-blocks__block {
|
|
16
|
-
display: block;
|
|
17
|
-
border-radius: 28%;
|
|
18
|
-
background: var(--fs-brand-start);
|
|
19
|
-
}
|
|
20
|
-
.fs-blocks__block:nth-child(2) {
|
|
21
|
-
background: color-mix(in oklab, var(--fs-brand-start) 66%, var(--fs-brand-end));
|
|
22
|
-
}
|
|
23
|
-
.fs-blocks__block:nth-child(3) {
|
|
24
|
-
background: color-mix(in oklab, var(--fs-brand-start) 33%, var(--fs-brand-end));
|
|
25
|
-
}
|
|
26
|
-
.fs-blocks__block:nth-child(4) {
|
|
27
|
-
background: var(--fs-brand-end);
|
|
28
|
-
}
|
|
29
|
-
/* Hero decoration: the cluster tilts and the last block steps outward. Still a square grid. */
|
|
30
|
-
.fs-blocks--loose {
|
|
31
|
-
rotate: -12deg;
|
|
32
|
-
}
|
|
33
|
-
.fs-blocks--loose .fs-blocks__block:nth-child(4) {
|
|
34
|
-
translate: 15% 15%;
|
|
35
|
-
}
|
|
36
|
-
/* Decoration: nothing to show in forced colours, nothing to print. */
|
|
37
|
-
@media (forced-colors: active) {
|
|
38
|
-
.fs-blocks {
|
|
39
|
-
display: none;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
@media print {
|
|
43
|
-
.fs-blocks {
|
|
44
|
-
display: none;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
package/dist/css/blocks.md
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
# Blocks — `.fs-blocks`
|
|
2
|
-
|
|
3
|
-
Spec 02 I. CSS: `css/blocks.css`. Gallery: `motifs.html`.
|
|
4
|
-
|
|
5
|
-
```html
|
|
6
|
-
<span class="fs-blocks" aria-hidden="true">
|
|
7
|
-
<span class="fs-blocks__block"></span><span class="fs-blocks__block"></span>
|
|
8
|
-
<span class="fs-blocks__block"></span><span class="fs-blocks__block"></span>
|
|
9
|
-
</span>
|
|
10
|
-
<span class="fs-blocks fs-blocks--loose" aria-hidden="true" style="--fs-blocks-size: 160px">...</span>
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
- Four rounded squares in a regular 2x2 grid, coloured along the brand gradient: the first `--fs-brand-start`,
|
|
14
|
-
the fourth `--fs-brand-end`, the two between mixes of them. An abstract motif, never the logo's arrangement.
|
|
15
|
-
- Size: `--fs-blocks-size` (default 48 px).
|
|
16
|
-
- `--loose`: for hero decoration. The cluster tilts 12 degrees and the fourth block steps outward by 15%.
|
|
17
|
-
- Decoration only: always `aria-hidden="true"`, never carries information. Hidden in forced colours and in
|
|
18
|
-
print. Not animated.
|
package/dist/css/sweep.css
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
/* Sweep (spec 02 I). Usage: sweep.md. */
|
|
2
|
-
@layer fs.components {
|
|
3
|
-
/* A section or page wrapper that carries two soft curved bands behind its content, like the
|
|
4
|
-
concept backgrounds: a thin crescent off the top-left corner and a large band off the
|
|
5
|
-
bottom-right. The band is an ellipse with a soft fill and a brighter rim (the border is drawn
|
|
6
|
-
over the same translucent fill, so it reads as a thin brighter edge). The crescent is an
|
|
7
|
-
ellipse with no fill and only a bottom border, which tapers to nothing at both ends, turned so
|
|
8
|
-
its thick middle faces the content. The host isolates its stacking so the bands sit behind the
|
|
9
|
-
content but above the host's own background. */
|
|
10
|
-
.fs-sweep {
|
|
11
|
-
position: relative;
|
|
12
|
-
isolation: isolate;
|
|
13
|
-
overflow: clip;
|
|
14
|
-
}
|
|
15
|
-
.fs-sweep::before,
|
|
16
|
-
.fs-sweep::after {
|
|
17
|
-
content: '';
|
|
18
|
-
position: absolute;
|
|
19
|
-
z-index: -1;
|
|
20
|
-
box-sizing: border-box;
|
|
21
|
-
width: 140%;
|
|
22
|
-
height: 90%;
|
|
23
|
-
border: 2px solid var(--fs-sweep-1);
|
|
24
|
-
border-radius: 50%;
|
|
25
|
-
pointer-events: none;
|
|
26
|
-
}
|
|
27
|
-
.fs-sweep::before {
|
|
28
|
-
top: -48%;
|
|
29
|
-
left: -22%;
|
|
30
|
-
width: 50%;
|
|
31
|
-
height: 80%;
|
|
32
|
-
border: 0 solid var(--fs-sweep-1);
|
|
33
|
-
border-bottom-width: 18px;
|
|
34
|
-
rotate: -55deg;
|
|
35
|
-
}
|
|
36
|
-
.fs-sweep::after {
|
|
37
|
-
bottom: -52%;
|
|
38
|
-
right: -58%;
|
|
39
|
-
background: var(--fs-sweep-2);
|
|
40
|
-
border-color: var(--fs-sweep-2);
|
|
41
|
-
}
|
|
42
|
-
/* Decoration: nothing to show in forced colours, nothing to print. */
|
|
43
|
-
@media (forced-colors: active) {
|
|
44
|
-
.fs-sweep::before,
|
|
45
|
-
.fs-sweep::after {
|
|
46
|
-
display: none;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
@media print {
|
|
50
|
-
.fs-sweep::before,
|
|
51
|
-
.fs-sweep::after {
|
|
52
|
-
display: none;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
package/dist/css/sweep.md
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# Sweep — `.fs-sweep`
|
|
2
|
-
|
|
3
|
-
Spec 02 I. CSS: `css/sweep.css`. Gallery: `motifs.html`.
|
|
4
|
-
|
|
5
|
-
```html
|
|
6
|
-
<section class="fs-sweep">
|
|
7
|
-
<h2>Heading</h2>
|
|
8
|
-
<p>Content keeps its own stacking.</p>
|
|
9
|
-
</section>
|
|
10
|
-
```
|
|
11
|
-
|
|
12
|
-
- Goes on a section or page wrapper. Two soft curved bands behind the content: a thin crescent off the
|
|
13
|
-
top-left (`::before`, `--fs-sweep-1`, an unfilled ellipse whose 18 px bottom rim tapers to nothing at both
|
|
14
|
-
ends), and a very large soft ellipse off the bottom-right (`::after`, `--fs-sweep-2`) with a thin brighter rim
|
|
15
|
-
of the same role. The wrapper gets `position: relative; isolation: isolate; overflow: clip`, so the
|
|
16
|
-
bands sit above its own background and below everything inside.
|
|
17
|
-
- The sweep isolates stacking (`isolation: isolate`) and clips (`overflow: clip`, so `position: sticky` inside still works). Put it on a section, not on a page wrapper that holds sticky bars or fallback-positioned dropdowns/overlays: the kit's `--fs-z-*` layers cannot rise above siblings outside it.
|
|
18
|
-
- Pairs with `.fs-glass` blocks: put glass cards on a sweep, not on plain `bg-surface`.
|
|
19
|
-
- No markup of its own, so nothing to hide from assistive technology. Pointer-transparent. Hidden in forced
|
|
20
|
-
colours and in print. Not animated. No variants.
|
package/dist/css-text/blocks.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default "/* Blocks (spec 02 I). Usage: blocks.md. */\n@layer fs.components {\n /* An empty-looking aria-hidden square of four rounded squares in a regular 2x2 grid, coloured\n along the brand gradient from the first block to the fourth. */\n .fs-blocks {\n display: grid;\n grid-template-columns: 1fr 1fr;\n grid-template-rows: 1fr 1fr;\n gap: 10%;\n width: var(--fs-blocks-size, 48px);\n height: var(--fs-blocks-size, 48px);\n pointer-events: none;\n flex: none;\n }\n .fs-blocks__block {\n display: block;\n border-radius: 28%;\n background: var(--fs-brand-start);\n }\n .fs-blocks__block:nth-child(2) {\n background: color-mix(in oklab, var(--fs-brand-start) 66%, var(--fs-brand-end));\n }\n .fs-blocks__block:nth-child(3) {\n background: color-mix(in oklab, var(--fs-brand-start) 33%, var(--fs-brand-end));\n }\n .fs-blocks__block:nth-child(4) {\n background: var(--fs-brand-end);\n }\n /* Hero decoration: the cluster tilts and the last block steps outward. Still a square grid. */\n .fs-blocks--loose {\n rotate: -12deg;\n }\n .fs-blocks--loose .fs-blocks__block:nth-child(4) {\n translate: 15% 15%;\n }\n /* Decoration: nothing to show in forced colours, nothing to print. */\n @media (forced-colors: active) {\n .fs-blocks {\n display: none;\n }\n }\n @media print {\n .fs-blocks {\n display: none;\n }\n }\n}\n";
|
package/dist/css-text/sweep.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default "/* Sweep (spec 02 I). Usage: sweep.md. */\n@layer fs.components {\n /* A section or page wrapper that carries two soft curved bands behind its content, like the\n concept backgrounds: a thin crescent off the top-left corner and a large band off the\n bottom-right. The band is an ellipse with a soft fill and a brighter rim (the border is drawn\n over the same translucent fill, so it reads as a thin brighter edge). The crescent is an\n ellipse with no fill and only a bottom border, which tapers to nothing at both ends, turned so\n its thick middle faces the content. The host isolates its stacking so the bands sit behind the\n content but above the host's own background. */\n .fs-sweep {\n position: relative;\n isolation: isolate;\n overflow: clip;\n }\n .fs-sweep::before,\n .fs-sweep::after {\n content: '';\n position: absolute;\n z-index: -1;\n box-sizing: border-box;\n width: 140%;\n height: 90%;\n border: 2px solid var(--fs-sweep-1);\n border-radius: 50%;\n pointer-events: none;\n }\n .fs-sweep::before {\n top: -48%;\n left: -22%;\n width: 50%;\n height: 80%;\n border: 0 solid var(--fs-sweep-1);\n border-bottom-width: 18px;\n rotate: -55deg;\n }\n .fs-sweep::after {\n bottom: -52%;\n right: -58%;\n background: var(--fs-sweep-2);\n border-color: var(--fs-sweep-2);\n }\n /* Decoration: nothing to show in forced colours, nothing to print. */\n @media (forced-colors: active) {\n .fs-sweep::before,\n .fs-sweep::after {\n display: none;\n }\n }\n @media print {\n .fs-sweep::before,\n .fs-sweep::after {\n display: none;\n }\n }\n}\n";
|
|
File without changes
|
|
File without changes
|