@finstack-com-public/design 0.4.0 → 0.5.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.
Files changed (65) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/README.md +2 -2
  3. package/THIRD_PARTY_NOTICES.md +12 -0
  4. package/dist/charts/index.js +6 -5
  5. package/dist/css/appbar.css +1 -1
  6. package/dist/css/appbar.md +1 -1
  7. package/dist/css/button.css +2 -2
  8. package/dist/css/button.md +1 -1
  9. package/dist/css/card.css +6 -2
  10. package/dist/css/codemirror.md +14 -0
  11. package/dist/css/dialog.css +2 -1
  12. package/dist/css/icon-button.css +1 -1
  13. package/dist/css/input.css +1 -1
  14. package/dist/css/kicker.css +2 -1
  15. package/dist/css/panel.css +4 -1
  16. package/dist/css/panel.md +2 -2
  17. package/dist/css/segmented.css +2 -2
  18. package/dist/css/sheet.css +1 -0
  19. package/dist/css/site.css +1 -0
  20. package/dist/css/tokens.css +426 -388
  21. package/dist/css/widget.css +4 -1
  22. package/dist/css-text/appbar.js +1 -1
  23. package/dist/css-text/button.js +1 -1
  24. package/dist/css-text/card.js +1 -1
  25. package/dist/css-text/dialog.js +1 -1
  26. package/dist/css-text/icon-button.js +1 -1
  27. package/dist/css-text/input.js +1 -1
  28. package/dist/css-text/kicker.js +1 -1
  29. package/dist/css-text/kit.js +1 -1
  30. package/dist/css-text/panel.js +1 -1
  31. package/dist/css-text/segmented.js +1 -1
  32. package/dist/css-text/sheet.js +1 -1
  33. package/dist/css-text/site.js +1 -1
  34. package/dist/css-text/tokens.js +1 -1
  35. package/dist/css-text/widget.js +1 -1
  36. package/dist/fonts/OFL-plus-jakarta-sans.txt +93 -0
  37. package/dist/fonts/faces.d.ts +1 -1
  38. package/dist/fonts/faces.js +2 -0
  39. package/dist/fonts/index.d.ts +1 -1
  40. package/dist/fonts/index.js +3 -1
  41. package/dist/fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2 +0 -0
  42. package/dist/fonts/plus-jakarta-sans-latin-wght-normal.woff2 +0 -0
  43. package/dist/fonts/print/plus-jakarta-sans-latin-400-normal.ttf +0 -0
  44. package/dist/fonts/print/plus-jakarta-sans-latin-500-normal.ttf +0 -0
  45. package/dist/fonts/print/plus-jakarta-sans-latin-600-normal.ttf +0 -0
  46. package/dist/fonts/print/plus-jakarta-sans-latin-700-normal.ttf +0 -0
  47. package/dist/fonts/print/plus-jakarta-sans-latin-ext-400-normal.ttf +0 -0
  48. package/dist/fonts/print/plus-jakarta-sans-latin-ext-500-normal.ttf +0 -0
  49. package/dist/fonts/print/plus-jakarta-sans-latin-ext-600-normal.ttf +0 -0
  50. package/dist/fonts/print/plus-jakarta-sans-latin-ext-700-normal.ttf +0 -0
  51. package/dist/fonts-print.css +74 -2
  52. package/dist/fonts.css +19 -1
  53. package/dist/kit.css +453 -401
  54. package/dist/tokens/color.d.ts +5 -0
  55. package/dist/tokens/color.js +69 -59
  56. package/dist/tokens/contrast-pairs.js +11 -6
  57. package/dist/tokens/index.d.ts +14 -7
  58. package/dist/tokens/index.js +2 -1
  59. package/dist/tokens/primitives.d.ts +8 -5
  60. package/dist/tokens/primitives.js +8 -5
  61. package/dist/tokens/scale.d.ts +10 -3
  62. package/dist/tokens/scale.js +9 -2
  63. package/dist/tokens/syntax.js +5 -5
  64. package/dist/tokens.json +188 -171
  65. package/package.json +2 -1
