@finstack-com-public/design 0.5.0 → 0.6.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.
@@ -8,8 +8,8 @@ export type { ColorRole, Density, DensityToken, GridRole, Scheme, ShadowKey, Syn
8
8
  export type TextStep = keyof typeof textSteps;
9
9
  export declare const tokens: {
10
10
  readonly color: {
11
- light: Record<"bg-surface" | "bg-page" | "bg-plane" | "bg-chrome" | "bg-sunken" | "bg-hover" | "bg-active" | "bg-selected" | "bg-disabled" | "bg-highlight" | "bg-backdrop" | "ink" | "ink-2" | "ink-muted" | "ink-disabled" | "ink-on-accent" | "ink-link" | "line" | "line-strong" | "line-control" | "line-button" | "accent" | "accent-strong" | "accent-wash" | "primary-bg" | "primary-bg-hover" | "primary-ink" | "ring" | "brand-start" | "brand-end" | "brand-wash-start" | "brand-wash-end" | "ring-halo" | "neutral-ink" | "neutral-wash" | "neutral-edge" | "neutral-fill" | "info-ink" | "info-wash" | "info-edge" | "info-fill" | "positive-ink" | "positive-wash" | "positive-edge" | "positive-fill" | "caution-ink" | "caution-wash" | "caution-edge" | "caution-fill" | "warning-ink" | "warning-wash" | "warning-edge" | "warning-fill" | "warning-icon" | "danger-ink" | "danger-wash" | "danger-edge" | "danger-fill" | "gap-ink" | "gap-wash" | "gap-edge" | "gap-fill" | "gap-hatch-tint" | "figure-good" | "figure-bad" | "figure-plain" | "mark-exact-ink" | "mark-exact-wash" | "mark-exact-fill" | "mark-approx-ink" | "mark-approx-wash" | "mark-approx-fill" | "mark-none-ink" | "mark-none-wash" | "mark-none-fill" | "type-organise" | "type-view" | "type-input" | "type-model" | "type-access" | "computed-bg" | "computed-line" | "editor-gutter-bg" | "editor-gutter-ink" | "editor-gutter-line" | "editor-selection" | "editor-selection-blur" | "editor-caret" | "editor-active-line" | "editor-match" | "editor-mismatch" | "editor-lint-error" | "editor-lint-warning" | "editor-lint-refusal" | "editor-tooltip-bg" | "editor-tooltip-line" | "chart-1" | "chart-2" | "chart-3" | "chart-4" | "chart-5" | "chart-6" | "chart-7" | "chart-8" | "chart-other" | "chart-comparison" | "chart-axis" | "chart-label" | "chart-grid" | "chart-zero" | "chart-good" | "chart-bad", string>;
12
- dark: Record<"bg-surface" | "bg-page" | "bg-plane" | "bg-chrome" | "bg-sunken" | "bg-hover" | "bg-active" | "bg-selected" | "bg-disabled" | "bg-highlight" | "bg-backdrop" | "ink" | "ink-2" | "ink-muted" | "ink-disabled" | "ink-on-accent" | "ink-link" | "line" | "line-strong" | "line-control" | "line-button" | "accent" | "accent-strong" | "accent-wash" | "primary-bg" | "primary-bg-hover" | "primary-ink" | "ring" | "brand-start" | "brand-end" | "brand-wash-start" | "brand-wash-end" | "ring-halo" | "neutral-ink" | "neutral-wash" | "neutral-edge" | "neutral-fill" | "info-ink" | "info-wash" | "info-edge" | "info-fill" | "positive-ink" | "positive-wash" | "positive-edge" | "positive-fill" | "caution-ink" | "caution-wash" | "caution-edge" | "caution-fill" | "warning-ink" | "warning-wash" | "warning-edge" | "warning-fill" | "warning-icon" | "danger-ink" | "danger-wash" | "danger-edge" | "danger-fill" | "gap-ink" | "gap-wash" | "gap-edge" | "gap-fill" | "gap-hatch-tint" | "figure-good" | "figure-bad" | "figure-plain" | "mark-exact-ink" | "mark-exact-wash" | "mark-exact-fill" | "mark-approx-ink" | "mark-approx-wash" | "mark-approx-fill" | "mark-none-ink" | "mark-none-wash" | "mark-none-fill" | "type-organise" | "type-view" | "type-input" | "type-model" | "type-access" | "computed-bg" | "computed-line" | "editor-gutter-bg" | "editor-gutter-ink" | "editor-gutter-line" | "editor-selection" | "editor-selection-blur" | "editor-caret" | "editor-active-line" | "editor-match" | "editor-mismatch" | "editor-lint-error" | "editor-lint-warning" | "editor-lint-refusal" | "editor-tooltip-bg" | "editor-tooltip-line" | "chart-1" | "chart-2" | "chart-3" | "chart-4" | "chart-5" | "chart-6" | "chart-7" | "chart-8" | "chart-other" | "chart-comparison" | "chart-axis" | "chart-label" | "chart-grid" | "chart-zero" | "chart-good" | "chart-bad", string>;
11
+ light: Record<"bg-surface" | "bg-page" | "bg-plane" | "bg-chrome" | "bg-sunken" | "bg-hover" | "bg-active" | "bg-selected" | "bg-disabled" | "bg-highlight" | "bg-backdrop" | "ink" | "ink-2" | "ink-muted" | "ink-disabled" | "ink-on-accent" | "ink-link" | "line" | "line-strong" | "line-control" | "line-button" | "accent" | "accent-strong" | "accent-wash" | "primary-bg" | "primary-bg-hover" | "primary-ink" | "ring" | "brand-start" | "brand-end" | "brand-wash-start" | "brand-wash-end" | "ring-halo" | "glass-bg" | "glass-line" | "sweep-1" | "sweep-2" | "wave-glow" | "neutral-ink" | "neutral-wash" | "neutral-edge" | "neutral-fill" | "info-ink" | "info-wash" | "info-edge" | "info-fill" | "positive-ink" | "positive-wash" | "positive-edge" | "positive-fill" | "caution-ink" | "caution-wash" | "caution-edge" | "caution-fill" | "warning-ink" | "warning-wash" | "warning-edge" | "warning-fill" | "warning-icon" | "danger-ink" | "danger-wash" | "danger-edge" | "danger-fill" | "gap-ink" | "gap-wash" | "gap-edge" | "gap-fill" | "gap-hatch-tint" | "figure-good" | "figure-bad" | "figure-plain" | "mark-exact-ink" | "mark-exact-wash" | "mark-exact-fill" | "mark-approx-ink" | "mark-approx-wash" | "mark-approx-fill" | "mark-none-ink" | "mark-none-wash" | "mark-none-fill" | "type-organise" | "type-view" | "type-input" | "type-model" | "type-access" | "computed-bg" | "computed-line" | "editor-gutter-bg" | "editor-gutter-ink" | "editor-gutter-line" | "editor-selection" | "editor-selection-blur" | "editor-caret" | "editor-active-line" | "editor-match" | "editor-mismatch" | "editor-lint-error" | "editor-lint-warning" | "editor-lint-refusal" | "editor-tooltip-bg" | "editor-tooltip-line" | "chart-1" | "chart-2" | "chart-3" | "chart-4" | "chart-5" | "chart-6" | "chart-7" | "chart-8" | "chart-other" | "chart-comparison" | "chart-axis" | "chart-label" | "chart-grid" | "chart-zero" | "chart-good" | "chart-bad", string>;
12
+ dark: Record<"bg-surface" | "bg-page" | "bg-plane" | "bg-chrome" | "bg-sunken" | "bg-hover" | "bg-active" | "bg-selected" | "bg-disabled" | "bg-highlight" | "bg-backdrop" | "ink" | "ink-2" | "ink-muted" | "ink-disabled" | "ink-on-accent" | "ink-link" | "line" | "line-strong" | "line-control" | "line-button" | "accent" | "accent-strong" | "accent-wash" | "primary-bg" | "primary-bg-hover" | "primary-ink" | "ring" | "brand-start" | "brand-end" | "brand-wash-start" | "brand-wash-end" | "ring-halo" | "glass-bg" | "glass-line" | "sweep-1" | "sweep-2" | "wave-glow" | "neutral-ink" | "neutral-wash" | "neutral-edge" | "neutral-fill" | "info-ink" | "info-wash" | "info-edge" | "info-fill" | "positive-ink" | "positive-wash" | "positive-edge" | "positive-fill" | "caution-ink" | "caution-wash" | "caution-edge" | "caution-fill" | "warning-ink" | "warning-wash" | "warning-edge" | "warning-fill" | "warning-icon" | "danger-ink" | "danger-wash" | "danger-edge" | "danger-fill" | "gap-ink" | "gap-wash" | "gap-edge" | "gap-fill" | "gap-hatch-tint" | "figure-good" | "figure-bad" | "figure-plain" | "mark-exact-ink" | "mark-exact-wash" | "mark-exact-fill" | "mark-approx-ink" | "mark-approx-wash" | "mark-approx-fill" | "mark-none-ink" | "mark-none-wash" | "mark-none-fill" | "type-organise" | "type-view" | "type-input" | "type-model" | "type-access" | "computed-bg" | "computed-line" | "editor-gutter-bg" | "editor-gutter-ink" | "editor-gutter-line" | "editor-selection" | "editor-selection-blur" | "editor-caret" | "editor-active-line" | "editor-match" | "editor-mismatch" | "editor-lint-error" | "editor-lint-warning" | "editor-lint-refusal" | "editor-tooltip-bg" | "editor-tooltip-line" | "chart-1" | "chart-2" | "chart-3" | "chart-4" | "chart-5" | "chart-6" | "chart-7" | "chart-8" | "chart-other" | "chart-comparison" | "chart-axis" | "chart-label" | "chart-grid" | "chart-zero" | "chart-good" | "chart-bad", string>;
13
13
  };
14
14
  readonly shadow: {
15
15
  light: Record<"1" | "2" | "3", string>;
@@ -135,6 +135,7 @@ export declare const tokens: {
135
135
  readonly 'input-sm': 10;
136
136
  };
137
137
  readonly line: {
138
+ readonly 'glass-blur': 16;
138
139
  readonly 'line-width': 1;
139
140
  readonly 'ring-width': 2;
140
141
  readonly 'ring-halo-width': 2;
@@ -168,8 +169,8 @@ export declare const tokens: {
168
169
  readonly 'gap-hatch-sm': "repeating-linear-gradient(135deg, var(--fs-gap-hatch-tint) 0 5px, transparent 5px 11px)";
169
170
  };
170
171
  readonly gradient: {
171
- readonly 'gradient-brand': "linear-gradient(135deg, var(--fs-brand-start), var(--fs-brand-end))";
172
- readonly 'gradient-brand-soft': "linear-gradient(135deg, var(--fs-brand-wash-start), var(--fs-brand-wash-end))";
172
+ readonly 'gradient-brand': "linear-gradient(135deg, var(--fs-brand-end), var(--fs-brand-start))";
173
+ readonly 'gradient-brand-soft': "linear-gradient(135deg, var(--fs-brand-wash-end), var(--fs-brand-wash-start))";
173
174
  };
174
175
  readonly chart: {
175
176
  readonly 'chart-area-alpha': 0.18;
@@ -109,6 +109,7 @@ export declare const sizesEm: {
109
109
  readonly 'input-sm': 10;
110
110
  };
111
111
  export declare const lines: {
112
+ readonly 'glass-blur': 16;
112
113
  readonly 'line-width': 1;
113
114
  readonly 'ring-width': 2;
114
115
  readonly 'ring-halo-width': 2;
@@ -143,6 +144,6 @@ export declare const patterns: {
143
144
  readonly 'gap-hatch-sm': "repeating-linear-gradient(135deg, var(--fs-gap-hatch-tint) 0 5px, transparent 5px 11px)";
144
145
  };
145
146
  export declare const gradients: {
146
- readonly 'gradient-brand': "linear-gradient(135deg, var(--fs-brand-start), var(--fs-brand-end))";
147
- readonly 'gradient-brand-soft': "linear-gradient(135deg, var(--fs-brand-wash-start), var(--fs-brand-wash-end))";
147
+ readonly 'gradient-brand': "linear-gradient(135deg, var(--fs-brand-end), var(--fs-brand-start))";
148
+ readonly 'gradient-brand-soft': "linear-gradient(135deg, var(--fs-brand-wash-end), var(--fs-brand-wash-start))";
148
149
  };
@@ -59,8 +59,9 @@ export const sizes = {
59
59
  // Widths in em, so they follow the font size of the element that reads them: a 10em input holds
60
60
  // about 16 characters at every density (spec 01 §6). CSS: `--fs-size-<key>: <n>em`.
61
61
  export const sizesEm = { 'input-sm': 10 };
62
- // Lines and the ring (spec 01 §3.2, §6). CSS: `--fs-<key>`.
62
+ // Lines, the ring and the glass panel's backdrop blur (spec 01 §3.2, §6). CSS: `--fs-<key>`.
63
63
  export const lines = {
64
+ 'glass-blur': 16,
64
65
  'line-width': 1,
65
66
  'ring-width': 2,
66
67
  'ring-halo-width': 2,
@@ -91,9 +92,9 @@ export const patterns = {
91
92
  'gap-hatch': 'repeating-linear-gradient(135deg, var(--fs-gap-hatch-tint) 0 6px, transparent 6px 14px)',
92
93
  'gap-hatch-sm': 'repeating-linear-gradient(135deg, var(--fs-gap-hatch-tint) 0 5px, transparent 5px 11px)',
93
94
  };
94
- // The brand gradient (spec 01 §3.11): deep blue to cyan, and a pale wash of it. Decoration only; the
95
- // stops are colour roles, so the dark scheme and islands recolour it.
95
+ // The brand gradient (spec 01 §7): cyan at the top left to deep blue (T50), and a pale wash of it.
96
+ // Decoration only; the stops are colour roles, so the dark scheme and islands recolour it.
96
97
  export const gradients = {
97
- 'gradient-brand': 'linear-gradient(135deg, var(--fs-brand-start), var(--fs-brand-end))',
98
- 'gradient-brand-soft': 'linear-gradient(135deg, var(--fs-brand-wash-start), var(--fs-brand-wash-end))',
98
+ 'gradient-brand': 'linear-gradient(135deg, var(--fs-brand-end), var(--fs-brand-start))',
99
+ 'gradient-brand-soft': 'linear-gradient(135deg, var(--fs-brand-wash-end), var(--fs-brand-wash-start))',
99
100
  };
package/dist/tokens.json CHANGED
@@ -34,6 +34,11 @@
34
34
  "brand-wash-start": "#e8f0fe",
35
35
  "brand-wash-end": "#e3f8fb",
36
36
  "ring-halo": "#ffffff",
37
+ "glass-bg": "rgba(255,255,255,0.72)",
38
+ "glass-line": "rgba(255,255,255,0.85)",
39
+ "sweep-1": "rgba(43,124,246,0.10)",
40
+ "sweep-2": "rgba(20,212,224,0.16)",
41
+ "wave-glow": "transparent",
37
42
  "neutral-ink": "#3b4a6b",
38
43
  "neutral-wash": "#eef3fa",
39
44
  "neutral-edge": "#7a88a6",
@@ -148,6 +153,11 @@
148
153
  "brand-wash-start": "#13244f",
149
154
  "brand-wash-end": "#0f3358",
150
155
  "ring-halo": "#071233",
156
+ "glass-bg": "rgba(14,29,69,0.72)",
157
+ "glass-line": "rgba(141,184,255,0.18)",
158
+ "sweep-1": "rgba(43,124,246,0.20)",
159
+ "sweep-2": "rgba(20,212,224,0.14)",
160
+ "wave-glow": "rgba(20,212,224,0.55)",
151
161
  "neutral-ink": "#b9c6e2",
152
162
  "neutral-wash": "#152a5a",
153
163
  "neutral-edge": "#6f81ad",
@@ -270,31 +280,31 @@
270
280
  "lock-other-bg": "#fdecea"
271
281
  },
272
282
  "dark": {
273
- "line": "#3a3936",
274
- "header-bg": "#2a2926",
275
- "label-bg": "#2a2926",
276
- "row-hover": "rgba(165,165,255,0.06)",
277
- "subtotal-bg": "#263040",
278
- "input-bg": "#3a3520",
279
- "locked-ink": "#a3a29c",
280
- "locked-bg": "#2c2c2a",
283
+ "line": "#22356a",
284
+ "header-bg": "#152a5a",
285
+ "label-bg": "#13244f",
286
+ "row-hover": "rgba(232,238,252,0.06)",
287
+ "subtotal-bg": "#182f68",
288
+ "input-bg": "#10394a",
289
+ "locked-ink": "#93a1c2",
290
+ "locked-bg": "#050d26",
281
291
  "error-ink": "#ff8a80",
282
- "error-bg": "#3d1f1d",
292
+ "error-bg": "#3d1a26",
283
293
  "negative-ink": "#ff8a80",
284
- "stale-ink": "#a3a29c",
294
+ "stale-ink": "#93a1c2",
285
295
  "stale-dot": "#f9a825",
286
296
  "dirty-ink": "#a5a5ff",
287
297
  "invalid-ink": "#ff8a80",
288
298
  "selected": "#8c8cff",
289
299
  "selected-invalid-bg": "rgba(255,138,128,0.08)",
290
- "editing-bg": "#2e2e52",
291
- "nodata-bg": "rgba(255,255,255,0.03)",
292
- "chevron": "#7d7c76",
293
- "tree-guide": "#3a3936",
300
+ "editing-bg": "#223a7e",
301
+ "nodata-bg": "rgba(232,238,252,0.04)",
302
+ "chevron": "#6f81ad",
303
+ "tree-guide": "#22356a",
294
304
  "lock-mine-ink": "#7fc98a",
295
- "lock-mine-bg": "#1c2e20",
305
+ "lock-mine-bg": "#13382b",
296
306
  "lock-other-ink": "#ff8a80",
297
- "lock-other-bg": "#3d1f1d"
307
+ "lock-other-bg": "#3d1a26"
298
308
  }
299
309
  },
300
310
  "syntax": {
@@ -486,6 +496,7 @@
486
496
  "input-sm": 10
487
497
  },
488
498
  "line": {
499
+ "glass-blur": 16,
489
500
  "line-width": 1,
490
501
  "ring-width": 2,
491
502
  "ring-halo-width": 2
@@ -519,8 +530,8 @@
519
530
  "gap-hatch-sm": "repeating-linear-gradient(135deg, var(--fs-gap-hatch-tint) 0 5px, transparent 5px 11px)"
520
531
  },
521
532
  "gradient": {
522
- "gradient-brand": "linear-gradient(135deg, var(--fs-brand-start), var(--fs-brand-end))",
523
- "gradient-brand-soft": "linear-gradient(135deg, var(--fs-brand-wash-start), var(--fs-brand-wash-end))"
533
+ "gradient-brand": "linear-gradient(135deg, var(--fs-brand-end), var(--fs-brand-start))",
534
+ "gradient-brand-soft": "linear-gradient(135deg, var(--fs-brand-wash-end), var(--fs-brand-wash-start))"
524
535
  },
525
536
  "chart": {
526
537
  "chart-area-alpha": 0.18
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finstack-com-public/design",
3
- "version": "0.5.0",
3
+ "version": "0.6.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",
@@ -46,6 +46,7 @@
46
46
  "./fonts.css": "./dist/fonts.css",
47
47
  "./fonts-print.css": "./dist/fonts-print.css",
48
48
  "./fonts/*": "./dist/fonts/*",
49
+ "./motifs/*": "./dist/motifs/*",
49
50
  "./icons": {
50
51
  "types": "./dist/icons/index.d.ts",
51
52
  "default": "./dist/icons/index.js"
@@ -98,7 +99,8 @@
98
99
  "test:visual:update": "sh scripts/visual-docker.sh update",
99
100
  "gallery": "vite --config gallery/vite.config.ts",
100
101
  "gallery:build": "tsc -p gallery/tsconfig.json && vite build --config gallery/vite.config.ts",
101
- "icons:sync": "node scripts/sync-icons.ts"
102
+ "icons:sync": "node scripts/sync-icons.ts",
103
+ "motifs": "python3 scripts/make-wave.py art/wave-ai-source.png src/motifs/wave.webp"
102
104
  },
103
105
  "peerDependencies": {
104
106
  "react": ">=18"