@aitrien/motifspec 1.14.0 → 1.14.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
@@ -2,6 +2,12 @@
2
2
 
3
3
  Every release of MotifSpec (named brand-codex until 1.10.0), newest first. Entries before 1.10.0 keep the names they were released under. Versions follow the rules in `CONVENTIONS.md`: renaming or removing a semantic token is major, adding tokens, components or icons is minor, and changing a value or fixing a description is a patch. `npm run build` fails if the version in `package.json` has no entry here.
4
4
 
5
+ ## [1.14.1] - 2026-10-29
6
+
7
+ ### Changed
8
+ - Site nav: the current page's pill has no fill. It is outlined with a `color.border.strong` hairline (inset, so the pill keeps its size), with `color.text.primary` text, instead of the `color.surface.highlight` fill and `color.accent.border` outline. The outline is 3.23:1 on `color.surface.base` in light and 4.21:1 in dark, above the 3:1 target. On hover it takes the same wash as the other links. `site-header.md` is updated.
9
+ - `color.surface.highlight`'s description: text selection and `<mark>` only, since the nav no longer uses it.
10
+
5
11
  ## [1.14.0] - 2026-10-28
6
12
 
7
13
  ### Added
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # MotifSpec
2
2
 
3
- Liam Marshall's design system: the single source of truth for aitrien.com and every project after it. Tokens are [DTCG](https://www.designtokens.org/) JSON, components are documented rules with markup to copy, one checker holds every project that uses it to those rules, and an MCP server gives AI assistants all three.
3
+ Liam Marshall's design system: the single source of truth for aitrien.com and every project after it. The showcase is at [motifspec.com](https://motifspec.com). Tokens are [DTCG](https://www.designtokens.org/) JSON, components are documented rules with markup to copy, one checker holds every project that uses it to those rules, and an MCP server gives AI assistants all three.
4
4
 
5
5
  ## Principles
6
6
 
package/dist/codex.css CHANGED
@@ -2,7 +2,7 @@
2
2
  @font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-wght.woff2") format("woff2"); font-weight: 100 800; font-style: normal; font-display: swap; }
