@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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,177 @@
|
|
|
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.7.0 — unreleased (date set when the owner cuts the release)
|
|
7
|
+
|
|
8
|
+
### Upgrading from 0.6.0
|
|
9
|
+
|
|
10
|
+
For BI App and Grizzbi. Nothing here is a rename, except what is listed under Removed; most items change what an
|
|
11
|
+
existing name looks like or means. Details are in the entries below.
|
|
12
|
+
|
|
13
|
+
- **Removed (T60):** delete any use of `.fs-blocks` (and `__block`, `--loose`, `--fs-blocks-size`), `.fs-sweep`,
|
|
14
|
+
`--fs-sweep-1`, `--fs-sweep-2` and `--fs-glass-line`. `.fs-glass` has no border now.
|
|
15
|
+
- **Radius tokens (T66):** same names, new values: `-sm` 4 px, `-md` 4 px, `-lg` 0, `-xl` 0 (were 6, 10, 16, 20). Cards, panels,
|
|
16
|
+
widgets and the drawer are square. Remove any local override or hard-coded radius that fought the old values; `-pill` is only for
|
|
17
|
+
counts, badges and switches.
|
|
18
|
+
- **Control edges (T65):** `--fs-line-control` is pale (`#d5dbe5` / `#2a3e76`) and inputs, selects and chips are filled with
|
|
19
|
+
`--fs-bg-sunken`. Anything of yours that relied on `line-control` for a 3:1 edge (a drop target, a progress track, a chart stroke)
|
|
20
|
+
must use the new `--fs-line-control-strong`, which carries the old values.
|
|
21
|
+
- **Greys and washes (T64, T78):** the page ground is white and the chrome, sunken and plane grounds are the cool `#f7f8fa`;
|
|
22
|
+
`--fs-accent-wash`, `--fs-bg-selected` and `--fs-line-button` changed value; the grid header and label fill are `#f7f8fa`. Drop
|
|
23
|
+
local copies of the old greys.
|
|
24
|
+
- **Shadows (T67, T75):** `.fs-card`, `.fs-panel` and `.fs-widget` have no resting shadow. `--fs-shadow-1` is still defined but
|
|
25
|
+
unused; do not add new uses. Overlay shadows and the scrim have new values; new tokens `--fs-shadow-drawer`,
|
|
26
|
+
`--fs-shadow-tooltip` and `--fs-shadow-lift`.
|
|
27
|
+
- **Card hover (T75):** the lift applies only to interactive cards (`a[href]`, `button`, `role="link"`/`"button"`). A static
|
|
28
|
+
`div.fs-card` does nothing on hover; make a clickable card a link or button. Hover no longer changes the edge colour.
|
|
29
|
+
- **Type (T62, T68):** interface text is Inter 12 / 16 in the default density (was 13 / 20). Page title `--fs-text-xl` is
|
|
30
|
+
24 / 32, `-lg` is 16 / 24, the KPI figure `-fig-lg` is 24 / 32. Widget, card, panel and popover titles are Inter 600 12 / 16 in
|
|
31
|
+
`--fs-ink-2`. Check layouts that depended on the old line heights; new `.fs-page-title` and `.fs-section-title`.
|
|
32
|
+
- **Rows and tabs (T69, T70, T63):** compact table rows are 24 px (header 28); the page tab bar is 40 px with a white semibold
|
|
33
|
+
selected tab, no accent line and square corners; the tab gap is gone. List, tree, menu and property rows stay 28.
|
|
34
|
+
- **Chart theme (T76):** series are drawn at 60 % opacity (`marks.seriesAlpha`) and the previous-year `comparison` is `#aaaaaa`,
|
|
35
|
+
1.5 px, dashed. `legend.swatch` is now `{ width, height }` with `shape: 'rect'` (was a number and `'circle'`): code that reads
|
|
36
|
+
the theme object must change. The tooltip uses `--fs-shadow-tooltip` and 4 px corners.
|
|
37
|
+
- **Wave (T77, D41):** `.fs-wave` is for sites only; never put it on a BI App or Grizzbi page. The light and dark variants (K7)
|
|
38
|
+
are withdrawn. No code changed.
|
|
39
|
+
- **Sidenav and tree (T61):** the current sidenav item and selected tree row are full-width square rows with no accent bar; the
|
|
40
|
+
tree indent is `--fs-tree-level` padding inside the row. Check custom rows built on these classes.
|
|
41
|
+
- **Visual baselines:** any screenshot test that includes kit surfaces needs new baselines.
|
|
42
|
+
- **Optional, new:** `.fs-kpi--card` / `<KpiCard>`, `.fs-param-badge`, `.fs-tooltip--list`, `.fs-control-rows`,
|
|
43
|
+
`.fs-property-list`, `.fs-tabs--object`, `.fs-chip--lock`, `.fs-card--page`, `.fs-page*`, `.fs-widget-row`.
|
|
44
|
+
|
|
45
|
+
### Removed (breaking)
|
|
46
|
+
|
|
47
|
+
- Kit T60, D36 (the owner's design review): `.fs-blocks` (with `.fs-blocks__block` and `.fs-blocks--loose`,
|
|
48
|
+
`--fs-blocks-size`) and `.fs-sweep` are gone, with their CSS, usage notes and the tokens `--fs-sweep-1`
|
|
49
|
+
and `--fs-sweep-2`. No deprecation period: no app uses them. `--fs-glass-line` is gone too (glass has no
|
|
50
|
+
border now). Needs a minor bump.
|
|
51
|
+
|
|
52
|
+
### Added
|
|
53
|
+
|
|
54
|
+
- Kit T78: `--fs-grid-header-bg` and `--fs-grid-label-bg` are `#f7f8fa` in light (were `#f2f2f2` and `#f4f4f4`), the cool grey of tables
|
|
55
|
+
elsewhere. The grid line stays `#dddddd`; dark is unchanged. Not breaking by name, but the rendered grid header looks lighter.
|
|
56
|
+
|
|
57
|
+
- Kit T77, D41: documentation only. `.fs-wave` stays as a motif for sites only: its usage note, spec 02 and the gallery say it is
|
|
58
|
+
never used on BI App or Grizzbi pages, and the light and dark variants (K7) are withdrawn. No code changed.
|
|
59
|
+
|
|
60
|
+
- Kit T76, D40: the chart theme draws every series at 60 % opacity (`marks.seriesAlpha`, `--fs-chart-series-alpha` `0.6`; lines, bars and
|
|
61
|
+
slices in the ECharts theme) and the previous-year `comparison` is `#aaaaaa`, 1.5 px, dashed. Both sit below 3:1 on purpose: the
|
|
62
|
+
legend and the dash are the cue. The legend swatch is a 16 × 2 line (`legend.swatch` is now `{ width, height }`, `shape` `'rect'`; was
|
|
63
|
+
a 10 px number and `'circle'`: breaking for a reader of the theme object). The chart tooltip uses `--fs-shadow-tooltip` (was
|
|
64
|
+
`shadow-2`) and 4 px corners. Dark `comparison` is unchanged.
|
|
65
|
+
|
|
66
|
+
- Kit T68, D39: `.fs-page-title` (Plus Jakarta Sans 600, 24 / 32) and `.fs-section-title` (16 / 24) in the new
|
|
67
|
+
`css/title.css`, and `.fs-section-label` in `css/kicker.css` (Inter 600 12 / 16, capitals, `--fs-tracking-caps`,
|
|
68
|
+
`--fs-ink-2`: the widget drawer's section label).
|
|
69
|
+
|
|
70
|
+
- Kit T69: page spacing tokens `--fs-size-page-top` 24, `-page-x` 32, `-page-bottom` 32, `-page-gap` 24,
|
|
71
|
+
`-page-header-gap` 12, `-page-header-after` 32, `-page-caption-gap` 4 and `--fs-size-widget-gap` 8, and the blocks
|
|
72
|
+
`.fs-page`, `.fs-page-header` (with `__title`, `__caption`) and `.fs-widget-row` in the new `css/page.css`. Spacing only:
|
|
73
|
+
BI App's page grid stays its own. New density tokens `--fs-table-row-h` (24 / 24 / 36) and `--fs-table-head-h`
|
|
74
|
+
(24 / 28 / 36).
|
|
75
|
+
|
|
76
|
+
- Kit T71 (owner, canvas): the KPI card, variant D, as `.fs-kpi--card` with `__body`, `__head`, `__title`, `__change`
|
|
77
|
+
(`--good`, `--bad`), `__footer`, `__cell`, `__error`, `__error-text`, `__error-detail` and `__retry` in `css/kpi.css`, and
|
|
78
|
+
the React `<KpiCard>`. Flat and square, 176 px at least, a 22 px change chip whose colour says good or bad and whose
|
|
79
|
+
arrow says the direction. The existing `.fs-kpi` and `--result` are unchanged. Needs a minor bump.
|
|
80
|
+
|
|
81
|
+
- Kit T72 (owner A6, bi-app F37): the parameter badge `.fs-param-badge` (new `css/param-badge.css`): a 20 px pill button with the
|
|
82
|
+
count and the `sliders-horizontal` icon, `--fs-accent` on `--fs-accent-wash`; and `.fs-tooltip--list` (with `__title`
|
|
83
|
+
and `__item`) in `css/tooltip.css`, the light 200 px list tip for it. The tip is the existing `createTooltip`. Needs a minor bump.
|
|
84
|
+
|
|
85
|
+
- Kit T73 (owner A6, bi-app T228): the control-row grid, `.fs-control-rows` (`__title`, `__grid`, `__label`, `__value`),
|
|
86
|
+
`.fs-control-rows-stack` and the property list `.fs-property-list` (`__label`, `__value`) in the new `css/control-rows.css`:
|
|
87
|
+
gapless `label | value` rows, label cells on `--fs-bg-sunken`, edges in `--fs-line-control`, rows `--fs-control-h` high,
|
|
88
|
+
max width 520 (property list 560, 160 px label column). Needs a minor bump.
|
|
89
|
+
|
|
90
|
+
- Kit T74 (owner, canvas): `.fs-tabs--object` in `css/tabs.css`, BI's object tabs (32 px, padding 0 12, no gap, the selected
|
|
91
|
+
tab semibold with a 2 px accent underline across it; they keep the blue underline), and `.fs-chip--lock` in `css/chip.css`
|
|
92
|
+
(the 22 px lock status chip, 4 px corners, accent on accent wash). The default `.fs-tabs` are unchanged. Needs a minor bump.
|
|
93
|
+
|
|
94
|
+
- Kit T75 (owner, canvas): `.fs-card--page` with `__tile` and `__body` in `css/card.css`, the folder page card (a 32 px accent-wash
|
|
95
|
+
icon tile, the name, the type), and the token `--fs-shadow-lift` (`0 2px 6px` navy at .08; dark .16).
|
|
96
|
+
|
|
97
|
+
### Changed
|
|
98
|
+
|
|
99
|
+
- Kit T75 (T56 reread against T67's flat cards): the card's hover lift now applies to **interactive** cards only (`a[href]`,
|
|
100
|
+
`button`, `role="link"`/`"button"`, not disabled) and takes `--fs-shadow-lift` (was `--fs-shadow-2`); the hover no longer changes the
|
|
101
|
+
edge to `--fs-line-strong` (the canvas keeps the hairline), and `cursor: pointer` is for interactive cards too. A static `.fs-card`
|
|
102
|
+
(a `div`) does nothing on hover. The 2 px rise and the reduced-motion rule are unchanged. Needs a minor bump.
|
|
103
|
+
|
|
104
|
+
- Kit T64, D37 (owner K1, reverses A4): two cool greys, new primitives `grey-50` `#f7f8fa` and `grey-100` `#eef1f5`.
|
|
105
|
+
`--fs-bg-page` is white (dark: the surface `#0e1d45`), `--fs-bg-chrome`, `--fs-bg-sunken`, `--fs-bg-plane` and
|
|
106
|
+
`--fs-neutral-wash` take grey-50 (dark `#13244f`), `--fs-bg-disabled` and `--fs-computed-bg` grey-100
|
|
107
|
+
(dark `#152a5a`). `--fs-accent-wash` and `--fs-bg-selected` are `#e9edfc` (was `#e8f0fe`), `--fs-line-button`
|
|
108
|
+
is `#d5dbe5` / `#2a3e76` (was `#a3afc6` / `#475a8b`). The accent stays `#1f4fe0`; the diverging chart ramp's
|
|
109
|
+
middle follows `bg-sunken`. Needs a minor bump.
|
|
110
|
+
|
|
111
|
+
- Kit T70 (owner, canvas): `.fs-tabbar` is 40 px (`--fs-size-tabbar` was 28) on `--fs-bg-chrome` with a hairline below, tab
|
|
112
|
+
padding 0 12, a hairline on the right of each tab and a 20 px close mark (was 16). The selected tab is white and
|
|
113
|
+
semibold (was weight 500 with side edges in `--fs-line-strong`), with no accent line or marker; in forced colours it
|
|
114
|
+
keeps both side edges in `CanvasText`. New modifier `.fs-tabbar--under` (Grizzbi: padding 0 16, hairline on top). The gap
|
|
115
|
+
between tabs is gone (was 2 px). Needs a minor bump.
|
|
116
|
+
|
|
117
|
+
- Kit T69 (canvas): `.fs-table` data rows are 24 px in the compact density (were 28, `--fs-row-h`) and the header row
|
|
118
|
+
28 px; dense stays 24 / 24 and comfortable 36 / 36. List, tree, menu and property rows and controls stay 28.
|
|
119
|
+
Needs a minor bump.
|
|
120
|
+
|
|
121
|
+
- Kit T68, D39 (owner, canvas): title roles. `--fs-text-xl` (page title) is 24 / 32 (was 20 / 28), `-lg` (section, dialog
|
|
122
|
+
and sheet titles) 16 / 24 (was 18 / 26), `-fig-lg` (the KPI figure, Inter 600, tabular) 24 / 32 (was 32 / 36),
|
|
123
|
+
`-fig-md` 22 / 28 and `-fig-sm` 20 / 24 to keep the order. Widget, card, panel and popover titles
|
|
124
|
+
(`.fs-widget__title`, `.fs-card__title`, `.fs-panel__title`, `.fs-popover__title`) and the widget prose headings are Inter 600
|
|
125
|
+
12 / 16 (the body token) in `--fs-ink-2`, no longer Plus Jakarta Sans 14 / 20; `.fs-sheet__title` is 16 / 24. The site
|
|
126
|
+
wordmark and `.fs-gap-value__title` follow `-lg` to 16. Comfortable density keeps 16 / 24. Needs a minor bump.
|
|
127
|
+
|
|
128
|
+
- Kit T67, D37 (canvas): `.fs-card`, `.fs-panel` and `.fs-widget` have no resting shadow (the 1 px hairline is the
|
|
129
|
+
edge), and `.fs-card:active` and its focus ring lose `--fs-shadow-1` too. Overlay shadows take the canvas values:
|
|
130
|
+
`--fs-shadow-3` (dialog) `0 12px 32px` at .18, new `--fs-shadow-drawer` (the sheet) `-8px 0 24px` at .12, new
|
|
131
|
+
`--fs-shadow-tooltip` (now on `.fs-tooltip`) `0 4px 12px` at .12; dark doubles the alpha. `--fs-bg-backdrop`
|
|
132
|
+
(the scrim) is navy at .32 (was .40; dark .64, was .65). `--fs-shadow-1` stays defined but nothing in the kit
|
|
133
|
+
uses it; `-2` is unchanged. Needs a minor bump.
|
|
134
|
+
|
|
135
|
+
- Kit T66, D37 (owner K3): corners are 0 for surfaces and 4 px for controls, nothing larger (breaking, visual).
|
|
136
|
+
Radius tokens: `--fs-radius-sm` 6 to 4 px, `-md` 10 to 4 px, `-lg` 16 to 0, `-xl` 20 to 0; `-pill` is
|
|
137
|
+
unchanged and now only for counts, badges and switches. Cards, panels, widgets, the drop zone, the
|
|
138
|
+
drawer and tab buttons are square; dialogs are 4 px; chips and `.fs-palette-pill` are 4 px, not pills;
|
|
139
|
+
the meter, stacked bar, link and breadcrumb focus shapes use 4 px (were 2 to 5 px). Needs a minor bump.
|
|
140
|
+
|
|
141
|
+
- Kit T65, D38 (owner K2): `--fs-line-control` is `#d5dbe5` light / `#2a3e76` dark (was `#7a88a6` / `#6f81ad`), and
|
|
142
|
+
inputs, selects, field boxes and chips are filled with `--fs-bg-sunken`. New `--fs-line-control-strong`
|
|
143
|
+
carries the old values for the dropzone, drag targets, progress track, bar segments and the chart "other"
|
|
144
|
+
and zero strokes, which have no fill or label and keep 3:1. Needs a minor bump.
|
|
145
|
+
|
|
146
|
+
- Kit T60, D36: `.fs-glass` has no border, a `--fs-radius-sm` radius, and a thin translucent gradient from
|
|
147
|
+
blue at the left (`--fs-glass-bg`, new values) to cyan at the right (new token `--fs-glass-bg-end`).
|
|
148
|
+
Text on both ends is contrast-tested.
|
|
149
|
+
|
|
150
|
+
- Kit T61 (owner K4): the current `.fs-sidenav__item` and the selected `.fs-tree__row` are full-width, square
|
|
151
|
+
rows on `--fs-bg-selected`, with no 2 px accent bar. The sidenav list lost its side padding (the items
|
|
152
|
+
carry it), and the tree's indent moved from the groups' margin to padding inside the row (new
|
|
153
|
+
`--fs-tree-level`, set by nested groups); the guide lines are drawn on the row.
|
|
154
|
+
|
|
155
|
+
- Kit T62, D35 (owner A1): all interface text is Inter 12 on a 16 px line. The default (compact) density's
|
|
156
|
+
`--fs-text-body-size` / `-line` go from 13 / 20 to 12 / 16 (dense was already 12 / 16; comfortable stays 16 / 24).
|
|
157
|
+
Captions, kickers, badge counts, tooltips, menu group labels, the app bar source line, KPI labels and
|
|
158
|
+
secondary figures, and the gap and problems blocks that set 11, 13 or 14 px now use the body token.
|
|
159
|
+
Title roles keep their sizes; the popover title now sets Plus Jakarta Sans like the other titles. Rows and
|
|
160
|
+
controls keep their heights. New check: `scripts/lib/type-12.test.ts`.
|
|
161
|
+
|
|
162
|
+
- Kit T63 (owner, design review): `.fs-tabbar` tabs fill the bar's full height; the selected tab has no top
|
|
163
|
+
border, and the tab corners are square (radius 0).
|
|
164
|
+
|
|
165
|
+
### Fixed
|
|
166
|
+
|
|
167
|
+
- Kit T81 (T79 baseline review): `.fs-checkbox__input` and `.fs-radio__input` are drawn by the kit (`appearance: none`): the
|
|
168
|
+
browser's unchecked edge blended `accent-color` into an olive in dark. Edge `--fs-line-control-strong`, fill `--fs-bg-sunken`,
|
|
169
|
+
checked `--fs-accent`; forced colours use the system's drawing. Still native inputs, same markup. The chip's remove button has
|
|
170
|
+
4 px corners (was round) and a tight focus ring that no longer covers the label.
|
|
171
|
+
|
|
172
|
+
- Kit T59 (the owner's design review, 2026-11-07): the gallery's dev server now serves `.webp`, so
|
|
173
|
+
the wave shows in `npm run gallery`; `.fs-dialog__footer` after `.fs-dialog__text` has space above
|
|
174
|
+
its divider; `.fs-add-cell` has horizontal padding. The Design System artifact's Loader preview
|
|
175
|
+
has no rounded frame (`scripts/design-system/previews.py`).
|
|
176
|
+
|
|
6
177
|
## 0.6.0 — 2026-11-06
|
|
7
178
|
|
|
8
179
|
Additive (kit T49, T50, T55, D2, D31, D33): the new look's decorative motifs, as four CSS blocks and one
|
package/dist/charts/index.d.ts
CHANGED
|
@@ -32,8 +32,11 @@ export interface ChartTheme {
|
|
|
32
32
|
legend: {
|
|
33
33
|
text: string;
|
|
34
34
|
size: number;
|
|
35
|
-
swatch:
|
|
36
|
-
|
|
35
|
+
swatch: {
|
|
36
|
+
width: number;
|
|
37
|
+
height: number;
|
|
38
|
+
};
|
|
39
|
+
shape: 'rect';
|
|
37
40
|
};
|
|
38
41
|
tooltip: {
|
|
39
42
|
bg: string;
|
|
@@ -49,6 +52,8 @@ export interface ChartTheme {
|
|
|
49
52
|
pointRadius: number;
|
|
50
53
|
pointsOnHoverOnly: boolean;
|
|
51
54
|
areaAlpha: number;
|
|
55
|
+
/** Opacity of every series mark (D40): lines, bars and slices are drawn at this, not mixed. */
|
|
56
|
+
seriesAlpha: number;
|
|
52
57
|
};
|
|
53
58
|
selection: {
|
|
54
59
|
outline: string;
|
package/dist/charts/index.js
CHANGED
|
@@ -3,15 +3,16 @@
|
|
|
3
3
|
import { composite, parseColor, toHex } from "../tokens/contrast.js";
|
|
4
4
|
import { readTokens, tokens } from "../tokens/index.js";
|
|
5
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
|
+
// to lavender), stops at even lightness steps; diverging is amber to blue through bg-sunken
|
|
7
|
+
// (its middle follows bg-sunken; moved with the cool greys in T64).
|
|
7
8
|
const ramps = {
|
|
8
9
|
light: {
|
|
9
10
|
sequential: ['#eaf1fd', '#adcaff', '#72a2fc', '#2b79f4', '#1e4cd7', '#173287', '#0b1a3f'],
|
|
10
|
-
diverging: ['#9a5200', '#be8557', '#dabba6', '#
|
|
11
|
+
diverging: ['#9a5200', '#be8557', '#dabba6', '#f7f8fa', '#9cc0ff', '#4e8af8', '#1f4fe0'],
|
|
11
12
|
},
|
|
12
13
|
dark: {
|
|
13
14
|
sequential: ['#172b5e', '#1f40a7', '#245ae5', '#3a81f7', '#76a4fc', '#a8c7ff', '#dce9ff'],
|
|
14
|
-
diverging: ['#f0a54a', '#af793d', '#704f38', '#
|
|
15
|
+
diverging: ['#f0a54a', '#af793d', '#704f38', '#13244f', '#2254a9', '#3b82f7', '#8db8ff'],
|
|
15
16
|
},
|
|
16
17
|
};
|
|
17
18
|
/** How far a not-selected mark is mixed towards the surface when cross-filtering. */
|
|
@@ -34,6 +35,7 @@ const readNames = [
|
|
|
34
35
|
'chart-good',
|
|
35
36
|
'chart-bad',
|
|
36
37
|
'chart-area-alpha',
|
|
38
|
+
'chart-series-alpha',
|
|
37
39
|
'bg-surface',
|
|
38
40
|
'ink',
|
|
39
41
|
'ink-2',
|
|
@@ -41,7 +43,7 @@ const readNames = [
|
|
|
41
43
|
'ring',
|
|
42
44
|
'ring-halo',
|
|
43
45
|
'font-figures',
|
|
44
|
-
'shadow-
|
|
46
|
+
'shadow-tooltip',
|
|
45
47
|
];
|
|
46
48
|
function build(scheme, v) {
|
|
47
49
|
const series = seriesNames.map((n) => v[n]);
|
|
@@ -52,7 +54,7 @@ function build(scheme, v) {
|
|
|
52
54
|
series,
|
|
53
55
|
seriesDimmed: series.map((c) => dim(c, v['bg-surface'])),
|
|
54
56
|
other: v['chart-other'],
|
|
55
|
-
comparison: { color: v['chart-comparison'], width:
|
|
57
|
+
comparison: { color: v['chart-comparison'], width: 1.5, dash: [4, 3] },
|
|
56
58
|
good: v['chart-good'],
|
|
57
59
|
bad: v['chart-bad'],
|
|
58
60
|
neutral: v['ink-2'],
|
|
@@ -60,8 +62,8 @@ function build(scheme, v) {
|
|
|
60
62
|
diverging: ramps[scheme].diverging,
|
|
61
63
|
axis: { line: v['chart-axis'], label: v['chart-label'], labelSize: 11 },
|
|
62
64
|
grid: { line: v['chart-grid'], zero: v['chart-zero'] },
|
|
63
|
-
legend: { text: v['ink-2'], size: 12, swatch:
|
|
64
|
-
tooltip: { bg: v['bg-surface'], text: v.ink, line: v['line-strong'], shadow: v['shadow-
|
|
65
|
+
legend: { text: v['ink-2'], size: 12, swatch: { width: 16, height: 2 }, shape: 'rect' },
|
|
66
|
+
tooltip: { bg: v['bg-surface'], text: v.ink, line: v['line-strong'], shadow: v['shadow-tooltip'], size: 12 },
|
|
65
67
|
marks: {
|
|
66
68
|
barMaxWidth: 34,
|
|
67
69
|
barRadius: 4,
|
|
@@ -69,6 +71,7 @@ function build(scheme, v) {
|
|
|
69
71
|
pointRadius: 4,
|
|
70
72
|
pointsOnHoverOnly: true,
|
|
71
73
|
areaAlpha: Number(v['chart-area-alpha']),
|
|
74
|
+
seriesAlpha: Number(v['chart-series-alpha']),
|
|
72
75
|
},
|
|
73
76
|
selection: { outline: v.ring, halo: v['ring-halo'], width: 2 },
|
|
74
77
|
};
|
|
@@ -79,10 +82,10 @@ function staticValues(scheme) {
|
|
|
79
82
|
for (const n of readNames) {
|
|
80
83
|
if (n === 'font-figures')
|
|
81
84
|
out[n] = tokens.font.figures;
|
|
82
|
-
else if (n === 'shadow-
|
|
83
|
-
out[n] = tokens.shadow[scheme]
|
|
84
|
-
else if (n === 'chart-area-alpha')
|
|
85
|
-
out[n] = String(tokens.chart[
|
|
85
|
+
else if (n === 'shadow-tooltip')
|
|
86
|
+
out[n] = tokens.shadow[scheme].tooltip;
|
|
87
|
+
else if (n === 'chart-area-alpha' || n === 'chart-series-alpha')
|
|
88
|
+
out[n] = String(tokens.chart[n]);
|
|
86
89
|
else
|
|
87
90
|
out[n] = c[n];
|
|
88
91
|
}
|
|
@@ -128,8 +131,8 @@ export function toEChartsTheme(t) {
|
|
|
128
131
|
top: 0,
|
|
129
132
|
type: 'scroll',
|
|
130
133
|
icon: t.legend.shape,
|
|
131
|
-
itemWidth: t.legend.swatch,
|
|
132
|
-
itemHeight: t.legend.swatch,
|
|
134
|
+
itemWidth: t.legend.swatch.width,
|
|
135
|
+
itemHeight: t.legend.swatch.height,
|
|
133
136
|
textStyle: { color: t.legend.text, fontSize: t.legend.size, fontFamily: family },
|
|
134
137
|
pageTextStyle: { color: t.legend.text },
|
|
135
138
|
pageIconColor: t.legend.text,
|
|
@@ -140,7 +143,7 @@ export function toEChartsTheme(t) {
|
|
|
140
143
|
borderColor: t.tooltip.line,
|
|
141
144
|
borderWidth: 1,
|
|
142
145
|
textStyle: { color: t.tooltip.text, fontSize: t.tooltip.size, fontFamily: family },
|
|
143
|
-
extraCssText: `box-shadow: ${t.tooltip.shadow}; border-radius:
|
|
146
|
+
extraCssText: `box-shadow: ${t.tooltip.shadow}; border-radius: 4px;`,
|
|
144
147
|
axisPointer: {
|
|
145
148
|
lineStyle: { color: t.axis.line },
|
|
146
149
|
crossStyle: { color: t.axis.line },
|
|
@@ -150,14 +153,14 @@ export function toEChartsTheme(t) {
|
|
|
150
153
|
grid: { left: 8, right: 8, top: 32, bottom: 8, containLabel: true },
|
|
151
154
|
bar: {
|
|
152
155
|
barMaxWidth: t.marks.barMaxWidth,
|
|
153
|
-
itemStyle: { borderRadius: [t.marks.barRadius, t.marks.barRadius, 0, 0] },
|
|
156
|
+
itemStyle: { borderRadius: [t.marks.barRadius, t.marks.barRadius, 0, 0], opacity: t.marks.seriesAlpha },
|
|
154
157
|
},
|
|
155
158
|
line: {
|
|
156
|
-
lineStyle: { width: t.marks.lineWidth },
|
|
159
|
+
lineStyle: { width: t.marks.lineWidth, opacity: t.marks.seriesAlpha },
|
|
157
160
|
symbol: 'circle',
|
|
158
161
|
symbolSize: 2 * t.marks.pointRadius,
|
|
159
162
|
showSymbol: !t.marks.pointsOnHoverOnly,
|
|
160
163
|
},
|
|
161
|
-
pie: { itemStyle: { borderColor: t.surface, borderWidth: 1 } },
|
|
164
|
+
pie: { itemStyle: { borderColor: t.surface, borderWidth: 1, opacity: t.marks.seriesAlpha } },
|
|
162
165
|
};
|
|
163
166
|
}
|
package/dist/css/appbar.css
CHANGED
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
font-weight: var(--fs-weight-semibold);
|
|
38
38
|
}
|
|
39
39
|
.fs-appbar__source {
|
|
40
|
-
font-size: var(--fs-text-
|
|
41
|
-
line-height: var(--fs-text-
|
|
40
|
+
font-size: var(--fs-text-body-size);
|
|
41
|
+
line-height: var(--fs-text-body-line);
|
|
42
42
|
color: var(--fs-ink-muted);
|
|
43
43
|
}
|
|
44
44
|
.fs-appbar__actions {
|
package/dist/css/breadcrumbs.css
CHANGED
package/dist/css/card.css
CHANGED
|
@@ -14,17 +14,14 @@
|
|
|
14
14
|
background-color: var(--fs-bg-surface);
|
|
15
15
|
border: var(--fs-line-width) solid var(--fs-line);
|
|
16
16
|
border-radius: var(--fs-radius-xl);
|
|
17
|
-
box-shadow: var(--fs-shadow-1);
|
|
18
|
-
cursor: pointer;
|
|
19
17
|
transition:
|
|
20
|
-
border-color var(--fs-dur) var(--fs-ease),
|
|
21
18
|
box-shadow var(--fs-dur) var(--fs-ease),
|
|
22
19
|
translate var(--fs-dur) var(--fs-ease);
|
|
23
20
|
}
|
|
24
21
|
.fs-card__kicker {
|
|
25
22
|
display: block;
|
|
26
|
-
font-size: var(--fs-text-
|
|
27
|
-
line-height: var(--fs-text-
|
|
23
|
+
font-size: var(--fs-text-body-size);
|
|
24
|
+
line-height: var(--fs-text-body-line);
|
|
28
25
|
font-weight: var(--fs-weight-semibold);
|
|
29
26
|
letter-spacing: var(--fs-tracking-caps);
|
|
30
27
|
text-transform: uppercase;
|
|
@@ -33,10 +30,10 @@
|
|
|
33
30
|
.fs-card__title {
|
|
34
31
|
display: block;
|
|
35
32
|
margin: var(--fs-space-1) 0;
|
|
36
|
-
font-
|
|
37
|
-
|
|
38
|
-
line-height: var(--fs-text-md-line);
|
|
33
|
+
font-size: var(--fs-text-body-size);
|
|
34
|
+
line-height: var(--fs-text-body-line);
|
|
39
35
|
font-weight: var(--fs-weight-semibold);
|
|
36
|
+
color: var(--fs-ink-2);
|
|
40
37
|
}
|
|
41
38
|
.fs-card__text {
|
|
42
39
|
display: block;
|
|
@@ -52,34 +49,68 @@
|
|
|
52
49
|
color: var(--fs-ink-muted);
|
|
53
50
|
}
|
|
54
51
|
|
|
55
|
-
/*
|
|
56
|
-
|
|
57
|
-
|
|
52
|
+
/* Only an interactive card (a link or a button) takes the pointer, the lift and the press; a static .fs-card is a flat
|
|
53
|
+
box that does nothing on hover (T75). The lift is the new shadow (--fs-shadow-lift) and a 2 px rise; the edge, the fill
|
|
54
|
+
and the accent stay as they are (T56: no accent edge, no grey fill). The press settles back with a faint tint over the
|
|
55
|
+
surface as an image, so the card never turns see-through. */
|
|
56
|
+
.fs-card:is(a[href], button, [role='link'], [role='button']):not(:disabled, [aria-disabled='true']) {
|
|
57
|
+
cursor: pointer;
|
|
58
|
+
}
|
|
58
59
|
@media (hover: hover) {
|
|
59
|
-
.fs-card:hover {
|
|
60
|
-
|
|
61
|
-
box-shadow: var(--fs-shadow-2);
|
|
60
|
+
.fs-card:is(a[href], button, [role='link'], [role='button']):not(:disabled, [aria-disabled='true']):hover {
|
|
61
|
+
box-shadow: var(--fs-shadow-lift);
|
|
62
62
|
translate: 0 -2px;
|
|
63
63
|
}
|
|
64
64
|
/* Reduced motion: the shadow still changes, but the card does not move. */
|
|
65
65
|
@media (prefers-reduced-motion: reduce) {
|
|
66
|
-
.fs-card:hover {
|
|
66
|
+
.fs-card:is(a[href], button, [role='link'], [role='button']):not(:disabled, [aria-disabled='true']):hover {
|
|
67
67
|
translate: none;
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
.fs-card:active {
|
|
72
|
-
box-shadow:
|
|
71
|
+
.fs-card:is(a[href], button, [role='link'], [role='button']):not(:disabled, [aria-disabled='true']):active {
|
|
72
|
+
box-shadow: none;
|
|
73
73
|
translate: none;
|
|
74
74
|
background-image: linear-gradient(var(--fs-bg-active), var(--fs-bg-active));
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
/* The ring recipe (D15). */
|
|
78
|
-
.fs-card:focus-visible
|
|
78
|
+
.fs-card:focus-visible,
|
|
79
|
+
.fs-card:is(a[href], button, [role='link'], [role='button']):not(:disabled, [aria-disabled='true']):focus-visible {
|
|
79
80
|
outline: var(--fs-ring-width) solid var(--fs-ring);
|
|
80
81
|
outline-offset: var(--fs-ring-halo-width);
|
|
81
|
-
box-shadow:
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
box-shadow: 0 0 0 var(--fs-ring-halo-width) var(--fs-ring-halo);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/* The folder page card (T75, the Folder board): an icon tile, the name and the type in a row. */
|
|
86
|
+
.fs-card--page {
|
|
87
|
+
display: flex;
|
|
88
|
+
align-items: center;
|
|
89
|
+
gap: var(--fs-space-3);
|
|
90
|
+
}
|
|
91
|
+
.fs-card__tile {
|
|
92
|
+
display: inline-flex;
|
|
93
|
+
flex: none;
|
|
94
|
+
align-items: center;
|
|
95
|
+
justify-content: center;
|
|
96
|
+
width: 32px;
|
|
97
|
+
height: 32px;
|
|
98
|
+
color: var(--fs-accent);
|
|
99
|
+
background: var(--fs-accent-wash);
|
|
100
|
+
}
|
|
101
|
+
.fs-card__body {
|
|
102
|
+
display: flex;
|
|
103
|
+
flex-direction: column;
|
|
104
|
+
min-width: 0;
|
|
105
|
+
}
|
|
106
|
+
.fs-card--page .fs-card__title {
|
|
107
|
+
margin: 0;
|
|
108
|
+
color: var(--fs-ink);
|
|
109
|
+
}
|
|
110
|
+
.fs-card--page .fs-card__meta {
|
|
111
|
+
margin: 0;
|
|
112
|
+
font-size: var(--fs-text-body-size);
|
|
113
|
+
line-height: var(--fs-text-body-line);
|
|
114
|
+
color: var(--fs-ink-muted);
|
|
84
115
|
}
|
|
85
116
|
}
|
package/dist/css/card.md
CHANGED
|
@@ -13,6 +13,21 @@ 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:
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
- Hover (T75): only an **interactive** card (an `a[href]`, a `button`, or `role="link"`/`"button"`, not disabled) shows the pointer,
|
|
17
|
+
lifts and presses. The lift is the shadow `--fs-shadow-lift` (`0 2px 6px`, navy at .08) and a 2 px rise; the edge, the fill and
|
|
18
|
+
the accent do not change (T56: never an accent edge, no grey fill); under reduced motion there is no rise. A static
|
|
19
|
+
`.fs-card` (a `div`) is a flat box and does nothing on hover. Press: back down with a faint tint; focus: the ring. The calculation
|
|
20
|
+
engine's calculator cards, Grizzbi's recent projects and sample report.
|
|
21
|
+
|
|
22
|
+
## Folder page card — `.fs-card--page`
|
|
23
|
+
|
|
24
|
+
```html
|
|
25
|
+
<a class="fs-card fs-card--page" href="…">
|
|
26
|
+
<span class="fs-card__tile"><svg class="fs-icon fs-icon-layout-dashboard" …></svg></span>
|
|
27
|
+
<span class="fs-card__body"><span class="fs-card__title">Executive Dashboard</span><span class="fs-card__meta">page</span></span>
|
|
28
|
+
</a>
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
- BI App's folder page (T75): a square card on a 1 px `--fs-line` edge, a 32 px square icon tile (`accent` on `accent-wash`), the
|
|
32
|
+
name (semibold, `ink`) and the type (`ink-muted`) beside it. Set the cards in a grid with a gap of 8
|
|
33
|
+
(`repeat(auto-fit, minmax(220px, 1fr))`); the hover is the interactive card's lift above.
|
package/dist/css/checkbox.css
CHANGED
|
@@ -12,15 +12,55 @@
|
|
|
12
12
|
color: var(--fs-ink);
|
|
13
13
|
cursor: pointer;
|
|
14
14
|
}
|
|
15
|
+
/* Drawn by the kit (T81), still a native input: the browser's own unchecked edge was a mixed olive in dark
|
|
16
|
+
(Chrome blends accent-color into it). The edge is --fs-line-control-strong (3:1: a box has no label inside). */
|
|
15
17
|
.fs-checkbox__input,
|
|
16
18
|
.fs-radio__input {
|
|
19
|
+
appearance: none;
|
|
20
|
+
position: relative;
|
|
17
21
|
flex: none;
|
|
22
|
+
box-sizing: border-box;
|
|
18
23
|
width: 16px;
|
|
19
24
|
height: 16px;
|
|
20
25
|
margin: 0;
|
|
21
|
-
|
|
26
|
+
background: var(--fs-bg-sunken);
|
|
27
|
+
border: var(--fs-line-width) solid var(--fs-line-control-strong);
|
|
28
|
+
border-radius: var(--fs-radius-sm);
|
|
22
29
|
cursor: pointer;
|
|
23
30
|
}
|
|
31
|
+
.fs-radio__input {
|
|
32
|
+
border-radius: 50%;
|
|
33
|
+
}
|
|
34
|
+
.fs-checkbox__input::before,
|
|
35
|
+
.fs-radio__input::before {
|
|
36
|
+
content: '';
|
|
37
|
+
position: absolute;
|
|
38
|
+
inset: 0;
|
|
39
|
+
background: var(--fs-ink-on-accent);
|
|
40
|
+
visibility: hidden;
|
|
41
|
+
}
|
|
42
|
+
.fs-checkbox__input::before {
|
|
43
|
+
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.8 2.8L12 5.5' fill='none' stroke='currentColor' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
|
|
44
|
+
center / 100% 100% no-repeat;
|
|
45
|
+
}
|
|
46
|
+
.fs-radio__input::before {
|
|
47
|
+
inset: 3px;
|
|
48
|
+
border-radius: 50%;
|
|
49
|
+
}
|
|
50
|
+
.fs-checkbox__input:checked,
|
|
51
|
+
.fs-checkbox__input:indeterminate,
|
|
52
|
+
.fs-radio__input:checked {
|
|
53
|
+
background: var(--fs-accent);
|
|
54
|
+
border-color: var(--fs-accent);
|
|
55
|
+
}
|
|
56
|
+
.fs-checkbox__input:checked::before,
|
|
57
|
+
.fs-checkbox__input:indeterminate::before,
|
|
58
|
+
.fs-radio__input:checked::before {
|
|
59
|
+
visibility: visible;
|
|
60
|
+
}
|
|
61
|
+
.fs-checkbox__input:indeterminate::before {
|
|
62
|
+
mask: linear-gradient(var(--fs-ink) 0 0) center / 8px 2px no-repeat;
|
|
63
|
+
}
|
|
24
64
|
|
|
25
65
|
/* The ring recipe (D15). */
|
|
26
66
|
.fs-checkbox__input:focus-visible,
|
|
@@ -37,6 +77,26 @@
|
|
|
37
77
|
}
|
|
38
78
|
.fs-checkbox__input:disabled,
|
|
39
79
|
.fs-radio__input:disabled {
|
|
80
|
+
background: var(--fs-bg-disabled);
|
|
81
|
+
border-color: var(--fs-line);
|
|
40
82
|
cursor: not-allowed;
|
|
41
83
|
}
|
|
84
|
+
.fs-checkbox__input:disabled:checked,
|
|
85
|
+
.fs-checkbox__input:disabled:indeterminate,
|
|
86
|
+
.fs-radio__input:disabled:checked {
|
|
87
|
+
background: var(--fs-ink-disabled);
|
|
88
|
+
border-color: var(--fs-ink-disabled);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/* Forced colours: hand the control back to the system's own drawing. */
|
|
92
|
+
@media (forced-colors: active) {
|
|
93
|
+
.fs-checkbox__input,
|
|
94
|
+
.fs-radio__input {
|
|
95
|
+
appearance: auto;
|
|
96
|
+
}
|
|
97
|
+
.fs-checkbox__input::before,
|
|
98
|
+
.fs-radio__input::before {
|
|
99
|
+
display: none;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
42
102
|
}
|
package/dist/css/checkbox.md
CHANGED
|
@@ -7,8 +7,9 @@ Spec 02 B. CSS: `css/checkbox.css`. Gallery: `inputs.html`.
|
|
|
7
7
|
<label class="fs-radio"><input type="radio" name="g" class="fs-radio__input"><span class="fs-radio__label">Monthly</span></label>
|
|
8
8
|
```
|
|
9
9
|
|
|
10
|
-
- Native inputs at 16 px,
|
|
11
|
-
|
|
10
|
+
- Native inputs at 16 px, drawn by the kit (`appearance: none`; T81): an edge in `--fs-line-control-strong`, a
|
|
11
|
+
`--fs-bg-sunken` fill, `--fs-accent` when checked or indeterminate. They work in authored layouts and follow
|
|
12
|
+
the scheme into dark islands; in forced colours the system draws them.
|
|
12
13
|
- Hover is the browser's own; the kit adds none.
|
|
13
14
|
- Indeterminate is the `indeterminate` property (set from script). Disabled greys the label too.
|
|
14
15
|
- Each row is at least 24 px high, the touch target of spec 06.
|