@aitrien/motifspec 1.19.0 → 1.20.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.
Files changed (45) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/README.md +89 -70
  3. package/dist/codex.css +56 -3
  4. package/dist/codex.js +1 -1
  5. package/dist/tokens.css +1 -1
  6. package/dist/tokens.js +1 -1
  7. package/dist/tokens.json +1 -1
  8. package/docs/components/_template.md +1 -0
  9. package/docs/components/accession-label.md +1 -0
  10. package/docs/components/backdrop.md +5 -5
  11. package/docs/components/docs-shell.md +2 -1
  12. package/docs/components/figure.md +1 -0
  13. package/docs/components/ornament.md +2 -1
  14. package/docs/components/page-footer.md +24 -5
  15. package/docs/components/prose.md +1 -0
  16. package/docs/components/site-footer.md +2 -2
  17. package/docs/components/specimen-plate.md +1 -1
  18. package/docs/components/status.md +1 -0
  19. package/docs/components/token-table.md +96 -0
  20. package/docs/foundations/colour.md +19 -0
  21. package/docs/foundations/icons.md +13 -0
  22. package/docs/foundations/motion.md +14 -0
  23. package/docs/foundations/ornaments.md +21 -0
  24. package/docs/foundations/space-and-size.md +26 -0
  25. package/docs/foundations/type.md +22 -0
  26. package/docs/hugo.md +9 -5
  27. package/docs/layouts/a-la-carte.md +1 -0
  28. package/docs/layouts/dashboard.md +2 -0
  29. package/docs/layouts/documentation.md +7 -4
  30. package/docs/layouts/portfolio.md +2 -0
  31. package/docs/reference/checker-rules.md +13 -0
  32. package/docs/reference/contrast.md +18 -0
  33. package/docs/reference/tokens.md +14 -0
  34. package/docs/syntax-highlighting.md +1 -0
  35. package/layouts/_markup/render-blockquote.html +1 -1
  36. package/layouts/_markup/render-image.html +5 -4
  37. package/layouts/_markup/render-link.html +1 -1
  38. package/layouts/_markup/render-table.html +3 -2
  39. package/layouts/_partials/motifspec/article.html +12 -7
  40. package/layouts/_partials/motifspec/body-start.html +5 -4
  41. package/layouts/_partials/motifspec/docs-nav.html +2 -2
  42. package/layouts/_partials/motifspec/page-footer.html +32 -11
  43. package/layouts/_partials/motifspec/site-header.html +1 -1
  44. package/package.json +6 -4
  45. package/scripts/lib.mjs +1 -0
package/CHANGELOG.md CHANGED
@@ -2,6 +2,39 @@
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.20.1] - 2026-11-05
6
+
7
+ ### Changed
8
+ - The page footer links to a page's source with **View source**, given `params.motifspec.sourceURL` (the repository's address for viewing files). `editURL` still gives Edit this page. A page made from one section of a file opens at that heading (its `sourceAnchor` param), where an editor would open at the top of the file. A page's `data` param, the files its generated tables come from, shows as "Generated from" after the date, and `page-footer.md` lists the params.
9
+ - motifspec.com's pages about the tokens, icons and checker rules keep their wording in Markdown in `docs/foundations/` and `docs/reference/`, with a visible line such as "*Generated from `tokens/color.json`: the palette.*" where each table goes. View source opens that file, and the footer names the data. The build fails if a line names the wrong files or an element no page shows.
10
+
11
+ ### Fixed
12
+ - motifspec.com's Type page showed "[object Object]" after the weight, leading and tracking table, from a misplaced bracket in the generator, and that table didn't widen like the others.
13
+ - On motifspec.com, Edit this page opened the whole README for pages made from one of its sections, and a data file for pages whose wording was in the generator. View source now opens the section, or the file with all of the page's wording.
14
+
15
+ ## [1.20.0] - 2026-11-05
16
+
17
+ ### Added
18
+ - motifspec.com is a documentation site built with the documentation layout from this repository (`site/`), in place of the one-page showcase. Every page is made from a file the repository already keeps: the component and layout docs, `docs/hugo.md`, the README's guide sections, `CONVENTIONS.md`, `CHANGELOG.md`, and pages generated from the tokens, icons and checker rules. It has search, a Markdown copy of every page, `llms.txt`, an A to Z page and a landing page. Links to the old page's sections (such as `/#components`) go to the pages that replaced them.
19
+ - `npm run docs`, `docs:check` and `docs:quality` build the site, check it, and run Lighthouse's accessibility audit on it. CI runs them, with a link check, on every pull request; a release publishes the site.
20
+ - Token table (`token-table.md`, documentation layout): colour tiles with their name and value written on them, a primitive palette, type samples, spacing bars and contrast samples in data tables, for reference pages generated from the tokens. motifspec.com's Colour, Type, Space and size, Motion, Icons, Ornaments, Tokens, Contrast pairs and Checker rules pages use it.
21
+ - A deprecated component's doc has a `deprecated:` line saying what replaces it and when it goes; the validator requires it. `docs-nav.html` says "(deprecated)" after the title of a page that sets `deprecated`.
22
+ - `article.html` takes `"toc" "never"`, for a page such as a changelog whose headings repeat.
23
+ - `page-footer.html` reads a page's `source` param, the repository path of the file a content adapter made the page from, so Edit this page works for pages with no file of their own.
24
+
25
+ ### Changed
26
+ - A documentation site's home page is a landing page (`docs/layouts/documentation.md`, Landing, which replaces Docs home): full width outside the docs shell, with the head and foot of the backdrop as on a portfolio's home page. `body-start.html` writes the head there and the side on every other page.
27
+ - On a documentation site, `article.html` leaves out the end mark: the layout's only ornament is the footer band, as `docs/layouts/documentation.md` says.
28
+ - The README's setup is grouped as Getting started (Hugo, npm, an AI assistant), Checking a project and The MCP server, the sections motifspec.com renders as pages. Every table in the README, `CONVENTIONS.md` and the docs has a caption, in an HTML comment before it that GitHub doesn't show.
29
+
30
+ ### Removed
31
+ - The showcase: `showcase/`, `dist/showcase.html` and `dist/showcase.standalone.html`, which the npm package never shipped. `npm run audit` now checks `dist/codex.css` directly. The `showcase` URL in `package.json`, `tokens.json` and `tokens.js` keeps its name and now means the docs site.
32
+
33
+ ### Fixed
34
+ - On a phone, the search trigger in the header had no accessible name: its label was removed with `display: none`. It is now visually hidden, so the icon-only button is still announced as "Search".
35
+ - The site header no longer marks a menu entry without an `identifier`, such as an external link, as the current page on the home page, whose section is empty.
36
+ - The render hooks for tables, blockquotes, images and links, and `article.html`, no longer fail on a page that has no content file, such as one made by a content adapter.
37
+
5
38
  ## [1.19.0] - 2026-11-04