3
3
  @font-face { font-family: "Yarndings 12"; src: url("../fonts/yarndings-12-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: block; }
4
4
 
5
- /* MotifSpec 1.14.0 — generated from tokens/*.json. Do not edit.
5
+ /* MotifSpec 1.14.1 — generated from tokens/*.json. Do not edit.
6
6
  Themes: semantic colours use light-dark(); color-scheme follows the system unless
7
7
  <html data-theme="light|dark"> pins it. --cx-primitive-* are for this file only. */
8
8
  :root {
@@ -584,11 +584,11 @@ p, li, dd, figcaption { text-wrap: pretty; }
584
584
  }
585
585
  /* Hover only where there is a pointer that hovers: on touch screens :hover sticks after a tap. */
586
586
  @media (hover: hover) { .cx-nav a:hover { color: var(--cx-color-text-primary); background: var(--_wash); } }
587
- /* The current section is highlighted, not underlined: a highlight fill with an accent outline, which is what stands out
588
- from the surface (3:1), as the fill alone is close to it in both themes. Inset, so the pill keeps its size. */
587
+ /* The current section is outlined, not underlined or filled: a strong hairline (3:1 on the surface) in primary text.
588
+ Inset, so the pill keeps its size. */
589
589
  .cx-nav a[aria-current="page"] {
590
- color: var(--cx-color-text-primary); background: var(--cx-color-surface-highlight);
591
- box-shadow: inset 0 0 0 var(--cx-border-width-hairline) var(--cx-color-accent-border);
590
+ color: var(--cx-color-text-primary);
591
+ box-shadow: inset 0 0 0 var(--cx-border-width-hairline) var(--cx-color-border-strong);
592
592
  }
593
593
  /* Theme toggle: an icon-only pill (a circle) that shows the action, with a tooltip. */
594
594
  .cx-theme-toggle {
package/dist/tokens.css CHANGED
@@ -1,4 +1,4 @@
1
- /* MotifSpec 1.14.0 — generated from tokens/*.json. Do not edit.
1
+ /* MotifSpec 1.14.1 — generated from tokens/*.json. Do not edit.
2
2
  Themes: semantic colours use light-dark(); color-scheme follows the system unless
3
3
  <html data-theme="light|dark"> pins it. --cx-primitive-* are for this file only. */
4
4
  :root {
package/dist/tokens.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // Generated by npm run build. Do not edit.
2
- export const version = "1.14.0";
2
+ export const version = "1.14.1";
3
3
  export const changelog = "https://github.com/Aitrien/motifspec/blob/main/CHANGELOG.md";
4
4
  export const tokens = [
5
5
  {
@@ -566,7 +566,7 @@ export const tokens = [
566
566
  "referencesDark": "primitive.color.sap.800",
567
567
  "value": "#d8f9df",
568
568
  "valueDark": "#01441f",
569
- "description": "Text selection, <mark>, and the current item in site navigation. Never for large areas or decoration."
569
+ "description": "Text selection and <mark>. Never for large areas or decoration."
570
570
  },
571
571
  {
572
572
  "name": "color.text.primary",
package/dist/tokens.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.14.0",
2
+ "version": "1.14.1",
3
3
  "changelog": "https://github.com/Aitrien/motifspec/blob/main/CHANGELOG.md",
4
4
  "tokens": [
5
5
  {
@@ -566,7 +566,7 @@
566
566
  "referencesDark": "primitive.color.sap.800",
567
567
  "value": "#d8f9df",
568
568
  "valueDark": "#01441f",
569
- "description": "Text selection, <mark>, and the current item in site navigation. Never for large areas or decoration."
569
+ "description": "Text selection and <mark>. Never for large areas or decoration."
570
570
  },
571
571
  {
572
572
  "name": "color.text.primary",
@@ -5,12 +5,11 @@ tokens:
5
5
  - border.focus.offset
6
6
  - border.focus.width
7
7
  - border.width.hairline
8
- - color.accent.border
9
8
  - color.accent.fill.rest
9
+ - color.border.strong
10
10
  - color.border.subtle
11
11
  - color.focus.ring
12
12
  - color.surface.base
13
- - color.surface.highlight
14
13
  - color.text.muted
15
14
  - color.text.on-accent
16
15
  - color.text.primary
@@ -103,7 +102,7 @@ Copy the snippet as it is: the build fails if this doc and `js/theme-init.js` di
103
102
 
104
103
  ## Do
105
104
 
106
- - Mark the current section with `aria-current="page"`, including on child pages (a post marks Writing). It gets a `color.surface.highlight` background with a `color.accent.border` hairline inside its edge, not an underline. The outline is what stands out from the header (3:1); the fill alone is close to `color.surface.base` in both themes.
105
+ - Mark the current section with `aria-current="page"`, including on child pages (a post marks Writing). It gets a `color.border.strong` hairline inside its edge and `color.text.primary` text: no fill and no underline.
107
106
  - Nav items are pills (`radius.pill`), the same shape as the pause control and the theme toggle, so every header control reads as one set.
108
107
  - When the nav and controls wrap below the wordmark, `dist/codex.js` sets `data-wrapped` on the header: the nav moves to the start of its row and is offset by its pills' padding, so the link text lines up with the wordmark and the page text, while the controls stay at the end. Without the script the row stays right-aligned.
109
108
  - Every header control rests in `color.text.secondary` and shares one hover, shown only where the pointer can hover (`@media (hover: hover)`), so it never sticks after a tap: `color.text.primary` text on a wash of `color.text.primary` at `color.wash.hover`. A solid `color.surface.hover` would all but match the frost.
@@ -129,5 +128,5 @@ Copy the snippet as it is: the build fails if this doc and `js/theme-init.js` di
129
128
  - Nav links, the pause control and the toggle are 44px (`size.target.touch`); the pause control and the toggle are pills with equal sides, so they render as circles.
130
129
  - The pause control is a native checkbox named "Pause background animation" (checked means paused), focusable by keyboard, with its focus ring on the round control.
131
130
  - The toggle's `aria-label` is its action ("Switch to light theme"); the visible tooltip repeats it and is `aria-hidden`. Escape hides the tooltip without moving the pointer (see `tooltip.md`).
132
- - `aria-current` carries the current state for assistive tech; the highlight is the visual cue.
133
- - Pairs: `color.text.secondary` and `color.text.primary` on `color.surface.base` (7:1); `color.text.primary` on `color.surface.highlight` (current, 7:1); `color.accent.border` on `color.surface.base` (current outline, 3:1). On a backdrop page the frost is measured as `color.surface.base`; the contour lines beneath it are not part of the check.
131
+ - `aria-current` carries the current state for assistive tech; the outline is the visual cue.
132
+ - Pairs: `color.text.secondary` and `color.text.primary` on `color.surface.base` (7:1); `color.border.strong` on `color.surface.base` (current outline, 3:1). On a backdrop page the frost is measured as `color.surface.base`; the contour lines beneath it are not part of the check.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aitrien/motifspec",
3
- "version": "1.14.0",
3
+ "version": "1.14.1",
4
4
  "description": "Liam Marshall's design system: DTCG tokens, component rules, generated CSS, Hugo templates and a rule checker.",
5
5
  "keywords": [
6
6
  "design-system",
package/tokens/color.json CHANGED
@@ -917,7 +917,7 @@
917
917
  },
918
918
  "highlight": {
919
919
  "$value": "{primitive.color.sap.100}",
920
- "$description": "Text selection, <mark>, and the current item in site navigation. Never for large areas or decoration.",
920
+ "$description": "Text selection and <mark>. Never for large areas or decoration.",
921
921
  "$extensions": {
922
922
  "codex.modes": {
923
923
  "dark": "{primitive.color.sap.800}"