package/CHANGELOG.md CHANGED
@@ -3,6 +3,53 @@
3
3
  Written by hand for each release. Token names, class names, file paths and exports are the
4
4
  public API. While the kit is 0.x, a minor version may break them, and its entry says so.
5
5
 
6
+ ## 0.5.0 — 2026-11-05
7
+
8
+ **Breaking (kit T48, D29):** the default look is new. The purple and orange brand is replaced by a
9
+ deep blue to cyan brand on deep navy, with light pale-blue grounds, white rounded cards and soft
10
+ blue-tinted shadows. There is no opt-in theme and no switch; every consumer gets the new look when it
11
+ updates. **Nothing public was renamed or removed:** every token, class and export keeps its name.
12
+
13
+ - **Palette:** the purple/orange primitives are replaced by blue, cyan and navy primitives, and the
14
+ colour roles follow, in both schemes. The accent is `#1f4fe0` (light) and `#8db8ff` (dark); the
15
+ primary button is blue-filled; the app bar is navy. The gap tone is now a cool grey, the dark status
16
+ washes are retuned for navy grounds, and info follows the accent. Orange stays only as the warning
17
+ tone (icon and edge). The syntax keyword purple stays, and the syntax greys are now cool navy-greys.
18
+ - **Shape:** radii are `sm` 6, `md` 10, `lg` 16 and a new `xl` 20 px. Cards, panels, widgets and
19
+ dialogs use `xl`; controls use `md`. Shadows are tinted navy (dark ones have double the alpha).
20
+ - **Display font:** Plus Jakarta Sans ships beside Inter (screen woff2 in `fonts.css`, static TrueType
21
+ in `fonts-print.css`). Titles, headings, the wordmark and the kicker use it; body, UI and tabular
22
+ figures stay Inter.
23
+ - New files in `fonts/`: `plus-jakarta-sans-latin-wght-normal.woff2` and
24
+ `plus-jakarta-sans-latin-ext-wght-normal.woff2`; the licence `OFL-plus-jakarta-sans.txt`; and in
25
+ `fonts/print/` the 8 TrueType files `plus-jakarta-sans-latin-{400,500,600,700}-normal.ttf` and
26
+ `plus-jakarta-sans-latin-ext-{400,500,600,700}-normal.ttf`.
27
+ - `registerFonts` now registers 7 faces (was 5).
28
+ - calculation-engine, re-check on upgrade: its embed build copies the woff2 files by name
29
+ (`products/host/app/vite.embed.config.ts`) and a test asserts the face count
30
+ (`src/embed-kit.test.ts`), so both need the two new woff2 files.
31
+ - **Charts:** series 1 is the brand blue and series 2 a cyan, then violet, amber, raspberry, navy,
32
+ sage and brick, in the same order in both schemes. The sequential ramp (now blue) and the
33
+ diverging ramp (amber to blue) are new.
34
+ - **Softer button edges (D30):** secondary buttons and the segmented control draw their edge in the
35
+ new `--fs-line-button` (about 2.2:1) instead of `--fs-line-control`. Inputs, selects, chips and
36
+ the dropzone keep `--fs-line-control`.
37
+ - **CodeMirror note (`css/codemirror.md`):** the theme now maps `.cm-gutters` to the editor gutter
38
+ tokens; without it, CodeMirror's light gutter shows in the dark scheme. Products that pasted the
39
+ theme should add the new entry.
40
+ - **New tokens:** `--fs-radius-xl`, `--fs-gradient-brand`, `--fs-gradient-brand-soft`, the colour
41
+ roles `--fs-brand-start`, `--fs-brand-end`, `--fs-brand-wash-start`, `--fs-brand-wash-end`,
42
+ `--fs-font-display`, `--fs-tracking-caps-wide` (0.18em, used by the kicker) and
43
+ `--fs-line-button`.
44
+ - **Re-check in each product:**
45
+ - bi-app's landing page: anything that hard-codes the old purple (`#790373`, `#540058`, `#1e062e`)
46
+ or the brand orange, and any custom shadow or radius beside the kit's cards.
47
+ - calculation-engine and szamolga: the same hard-coded colours; chart code that reads the old
48
+ series order or ramps; logo slots are unaffected.
49
+ - grizzbi-core and grizzbi-verify: hard-coded purple, custom shadows, and the heading font (it is
50
+ now Plus Jakarta Sans). Screenshot baselines will change.
51
+ - **Visual baselines** (`e2e/visual-baselines/`) are regenerated for the new look.
52
+
6
53
  ## 0.4.0 — 2026-11-04