6
39
 
7
40
  ### Added
package/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # MotifSpec
2
2
 
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.
3
+ Liam Marshall's design system: the single source of truth for aitrien.com and every project after it. The documentation is at [motifspec.com](https://motifspec.com), which renders this README's guide sections, the docs and the changelog from this repository. 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
6
  ## Principles
6
7
 
@@ -16,6 +17,7 @@ Liam Marshall's design system: the single source of truth for aitrien.com and ev
16
17
 
17
18
  A layout is a kind of site: its shell, page templates, components, decoration and heading rules. Pick the one that fits before choosing components.
18
19
 
20
+ <!-- caption: Layouts -->
19
21
  | Layout | For | File |
20
22
  |---|---|---|
21
23
  | Portfolio | Case studies, writing and an about page | `docs/layouts/portfolio.md` |
@@ -53,74 +55,23 @@ An à la carte project also lists the components it uses, by doc name: `componen
53
55
  - Write sample and placeholder content from scratch. Never copy wording from reference or competitor sites; quote only with a named person and a traceable source in the blockquote footer.
54
56
  - Give every section `<h2>` in reading text an id and a `cx-anchor` link (see `docs/components/heading-anchor.md`). Dashboard sections have an id and no anchor.
55
57
 
56
- ## What's here
58
+ ## Getting started
57
59
 
58
- ```
59
- LICENSE MIT, for code, tokens and docs
60
- AGENTS.md Instructions for AI agents changing this repo (CLAUDE.md points to it)
61
- CHANGELOG.md Every release, newest first (the build fails without an entry for the current version)
62
- tokens/ DTCG source of truth (color, typography, space, size, radius, border, motion)
63
- css/components.css Reference implementation of every component (tokens only)
64
- syntax/chroma.json Hugo Chroma class → token mapping
65
- icons/ Approved Material Symbols (manifest.json, source SVGs, Apache-2.0 LICENSE)
66
- docs/components/ One rule file per component (front-matter token lists generated from the CSS)
67
- docs/layouts/ One file per layout: shell, page templates, components, decoration, headings, stack
68
- docs/hugo.md The Hugo partials and render hooks, their contexts and the front matter they read
69
- layouts/ Hugo partials (_partials/motifspec/) and Markdown render hooks (_markup/), mounted by the module
70
- docs/syntax-highlighting.md
71
- fonts/ Self-hosted WOFF2 (Latin subsets) and their OFL licences
72
- scripts/ validate, build, audit, check (the rule checker projects run), pack-check and release
73
- js/codex.js Theme toggle, copy buttons, tooltip dismissal, TOC docking and active section (shared by sites and the showcase)
74
- js/theme-init.js One-line <head> snippet that applies a stored theme before first paint
75
- js/plate.js Contour survey generator for the backdrop and the specimen plate: draws the static contours at build time and animates them in the browser
76
- showcase/ Source of the system's showcase page
77
- mcp/ The MCP server (server.mjs), its Lambda handler, bundle step and tests
78
- infra/mcp.yml The server's AWS stack and deploy role (CloudFormation, applied by hand)
79
- hugo.toml, go.mod Hugo module definition and its mounts
80
- dist/ Generated: tokens.css, components in codex.css, chroma.css, fonts.css, icons.svg (sprite), tokens.json, tokens.js (ES module export), codex.js and theme-init.js (behaviour), backdrop.html, backdrop-foot.html and backdrop-side.html, plate.html and plate.js (backdrop and specimen plate), contrast.md, showcase.html (fragment for publishing), showcase.standalone.html (open locally)
81
- ```
60
+ MotifSpec reaches a project three ways: as a Hugo module, as an npm package, or through an AI assistant connected to its MCP server. Choose the layout first ([Layouts](#layouts)).
82
61
 
83
- ## Commands
84
-
85
- ```sh
86
- npm run validate # naming rules, tiers, aliases, DTCG value shapes, every contrast pair in both themes
87
- npm run build # validate, then write dist/ and refresh generated doc tables
88
- npm run audit # prove dist/showcase.html and the shipped scripts have no raw colour, size or duration outside :root
89
- npm run release:check # what merging this would release, and whether that release is valid
90
- npm run pack:check # the npm package has every file the README and package.json promise
91
- npm run check -- <dir> # check a project that uses MotifSpec (see below)
92
- npm run test:mcp # call every MCP tool through the Lambda handler
93
- npm run mcp:bundle # build/mcp.zip, the server's Lambda package
94
- ```
95
-
96
- `scripts/check.mjs` is the one rule checker: this repo's audit runs it on `layouts/` and the component docs' markup, and projects run it from the version they pin. It checks a project's `layouts/` and `content/` against the release it comes from, and fails on:
97
-
98
- - a stylesheet anywhere in the project, or a `style` attribute
99
- - a raw colour, or a number with a length or time unit (zero is allowed)
100
- - a primitive, unknown or deprecated `--cx-` token
101
- - a `cx-` class that the stylesheet and scripts don't define, or a `cx-icon-` that isn't in `icons/manifest.json`
102
- - "·" used as a separator
103
- - an unknown layout, or an unknown component in an à la carte list
104
- - in an à la carte project's own stylesheet, the same raw values and tokens, and any selector that targets a `cx-` class
105
-
106
- It warns, without failing, when a component (its classes or its Hugo partial) is used outside its layouts, or an à la carte project uses a layout component it hasn't listed. These become failures in a later release.
107
-
108
- Releases are automatic; `CONVENTIONS.md` (Versioning) says how.
109
-
110
- Node 20 or later. The package has no dependencies; the MCP server's are dev dependencies, bundled into its deployment.
111
-
112
- ## Using it in Hugo
62
+ ### In a Hugo site
113
63
 
114
64
  Import `github.com/aitrien/motifspec` as a Hugo module and pin a release with `hugo mod get github.com/aitrien/motifspec@vX.Y.Z`. The site then gets the CSS, scripts, fonts, component partials and Markdown render hooks; `docs/hugo.md` covers setup, every partial and the front matter they read.
115
65
 
116
- ## Using it from npm
66
+ ### From npm
117
67
 
118
68
  ```sh
