@finstack-com-public/design 0.4.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.
- package/CHANGELOG.md +116 -0
- package/README.md +2 -2
- package/THIRD_PARTY_NOTICES.md +12 -0
- package/dist/charts/index.js +6 -5
- package/dist/css/appbar.css +1 -1
- package/dist/css/appbar.md +1 -1
- package/dist/css/blocks.css +47 -0
- package/dist/css/blocks.md +18 -0
- package/dist/css/button.css +2 -2
- package/dist/css/button.md +1 -1
- package/dist/css/card.css +24 -6
- package/dist/css/card.md +2 -1
- package/dist/css/codemirror.md +14 -0
- package/dist/css/dialog.css +2 -1
- package/dist/css/glass.css +30 -0
- package/dist/css/glass.md +18 -0
- package/dist/css/icon-button.css +1 -1
- package/dist/css/input.css +1 -1
- package/dist/css/kicker.css +2 -1
- package/dist/css/panel.css +4 -1
- package/dist/css/panel.md +2 -2
- package/dist/css/segmented.css +2 -2
- package/dist/css/sheet.css +1 -0
- package/dist/css/site.css +1 -0
- package/dist/css/sweep.css +55 -0
- package/dist/css/sweep.md +20 -0
- package/dist/css/tokens.css +509 -436
- package/dist/css/wave.css +36 -0
- package/dist/css/wave.md +39 -0
- package/dist/css/widget.css +4 -1
- package/dist/css-text/appbar.js +1 -1
- package/dist/css-text/blocks.d.ts +2 -0
- package/dist/css-text/blocks.js +1 -0
- package/dist/css-text/button.js +1 -1
- package/dist/css-text/card.js +1 -1
- package/dist/css-text/dialog.js +1 -1
- package/dist/css-text/glass.d.ts +2 -0
- package/dist/css-text/glass.js +1 -0
- package/dist/css-text/icon-button.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 +5574 -1
- package/dist/css-text/panel.js +1 -1
- package/dist/css-text/segmented.js +1 -1
- package/dist/css-text/sheet.js +1 -1
- package/dist/css-text/site.js +1 -1
- package/dist/css-text/sweep.d.ts +2 -0
- package/dist/css-text/sweep.js +1 -0
- package/dist/css-text/tokens.js +1 -1
- package/dist/css-text/wave.d.ts +2 -0
- package/dist/css-text/wave.js +37 -0
- package/dist/css-text/widget.js +1 -1
- package/dist/dom/dialog.js +13 -2
- package/dist/fonts/OFL-plus-jakarta-sans.txt +93 -0
- package/dist/fonts/faces.d.ts +1 -1
- package/dist/fonts/faces.js +2 -0
- package/dist/fonts/index.d.ts +1 -1
- package/dist/fonts/index.js +3 -1
- package/dist/fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2 +0 -0
- package/dist/fonts/plus-jakarta-sans-latin-wght-normal.woff2 +0 -0
- package/dist/fonts/print/plus-jakarta-sans-latin-400-normal.ttf +0 -0
- package/dist/fonts/print/plus-jakarta-sans-latin-500-normal.ttf +0 -0
- package/dist/fonts/print/plus-jakarta-sans-latin-600-normal.ttf +0 -0
- package/dist/fonts/print/plus-jakarta-sans-latin-700-normal.ttf +0 -0
- package/dist/fonts/print/plus-jakarta-sans-latin-ext-400-normal.ttf +0 -0
- package/dist/fonts/print/plus-jakarta-sans-latin-ext-500-normal.ttf +0 -0
- package/dist/fonts/print/plus-jakarta-sans-latin-ext-600-normal.ttf +0 -0
- package/dist/fonts/print/plus-jakarta-sans-latin-ext-700-normal.ttf +0 -0
- package/dist/fonts-print.css +74 -2
- package/dist/fonts.css +19 -1
- package/dist/kit.css +726 -453
- package/dist/motifs/wave.webp +0 -0
- package/dist/react/util.d.ts +5 -1
- package/dist/react/util.js +10 -2
- package/dist/tokens/color.d.ts +10 -0
- package/dist/tokens/color.js +78 -59
- package/dist/tokens/contrast-pairs.js +31 -6
- package/dist/tokens/contrast.js +2 -0
- package/dist/tokens/grid.js +18 -17
- package/dist/tokens/index.d.ts +15 -7
- package/dist/tokens/index.js +2 -1
- package/dist/tokens/primitives.d.ts +8 -5
- package/dist/tokens/primitives.js +8 -5
- package/dist/tokens/scale.d.ts +11 -3
- package/dist/tokens/scale.js +11 -3
- package/dist/tokens/syntax.js +5 -5
- package/dist/tokens.json +215 -187
- package/package.json +5 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,122 @@
|
|
|
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.6.0 — 2026-11-06
|
|
7
|
+
|
|
8
|
+
Additive (kit T49, T50, T55, D2, D31, D33): the new look's decorative motifs, as four CSS blocks and one
|
|
9
|
+
generated image file. One existing token changes its look (the brand gradient's direction); nothing
|
|
10
|
+
that shipped in 0.5.0 was renamed or removed. Re-date this entry if the release slips.
|
|
11
|
+
|
|
12
|
+
- **New blocks** (one usage note per block in `css/`). Wave, sweep and blocks are decoration only:
|
|
13
|
+
`aria-hidden="true"`, no animation, hidden in forced colours and in print. Glass is not: it is a
|
|
14
|
+
surface that holds text, stays visible and uses system colours in forced colours.
|
|
15
|
+
- `.fs-glass`, a modifier on `.fs-panel`, `.fs-card` and `.fs-widget` that makes the surface a
|
|
16
|
+
translucent, blurred glass with a `--fs-glass-line` edge (`css/glass.md`).
|
|
17
|
+
- `.fs-wave`, a 3D dotted mesh in perspective at the foot of a section, cyan at the left to blue;
|
|
18
|
+
`--fs-wave-height` sets its height, `--fs-wave-image` points it at a self-hosted copy of the image
|
|
19
|
+
(`css/wave.md`).
|
|
20
|
+
- `.fs-sweep`, two soft curved bands behind a section: a thin crescent off the top left and a
|
|
21
|
+
large band off the bottom right (`css/sweep.md`).
|
|
22
|
+
- `.fs-blocks` with `.fs-blocks__block` and `.fs-blocks--loose`, the four-block abstract motif;
|
|
23
|
+
`--fs-blocks-size` sets the block size. It is not the logo's arrangement (`css/blocks.md`).
|
|
24
|
+
- **New file: `motifs/wave.webp`** (export `./motifs/*`, D31, D33). The wave is now an image file, not
|
|
25
|
+
CSS-drawn dots: the owner's ChatGPT image (licence cleared by the owner), converted by
|
|
26
|
+
`npm run motifs` (`scripts/make-wave.py`, from `art/wave-ai-source.png`, which is not in the package) to
|
|
27
|
+
a white-on-transparent WebP of 2172 x 380 (about 64 KB), used by `.fs-wave` as a mask. An earlier,
|
|
28
|
+
script-generated `wave-mesh.svg` was never released, so its removal is not a break.
|
|
29
|
+
`css/wave.css` reaches the file as `../motifs/wave.webp` and `kit.css` as `./motifs/wave.webp`.
|
|
30
|
+
**Products that copy kit files by name** (the calculation engine's embed) must copy `motifs/` too,
|
|
31
|
+
beside `css/` and `kit.css` (the file is `wave.webp`), or set `--fs-wave-image` to an absolute URL; a
|
|
32
|
+
mask from another origin needs CORS. `css-text/kit.js` and `css-text/wave.js` carry the image as
|
|
33
|
+
`new URL('../motifs/wave.webp', import.meta.url)`, so an adopted stylesheet in a shadow root
|
|
34
|
+
finds it and a bundler copies it.
|
|
35
|
+
- **Changed: `--fs-gradient-brand` and `--fs-gradient-brand-soft` now run cyan (top left) to blue**
|
|
36
|
+
(`linear-gradient(135deg, var(--fs-brand-end), var(--fs-brand-start))`), as the concepts do. The stop
|
|
37
|
+
roles keep their names; `.fs-blocks` keeps its own order (blue first).
|
|
38
|
+
- **New tokens:** the colour roles `--fs-glass-bg`, `--fs-glass-line`, `--fs-sweep-1`,
|
|
39
|
+
`--fs-sweep-2` and `--fs-wave-glow` (light and dark); and `--fs-glass-blur`. The patterns
|
|
40
|
+
`--fs-motif-dots`, `--fs-motif-dots-sm`, `--fs-motif-wave` and `--fs-motif-wave-back`, added during
|
|
41
|
+
T49 for the CSS-drawn wave, are removed again (T50) and never shipped.
|
|
42
|
+
- **Fixed:** the `.fs-appbar` dark island now re-declares every pattern and gradient built from
|
|
43
|
+
colour variables (`--fs-gradient-brand`, `--fs-gradient-brand-soft`, `--fs-gap-hatch`,
|
|
44
|
+
`--fs-gap-hatch-sm`), so inside the app bar they resolve to the island's colours, not the page's.
|
|
45
|
+
- **Changed: card hover is a lift, not a blue border** (kit T56, asked by the owner). `.fs-card:hover`
|
|
46
|
+
takes `--fs-shadow-2`, rises 2 px (no rise under reduced motion) and its edge turns the neutral
|
|
47
|
+
`--fs-line-strong` (never the accent), with no fill change;
|
|
48
|
+
press settles back with the faint tint. This includes glass cards, which no longer get an accent
|
|
49
|
+
edge on hover.
|
|
50
|
+
- **Fixed: two React-wrapper bugs** (kit T52, T53, reported by bi-app, which can drop its workarounds).
|
|
51
|
+
- T52: under `<StrictMode>` a reopened `Dialog` or `Sheet` was closed again, because the native
|
|
52
|
+
`close` event of the destroyed first instance arrived after the remount. `createDialog().destroy()`
|
|
53
|
+
now swallows that one event, so it never reaches the next instance on the same element.
|
|
54
|
+
- T53: `fs-open`/`fs-close` (and any `fs-*` event) from a nested block, such as a `Loader` or a
|
|
55
|
+
`Popover` inside a `Popover` or `Dialog`, bubbled into the outer wrapper's listener and closed it.
|
|
56
|
+
The wrappers' shared `useFsEvent` now reacts only to events whose `target` is the wrapper's own
|
|
57
|
+
root. The plain-DOM helpers add no `fs-*` listeners of their own, so they were not affected.
|
|
58
|
+
- **Gallery:** a new `motifs` page; the tokens page gets a "Motif layers" group.
|
|
59
|
+
- **Visual baselines** (`e2e/visual-baselines/`) are regenerated: the `motifs` page is new, and the
|
|
60
|
+
tokens and index pages changed (T50: every page that shows the brand gradient or the motifs). No
|
|
61
|
+
app-bar page changed.
|
|
62
|
+
|
|
63
|
+
## 0.5.0 — 2026-11-05
|
|
64
|
+
|
|
65
|
+
**Breaking (kit T48, D29):** the default look is new. The purple and orange brand is replaced by a
|
|
66
|
+
deep blue to cyan brand on deep navy, with light pale-blue grounds, white rounded cards and soft
|
|
67
|
+
blue-tinted shadows. There is no opt-in theme and no switch; every consumer gets the new look when it
|
|
68
|
+
updates. **Nothing public was renamed or removed:** every token, class and export keeps its name.
|
|
69
|
+
|
|
70
|
+
- **Palette:** the purple/orange primitives are replaced by blue, cyan and navy primitives, and the
|
|
71
|
+
colour roles follow, in both schemes. The accent is `#1f4fe0` (light) and `#8db8ff` (dark); the
|
|
72
|
+
primary button is blue-filled; the app bar is navy. The gap tone is now a cool grey, the dark status
|
|
73
|
+
washes are retuned for navy grounds, and info follows the accent. Orange stays only as the warning
|
|
74
|
+
tone (icon and edge). The syntax keyword purple stays, and the syntax greys are now cool navy-greys.
|
|
75
|
+
- **Shape:** radii are `sm` 6, `md` 10, `lg` 16 and a new `xl` 20 px. Cards, panels, widgets and
|
|
76
|
+
dialogs use `xl`; controls use `md`. Shadows are tinted navy (dark ones have double the alpha).
|
|
77
|
+
- **Display font:** Plus Jakarta Sans ships beside Inter (screen woff2 in `fonts.css`, static TrueType
|
|
78
|
+
in `fonts-print.css`). Titles, headings, the wordmark and the kicker use it; body, UI and tabular
|
|
79
|
+
figures stay Inter.
|
|
80
|
+
- New files in `fonts/`: `plus-jakarta-sans-latin-wght-normal.woff2` and
|
|
81
|
+
`plus-jakarta-sans-latin-ext-wght-normal.woff2`; the licence `OFL-plus-jakarta-sans.txt`; and in
|
|
82
|
+
`fonts/print/` the 8 TrueType files `plus-jakarta-sans-latin-{400,500,600,700}-normal.ttf` and
|
|
83
|
+
`plus-jakarta-sans-latin-ext-{400,500,600,700}-normal.ttf`.
|
|
84
|
+
- `registerFonts` now registers 7 faces (was 5).
|
|
85
|
+
- calculation-engine, re-check on upgrade: its embed build copies the woff2 files by name
|
|
86
|
+
(`products/host/app/vite.embed.config.ts`) and a test asserts the face count
|
|
87
|
+
(`src/embed-kit.test.ts`), so both need the two new woff2 files.
|
|
88
|
+
- **Charts:** series 1 is the brand blue and series 2 a cyan, then violet, amber, raspberry, navy,
|
|
89
|
+
sage and brick, in the same order in both schemes. The sequential ramp (now blue) and the
|
|
90
|
+
diverging ramp (amber to blue) are new.
|
|
91
|
+
- **Softer button edges (D30):** secondary buttons and the segmented control draw their edge in the
|
|
92
|
+
new `--fs-line-button` (about 2.2:1) instead of `--fs-line-control`. Inputs, selects, chips and
|
|
93
|
+
the dropzone keep `--fs-line-control`.
|
|
94
|
+
- **CodeMirror note (`css/codemirror.md`):** the theme now maps `.cm-gutters` to the editor gutter
|
|
95
|
+
tokens; without it, CodeMirror's light gutter shows in the dark scheme. Products that pasted the
|
|
96
|
+
theme should add the new entry.
|
|
97
|
+
- **New tokens:** `--fs-radius-xl`, `--fs-gradient-brand`, `--fs-gradient-brand-soft`, the colour
|
|
98
|
+
roles `--fs-brand-start`, `--fs-brand-end`, `--fs-brand-wash-start`, `--fs-brand-wash-end`,
|
|
99
|
+
`--fs-font-display`, `--fs-tracking-caps-wide` (0.18em, used by the kicker) and
|
|
100
|
+
`--fs-line-button`.
|
|
101
|
+
- **Re-check in each product:**
|
|
102
|
+
- bi-app's landing page: anything that hard-codes the old purple (`#790373`, `#540058`, `#1e062e`)
|
|
103
|
+
or the brand orange, and any custom shadow or radius beside the kit's cards.
|
|
104
|
+
- calculation-engine and szamolga: the same hard-coded colours; chart code that reads the old
|
|
105
|
+
series order or ramps; logo slots are unaffected.
|
|
106
|
+
- grizzbi-core and grizzbi-verify: hard-coded purple, custom shadows, and the heading font (it is
|
|
107
|
+
now Plus Jakarta Sans). Screenshot baselines will change.
|
|
108
|
+
- **Dark BI grid (D32, T51):** the `--fs-grid-*` dark values move from warm greys and browns to the
|
|
109
|
+
kit's navy neutrals; light is unchanged. BI App: check any dark grid value you override or copy.
|
|
110
|
+
Old to new: `line` `#3a3936` to `#22356a`; `header-bg` `#2a2926` to `#152a5a`; `label-bg` `#2a2926`
|
|
111
|
+
to `#13244f`; `row-hover` `rgba(165,165,255,0.06)` to `rgba(232,238,252,0.06)`; `subtotal-bg`
|
|
112
|
+
`#263040` to `#182f68`; `input-bg` `#3a3520` (amber) to `#10394a` (teal-tinted, cooler);
|
|
113
|
+
`locked-ink` `#a3a29c` to `#93a1c2`; `locked-bg` `#2c2c2a` to `#050d26`; `error-bg` and
|
|
114
|
+
`lock-other-bg` `#3d1f1d` to `#3d1a26`; `lock-mine-bg` `#1c2e20` to `#13382b`; `stale-ink`
|
|
115
|
+
`#a3a29c` to `#93a1c2`; `editing-bg` `#2e2e52` to `#223a7e`; `nodata-bg`
|
|
116
|
+
`rgba(255,255,255,0.03)` to `rgba(232,238,252,0.04)`; `chevron` `#7d7c76` to `#6f81ad`;
|
|
117
|
+
`tree-guide` `#3a3936` to `#22356a`. Unchanged: the red inks, `dirty-ink`, `selected`,
|
|
118
|
+
`stale-dot` (amber), `selected-invalid-bg`. New contrast pairs: selected outline on the input and
|
|
119
|
+
editing fills, dirty ink on editing, chevron on subtotal.
|
|
120
|
+
- **Visual baselines** (`e2e/visual-baselines/`) are regenerated for the new look.
|
|
121
|
+
|
|
6
122
|
## 0.4.0 — 2026-11-04
|
|
7
123
|
|
|
8
124
|
**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
|
|
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -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`.
|
package/dist/charts/index.js
CHANGED
|
@@ -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
|
|
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: ['#
|
|
9
|
-
diverging: ['#
|
|
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: ['#
|
|
13
|
-
diverging: ['#
|
|
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. */
|
package/dist/css/appbar.css
CHANGED
package/dist/css/appbar.md
CHANGED
|
@@ -11,7 +11,7 @@ Gallery: `navigation.html`.
|
|
|
11
11
|
</header>
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
- The app bar is a dark island on
|
|
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.
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
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/button.css
CHANGED
|
@@ -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-
|
|
24
|
-
border-radius: var(--fs-radius-
|
|
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),
|
package/dist/css/button.md
CHANGED
|
@@ -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 (
|
|
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,9 +13,13 @@
|
|
|
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-
|
|
16
|
+
border-radius: var(--fs-radius-xl);
|
|
17
|
+
box-shadow: var(--fs-shadow-1);
|
|
17
18
|
cursor: pointer;
|
|
18
|
-
transition:
|
|
19
|
+
transition:
|
|
20
|
+
border-color var(--fs-dur) var(--fs-ease),
|
|
21
|
+
box-shadow var(--fs-dur) var(--fs-ease),
|
|
22
|
+
translate var(--fs-dur) var(--fs-ease);
|
|
19
23
|
}
|
|
20
24
|
.fs-card__kicker {
|
|
21
25
|
display: block;
|
|
@@ -29,6 +33,7 @@
|
|
|
29
33
|
.fs-card__title {
|
|
30
34
|
display: block;
|
|
31
35
|
margin: var(--fs-space-1) 0;
|
|
36
|
+
font-family: var(--fs-font-display);
|
|
32
37
|
font-size: var(--fs-text-md-size);
|
|
33
38
|
line-height: var(--fs-text-md-line);
|
|
34
39
|
font-weight: var(--fs-weight-semibold);
|
|
@@ -47,14 +52,25 @@
|
|
|
47
52
|
color: var(--fs-ink-muted);
|
|
48
53
|
}
|
|
49
54
|
|
|
50
|
-
/*
|
|
55
|
+
/* Hover is a soft lift: the stronger shadow, a 2 px rise and a neutral stronger edge (never the accent), no fill (T56).
|
|
56
|
+
Press settles back with a faint tint over the surface as an image, so the card never turns
|
|
57
|
+
see-through. */
|
|
51
58
|
@media (hover: hover) {
|
|
52
59
|
.fs-card:hover {
|
|
53
|
-
border-color: var(--fs-
|
|
54
|
-
|
|
60
|
+
border-color: var(--fs-line-strong);
|
|
61
|
+
box-shadow: var(--fs-shadow-2);
|
|
62
|
+
translate: 0 -2px;
|
|
63
|
+
}
|
|
64
|
+
/* Reduced motion: the shadow still changes, but the card does not move. */
|
|
65
|
+
@media (prefers-reduced-motion: reduce) {
|
|
66
|
+
.fs-card:hover {
|
|
67
|
+
translate: none;
|
|
68
|
+
}
|
|
55
69
|
}
|
|
56
70
|
}
|
|
57
71
|
.fs-card:active {
|
|
72
|
+
box-shadow: var(--fs-shadow-1);
|
|
73
|
+
translate: none;
|
|
58
74
|
background-image: linear-gradient(var(--fs-bg-active), var(--fs-bg-active));
|
|
59
75
|
}
|
|
60
76
|
|
|
@@ -62,6 +78,8 @@
|
|
|
62
78
|
.fs-card:focus-visible {
|
|
63
79
|
outline: var(--fs-ring-width) solid var(--fs-ring);
|
|
64
80
|
outline-offset: var(--fs-ring-halo-width);
|
|
65
|
-
box-shadow:
|
|
81
|
+
box-shadow:
|
|
82
|
+
0 0 0 var(--fs-ring-halo-width) var(--fs-ring-halo),
|
|
83
|
+
var(--fs-shadow-1);
|
|
66
84
|
}
|
|
67
85
|
}
|
package/dist/css/card.md
CHANGED
|
@@ -13,5 +13,6 @@ Spec 02 D. CSS: `css/card.css`. Gallery: `overlays.html`.
|
|
|
13
13
|
|
|
14
14
|
- The whole card is one link or one button: put no other control inside it. Use spans, since
|
|
15
15
|
a link can't hold block elements.
|
|
16
|
-
- Hover:
|
|
16
|
+
- Hover: a soft lift (the stronger shadow `--fs-shadow-2`, a 2 px rise and the neutral `--fs-line-strong` edge, never the
|
|
17
|
+
accent; no fill; under reduced motion no rise); press: back down with a faint tint; focus: the ring. The calculation engine's
|
|
17
18
|
calculator cards, Grizzbi's recent projects and sample report.
|
package/dist/css/codemirror.md
CHANGED
|
@@ -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
|
package/dist/css/dialog.css
CHANGED
|
@@ -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-
|
|
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);
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/* Glass (spec 02 I). Usage: glass.md. */
|
|
2
|
+
@layer fs.components {
|
|
3
|
+
/* A modifier on a container block. It is doubled so it beats the block's own surface, whichever
|
|
4
|
+
file comes later in kit.css (the files load alphabetically: card, glass, panel, widget). */
|
|
5
|
+
.fs-glass.fs-glass {
|
|
6
|
+
background-color: var(--fs-glass-bg);
|
|
7
|
+
border-color: var(--fs-glass-line);
|
|
8
|
+
-webkit-backdrop-filter: blur(var(--fs-glass-blur)) saturate(140%);
|
|
9
|
+
backdrop-filter: blur(var(--fs-glass-blur)) saturate(140%);
|
|
10
|
+
}
|
|
11
|
+
/* The doubled rule above would beat the card's hover edge (same specificity, later file). */
|
|
12
|
+
@media (hover: hover) {
|
|
13
|
+
.fs-glass.fs-card:hover {
|
|
14
|
+
border-color: var(--fs-line-strong);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
/* Without backdrop-filter the fill would let the ground show through unblurred. */
|
|
18
|
+
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
|
|
19
|
+
.fs-glass.fs-glass {
|
|
20
|
+
background-color: var(--fs-bg-surface);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
/* Not decoration: a surface that holds text. Forced colours use the system colours. */
|
|
24
|
+
@media (forced-colors: active) {
|
|
25
|
+
.fs-glass.fs-glass {
|
|
26
|
+
background-color: Canvas;
|
|
27
|
+
border-color: CanvasText;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Glass — `.fs-glass`
|
|
2
|
+
|
|
3
|
+
Spec 02 I. CSS: `css/glass.css`. Gallery: `motifs.html`.
|
|
4
|
+
|
|
5
|
+
```html
|
|
6
|
+
<article class="fs-panel fs-glass">…</article>
|
|
7
|
+
<a class="fs-card fs-glass" href="…">…</a>
|
|
8
|
+
<div class="fs-widget fs-glass">…</div>
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
- A modifier for `.fs-panel`, `.fs-card` and `.fs-widget`: a translucent fill (`--fs-glass-bg`), a light edge
|
|
12
|
+
(`--fs-glass-line`) and a 16 px backdrop blur (`--fs-glass-blur`). A glass card's hover lift and press tint still work.
|
|
13
|
+
- Use it over something worth blurring: a sweep, a gradient wash or a photo. On a plain `bg-surface` it adds
|
|
14
|
+
nothing, so leave it off.
|
|
15
|
+
- Text on glass is contrast-tested only over the kit's grounds (the page, and both ends of the brand wash). Over a
|
|
16
|
+
photo or any other ground, check the contrast yourself.
|
|
17
|
+
- Not decoration: it is not `aria-hidden` and stays in forced colours (the system colours apply) and in print.
|
|
18
|
+
- Without `backdrop-filter` support the fill falls back to `--fs-bg-surface`.
|
package/dist/css/icon-button.css
CHANGED
|
@@ -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-
|
|
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
|
}
|
package/dist/css/input.css
CHANGED
package/dist/css/kicker.css
CHANGED
|
@@ -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
|
}
|
package/dist/css/panel.css
CHANGED
|
@@ -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-
|
|
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
|
|
14
|
-
the widget frame. `fs-panel--flat` drops the edge and the
|
|
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.
|
package/dist/css/segmented.css
CHANGED
|
@@ -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-
|
|
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-
|
|
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);
|
package/dist/css/sheet.css
CHANGED
package/dist/css/site.css
CHANGED
|
@@ -0,0 +1,55 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
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.
|