7
54
 
8
55
  **Breaking (kit T47, D28):** the kit is brand-neutral and ships no logo or favicon files.
package/README.md CHANGED
@@ -23,10 +23,10 @@ npm install @finstack-com-public/design
23
23
 
24
24
  ```js
25
25
  import '@finstack-com-public/design/kit.css'; // layers, tokens, every block and the utilities
26
- import '@finstack-com-public/design/fonts.css'; // Inter, self-hosted
26
+ import '@finstack-com-public/design/fonts.css'; // Inter and Plus Jakarta Sans, self-hosted
27
27
  ```
28
28
 
29
- A page printed to PDF loads `fonts-print.css` instead of `fonts.css`: static Inter, which
29
+ A page printed to PDF loads `fonts-print.css` instead of `fonts.css`: static Inter and Plus Jakarta Sans, which
30
30
  Chromium embeds as TrueType. The print recipe, page footer included, is
31
31
  [`css/print.md`](src/css/print.md).
32
32
 
@@ -17,6 +17,18 @@ Licensed under the SIL Open Font License, Version 1.1, with no Reserved Font Nam
17
17
  licence text ships beside the font files as `dist/fonts/OFL.txt` (in this repository:
18
18
  `fonts/OFL.txt`).
19
19
 
20
+ ## Plus Jakarta Sans
21
+
22
+ The Plus Jakarta Sans typeface, as variable `woff2` files (Latin and Latin Extended-A, roman),
23
+ taken from `@fontsource-variable/plus-jakarta-sans` 5.3.0. The print faces in `fonts/print/`
24
+ (static TrueType at weights 400 to 700) are instances of those files, made by
25
+ `scripts/make-print-fonts.py` with fontTools.
26
+
27
+ Copyright 2020 The Plus Jakarta Sans Project Authors (https://github.com/tokotype/PlusJakartaSans).
28
+ Licensed under the SIL Open Font License, Version 1.1, with no Reserved Font Name. The full
29
+ licence text ships beside the font files as `dist/fonts/OFL-plus-jakarta-sans.txt` (in this
30
+ repository: `fonts/OFL-plus-jakarta-sans.txt`).
31
+
20
32
  ## Lucide
21
33
 
22
34
  Icon data from Lucide 1.63.0 (`lucide`), generated into `dist/icons/` and `dist/icons/masks.css`.
@@ -2,15 +2,16 @@
2
2
  // mapping to ECharts (D19). The kit never imports a chart library; this module only builds objects.
3
3
  import { composite, parseColor, toHex } from "../tokens/contrast.js";
4
4
  import { readTokens, tokens } from "../tokens/index.js";
5
- // Spec 04 §2.3: interpolated in CIELAB; teal to purple through a neutral middle.
5
+ // Spec 04 §2.3: interpolated in CIELAB along blue anchors (straight Lab lines from pale blue bend
6
+ // to lavender), stops at even lightness steps; diverging is amber to blue through bg-sunken.
6
7
  const ramps = {
7
8
  light: {
8
- sequential: ['#f7edf6', '#cfa5c9', '#a55e9d', '#790373', '#5e0661', '#440750', '#2a0640'],
9
- diverging: ['#1d6363', '#68918f', '#adc1be', '#f3f3ef', '#cda9c5', '#a4609b', '#790373'],
9
+ sequential: ['#eaf1fd', '#adcaff', '#72a2fc', '#2b79f4', '#1e4cd7', '#173287', '#0b1a3f'],
10
+ diverging: ['#9a5200', '#be8557', '#dabba6', '#eef3fa', '#9cc0ff', '#4e8af8', '#1f4fe0'],
10
11
  },
11
12
  dark: {
12
- sequential: ['#2a2228', '#583b55', '#8b5486', '#c16fbb', '#d392ce', '#e5b5e0', '#f6d8f3'],
13
- diverging: ['#5fb3b3', '#508280', '#3e5351', '#2a2926', '#624f5d', '#a0789b', '#e3a3de'],
13
+ sequential: ['#172b5e', '#1f40a7', '#245ae5', '#3a81f7', '#76a4fc', '#a8c7ff', '#dce9ff'],
14
+ diverging: ['#f0a54a', '#af793d', '#704f38', '#152a5a', '#2254a9', '#3b82f7', '#8db8ff'],
14
15
  },
15
16
  };
16
17
  /** How far a not-selected mark is mixed towards the surface when cross-filtering. */
@@ -1,4 +1,4 @@
1
- /* App bar (spec 02 C): a dark island on purple-950, declared in tokens.css. Usage: appbar.md. */
1
+ /* App bar (spec 02 C): a dark island on navy-900, declared in tokens.css. Usage: appbar.md. */
2
2
  @layer fs.components {
3
3
  .fs-appbar {
4
4
  display: flex;
@@ -11,7 +11,7 @@ Gallery: `navigation.html`.
11
11
  </header>
12
12
  ```
13
13
 
14
- - The app bar is a dark island on purple-950 in every scheme. Every role inside takes its dark
14
+ - The app bar is a dark island on navy-900 in every scheme. Every role inside takes its dark
15
15
  value, so ordinary kit blocks need no "on dark" variants, and the ring keeps its contrast.
16
16
  - `__identity` is the product's slot (D7): Grizzbi's wordmark and bear, BI App's title. The kit
17
17
  draws only the divider after it.
@@ -20,8 +20,8 @@
20
20
  white-space: nowrap;
21
21
  text-decoration: none;
22
22
  background: var(--fs-bg-surface);
23
- border: var(--fs-line-width) solid var(--fs-line-control);
24
- border-radius: var(--fs-radius-sm);
23
+ border: var(--fs-line-width) solid var(--fs-line-button);
24
+ border-radius: var(--fs-radius-md);
25
25
  cursor: pointer;
26
26
  transition:
27
27
  background-color var(--fs-dur-fast) var(--fs-ease),
@@ -13,7 +13,7 @@ The icon comes from `createIcon('download', { className: 'fs-button__icon' })` o
13
13
 
14
14
  | Class | Use |
15
15
  |---|---|
16
- | `fs-button--primary` | The one main action of an area (purple fill) |
16
+ | `fs-button--primary` | The one main action of an area (accent-blue fill) |
17
17
  | (none) | Secondary: surface with a control edge |
18
18
  | `fs-button--ghost` | No edge until hovered: Exit, toolbar text actions |
19
19
  | `fs-button--danger` | A destructive action in danger ink (BI's "Remove") |
package/dist/css/card.css CHANGED
@@ -13,7 +13,8 @@
13
13
  text-decoration: none;
14
14
  background-color: var(--fs-bg-surface);
15
15
  border: var(--fs-line-width) solid var(--fs-line);
16
- border-radius: var(--fs-radius-md);
16
+ border-radius: var(--fs-radius-xl);
17
+ box-shadow: var(--fs-shadow-1);
17
18
  cursor: pointer;
18
19
  transition: border-color var(--fs-dur-fast) var(--fs-ease);
19
20
  }
@@ -29,6 +30,7 @@
29
30
  .fs-card__title {
30
31
  display: block;
31
32
  margin: var(--fs-space-1) 0;
33
+ font-family: var(--fs-font-display);
32
34
  font-size: var(--fs-text-md-size);
33
35
  line-height: var(--fs-text-md-line);
34
36
  font-weight: var(--fs-weight-semibold);
@@ -62,6 +64,8 @@
62
64
  .fs-card:focus-visible {
63
65
  outline: var(--fs-ring-width) solid var(--fs-ring);
64
66
  outline-offset: var(--fs-ring-halo-width);
65
- box-shadow: 0 0 0 var(--fs-ring-halo-width) var(--fs-ring-halo);
67
+ box-shadow:
68
+ 0 0 0 var(--fs-ring-halo-width) var(--fs-ring-halo),
69
+ var(--fs-shadow-1);
66
70
  }
67
71
  }
@@ -16,6 +16,13 @@ const fsEditorTheme = EditorView.theme({
16
16
  // The browser's own selection, for an editor without drawSelection() (it has no blurred form).
17
17
  '.cm-content ::selection': { background: 'var(--fs-editor-selection)' },
18
18
 
19
+ // The gutters (line numbers, the lint gutter): the base theme paints them light grey in either scheme.
20
+ '.cm-gutters': {
21
+ color: 'var(--fs-editor-gutter-ink)',
22
+ backgroundColor: 'var(--fs-editor-gutter-bg)',
23
+ borderRight: 'var(--fs-line-width) solid var(--fs-editor-gutter-line)',
24
+ },
25
+
19
26
  // Hover tooltips, the lint tooltip among them (autocomplete's tooltip is in menu.md).
20
27
  '.cm-tooltip.cm-tooltip-hover': {
21
28
  color: 'var(--fs-ink)',
@@ -89,6 +96,13 @@ keep them as separate `EditorView.theme` calls or fold them into one.
89
96
  `--fs-editor-selection` and on `--fs-editor-selection-blur` (over the surface) are in the
90
97
  contrast test.
91
98
 
99
+ ## The gutters
100
+
101
+ CodeMirror's base theme paints `.cm-gutters` `&light`: `#f5f5f5`, text `#6c6c6c`, edge `#ddd`, and
102
+ with the dark flag off (above) that light strip shows in the kit's dark scheme too. The theme maps
103
+ it to `--fs-editor-gutter-bg`, `-ink` and `-line`, as the kit's own gutter (`gutter-mark.md`). The
104
+ lint gutter's markers are in `gutter-mark.md`.
105
+
92
106
  ## The lint tooltip
93
107
 
94
108
  `@codemirror/lint` draws hover tooltips (`.cm-tooltip.cm-tooltip-hover` holding
@@ -13,7 +13,7 @@
13
13
  color: var(--fs-ink);
14
14
  background: var(--fs-bg-surface);
15
15
  border: var(--fs-line-width) solid var(--fs-line-strong);
16
- border-radius: var(--fs-radius-lg);
16
+ border-radius: var(--fs-radius-xl);
17
17
  box-shadow: var(--fs-shadow-3);
18
18
  }
19
19
  .fs-dialog::backdrop {
@@ -28,6 +28,7 @@
28
28
  .fs-dialog__title {
29
29
  margin: 0;
30
30
  padding: var(--fs-space-5) var(--fs-space-6) 0;
31
+ font-family: var(--fs-font-display);
31
32
  font-size: var(--fs-text-lg-size);
32
33
  line-height: var(--fs-text-lg-line);
33
34
  font-weight: var(--fs-weight-semibold);
@@ -13,7 +13,7 @@
13
13
  color: var(--fs-ink-2);
14
14
  background: transparent;
15
15
  border: var(--fs-line-width) solid transparent;
16
- border-radius: var(--fs-radius-sm);
16
+ border-radius: var(--fs-radius-md);
17
17
  cursor: pointer;
18
18
  transition: background-color var(--fs-dur-fast) var(--fs-ease);
19
19
  }
@@ -13,7 +13,7 @@
13
13
  color: var(--fs-ink);
14
14
  background-color: var(--fs-bg-surface);
15
15
  border: var(--fs-line-width) solid var(--fs-line-control);
16
- border-radius: var(--fs-radius-sm);
16
+ border-radius: var(--fs-radius-md);
17
17
  }
18
18
  .fs-input,
19
19
  .fs-select__control {
@@ -2,10 +2,11 @@
2
2
  @layer fs.components {
3
3
  .fs-kicker {
4
4
  display: block;
5
+ font-family: var(--fs-font-display);
5
6
  font-size: var(--fs-text-2xs-size);
6
7
  line-height: var(--fs-text-2xs-line);
7
8
  font-weight: var(--fs-weight-semibold);
8
- letter-spacing: var(--fs-tracking-caps);
9
+ letter-spacing: var(--fs-tracking-caps-wide);
9
10
  text-transform: uppercase;
10
11
  color: var(--fs-ink-2);
11
12
  }
@@ -6,11 +6,13 @@
6
6
  color: var(--fs-ink);
7
7
  background: var(--fs-bg-surface);
8
8
  border: var(--fs-line-width) solid var(--fs-line);
9
- border-radius: var(--fs-radius-md);
9
+ border-radius: var(--fs-radius-xl);
10
+ box-shadow: var(--fs-shadow-1);
10
11
  }
11
12
  .fs-panel--flat {
12
13
  background: transparent;
13
14
  border-color: transparent;
15
+ box-shadow: none;
14
16
  }
15
17
  .fs-panel__header {
16
18
  display: flex;
@@ -20,6 +22,7 @@
20
22
  }
21
23
  .fs-panel__title {
22
24
  margin: 0;
25
+ font-family: var(--fs-font-display);
23
26
  font-size: var(--fs-text-md-size);
24
27
  line-height: var(--fs-text-md-line);
25
28
  font-weight: var(--fs-weight-semibold);
package/dist/css/panel.md CHANGED
@@ -10,5 +10,5 @@ Spec 02 D. CSS: `css/panel.css`. Gallery: `overlays.html`.
10
10
  </section>
11
11
  ```
12
12
 
13
- - A surface with a 1 px line and an 8 px radius: the calculation engine's view cards, the base of
14
- the widget frame. `fs-panel--flat` drops the edge and the surface.
13
+ - A surface with a 1 px line, a 20 px radius (`--fs-radius-xl`) and the soft `--fs-shadow-1`: the calculation
14
+ engine's view cards, the base of the widget frame. `fs-panel--flat` drops the edge, the surface and the shadow.
@@ -5,7 +5,7 @@
5
5
  display: inline-flex;
6
6
  box-sizing: border-box;
7
7
  height: var(--fs-control-h);
8
- border: var(--fs-line-width) solid var(--fs-line-control);
8
+ border: var(--fs-line-width) solid var(--fs-line-button);
9
9
  border-radius: var(--fs-radius-sm);
10
10
  background: var(--fs-bg-surface);
11
11
  }
@@ -28,7 +28,7 @@
28
28
  cursor: pointer;
29
29
  }
30
30
  .fs-segmented__item + .fs-segmented__item {
31
- border-left: var(--fs-line-width) solid var(--fs-line-control);
31
+ border-left: var(--fs-line-width) solid var(--fs-line-button);
32
32
  }
33
33
  .fs-segmented__item:first-child {
34
34
  border-radius: calc(var(--fs-radius-sm) - 1px) 0 0 calc(var(--fs-radius-sm) - 1px);
@@ -52,6 +52,7 @@
52
52
  .fs-sheet__title {
53
53
  flex: 1 1 auto;
54
54
  margin: 0;
55
+ font-family: var(--fs-font-display);
55
56
  font-size: var(--fs-text-md-size);
56
57
  line-height: var(--fs-text-md-line);
57
58
  font-weight: var(--fs-weight-semibold);
package/dist/css/site.css CHANGED
@@ -18,6 +18,7 @@
18
18
  height: 28px;
19
19
  }
20
20
  .fs-site-header__wordmark {
21
+ font-family: var(--fs-font-display);
21
22
  font-size: var(--fs-text-lg-size);
22
23
  line-height: var(--fs-text-lg-line);
23
24
  font-weight: var(--fs-weight-bold);