119
69
  npm install --save-exact @aitrien/motifspec
120
70
  ```
121
71
 
122
- Pin an exact version, as a Hugo site pins a tag: the version you install is the version the checker holds you to. The package has the CSS, scripts, tokens, fonts, icons, component docs, Hugo templates and the checker; it leaves out the showcase.
72
+ Pin an exact version, as a Hugo site pins a tag: the version you install is the version the checker holds you to. The package has the CSS, scripts, tokens, fonts, icons, component docs, Hugo templates and the checker; it leaves out the docs site.
123
73
 
74
+ <!-- caption: npm imports -->
124
75
  | Import | What it is |
125
76
  |---|---|
126
77
  | `@aitrien/motifspec/codex.css` | Tokens, fonts and every component. Its font URLs are `../fonts/…`, so a bundler that copies assets (Vite, webpack, Parcel) resolves them from the package. Without a bundler, serve `dist/` and `fonts/` side by side. |
@@ -133,7 +84,34 @@ Pin an exact version, as a Hugo site pins a tag: the version you install is the
133
84
  | `@aitrien/motifspec/check` | `checkText` and `checkProject` from the rule checker. |
134
85
  | `@aitrien/motifspec/fonts/*` | The WOFF2 files, for preloading. |
135
86
 
136
- Copy component markup from `docs/components/*.md` (in the package under `node_modules/@aitrien/motifspec/docs/`). For React and similar, the MCP server's `get_component` with `form: "jsx"` gives the same examples as JSX, converted mechanically; components with script describe what to implement in their Behaviour section. Then check the project, pointing `--dirs` at the folders with your markup:
87
+ Copy component markup from `docs/components/*.md` (in the package under `node_modules/@aitrien/motifspec/docs/`). For React and similar, the MCP server's `get_component` with `form: "jsx"` gives the same examples as JSX, converted mechanically; components with script describe what to implement in their Behaviour section.
88
+
89
+ ### With an AI assistant
90
+
91
+ The MCP server at `https://mcp.motifspec.com/mcp` serves the latest release to any assistant that supports remote MCP servers. It needs no sign-in and only reads. [The MCP server](#the-mcp-server) lists its tools.
92
+
93
+ To connect it:
94
+
95
+ - **Claude (web, desktop):** Customize → Connectors → Add custom connector, with the URL above and "No sign in".
96
+ - **Claude Code:** `claude mcp add --transport http motifspec https://mcp.motifspec.com/mcp`, or a project `.mcp.json`.
97
+ - **VS Code:** add it to `.vscode/mcp.json` with `"type": "http"` and the URL.
98
+ - **Others:** add a remote MCP server by URL.
99
+
100
+ ## Checking a project
101
+
102
+ `scripts/check.mjs` is the one rule checker: this repo's audit runs it on `layouts/` and the component docs' markup, and projects run it from the version they pin. It checks a project's `layouts/` and `content/` against the release it comes from, and fails on:
103
+
104
+ - a stylesheet anywhere in the project, or a `style` attribute
105
+ - a raw colour, or a number with a length or time unit (zero is allowed)
106
+ - a primitive, unknown or deprecated `--cx-` token
107
+ - a `cx-` class that the stylesheet and scripts don't define, or a `cx-icon-` that isn't in `icons/manifest.json`
108
+ - "·" used as a separator
109
+ - an unknown layout, or an unknown component in an à la carte list
110
+ - in an à la carte project's own stylesheet, the same raw values and tokens, and any selector that targets a `cx-` class
111
+
112
+ It warns, without failing, when a component (its classes or its Hugo partial) is used outside its layouts, or an à la carte project uses a layout component it hasn't listed. These become failures in a later release.
113
+
114
+ In a Hugo site, run `node <module>/scripts/check.mjs .`, where `hugo config mounts` gives `<module>` (`docs/hugo.md`). Outside Hugo, run it from the package, pointing `--dirs` at the folders with your markup:
137
115
 
138
116
  ```sh
139
117
  npx motifspec-check . --dirs src
@@ -141,29 +119,22 @@ npx motifspec-check . --dirs src
141
119
 
142
120
  Add `--layout dashboard` (or the project's layout) so components are checked against it; à la carte projects add `--components` with their list. It reads `.html`, `.jsx`, `.tsx`, `.vue`, `.svelte`, `.astro`, `.md` and `.mdx` (both `class` and `className`), and skips `node_modules`, `dist` and `build`. Its stylesheet rule applies here too: a project using MotifSpec has no CSS of its own, except an à la carte project's frame (`docs/layouts/a-la-carte.md`).
143
121
 
144
- ## Using it from an AI assistant
145
-
146
- The MCP server at `https://mcp.motifspec.com/mcp` serves the latest release to any assistant that supports remote MCP servers. It needs no sign-in and only reads.
122
+ ## The MCP server
147
123
 
124
+ <!-- caption: MCP tools -->
148
125
  | Tool | What it returns |
149
126
  |---|---|
150
- | `get_rules` | The rules above, and what the checker enforces |
127
+ | `get_rules` | The [rules for AI assistants](#rules-for-ai-assistants), and what the checker enforces |
151
128
  | `find_tokens` | Semantic tokens matching a query: CSS property, usage rule, light and dark values, the surfaces a colour may sit on |
152
129
  | `get_component` | A component's doc (markup, do and don't, accessibility, behaviour). `form` picks the markup: `html`, `jsx` or `hugo` (with its partial); without it, the HTML and the partial. Without a name, the list with each component's layouts |
153
130
  | `get_doc` | `docs/hugo.md`, or a layout from `docs/layouts/` (`portfolio`, `dashboard`, `documentation`, `a-la-carte`) |
154
131
  | `check` | The checker's problems in a piece of markup, Markdown or CSS; with a `layout`, warnings for components from other layouts |
155
132
 
156
- To connect it:
157
-
158
- - **Claude (web, desktop):** Customize → Connectors → Add custom connector, with the URL above and "No sign in".
159
- - **Claude Code:** `claude mcp add --transport http motifspec https://mcp.motifspec.com/mcp`, or a project `.mcp.json`.
160
- - **VS Code:** add it to `.vscode/mcp.json` with `"type": "http"` and the URL.
161
- - **Others:** add a remote MCP server by URL.
162
-
163
133
  It serves the latest release. A project pinned to an older version can be offered something its version doesn't have yet; its own checker, at its pinned version, catches that.
164
134
 
165
135
  ## The identity in brief
166
136
 
137
+ <!-- caption: The identity in brief -->
167
138
  | | |
168
139
  |---|---|
169
140
  | Concept | A specimen ledger: an archival botanical compendium drawn as a technical catalogue, with a US national-park signage voice. |
@@ -176,6 +147,54 @@ It serves the latest release. A project pinned to an older version can be offere
176
147
 
177
148
  See `CONVENTIONS.md` for naming, tiers, extensions and versioning.
178
149
 
150
+ ## What's here
151
+
152
+ ```
153
+ LICENSE MIT, for code, tokens and docs
154
+ AGENTS.md Instructions for AI agents changing this repo (CLAUDE.md points to it)
155
+ CHANGELOG.md Every release, newest first (the build fails without an entry for the current version)
156
+ tokens/ DTCG source of truth (color, typography, space, size, radius, border, motion)
157
+ css/components.css Reference implementation of every component (tokens only)
158
+ syntax/chroma.json Hugo Chroma class → token mapping
159
+ icons/ Approved Material Symbols (manifest.json, source SVGs, Apache-2.0 LICENSE)
160
+ docs/components/ One rule file per component (front-matter token lists generated from the CSS)
161
+ docs/layouts/ One file per layout: shell, page templates, components, decoration, headings, stack
162
+ docs/hugo.md The Hugo partials and render hooks, their contexts and the front matter they read
163
+ docs/foundations/, docs/reference/ The wording of motifspec.com's pages about the tokens, icons and checker rules; their tables are generated
164
+ layouts/ Hugo partials (_partials/motifspec/) and Markdown render hooks (_markup/), mounted by the module
165
+ docs/syntax-highlighting.md
166
+ fonts/ Self-hosted WOFF2 (Latin subsets) and their OFL licences
167
+ scripts/ validate, build, audit, check (the rule checker projects run), pack-check, release, and docs with docs-reference (motifspec.com and its generated pages)
168
+ js/codex.js Theme toggle, copy buttons, tooltip dismissal, TOC docking and active section, search, tabs and the component preview
169
+ js/theme-init.js One-line <head> snippet that applies a stored theme before first paint
170
+ js/plate.js Contour survey generator for the backdrop and the specimen plate: draws the static contours at build time and animates them in the browser
171
+ site/ motifspec.com: a Hugo site whose pages are made from this README's sections, docs/, CONVENTIONS.md and CHANGELOG.md
172
+ mcp/ The MCP server (server.mjs), its Lambda handler, bundle step and tests
173
+ infra/mcp.yml The server's AWS stack and deploy role (CloudFormation, applied by hand)
174
+ hugo.toml, go.mod Hugo module definition and its mounts
175
+ dist/ Generated: tokens.css, components in codex.css, chroma.css, fonts.css, icons.svg (sprite), tokens.json, tokens.js (ES module export), codex.js and theme-init.js (behaviour), backdrop.html, backdrop-foot.html and backdrop-side.html, plate.html and plate.js (backdrop and specimen plate), contrast.md
176
+ ```
177
+
178
+ ## Commands
179
+
180
+ ```sh
181
+ npm run validate # naming rules, tiers, aliases, DTCG value shapes, every contrast pair in both themes
182
+ npm run build # validate, then write dist/ and refresh generated doc tables
183
+ npm run audit # prove codex.css and the shipped scripts have no raw colour, size or duration outside :root
184
+ npm run release:check # what merging this would release, and whether that release is valid
185
+ npm run pack:check # the npm package has every file the README and package.json promise
186
+ npm run check -- <dir> # check a project that uses MotifSpec (Checking a project, above)
187
+ npm run test:mcp # call every MCP tool through the Lambda handler
188
+ npm run mcp:bundle # build/mcp.zip, the server's Lambda package
189
+ npm run docs # build motifspec.com into site/public and index it for search (needs Hugo extended)
190
+ npm run docs:check # run the checker on the site
191
+ npm run docs:quality # Lighthouse accessibility on four pages of the built site (needs Chrome)
192
+ ```
193
+
194
+ Releases are automatic; `CONVENTIONS.md` (Versioning) says how.
195
+
196
+ Node 20 or later. The package has no dependencies; the MCP server's are dev dependencies, bundled into its deployment.
197
+
179
198
  ## Licence
180
199
 
181
200
  The code, tokens and docs are MIT (`LICENSE`). The fonts keep their SIL Open Font Licences (`fonts/OFL-*.txt`) and the icons their Apache-2.0 licence (`icons/LICENSE`).
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.19.0 — generated from tokens/*.json. Do not edit.
5
+ /* MotifSpec 1.20.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 {
@@ -608,6 +608,9 @@ p, li, dd, figcaption { text-wrap: pretty; }
608
608
  border-top: var(--cx-border-width-hairline) solid var(--cx-color-border-subtle);
609
609
  }
610
610
  .cx-page-footer .cx-meta { margin: 0; }
611
+ /* The files a page's generated tables come from: inline links, as in prose. */
612
+ .cx-page-footer .cx-meta a { color: var(--cx-color-link-rest); text-decoration-thickness: var(--cx-border-width-hairline); text-underline-offset: var(--cx-space-inline-xs); }
613
+ .cx-page-footer .cx-meta a:hover { color: var(--cx-color-link-hover); text-decoration-thickness: var(--cx-border-width-emphasis); }
611
614
 
