@finstack-com-public/design 0.10.0 → 0.10.1

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 CHANGED
@@ -3,6 +3,26 @@
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.10.1 — 2026-11-12
7
+
8
+ Nothing breaks. Upgrading from 0.10.0 needs no change.
9
+
10
+ ### Fixed
11
+
12
+ - **Opt-in sheets set the layer order (T102):** `css/xyflow.css` and `css/reset.css` now start with the kit's `@layer`
13
+ order statement, so they can load before or after `kit.css`. Before, `xyflow.css` loaded first set `fs.components`
14
+ before `fs.reset` in the order, the reset's `svg { max-width: 100% }` won, and every xyflow edge vanished.
15
+
16
+ ### Changed
17
+
18
+ - **The node section's chevron takes the head's ink (T103):** `.fs-node__section-head`'s chevron is drawn in
19
+ `--fs-ink-2`, the colour of its caps label, instead of `--fs-grid-chevron`, and in `CanvasText` in forced colours.
20
+ Grid, table, tree and the plain disclosure keep `--fs-grid-chevron`.
21
+
22
+ ### Docs
23
+
24
+ - **`xyflow.md` (T101):** the attribution note no longer names a product that hides the link; both options stay.
25
+
6
26
  ## 0.10.0 — 2026-11-12
7
27
 
8
28
  Nothing breaks. Upgrading from 0.9.1 needs no change.
package/dist/css/node.css CHANGED
@@ -150,9 +150,11 @@
150
150
  text-transform: uppercase;
151
151
  color: var(--fs-ink-2);
152
152
  }
153
+ /* The chevron takes the head's ink, not --fs-grid-chevron, so it reads at the weight of its caps label (T103). */
153
154
  .fs-node__section-head::before {
154
155
  width: 12px;
155
156
  height: 12px;
157
+ background-color: var(--fs-ink-2);
156
158
  }
157
159
  /* The slot for T92's mark counts, pushed right. */
158
160
  .fs-node__counts {
@@ -238,5 +240,9 @@
238
240
  background-image: none;
239
241
  border-bottom: var(--fs-line-width) dashed CanvasText;
240
242
  }
243
+ /* Forced colours erase a fill, so the section chevron's mask is drawn in CanvasText (T103). */
244
+ .fs-node__section-head::before {
245
+ background-color: CanvasText;
246
+ }
241
247
  }
242
248
  }
package/dist/css/node.md CHANGED
@@ -49,7 +49,7 @@ and the kit does not style xyflow's wrapper. A product that leaves nodes selecta
49
49
  | `__body` | Any children. Omitted by `DiagramNode` when it has none. |
50
50
  | `__row` | A column row, 24 px. Every row has hover; a `button` or an element with `tabindex` also gets the pointer cursor and the inset focus ring. |
51
51
  | `__row-name`, `__tag`, `__gap`, `__more` | The row's name (flex, ellipsis); a muted small tag or icon (hidden, key, calculated); the gap word in the gap ink; the "+ 3 more columns" line. |