612
615
  /* ------------------------------------------------------------ search (a dialog over the page, from the header) */
613
616
  .cx-search-trigger {
@@ -653,7 +656,13 @@ p, li, dd, figcaption { text-wrap: pretty; }
653
656
  .cx-search__excerpt mark { background: var(--cx-color-surface-highlight); color: var(--cx-color-text-primary); }
654
657
  @media (width < 48rem) {
655
658
  .cx-search-trigger { width: var(--cx-size-target-touch); padding: 0; justify-content: center; }
656
- .cx-search-trigger__label, .cx-search-trigger__keys { display: none; }
659
+ .cx-search-trigger__keys { display: none; }
660
+ /* Icon only on a phone, but the label stays as the button's name (visually hidden, as cx-visually-hidden). */
661
+ .cx-search-trigger__label {
662
+ position: absolute; width: var(--cx-border-width-hairline); height: var(--cx-border-width-hairline);
663
+ margin: calc(var(--cx-border-width-hairline) * -1); padding: 0; overflow: hidden;
664
+ clip-path: inset(50%); white-space: nowrap; border: 0;
665
+ }
657
666
  }
658
667
  /* The header's version, when it has one: the release a docs site describes, linking to its changelog. */
659
668
  .cx-header__version { display: inline-flex; align-items: center; min-height: var(--cx-size-target-touch); padding-inline: var(--_nav-pad); border-radius: var(--cx-radius-pill); color: var(--cx-color-text-secondary); font-family: var(--cx-font-family-mono); font-size: var(--cx-font-size-label); text-decoration: none; }
@@ -1092,6 +1101,50 @@ a.cx-tag:hover { border-color: var(--cx-color-accent-border); color: var(--cx-co
1092
1101
  .cx-table td.is-actions { width: 1%; white-space: nowrap; }
1093
1102
  .cx-table__actions { display: flex; justify-content: flex-end; gap: var(--cx-space-inline-xs); }
1094
1103
 
1104
+ /* ------------------------------------------------------------ token table (token-table.md, documentation layout) */
1105
+ /* What a token looks like, beside its name and rule, on the reference pages that MotifSpec's docs generator writes
1106
+ from dist/tokens.json. Each shows a value from a private custom property the generator sets on the element
1107
+ (--_swatch; --_fg and --_bg; --_size and --_family; --_width). That is the one place MotifSpec writes a style
1108
+ attribute, and only in generated pages; without it each falls back to a neutral look. */
1109
+ .cx-swatch {
1110
+ display: inline-block; flex: none; vertical-align: middle;
1111
+ width: var(--cx-size-target-min); height: var(--cx-size-target-min); margin-right: var(--cx-space-inline-sm);
1112
+ border: var(--cx-border-width-hairline) solid var(--cx-color-border-default);
1113
+ background: var(--_swatch, var(--cx-color-surface-sunken));
1114
+ }
1115
+ /* A tile: the colour as the background, with its name and value written on it in the ink the generator picks for
1116
+ contrast (--_ink: the darkest or lightest neutral, whichever reads better on that colour). */
1117
+ .cx-swatch--tile {
1118
+ display: inline-flex; flex-direction: column; justify-content: space-between; gap: var(--cx-space-stack-xs); vertical-align: top;
1119
+ width: auto; min-width: calc(var(--cx-size-target-touch) * 2.4); height: auto; min-height: var(--cx-size-target-touch);
1120
+ margin: 0; padding: var(--cx-space-inset-xs) var(--cx-space-inset-sm);
1121
+ border-color: var(--cx-color-border-subtle); color: var(--_ink, var(--cx-color-text-primary));
1122
+ font-family: var(--cx-font-family-mono); font-size: var(--cx-font-size-label); line-height: var(--cx-font-line-height-ui);
1123
+ font-variant-numeric: tabular-nums; white-space: nowrap;
1124
+ }
1125
+ .cx-swatch--tile b { font-weight: var(--cx-font-weight-strong); }
1126
+ .cx-palette, .cx-prose .cx-palette {
1127
+ display: grid; grid-template-columns: repeat(auto-fill, minmax(calc(var(--cx-size-target-touch) * 2.4), 1fr));
1128
+ gap: var(--cx-space-inline-xs); margin: 0; padding: 0; list-style: none;
1129
+ }
1130
+ .cx-palette > li::marker { content: none; }
1131
+ .cx-prose .cx-palette > li { margin: 0; padding: 0; }
1132
+ .cx-palette .cx-swatch--tile { display: flex; width: 100%; min-height: calc(var(--cx-size-target-touch) * 1.6); }
1133
+ /* In a token table (cx-table cx-token-table) a token's name stays on one line; the table scrolls sideways instead. */
1134
+ .cx-token-table th[scope="row"] code { white-space: nowrap; }
1135
+ .cx-token-sample {
1136
+ display: block; margin: 0; white-space: nowrap; font-size: var(--_size, inherit); font-family: var(--_family, inherit);
1137
+ line-height: var(--cx-font-line-height-heading); color: var(--cx-color-text-primary); overflow-wrap: anywhere;
1138
+ }
1139
+ .cx-token-bar { display: block; width: var(--_width, 0%); height: var(--cx-space-inset-sm); background: var(--cx-color-accent-fill-rest); }
1140
+ .cx-pair-sample {
1141
+ display: inline-flex; align-items: center; justify-content: center; vertical-align: middle;
1142
+ min-width: var(--cx-size-target-control); min-height: var(--cx-size-target-min); margin-right: var(--cx-space-inline-sm);
1143
+ border: var(--cx-border-width-hairline) solid var(--cx-color-border-subtle);
1144
+ color: var(--_fg, var(--cx-color-text-primary)); background: var(--_bg, var(--cx-color-surface-base));
1145
+ font-family: var(--cx-font-family-body); font-weight: var(--cx-font-weight-strong);
1146
+ }
1147
+
1095
1148
  /* ------------------------------------------------------------ project card */
1096
1149
  .cx-cards { display: grid; gap: var(--cx-space-gutter-grid); grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--cx-size-column-card)), 1fr)); margin: 0; padding: 0; list-style: none; }
1097
1150
  .cx-card {
@@ -1236,7 +1289,7 @@ a.cx-tag:hover { border-color: var(--cx-color-accent-border); color: var(--cx-co
1236
1289
  footer and reading happens on the plain surface. Two layers, each size.backdrop.fade tall and scrolling with the page:
1237
1290
  the head (home page only, first child of the page) and the foot (every page, at the bottom). */
1238
1291
  :root:has(.cx-backdrop-page) { background: var(--cx-color-surface-base); }
1239
- /* When the page class sits on a wrapper (a fragment such as the showcase), body's own surface would cover the backdrop. */
1292
+ /* When the page class sits on a wrapper rather than <body>, body's own surface would cover the backdrop. */
1240
1293
  body:not(.cx-backdrop-page):has(.cx-backdrop-page) { background: transparent; }
1241
1294
  /* Positioned so the layers can sit at its top and bottom; no z-index, so the layers still paint under its surface. */
1242
1295
  .cx-backdrop-page {
package/dist/codex.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // MotifSpec behaviour: theme toggle, the backdrop header's scroll state, tooltip dismissal, code copy buttons,
2
2
  // TOC docking and active section.
3
- // Shipped as dist/codex.js (@aitrien/motifspec/codex.js) and inlined into the showcase, so there is one implementation.
3
+ // Shipped as dist/codex.js (@aitrien/motifspec/codex.js).
4
4
  // Enhancement only. Without this script: themes follow the system, code is selectable, the TOC is a plain open list,
5
5
  // and every control that needs script stays hidden. Load it with `defer`; it also works inline at the end of <body>.
6
6
  // Pair it with dist/theme-init.js inline in <head>, which applies a stored theme before first paint.
package/dist/tokens.css CHANGED
@@ -1,4 +1,4 @@
1
- /* MotifSpec 1.19.0 — generated from tokens/*.json. Do not edit.
1
+ /* MotifSpec 1.20.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.19.0";
2
+ export const version = "1.20.1";
3
3
  export const changelog = "https://github.com/Aitrien/motifspec/blob/main/CHANGELOG.md";
4
4
  export const showcase = "https://motifspec.com";
5
5
  export const tokens = [
package/dist/tokens.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.19.0",
2
+ "version": "1.20.1",
3
3
  "changelog": "https://github.com/Aitrien/motifspec/blob/main/CHANGELOG.md",
4
4
  "showcase": "https://motifspec.com",
5
5
  "tokens": [
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  name: component-name
3
3
  status: draft # draft | stable | deprecated
4
+ # deprecated: Use x instead; removed in 2.0.0. # required when status is deprecated
4
5
  layouts: [shared] # [shared], or the layouts it belongs to: portfolio, dashboard, documentation
5
6
  tokens: # semantic tokens this component uses
6
7
  - color.accent
@@ -52,6 +52,7 @@ The system's signature: a herbarium-style label that gives an entry its catalogu
52
52
 
53
53
  `LM-{collection}-{sequence}`, with the sequence zero-padded to three digits and never reused.
54
54
 
55
+ <!-- caption: Catalogue numbers -->
55
56
  | Collection | Code | Example |
56
57
  |---|---|---|
57
58
  | Work (projects, case studies) | `W` | `LM-W-004` |
@@ -28,13 +28,13 @@ Contour surveys drawn full-bleed behind the top of the home page and the bottom
28
28
 
29
29
  - The foot on every page of a portfolio, 404 included (`docs/layouts/portfolio.md`).
30
30
  - The head on a portfolio's home page only, behind the statement: it is where a visitor starts. Every other page opens on the plain surface.
31
- - The side on every page of a documentation site, down the left edge behind the navigation, with the foot in its place on a phone (`docs/layouts/documentation.md`).
31
+ - The side on every page in a documentation site's docs shell, down the left edge behind the navigation, with the foot in its place on a phone. A documentation site's landing page has the head and foot, like a portfolio's home page (`docs/layouts/documentation.md`).
32
32
  - On a dashboard, behind the main area, as `docs/layouts/dashboard.md` says.
33
33
  - Once each per page, all inside `<body class="cx-backdrop-page">`: the head or the side as its first child, the foot after the footer.
34
34
 
35
35
  ## When not to use
36
36
 
37
- - On the same page as the specimen plate: one kind of contour field per page. The showcase, which documents both, is the only exception.
37
+ - On the same page as the specimen plate: one kind of contour field per page.
38
38
  - Inside a component or as a section background. The frost belongs to the page's top and bottom.
39
39
  - Behind layouts that need the plain surface from the very top, such as a full-screen app or a print stylesheet.
40
40
 
@@ -60,9 +60,9 @@ From the bottom up: the canvas (`color.surface.base`), the contours (the specime
60
60
 
61
61
  ### The side
62
62
 
63
- A documentation site reads from the top of every page, so it has no head. The build writes a third layer, `dist/backdrop-side.html`, and `<body class="cx-backdrop-page cx-backdrop-page--side">` puts it down the left edge instead. From `size.breakpoint.md` up it is fixed, so it stays beside the navigation as the page scrolls, and it reaches the left edge of the main column: the page container's margin and gutter, then `size.column.sidebar`. The page's surface, and the header's, fade in across it from left to right, so the contours are strongest at the window's edge, keep `color.backdrop.calm` behind the navigation, and are gone before the article. There is no edge across the page, and the foot is hidden. Below `size.breakpoint.md` the side is hidden and the foot shows behind the footer, as on a portfolio.
63
+ A documentation page reads from the top, so it has no head. The build writes a third layer, `dist/backdrop-side.html`, and `<body class="cx-backdrop-page cx-backdrop-page--side">` puts it down the left edge instead. From `size.breakpoint.md` up it is fixed, so it stays beside the navigation as the page scrolls, and it reaches the left edge of the main column: the page container's margin and gutter, then `size.column.sidebar`. The page's surface, and the header's, fade in across it from left to right, so the contours are strongest at the window's edge, keep `color.backdrop.calm` behind the navigation, and are gone before the article. There is no edge across the page, and the foot is hidden. Below `size.breakpoint.md` the side is hidden and the foot shows behind the footer, as on a portfolio.
64
64
 
65
- In Hugo, with `params.motifspec.layout = "documentation"`, `motifspec/body-start.html` inlines the side on every page instead of the head (`docs/hugo.md`). Elsewhere, put the side's markup where the head would go and keep the foot after the footer.
65
+ In Hugo, with `params.motifspec.layout = "documentation"`, `motifspec/body-start.html` inlines the side on every page but the home page, which gets the head (`docs/hugo.md`). The home page's body has `cx-backdrop-page` without `--side`. Elsewhere, put the side's markup where the head would go and keep the foot after the footer.
66
66
 
67
67
  ### The calm side
68
68
 
@@ -79,7 +79,7 @@ Where text sits on the frost, the contours keep only `color.backdrop.calm` of th
79
79
 
80
80
  - Don't give sections, panels or cards a frosted background of their own.
81
81
  - Don't give `<body>` a `z-index`. `cx-backdrop-page` positions it so the layers can sit at its top and bottom; a `z-index` would lift its surface's stacking context over them, or put them on top of it.
82
- - Don't put the head on pages other than the home page, or more than one head, side or foot on a page. The head and the side don't go on the same page.
82
+ - Don't put the head on pages other than the home page (a portfolio's, or a documentation site's landing page), or more than one head, side or foot on a page. The head and the side don't go on the same page.
83
83
  - Don't make the backdrop drift, or animate it on a timer. Its only motion is the settle on arrival and the response to the pointer.
84
84
  - Don't raise `color.backdrop.grain` until the noise competes with text, and don't give the grain a `mix-blend-mode`.
85
85
  - Don't put text, links or controls in the backdrop.
@@ -40,7 +40,7 @@ The frame of a documentation page: grouped page navigation on the left, the page
40
40
 
41
41
  ## When to use
42
42
 
43
- - On every page of a documentation site (`docs/layouts/documentation.md`), the docs home included.
43
+ - On every page of a documentation site except the landing page (`docs/layouts/documentation.md`), which is full width.
44
44
  - When readers move between many pages in a set order: guides, reference, a changelog.
45
45
 
46
46
  ## When not to use
@@ -100,6 +100,7 @@ In Hugo, `partial "motifspec/docs-nav.html" .` writes the navigation from the si
100
100
  - Group pages by what the reader is trying to do, in the order they'll need them: a guide before reference.
101
101
  - Keep group names to one or two words, and page titles short enough for one line in the column.
102
102
  - Mark the current page with `aria-current="page"`.
103
+ - Say "(deprecated)" after the title of a page about something deprecated; `docs-nav.html` does when the page sets `deprecated`.
103
104
  - Leave every group open unless the navigation is long; a reader scans more easily than they click.
104
105
 
105
106
  ## Don't
@@ -70,6 +70,7 @@ A framed image or diagram with a numbered plate label and a caption.
70
70
 
71
71
  ### Diagram parts
72
72
 
73
+ <!-- caption: Diagram parts -->
73
74
  | Class | Draws |
74
75
  |---|---|
75
76
  | `cx-diagram` | The `<svg>`. Sets the body font. |
@@ -49,6 +49,7 @@ Yarndings 12 knitting-chart glyphs: the footer band, the prose divider, the arti
49
49
 
50
50
  `font.family.ornament` → `$extensions["codex.glyphs"]` lists all 80 approved glyphs by name, with the key that types each one and its group:
51
51
 
52
+ <!-- caption: Ornament catalogue -->
52
53
  | Group | Character | Examples (key) |
53
54
  |---|---|---|
54
55
  | botanical | Plants and flowers; the default choice | leaf `h`, sprout `f`, flower `g`, potted `c`, bloom `b`, blossom `m`, petals `P`, clover `E` |
@@ -57,7 +58,7 @@ Yarndings 12 knitting-chart glyphs: the footer band, the prose divider, the arti
57
58
  | diamond | Diamonds and rings | diamond `–` (U+2013), diamond-nested `p`, ring `?` |
58
59
  | mark | Corners, bars, dots, triangles | summit `·` (U+00B7), corner-top-left `/`, bar `(`, dot `.` |
59
60
 
60
- `codex.glyphs.roles` fixes the glyphs for the system's own ornaments (band, divider, end mark, empty state); anything else may use any approved glyph. The showcase lists every glyph.
61
+ `codex.glyphs.roles` fixes the glyphs for the system's own ornaments (band, divider, end mark, empty state); anything else may use any approved glyph. motifspec.com's Ornaments page lists every glyph.
61
62
 
62
63
  ## Do
63
64
 
@@ -3,9 +3,13 @@ name: page-footer
3
3
  status: stable
4
4
  layouts: [documentation]
5
5
  tokens:
6
+ - border.width.emphasis
6
7
  - border.width.hairline
7
8
  - color.border.subtle
9
+ - color.link.hover
10
+ - color.link.rest
8
11
  - space.inline.lg
12
+ - space.inline.xs
9
13
  - space.section.sm
10
14
  - space.stack.lg
11
15
  - space.stack.md
@@ -14,7 +18,7 @@ tokens:
14
18
 
15
19
  # Page footer
16
20
 
17
- After a documentation page's article: when the page last changed and a link to edit its source, then previous and next in the order of the navigation.
21
+ After a documentation page's article: when the page last changed, what any generated tables come from, and a link to its source, then previous and next in the order of the navigation.
18
22
 
19
23
  ## When to use
20
24
 
@@ -30,8 +34,8 @@ After a documentation page's article: when the page last changed and a link to e
30
34
 
31
35
  ```html {preview=true}
32
36
  <footer class="cx-page-footer">
33
- <p class="cx-meta">Last updated <time datetime="2026-11-04">4 November 2026</time></p>
34
- <a class="cx-link" href="https://github.com/owner/repo/edit/main/docs/guide/getting-started.md"><svg class="cx-icon cx-icon--sm" aria-hidden="true" focusable="false"><use href="#cx-icon-edit"></use></svg>Edit this page<svg class="cx-icon cx-icon--sm" aria-hidden="true" focusable="false"><use href="#cx-icon-arrow-outward"></use></svg></a>
37
+ <p class="cx-meta">Last updated <time datetime="2026-11-04">4 November 2026</time> <span class="cx-sep" aria-hidden="true">|</span> <span>Generated from <a href="https://github.com/owner/repo/blob/main/tokens/color.json">tokens/color.json</a></span></p>
38
+ <a class="cx-link" href="https://github.com/owner/repo/blob/main/docs/foundations/colour.md">View source<svg class="cx-icon cx-icon--sm" aria-hidden="true" focusable="false"><use href="#cx-icon-arrow-outward"></use></svg></a>
35
39
  </footer>
36
40
  <nav class="cx-pagination" aria-label="Documentation pages">
37
41
  <a class="cx-pagination__link" href="/guide/" rel="prev">
@@ -46,12 +50,26 @@ After a documentation page's article: when the page last changed and a link to e
46
50
  </nav>
47
51
  ```
48
52
 
53
+ The link is **View source**, to the file on the repository's site, with `params.motifspec.sourceURL` (such as `https://github.com/owner/repo/blob/main/`). A site that would rather send readers straight to an editor sets `params.motifspec.editURL` instead, and the link is **Edit this page**, with the edit icon.
54
+
49
55
  In Hugo, `partial "motifspec/page-footer.html" .` writes the footer and `partial "motifspec/pagination-docs.html" .` the previous and next links, in the order `docs-nav.html` lists the pages (`docs/hugo.md`).
50
56
 
57
+ ### Pages made from other files
58
+
59
+ A page with no file of its own, such as one a content adapter makes from another file, sets these params:
60
+
61
+ <!-- caption: Page footer params -->
62
+ | Param | Is | Example |
63
+ |---|---|---|
64
+ | `source` | The repository path of the file the page is made from | `README.md` |
65
+ | `sourceAnchor` | The heading the page starts at, when it is one section of the file (View source only) | `getting-started` |
66
+ | `data` | The files its generated tables come from, shown as "Generated from" | `["tokens/color.json"]` |
67
+
51
68
  ## Do
52
69
 
53
70
  - Show the date the content last changed, from version control where possible, written as a reader would say it ("4 November 2026").
54
- - Link "Edit this page" to the page's source file, not to a generated copy.
71
+ - Link to the page's source file, not to a generated copy. A page made from one section of a file opens at that section (`sourceAnchor`, below); a file in an editor can't, so prefer View source for a site with such pages.
72
+ - Name the files a page's generated tables come from, after the date, so a reader knows where to change a value.
55
73
  - Name the group in the pagination's middle cell, with the page's position in the whole set.
56
74
 
57
75
  ## Don't
@@ -62,6 +80,7 @@ In Hugo, `partial "motifspec/page-footer.html" .` writes the footer and `partial
62
80
  ## Accessibility
63
81
 
64
82
  - The date is a `<time>` with a machine-readable `datetime`.
65
- - The edit link's text says what it does; both icons are `aria-hidden`, and the outward arrow repeats that it leaves the site.
83
+ - The link's text says what it does (View source, or Edit this page); its icons are `aria-hidden`, and the outward arrow repeats that it leaves the site.
66
84
  - The pagination is a `<nav>` named "Documentation pages", separate from the navigation's "Documentation". Pairs and targets as `pagination.md`.
85
+ - The generated-from links are underlined, like links in prose, so they read as links in the mono line without relying on colour.
67
86
  - Pairs: `color.text.muted` on `color.surface.base` (4.5:1) for the date; `color.link.rest` on `color.surface.base` (7:1).
@@ -50,6 +50,7 @@ tokens:
50
50
  - size.measure.code
51
51
  - size.measure.prose
52
52
  - size.ornament.sm
53
+ - size.target.touch
53
54
  - space.inline.md
54
55
  - space.inline.sm
55
56
  - space.inline.xs
@@ -71,7 +71,7 @@ The closing band of every page: a knitted ornament band, grouped links, a coloph
71
71
  <div class="cx-container">
72
72
  <div class="cx-footer__base">
73
73
  <span>© 2026 Liam Marshall</span>
74
- <a class="cx-version" href="https://motifspec.com" aria-label="Version 1.16.0: view the MotifSpec showcase">MotifSpec v1.16.0<svg class="cx-icon cx-icon--sm" aria-hidden="true" focusable="false"><use href="#cx-icon-arrow-outward"></use></svg><span class="cx-tooltip cx-tooltip--above" aria-hidden="true">View showcase</span></a>
74
+ <a class="cx-version" href="https://motifspec.com" aria-label="Version 1.16.0: view the MotifSpec docs">MotifSpec v1.16.0<svg class="cx-icon cx-icon--sm" aria-hidden="true" focusable="false"><use href="#cx-icon-arrow-outward"></use></svg><span class="cx-tooltip cx-tooltip--above" aria-hidden="true">View MotifSpec docs</span></a>
75
75
  <a href="#top">Back to top<svg class="cx-icon cx-icon--sm" aria-hidden="true" focusable="false"><use href="#cx-icon-arrow-upward"></use></svg></a>
76
76
  </div>
77
77
  </div>
@@ -84,7 +84,7 @@ The closing band of every page: a knitted ornament band, grouped links, a coloph
84
84
  - Keep two to four columns; the grid wraps on its own.
85
85
  - Use the footer band as the page's single ornament when the page has no other.
86
86
  - On a backdrop page, let the footer sit on the frost: `cx-backdrop-page` removes its raised surface, and the bottom fade starts above it.
87
- - Put the MotifSpec version in the base row on sites that consume it, as a `cx-version` link to the showcase (`showcase` in `package.json`, also served in `dist/tokens.json`). The showcase's own footer links its version to the changelog instead. Its tooltip opens above (`cx-tooltip--above`) because it sits at the bottom of the page.
87
+ - Put the MotifSpec version in the base row on sites that consume it, as a `cx-version` link to motifspec.com (`showcase` in `package.json`, also served in `dist/tokens.json`). Its tooltip opens above (`cx-tooltip--above`) because it sits at the bottom of the page.
88
88
  - Point "Back to top" at `#top` and give no element that id. With no `#top` element, the browser scrolls to the top of the document; an id on the sticky header would leave the page where it is, because a stuck header is already in view.
89
89
 
90
90
  ## Don't
@@ -47,7 +47,7 @@ A contour survey of generated terrain: simplex-noise height lines drawn as a sta
47
47
 
48
48
  ## When not to use
49
49
 
50
- - On a page with the backdrop (`backdrop.md`), which already draws the survey behind it: one kind of contour field per page. The showcase, which documents both, is the only exception.
50
+ - On a page with the backdrop (`backdrop.md`), which already draws the survey behind it: one kind of contour field per page.
51
51
  - On article, index or 404 pages.
52
52
  - As a loading indicator, or as a map of a real place. It is generated, not surveyed.
53
53
  - Without its pause control.
@@ -44,6 +44,7 @@ A short mono label with a dot that names a state: online, degraded, down, live,
44
44
  <span class="cx-status cx-status--muted">Scheduled</span>
45
45
  ```
46
46
 
47
+ <!-- caption: Status tones -->
47
48
  | Tone | For | Example words |
48
49
  |---|---|---|
49
50
  | `--success` | Working, passing, done | Online, Running, Passed, Done |