52
- | `__section`, `__section-head`, `__counts` | A folding section on `.fs-disclosure` (a `details`; chevron, open state and ring are the disclosure's): caps text (12 px, `--fs-tracking-caps`); `__counts` is the right-hand slot for `.fs-mark-count`s (T92). |
52
+ | `__section`, `__section-head`, `__counts` | A folding section on `.fs-disclosure` (a `details`; chevron, open state and ring are the disclosure's, the chevron in the head's `--fs-ink-2`, `CanvasText` in forced colours): caps text (12 px, `--fs-tracking-caps`); `__counts` is the right-hand slot for `.fs-mark-count`s (T92). |
53
53
 
54
54
  ## States
55
55
 
@@ -1,5 +1,7 @@
1
1
  /* The opt-in reset (spec 02 G; CE H4). Usage: reset.md. Never part of kit.css: load it yourself,
2
- and only in an app the kit owns, never inside an embed on someone else's page. */
2
+ and only in an app the kit owns, never inside an embed on someone else's page. It starts with the
3
+ kit's layer order, so it can load before or after kit.css (T102). */
4
+ @layer fs.tokens, fs.reset, fs.base, fs.components, fs.utilities;
3
5
  @layer fs.reset {
4
6
  *,
5
7
  *::before,
package/dist/css/reset.md CHANGED
@@ -7,5 +7,6 @@ Spec 02 G (CE H4). CSS: `css/reset.css`, in `fs.reset`. **Not** part of `kit.css
7
7
  ```
8
8
 
9
9
  - Box-sizing, no body margin, form controls inherit their font, media fits its box.
10
+ - It starts with the kit's layer order, so it can load before or after `kit.css`.
10
11
  - Load it only in an app the kit owns. Never put it in an embed on someone else's page: it styles
11
12
  bare elements.
@@ -1,4 +1,5 @@
1
- /* A scoped, CSS-only theme for xyflow (spec 02 J, T95). Usage: xyflow.md. Opt-in like reset.css: never part of kit.css, load it yourself after xyflow's own stylesheet. The kit has no xyflow dependency. */
1
+ /* A scoped, CSS-only theme for xyflow (spec 02 J, T95). Usage: xyflow.md. Opt-in like reset.css: never part of kit.css, load it yourself. It starts with the kit's layer order, so the load order doesn't matter, against xyflow's stylesheet or the kit's (T102). The kit has no xyflow dependency. */
2
+ @layer fs.tokens, fs.reset, fs.base, fs.components, fs.utilities;
2
3
  @layer fs.components {
3
4
  /* xyflow reads its own --xy-* variables before its -default ones, so setting them here themes every
4
5
  part that reads them. Set on the plane, they reach a `.react-flow` inside it or on the same element. */
@@ -4,7 +4,7 @@ Spec 02 J (T95, Phase G). CSS: `css/xyflow.css`. Gallery: `diagram.html` (live,
4
4
  **A CSS-only theme for [xyflow](https://xyflow.com).** The kit has no xyflow dependency (the rule of `codemirror.md`):
5
5
  `@xyflow/react` is a devDependency of the gallery and its tests, and the product keeps its own copy.
6
6
 
7
- **Opt-in, like `reset.css`.** `kit.css` does not contain it. Import it yourself (the order against xyflow's stylesheet does not matter: see below):
7
+ **Opt-in, like `reset.css`.** `kit.css` does not contain it. Import it yourself, in any order. It starts with the kit's layer order, so it may come before `kit.css` (T102); against xyflow's stylesheet, see "Layers decide what works" below.
8
8
 
9
9
  ```ts
10
10
  import '@xyflow/react/dist/style.css';
@@ -62,7 +62,7 @@ xyflow reads `--xy-*` before its own `-default` values, so these set the whole l
62
62
  - **The attribution link keeps xyflow's `#999`**, which fails AA on the surface (only its background is set here). A product
63
63
  that shows the attribution restyles the link in its own unlayered CSS (the gallery's `gallery.css` gives it
64
64
  `--fs-ink-link`, a text pair on the surface this sheet puts behind it); otherwise it hides it
65
- (`proOptions={{ hideAttribution: true }}`, as core does).
65
+ (`proOptions={{ hideAttribution: true }}`).
66
66
  - **More than one diagram on a page:** give each `<ReactFlow>` its own `id`. The default is the same for all, and the ids of
67
67
  xyflow's aria descriptions and live region would repeat. xyflow also puts that `id` on its root element, so it must be unique
68
68
  on the page and must not reuse another element's id (the gallery uses `<host id>-flow`).
@@ -4532,9 +4532,11 @@ export default `@layer fs.tokens, fs.reset, fs.base, fs.components, fs.utilities
4532
4532
  text-transform: uppercase;
4533
4533
  color: var(--fs-ink-2);
4534
4534
  }
4535
+ /* The chevron takes the head's ink, not --fs-grid-chevron, so it reads at the weight of its caps label (T103). */
4535
4536
  .fs-node__section-head::before {
4536
4537
  width: 12px;
4537
4538
  height: 12px;
4539
+ background-color: var(--fs-ink-2);
4538
4540
  }
4539
4541
  /* The slot for T92's mark counts, pushed right. */
4540
4542
  .fs-node__counts {
@@ -4620,6 +4622,10 @@ export default `@layer fs.tokens, fs.reset, fs.base, fs.components, fs.utilities
4620
4622
  background-image: none;
4621
4623
  border-bottom: var(--fs-line-width) dashed CanvasText;
4622
4624
  }
4625
+ /* Forced colours erase a fill, so the section chevron's mask is drawn in CanvasText (T103). */
4626
+ .fs-node__section-head::before {
4627
+ background-color: CanvasText;
4628
+ }
4623
4629
  }
4624
4630
  }
4625
4631
 
@@ -1 +1 @@
1
- export default "/* Node frame: a box for a diagram, with a header, rows and a folding section (spec 02 J, T96). Usage: node.md. The kit draws no ports. */\n@layer fs.components {\n .fs-node {\n --fs-node-edge: var(--fs-line-strong);\n box-sizing: border-box;\n width: var(--fs-node-width, 248px);\n font-size: var(--fs-text-xs-size);\n line-height: var(--fs-text-xs-line);\n color: var(--fs-ink);\n background: var(--fs-bg-surface);\n /* D37: corners 0 and no shadow. */\n border: var(--fs-line-width) solid var(--fs-node-edge);\n border-radius: 0;\n transition: border-color var(--fs-dur);\n }\n\n /* The header is the drag handle: it can be a div or a button. */\n .fs-node__header {\n position: relative;\n display: flex;\n align-items: center;\n gap: var(--fs-space-2);\n box-sizing: border-box;\n width: 100%;\n margin: 0;\n padding: 8px 10px;\n border: 0;\n border-bottom: var(--fs-line-width) solid var(--fs-line);\n border-radius: 0;\n background: var(--fs-bg-chrome);\n color: inherit;\n font: inherit;\n text-align: left;\n cursor: grab;\n }\n .fs-node__icon {\n flex: none;\n color: var(--fs-ink-2);\n }\n .fs-node__name {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n font-weight: var(--fs-weight-semibold);\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .fs-node__meta {\n flex: none;\n color: var(--fs-ink-muted);\n white-space: nowrap;\n font-variant-numeric: tabular-nums;\n }\n\n /* Any children: rows, a section, a \"more\" line, or the product's own. */\n .fs-node__body {\n display: grid;\n padding: 3px 0;\n }\n .fs-node__body:empty {\n display: none;\n }\n\n .fs-node__row {\n position: relative;\n display: flex;\n align-items: center;\n gap: 7px;\n box-sizing: border-box;\n width: 100%;\n min-height: 24px;\n margin: 0;\n padding: 2px 10px;\n border: 0;\n border-radius: 0;\n background: none;\n color: inherit;\n font: inherit;\n text-align: left;\n }\n .fs-node__row-name {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .fs-node__tag {\n display: inline-flex;\n flex: none;\n align-items: center;\n color: var(--fs-ink-muted);\n }\n /* The word of a gap row (\"Not converted\"): the word is the cue, the hatch is its backdrop. */\n .fs-node__gap {\n flex: none;\n font-weight: var(--fs-weight-semibold);\n color: var(--fs-gap-ink);\n white-space: nowrap;\n }\n .fs-node__more {\n padding: 2px 10px 6px 39px;\n font-size: var(--fs-text-xs-size);\n color: var(--fs-ink-muted);\n }\n\n /* A row the product makes interactive: a button, or anything with a tabindex. */\n .fs-node__row:is(button, [tabindex]) {\n cursor: pointer;\n }\n .fs-node__header:focus-visible,\n .fs-node__row:focus-visible,\n .fs-node__section-head:focus-visible {\n outline: var(--fs-ring-width) solid var(--fs-ring);\n outline-offset: calc(-1 * var(--fs-ring-width));\n }\n @media (hover: hover) {\n .fs-node__row:hover {\n background-color: var(--fs-bg-hover);\n }\n }\n .fs-node__row.fs-is-selected {\n background-color: var(--fs-bg-selected);\n }\n /* Lit: an accent wash and a 3 px accent left edge. */\n .fs-node__row.fs-is-lit {\n background-color: var(--fs-accent-wash);\n box-shadow: inset 3px 0 0 var(--fs-accent);\n }\n .fs-node__row.fs-is-hidden .fs-node__row-name {\n color: var(--fs-ink-muted);\n }\n .fs-node__row.fs-is-key .fs-node__row-name {\n font-weight: var(--fs-weight-semibold);\n }\n .fs-node__row.fs-is-gap {\n background-image: var(--fs-gap-hatch-sm);\n }\n\n /* The folding section, on .fs-disclosure (the chevron, the open state and the ring are its). */\n .fs-node__section {\n border-top: var(--fs-line-width) solid var(--fs-line);\n }\n .fs-node__section-head {\n min-height: 24px;\n padding: 2px 10px;\n border-radius: 0;\n font-weight: var(--fs-weight-semibold);\n letter-spacing: var(--fs-tracking-caps);\n text-transform: uppercase;\n color: var(--fs-ink-2);\n }\n .fs-node__section-head::before {\n width: 12px;\n height: 12px;\n }\n /* The slot for T92's mark counts, pushed right. */\n .fs-node__counts {\n display: flex;\n gap: 6px;\n margin-left: auto;\n letter-spacing: 0;\n text-transform: none;\n }\n .fs-node__section > .fs-disclosure__body {\n display: grid;\n padding: 3px 0;\n }\n\n /* Node states. Selected is an outline, outside the edge, so it never moves the layout. */\n .fs-node.fs-is-selected {\n outline: 2px solid var(--fs-accent);\n outline-offset: 2px;\n }\n /* Lit and match: the edge turns accent and the header takes the wash, so it is not colour on the edge alone. */\n .fs-node--lit,\n .fs-node--match {\n --fs-node-edge: var(--fs-accent);\n }\n .fs-node--lit > .fs-node__header,\n .fs-node--match > .fs-node__header {\n background-color: var(--fs-accent-wash);\n }\n /* Dim: the one deliberate contrast exception for a node (spec 06 §2). */\n .fs-node--dim {\n opacity: var(--fs-diagram-dim-node);\n }\n /* Fail (two filter paths): a dashed gap edge, and the gap hatch on the header. */\n .fs-node--fail {\n --fs-node-edge: var(--fs-gap-ink);\n border-style: dashed;\n }\n .fs-node--fail > .fs-node__header {\n background-image: var(--fs-gap-hatch-sm);\n }\n /* No data: a hatched header, and the product's \"No data\" in the meta, which turns bold and darker. */\n .fs-node--nodata > .fs-node__header {\n background-image: repeating-linear-gradient(135deg, var(--fs-bg-sunken) 0 6px, transparent 6px 12px);\n }\n .fs-node--nodata .fs-node__meta {\n color: var(--fs-ink-2);\n font-weight: var(--fs-weight-semibold);\n }\n /* Measures only: a dashed edge. */\n .fs-node--measures-only {\n border-style: dashed;\n }\n\n /* Forced colours: system colours; dashes, the outline and the left edge still show. */\n @media (forced-colors: active) {\n .fs-node {\n border-color: CanvasText;\n }\n .fs-node.fs-is-selected {\n outline-color: Highlight;\n }\n .fs-node--lit,\n .fs-node--match {\n border-color: Highlight;\n }\n /* Forced colours removes box-shadow, so the lit row's left edge is a border; the padding gives the 3 px back. */\n .fs-node__row.fs-is-lit {\n border-inline-start: 3px solid Highlight;\n padding-inline-start: 7px;\n }\n .fs-node__row.fs-is-selected {\n outline: 1px solid Highlight;\n outline-offset: -1px;\n }\n /* Forced colours erase a hatch: a dashed system-colour border takes its place (06 §7, as gap.css does). The row's\n border is inside its box-sizing, so the row keeps its height; the header's replaces its bottom hairline. */\n .fs-node__row.fs-is-gap {\n background-image: none;\n border: var(--fs-line-width) dashed CanvasText;\n }\n .fs-node--fail > .fs-node__header,\n .fs-node--nodata > .fs-node__header {\n background-image: none;\n border-bottom: var(--fs-line-width) dashed CanvasText;\n }\n }\n}\n";
1
+ export default "/* Node frame: a box for a diagram, with a header, rows and a folding section (spec 02 J, T96). Usage: node.md. The kit draws no ports. */\n@layer fs.components {\n .fs-node {\n --fs-node-edge: var(--fs-line-strong);\n box-sizing: border-box;\n width: var(--fs-node-width, 248px);\n font-size: var(--fs-text-xs-size);\n line-height: var(--fs-text-xs-line);\n color: var(--fs-ink);\n background: var(--fs-bg-surface);\n /* D37: corners 0 and no shadow. */\n border: var(--fs-line-width) solid var(--fs-node-edge);\n border-radius: 0;\n transition: border-color var(--fs-dur);\n }\n\n /* The header is the drag handle: it can be a div or a button. */\n .fs-node__header {\n position: relative;\n display: flex;\n align-items: center;\n gap: var(--fs-space-2);\n box-sizing: border-box;\n width: 100%;\n margin: 0;\n padding: 8px 10px;\n border: 0;\n border-bottom: var(--fs-line-width) solid var(--fs-line);\n border-radius: 0;\n background: var(--fs-bg-chrome);\n color: inherit;\n font: inherit;\n text-align: left;\n cursor: grab;\n }\n .fs-node__icon {\n flex: none;\n color: var(--fs-ink-2);\n }\n .fs-node__name {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n font-weight: var(--fs-weight-semibold);\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .fs-node__meta {\n flex: none;\n color: var(--fs-ink-muted);\n white-space: nowrap;\n font-variant-numeric: tabular-nums;\n }\n\n /* Any children: rows, a section, a \"more\" line, or the product's own. */\n .fs-node__body {\n display: grid;\n padding: 3px 0;\n }\n .fs-node__body:empty {\n display: none;\n }\n\n .fs-node__row {\n position: relative;\n display: flex;\n align-items: center;\n gap: 7px;\n box-sizing: border-box;\n width: 100%;\n min-height: 24px;\n margin: 0;\n padding: 2px 10px;\n border: 0;\n border-radius: 0;\n background: none;\n color: inherit;\n font: inherit;\n text-align: left;\n }\n .fs-node__row-name {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .fs-node__tag {\n display: inline-flex;\n flex: none;\n align-items: center;\n color: var(--fs-ink-muted);\n }\n /* The word of a gap row (\"Not converted\"): the word is the cue, the hatch is its backdrop. */\n .fs-node__gap {\n flex: none;\n font-weight: var(--fs-weight-semibold);\n color: var(--fs-gap-ink);\n white-space: nowrap;\n }\n .fs-node__more {\n padding: 2px 10px 6px 39px;\n font-size: var(--fs-text-xs-size);\n color: var(--fs-ink-muted);\n }\n\n /* A row the product makes interactive: a button, or anything with a tabindex. */\n .fs-node__row:is(button, [tabindex]) {\n cursor: pointer;\n }\n .fs-node__header:focus-visible,\n .fs-node__row:focus-visible,\n .fs-node__section-head:focus-visible {\n outline: var(--fs-ring-width) solid var(--fs-ring);\n outline-offset: calc(-1 * var(--fs-ring-width));\n }\n @media (hover: hover) {\n .fs-node__row:hover {\n background-color: var(--fs-bg-hover);\n }\n }\n .fs-node__row.fs-is-selected {\n background-color: var(--fs-bg-selected);\n }\n /* Lit: an accent wash and a 3 px accent left edge. */\n .fs-node__row.fs-is-lit {\n background-color: var(--fs-accent-wash);\n box-shadow: inset 3px 0 0 var(--fs-accent);\n }\n .fs-node__row.fs-is-hidden .fs-node__row-name {\n color: var(--fs-ink-muted);\n }\n .fs-node__row.fs-is-key .fs-node__row-name {\n font-weight: var(--fs-weight-semibold);\n }\n .fs-node__row.fs-is-gap {\n background-image: var(--fs-gap-hatch-sm);\n }\n\n /* The folding section, on .fs-disclosure (the chevron, the open state and the ring are its). */\n .fs-node__section {\n border-top: var(--fs-line-width) solid var(--fs-line);\n }\n .fs-node__section-head {\n min-height: 24px;\n padding: 2px 10px;\n border-radius: 0;\n font-weight: var(--fs-weight-semibold);\n letter-spacing: var(--fs-tracking-caps);\n text-transform: uppercase;\n color: var(--fs-ink-2);\n }\n /* The chevron takes the head's ink, not --fs-grid-chevron, so it reads at the weight of its caps label (T103). */\n .fs-node__section-head::before {\n width: 12px;\n height: 12px;\n background-color: var(--fs-ink-2);\n }\n /* The slot for T92's mark counts, pushed right. */\n .fs-node__counts {\n display: flex;\n gap: 6px;\n margin-left: auto;\n letter-spacing: 0;\n text-transform: none;\n }\n .fs-node__section > .fs-disclosure__body {\n display: grid;\n padding: 3px 0;\n }\n\n /* Node states. Selected is an outline, outside the edge, so it never moves the layout. */\n .fs-node.fs-is-selected {\n outline: 2px solid var(--fs-accent);\n outline-offset: 2px;\n }\n /* Lit and match: the edge turns accent and the header takes the wash, so it is not colour on the edge alone. */\n .fs-node--lit,\n .fs-node--match {\n --fs-node-edge: var(--fs-accent);\n }\n .fs-node--lit > .fs-node__header,\n .fs-node--match > .fs-node__header {\n background-color: var(--fs-accent-wash);\n }\n /* Dim: the one deliberate contrast exception for a node (spec 06 §2). */\n .fs-node--dim {\n opacity: var(--fs-diagram-dim-node);\n }\n /* Fail (two filter paths): a dashed gap edge, and the gap hatch on the header. */\n .fs-node--fail {\n --fs-node-edge: var(--fs-gap-ink);\n border-style: dashed;\n }\n .fs-node--fail > .fs-node__header {\n background-image: var(--fs-gap-hatch-sm);\n }\n /* No data: a hatched header, and the product's \"No data\" in the meta, which turns bold and darker. */\n .fs-node--nodata > .fs-node__header {\n background-image: repeating-linear-gradient(135deg, var(--fs-bg-sunken) 0 6px, transparent 6px 12px);\n }\n .fs-node--nodata .fs-node__meta {\n color: var(--fs-ink-2);\n font-weight: var(--fs-weight-semibold);\n }\n /* Measures only: a dashed edge. */\n .fs-node--measures-only {\n border-style: dashed;\n }\n\n /* Forced colours: system colours; dashes, the outline and the left edge still show. */\n @media (forced-colors: active) {\n .fs-node {\n border-color: CanvasText;\n }\n .fs-node.fs-is-selected {\n outline-color: Highlight;\n }\n .fs-node--lit,\n .fs-node--match {\n border-color: Highlight;\n }\n /* Forced colours removes box-shadow, so the lit row's left edge is a border; the padding gives the 3 px back. */\n .fs-node__row.fs-is-lit {\n border-inline-start: 3px solid Highlight;\n padding-inline-start: 7px;\n }\n .fs-node__row.fs-is-selected {\n outline: 1px solid Highlight;\n outline-offset: -1px;\n }\n /* Forced colours erase a hatch: a dashed system-colour border takes its place (06 §7, as gap.css does). The row's\n border is inside its box-sizing, so the row keeps its height; the header's replaces its bottom hairline. */\n .fs-node__row.fs-is-gap {\n background-image: none;\n border: var(--fs-line-width) dashed CanvasText;\n }\n .fs-node--fail > .fs-node__header,\n .fs-node--nodata > .fs-node__header {\n background-image: none;\n border-bottom: var(--fs-line-width) dashed CanvasText;\n }\n /* Forced colours erase a fill, so the section chevron's mask is drawn in CanvasText (T103). */\n .fs-node__section-head::before {\n background-color: CanvasText;\n }\n }\n}\n";
@@ -1 +1 @@
1
- export default "/* The opt-in reset (spec 02 G; CE H4). Usage: reset.md. Never part of kit.css: load it yourself,\n and only in an app the kit owns, never inside an embed on someone else's page. */\n@layer fs.reset {\n *,\n *::before,\n *::after {\n box-sizing: border-box;\n }\n body {\n margin: 0;\n }\n :where(button, input, select, textarea) {\n font: inherit;\n color: inherit;\n }\n :where(img, svg, video, canvas) {\n max-width: 100%;\n }\n}\n";
1
+ export default "/* The opt-in reset (spec 02 G; CE H4). Usage: reset.md. Never part of kit.css: load it yourself,\n and only in an app the kit owns, never inside an embed on someone else's page. It starts with the\n kit's layer order, so it can load before or after kit.css (T102). */\n@layer fs.tokens, fs.reset, fs.base, fs.components, fs.utilities;\n@layer fs.reset {\n *,\n *::before,\n *::after {\n box-sizing: border-box;\n }\n body {\n margin: 0;\n }\n :where(button, input, select, textarea) {\n font: inherit;\n color: inherit;\n }\n :where(img, svg, video, canvas) {\n max-width: 100%;\n }\n}\n";
@@ -1 +1 @@
1
- export default "/* A scoped, CSS-only theme for xyflow (spec 02 J, T95). Usage: xyflow.md. Opt-in like reset.css: never part of kit.css, load it yourself after xyflow's own stylesheet. The kit has no xyflow dependency. */\n@layer fs.components {\n /* xyflow reads its own --xy-* variables before its -default ones, so setting them here themes every\n part that reads them. Set on the plane, they reach a `.react-flow` inside it or on the same element. */\n .fs-diagram {\n --xy-background-color: var(--fs-diagram-bg);\n --xy-background-pattern-color: var(--fs-diagram-dot);\n --xy-edge-stroke: var(--fs-diagram-line);\n --xy-edge-stroke-width: var(--fs-diagram-line-width);\n --xy-edge-stroke-selected: var(--fs-diagram-line-emphasis);\n --xy-connectionline-stroke: var(--fs-diagram-line);\n --xy-connectionline-stroke-width: var(--fs-diagram-line-width);\n --xy-edge-label-background-color: var(--fs-bg-surface);\n --xy-edge-label-color: var(--fs-ink-2);\n --xy-attribution-background-color: var(--fs-bg-surface);\n --xy-selection-background-color: var(--fs-accent-wash);\n --xy-selection-border: var(--fs-line-width) dotted var(--fs-accent);\n --xy-minimap-background-color: var(--fs-bg-surface);\n --xy-minimap-mask-background-color: var(--fs-bg-sunken);\n --xy-minimap-mask-stroke-color: transparent;\n --xy-minimap-node-background-color: var(--fs-line-strong);\n --xy-minimap-node-stroke-color: transparent;\n --xy-controls-button-background-color: var(--fs-bg-surface);\n --xy-controls-button-background-color-hover: var(--fs-bg-hover);\n --xy-controls-button-color: var(--fs-ink-2);\n --xy-controls-button-color-hover: var(--fs-ink);\n --xy-controls-button-border-color: var(--fs-line);\n /* D37: flat. xyflow's default is a 2 px shadow. */\n --xy-controls-box-shadow: none;\n }\n /* A `.react-flow` inside the plane lets the plane's dot grid show; on the plane itself the colour above stays. */\n .fs-diagram .react-flow {\n --xy-background-color: transparent;\n }\n\n /* The line states on an xyflow edge path. xyflow's unlayered `.react-flow__edge-path` sets stroke, stroke-width and fill\n itself, so it beats diagram.css's stroke rules; its --xy-edge-stroke and --xy-edge-stroke-width are the way in. The\n product puts the T94 classes on `BaseEdge`'s className (they land on the path). Hover is the edge group's, not the\n path's: xyflow draws a wider invisible interaction path on top of it. */\n .fs-diagram .fs-diagram-edge {\n --xy-edge-stroke: var(--fs-diagram-line);\n --xy-edge-stroke-width: var(--fs-diagram-line-width);\n }\n .fs-diagram .fs-diagram-edge--inactive {\n --xy-edge-stroke: var(--fs-diagram-line-inactive);\n }\n .fs-diagram .fs-diagram-edge--emphasis,\n .fs-diagram .fs-diagram-edge--flow,\n .fs-diagram .react-flow__edge:hover .fs-diagram-edge,\n .fs-diagram .react-flow__edge.selected .fs-diagram-edge {\n --xy-edge-stroke: var(--fs-diagram-line-emphasis);\n --xy-edge-stroke-width: var(--fs-diagram-emphasis-width);\n }\n /* The end circle and the arrow: xyflow sets nothing on them, so the kit's own properties work; only hover needs the\n edge group, as above. */\n .fs-diagram .react-flow__edge:hover .fs-diagram-end > circle {\n stroke: var(--fs-diagram-line-emphasis);\n }\n .fs-diagram .react-flow__edge:hover .fs-diagram-arrow {\n fill: var(--fs-diagram-line-emphasis);\n }\n\n /* The kit's reset caps an svg at its container's width; the edge layer's container has none, and a\n zero-wide svg draws nothing. */\n .fs-diagram .react-flow__edges svg {\n max-width: none;\n }\n\n /* Square, with a hairline edge (D37). */\n .fs-diagram .react-flow__controls,\n .fs-diagram .react-flow__minimap {\n border: var(--fs-line-width) solid var(--fs-line);\n border-radius: 0;\n }\n .fs-diagram .react-flow__controls-button {\n border-radius: 0;\n }\n .fs-diagram .react-flow__controls-button:focus-visible {\n outline: var(--fs-ring-width) solid var(--fs-ring);\n outline-offset: calc(-1 * var(--fs-ring-width));\n }\n\n /* Forced colours: the same variables, as system colours. */\n @media (forced-colors: active) {\n .fs-diagram .fs-diagram-edge {\n --xy-edge-stroke: CanvasText;\n }\n .fs-diagram .fs-diagram-edge--emphasis,\n .fs-diagram .fs-diagram-edge--flow,\n .fs-diagram .react-flow__edge:hover .fs-diagram-edge,\n .fs-diagram .react-flow__edge.selected .fs-diagram-edge {\n --xy-edge-stroke: Highlight;\n }\n .fs-diagram .react-flow__edge:hover .fs-diagram-end > circle {\n stroke: Highlight;\n }\n .fs-diagram .react-flow__edge:hover .fs-diagram-arrow {\n fill: Highlight;\n }\n }\n}\n";
1
+ export default "/* A scoped, CSS-only theme for xyflow (spec 02 J, T95). Usage: xyflow.md. Opt-in like reset.css: never part of kit.css, load it yourself. It starts with the kit's layer order, so the load order doesn't matter, against xyflow's stylesheet or the kit's (T102). The kit has no xyflow dependency. */\n@layer fs.tokens, fs.reset, fs.base, fs.components, fs.utilities;\n@layer fs.components {\n /* xyflow reads its own --xy-* variables before its -default ones, so setting them here themes every\n part that reads them. Set on the plane, they reach a `.react-flow` inside it or on the same element. */\n .fs-diagram {\n --xy-background-color: var(--fs-diagram-bg);\n --xy-background-pattern-color: var(--fs-diagram-dot);\n --xy-edge-stroke: var(--fs-diagram-line);\n --xy-edge-stroke-width: var(--fs-diagram-line-width);\n --xy-edge-stroke-selected: var(--fs-diagram-line-emphasis);\n --xy-connectionline-stroke: var(--fs-diagram-line);\n --xy-connectionline-stroke-width: var(--fs-diagram-line-width);\n --xy-edge-label-background-color: var(--fs-bg-surface);\n --xy-edge-label-color: var(--fs-ink-2);\n --xy-attribution-background-color: var(--fs-bg-surface);\n --xy-selection-background-color: var(--fs-accent-wash);\n --xy-selection-border: var(--fs-line-width) dotted var(--fs-accent);\n --xy-minimap-background-color: var(--fs-bg-surface);\n --xy-minimap-mask-background-color: var(--fs-bg-sunken);\n --xy-minimap-mask-stroke-color: transparent;\n --xy-minimap-node-background-color: var(--fs-line-strong);\n --xy-minimap-node-stroke-color: transparent;\n --xy-controls-button-background-color: var(--fs-bg-surface);\n --xy-controls-button-background-color-hover: var(--fs-bg-hover);\n --xy-controls-button-color: var(--fs-ink-2);\n --xy-controls-button-color-hover: var(--fs-ink);\n --xy-controls-button-border-color: var(--fs-line);\n /* D37: flat. xyflow's default is a 2 px shadow. */\n --xy-controls-box-shadow: none;\n }\n /* A `.react-flow` inside the plane lets the plane's dot grid show; on the plane itself the colour above stays. */\n .fs-diagram .react-flow {\n --xy-background-color: transparent;\n }\n\n /* The line states on an xyflow edge path. xyflow's unlayered `.react-flow__edge-path` sets stroke, stroke-width and fill\n itself, so it beats diagram.css's stroke rules; its --xy-edge-stroke and --xy-edge-stroke-width are the way in. The\n product puts the T94 classes on `BaseEdge`'s className (they land on the path). Hover is the edge group's, not the\n path's: xyflow draws a wider invisible interaction path on top of it. */\n .fs-diagram .fs-diagram-edge {\n --xy-edge-stroke: var(--fs-diagram-line);\n --xy-edge-stroke-width: var(--fs-diagram-line-width);\n }\n .fs-diagram .fs-diagram-edge--inactive {\n --xy-edge-stroke: var(--fs-diagram-line-inactive);\n }\n .fs-diagram .fs-diagram-edge--emphasis,\n .fs-diagram .fs-diagram-edge--flow,\n .fs-diagram .react-flow__edge:hover .fs-diagram-edge,\n .fs-diagram .react-flow__edge.selected .fs-diagram-edge {\n --xy-edge-stroke: var(--fs-diagram-line-emphasis);\n --xy-edge-stroke-width: var(--fs-diagram-emphasis-width);\n }\n /* The end circle and the arrow: xyflow sets nothing on them, so the kit's own properties work; only hover needs the\n edge group, as above. */\n .fs-diagram .react-flow__edge:hover .fs-diagram-end > circle {\n stroke: var(--fs-diagram-line-emphasis);\n }\n .fs-diagram .react-flow__edge:hover .fs-diagram-arrow {\n fill: var(--fs-diagram-line-emphasis);\n }\n\n /* The kit's reset caps an svg at its container's width; the edge layer's container has none, and a\n zero-wide svg draws nothing. */\n .fs-diagram .react-flow__edges svg {\n max-width: none;\n }\n\n /* Square, with a hairline edge (D37). */\n .fs-diagram .react-flow__controls,\n .fs-diagram .react-flow__minimap {\n border: var(--fs-line-width) solid var(--fs-line);\n border-radius: 0;\n }\n .fs-diagram .react-flow__controls-button {\n border-radius: 0;\n }\n .fs-diagram .react-flow__controls-button:focus-visible {\n outline: var(--fs-ring-width) solid var(--fs-ring);\n outline-offset: calc(-1 * var(--fs-ring-width));\n }\n\n /* Forced colours: the same variables, as system colours. */\n @media (forced-colors: active) {\n .fs-diagram .fs-diagram-edge {\n --xy-edge-stroke: CanvasText;\n }\n .fs-diagram .fs-diagram-edge--emphasis,\n .fs-diagram .fs-diagram-edge--flow,\n .fs-diagram .react-flow__edge:hover .fs-diagram-edge,\n .fs-diagram .react-flow__edge.selected .fs-diagram-edge {\n --xy-edge-stroke: Highlight;\n }\n .fs-diagram .react-flow__edge:hover .fs-diagram-end > circle {\n stroke: Highlight;\n }\n .fs-diagram .react-flow__edge:hover .fs-diagram-arrow {\n fill: Highlight;\n }\n }\n}\n";
package/dist/kit.css CHANGED
@@ -4532,9 +4532,11 @@
4532
4532
  text-transform: uppercase;
4533
4533
  color: var(--fs-ink-2);
4534
4534
  }
4535
+ /* The chevron takes the head's ink, not --fs-grid-chevron, so it reads at the weight of its caps label (T103). */
4535
4536
  .fs-node__section-head::before {
4536
4537
  width: 12px;
4537
4538
  height: 12px;
4539
+ background-color: var(--fs-ink-2);
4538
4540
  }
4539
4541
  /* The slot for T92's mark counts, pushed right. */
4540
4542
  .fs-node__counts {
@@ -4620,6 +4622,10 @@
4620
4622
  background-image: none;
4621
4623
  border-bottom: var(--fs-line-width) dashed CanvasText;
4622
4624
  }
4625
+ /* Forced colours erase a fill, so the section chevron's mask is drawn in CanvasText (T103). */
4626
+ .fs-node__section-head::before {
4627
+ background-color: CanvasText;
4628
+ }
4623
4629
  }
4624
4630
  }
4625
4631
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finstack-com-public/design",
3
- "version": "0.10.0",
3
+ "version": "0.10.1",
4
4
  "description": "Design kit: tokens, icons, components and a chart theme, shared by Grizzbi, BI App and the calculation engine.",
5
5
  "license": "MIT",
6
6
  "author": "Finstack",