@aitrien/motifspec 1.24.0 → 1.24.2
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 +12 -0
- package/README.md +1 -0
- package/dist/codex.css +12 -8
- package/dist/tokens.css +1 -1
- package/dist/tokens.js +1 -1
- package/dist/tokens.json +1 -1
- package/docs/components/search.md +1 -2
- package/docs/components/site-header.md +7 -5
- package/docs/layouts/portfolio.md +1 -1
- package/layouts/_partials/motifspec/site-header.html +11 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
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.24.2] - 2026-11-16
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
- A rule for eyebrows in the README's rules for AI assistants, which the MCP server's `get_rules` serves: use one only when it says what the heading can't at a glance (a category, an audience, a feature, a stage or a theme), never to repeat the heading, in vague words, or above every section by habit.
|
|
9
|
+
- The portfolio home page's statement (`docs/layouts/portfolio.md`) has an eyebrow only if it adds something.
|
|
10
|
+
|
|
11
|
+
## [1.24.1] - 2026-11-16
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
- A documentation site's header shows its version beside the wordmark, in the role's place (`cx-header__brand`), still linking to the changelog. Like a role, it shows at the top of the page and goes when the wordmark compacts. It no longer sits with the controls, and the docs header shows no role. The menu's changelog row still carries the version.
|
|
15
|
+
- The search trigger (`search.md`) is a pill (`radius.pill`, was `radius.control`), with `space.inset.md` after the keys (was `space.inset.xs`).
|
|
16
|
+
|
|
5
17
|
## [1.24.0] - 2026-11-08
|
|
6
18
|
|
|
7
19
|
### Added
|
package/README.md
CHANGED
|
@@ -54,6 +54,7 @@ An à la carte project also lists the components it uses, by doc name: `componen
|
|
|
54
54
|
- JavaScript is enhancement. In a site that renders without script, anything a reader needs must work without it; controls that need script ship `hidden` and are revealed by it. In an app that needs script to render at all, MotifSpec's components add no script of their own: native elements (`<details>`, `<meter>`, `<dialog>`, radio buttons) do the work.
|
|
55
55
|
- Serve MotifSpec's own files (CSS, fonts, icons, scripts) from the project, never from a CDN. Where an app gets its data is the project's decision, not a MotifSpec rule.
|
|
56
56
|
- Use plain, functional labels: Work, Writing, About.
|
|
57
|
+
- Use an eyebrow (`cx-eyebrow`) only when it tells the reader something the heading can't say at a glance: a category, an audience, a feature, a stage or a theme. One that repeats the heading, says something vague, or sits above every section out of habit is noise, so leave it out. Most headings need none.
|
|
57
58
|
- 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.
|
|
58
59
|
- 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.
|
|
59
60
|
|
package/dist/codex.css
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono-latin-wght.woff2") format("woff2"); font-weight: 100 900; 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.24.
|
|
5
|
+
/* MotifSpec 1.24.2 — 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 {
|
|
@@ -603,12 +603,11 @@ p, li, dd, figcaption { text-wrap: pretty; }
|
|
|
603
603
|
.cx-page-footer .cx-meta a:hover { color: var(--cx-color-link-hover); text-decoration-thickness: var(--cx-border-width-emphasis); }
|
|
604
604
|
|
|
605
605
|
/* ------------------------------------------------------------ search (a dialog over the page, from the header) */
|
|
606
|
-
/* The trigger looks like the field it opens:
|
|
607
|
-
outlined pill in the nav beside it. */
|
|
606
|
+
/* The trigger looks like the field it opens: sunken, outlined and wide, a pill with room after the keys. */
|
|
608
607
|
.cx-search-trigger {
|
|
609
608
|
flex: 0 1 var(--cx-size-column-sidebar); min-width: 0; display: inline-flex; align-items: center; gap: var(--cx-space-inline-sm);
|
|
610
|
-
min-height: var(--cx-size-target-control); padding-inline: var(--cx-space-inset-sm) var(--cx-space-inset-
|
|
611
|
-
border: var(--cx-border-width-hairline) solid var(--cx-color-border-strong); border-radius: var(--cx-radius-
|
|
609
|
+
min-height: var(--cx-size-target-control); padding-inline: var(--cx-space-inset-sm) var(--cx-space-inset-md);
|
|
610
|
+
border: var(--cx-border-width-hairline) solid var(--cx-color-border-strong); border-radius: var(--cx-radius-pill);
|
|
612
611
|
background: var(--cx-color-surface-sunken); color: var(--cx-color-text-muted); font: inherit; font-size: var(--cx-font-size-small); cursor: text;
|
|
613
612
|
}
|
|
614
613
|
.cx-search-trigger:hover { color: var(--cx-color-text-secondary); }
|
|
@@ -725,21 +724,26 @@ p, li, dd, figcaption { text-wrap: pretty; }
|
|
|
725
724
|
/* The bar keeps its height while the wordmark changes size: the wordmark is a touch target high at any size, with its
|
|
726
725
|
text centred in it (align-content, as its line keeps the name and role on one baseline). */
|
|
727
726
|
.cx-header--docs .cx-wordmark { flex: none; padding-block: 0; align-content: center; }
|
|
727
|
+
/* A docs header's version sits beside the wordmark, in the role's place, on the wordmark's baseline. Its pill padding
|
|
728
|
+
is the gap between them. It is size.target.min high there, so lining up with the wordmark can't make the bar taller. */
|
|
729
|
+
.cx-header__brand { flex: none; display: flex; align-items: baseline; }
|
|
730
|
+
.cx-header__brand > .cx-header__version { min-height: var(--cx-size-target-min); }
|
|
728
731
|
/* A docs header sticks, with its surface, even without dist/codex.js: its menu and "On this page" open from it. */
|
|
729
732
|
.cx-backdrop-page .cx-header--docs:not([data-scrolled]) { position: sticky; background: var(--cx-color-surface-base); }
|
|
730
733
|
@media (width < 64rem) {
|
|
731
734
|
.cx-header--docs .cx-header__end { gap: var(--cx-space-inline-xs); }
|
|
732
|
-
.cx-header--docs .cx-nav, .cx-header--docs .cx-header__end > .cx-
|
|
735
|
+
.cx-header--docs .cx-nav, .cx-header--docs .cx-header__end > .cx-theme-toggle { display: none; }
|
|
733
736
|
.cx-header--docs .cx-wordmark { font-size: var(--cx-font-size-body); }
|
|
734
|
-
.cx-header--docs .cx-wordmark__role { display: none; }
|
|
737
|
+
.cx-header--docs .cx-wordmark__role, .cx-header__brand > .cx-header__version { display: none; }
|
|
735
738
|
.cx-header--docs[data-scrolled="false"] .cx-wordmark { font-size: var(--cx-font-size-heading-4); }
|
|
736
739
|
.cx-header--docs[data-scrolled="false"] .cx-wordmark__role { display: inline; }
|
|
740
|
+
.cx-header--docs[data-scrolled="false"] .cx-header__brand > .cx-header__version { display: inline-flex; }
|
|
737
741
|
.cx-header--docs[data-scrolled="false"] .cx-header__toc { display: none; }
|
|
738
742
|
}
|
|
739
743
|
@media (width >= 64rem) {
|
|
740
744
|
.cx-header__toc, .cx-header__menu { display: none; }
|
|
741
745
|
.cx-header--docs[data-scrolled="true"] .cx-wordmark { font-size: var(--cx-font-size-body); }
|
|
742
|
-
.cx-header--docs[data-scrolled="true"] .cx-wordmark__role { display: none; }
|
|
746
|
+
.cx-header--docs[data-scrolled="true"] .cx-wordmark__role, .cx-header--docs[data-scrolled="true"] .cx-header__brand > .cx-header__version { display: none; }
|
|
743
747
|
}
|
|
744
748
|
|
|
745
749
|
/* ------------------------------------------------------------ component preview (a live example above its code) */
|
package/dist/tokens.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* MotifSpec 1.24.
|
|
1
|
+
/* MotifSpec 1.24.2 — 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.24.
|
|
2
|
+
export const version = "1.24.2";
|
|
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
|
@@ -27,7 +27,6 @@ tokens:
|
|
|
27
27
|
- font.size.small
|
|
28
28
|
- font.tracking.ui
|
|
29
29
|
- font.weight.strong
|
|
30
|
-
- radius.control
|
|
31
30
|
- radius.pill
|
|
32
31
|
- size.column.card
|
|
33
32
|
- size.column.sidebar
|
|
@@ -60,7 +59,7 @@ A search control in the header that opens a dialog of results as you type, from
|
|
|
60
59
|
|
|
61
60
|
## Markup
|
|
62
61
|
|
|
63
|
-
The trigger goes in the header's end (`site-header.md`); the dialog can sit next to it. It looks like the field it opens:
|
|
62
|
+
The trigger goes in the header's end (`site-header.md`); the dialog can sit next to it. It looks like the field it opens: a pill (`radius.pill`) on `color.surface.sunken` with a `color.border.strong` outline, as wide as `size.column.sidebar` allows, with `space.inset.md` after the keys. Below `size.breakpoint.lg` it is an icon.
|
|
64
63
|
|
|
65
64
|
```html {preview=true}
|
|
66
65
|
<button class="cx-search-trigger" type="button" data-search-open aria-haspopup="dialog" aria-controls="cx-search" hidden>
|
|
@@ -96,12 +96,15 @@ The bar at the top of every page: wordmark, primary nav and the theme toggle. On
|
|
|
96
96
|
|
|
97
97
|
### In a documentation site
|
|
98
98
|
|
|
99
|
-
A documentation site's header (`cx-header--docs`) also carries search, a link out to the source repository,
|
|
99
|
+
A documentation site's header (`cx-header--docs`) also carries search, a link out to the source repository, and two `<details>` that take over below `size.breakpoint.lg`: "On this page" and a menu. Its nav holds only links out, since the page navigation lists the pages. The bar is one row of `size.target.touch` with `space.inset.xs` above and below, at every width and whatever size the wordmark is, which sits centred in it. The version, linking to the changelog, takes the role's place beside the wordmark (`cx-header__brand`): it shows at the top of the page and goes when the wordmark compacts, as a role does.
|
|
100
100
|
|
|
101
101
|
```html
|
|
102
102
|
<header class="cx-header cx-header--docs">
|
|
103
103
|
<div class="cx-container cx-header__inner">
|
|
104
|
-
<
|
|
104
|
+
<div class="cx-header__brand">
|
|
105
|
+
<a class="cx-wordmark" href="/">MotifSpec</a>
|
|
106
|
+
<a class="cx-header__version" href="/reference/changelog/">v1.22.0<span class="cx-visually-hidden">, changelog</span></a>
|
|
107
|
+
</div>
|
|
105
108
|
<div class="cx-header__end">
|
|
106
109
|
<details class="cx-header__toc" data-pagefind-ignore>
|
|
107
110
|
<summary>On this page<svg class="cx-icon cx-icon--sm cx-header__chevron" aria-hidden="true" focusable="false"><use href="#cx-icon-expand"></use></svg></summary>
|
|
@@ -116,7 +119,6 @@ A documentation site's header (`cx-header--docs`) also carries search, a link ou
|
|
|
116
119
|
<li><a href="https://github.com/owner/repo">GitHub<svg class="cx-icon cx-icon--sm" aria-hidden="true" focusable="false"><use href="#cx-icon-arrow-outward"></use></svg></a></li>
|
|
117
120
|
</ul>
|
|
118
121
|
</nav>
|
|
119
|
-
<a class="cx-header__version" href="/reference/changelog/">v1.22.0<span class="cx-visually-hidden">, changelog</span></a>
|
|
120
122
|
<button class="cx-theme-toggle" type="button" data-theme-toggle hidden aria-label="Switch to dark theme">…</button>
|
|
121
123
|
<details class="cx-header__menu">
|
|
122
124
|
<summary aria-label="Menu"><svg class="cx-icon" data-when="closed" aria-hidden="true" focusable="false"><use href="#cx-icon-menu"></use></svg><svg class="cx-icon" data-when="open" aria-hidden="true" focusable="false"><use href="#cx-icon-close"></use></svg></summary>
|
|
@@ -139,8 +141,8 @@ A documentation site's header (`cx-header--docs`) also carries search, a link ou
|
|
|
139
141
|
<!-- caption: The documentation header by width -->
|
|
140
142
|
| | Below `size.breakpoint.lg` | From `size.breakpoint.lg` |
|
|
141
143
|
|---|---|---|
|
|
142
|
-
| At the top of the page | The wordmark in full, search (an icon) and the menu | The wordmark in full, search (a field), the links out
|
|
143
|
-
| Scrolled | A compact wordmark, "On this page", search and the menu | The same, with a compact wordmark |
|
|
144
|
+
| At the top of the page | The wordmark in full with the version, search (an icon) and the menu | The wordmark in full with the version, search (a field), the links out and the theme toggle |
|
|
145
|
+
| Scrolled | A compact wordmark, "On this page", search and the menu | The same, with a compact wordmark and no version |
|
|
144
146
|
| The menu | A sheet under the bar: the page navigation scrolls; the external links, the changelog with the version, and the theme toggle stay at the bottom | Not shown: the side column has the navigation |
|
|
145
147
|
| "On this page" | A panel under the bar, with Back to top and the page's sections | Not shown: the article has its own |
|
|
146
148
|
|
|
@@ -13,7 +13,7 @@ Every template sits on the backdrop (`backdrop.md`): its contours show behind th
|
|
|
13
13
|
<!-- caption: Page templates -->
|
|
14
14
|
| Template | Order | Dominant | Secondary |
|
|
15
15
|
|---|---|---|---|
|
|
16
|
-
| **Home** | Header → statement (eyebrow
|
|
16
|
+
| **Home** | Header → statement (display h1 with an eyebrow only if it adds something, lede, primary + secondary button) on the frost, inside the top fade → selected work (2–3 project cards) → recent writing (5 post rows) → capabilities table → footer | Statement and selected work | Writing rows, capabilities, the backdrop |
|
|
17
17
|
| **Project index** | Header → page head (h1 "Work", entry count, one-line intro) → tag filter → project cards or ledger, newest first → footer | The list of projects | Filter and intro |
|
|
18
18
|
| **Case study** | Header → back link "← All work" → accession label (`cx-label--lead`; on a phone, number, date and status only) → h1 and lede → hero figure (Plate 1) → article layout: TOC + prose (Problem, Constraints, Approach, Outcome with a data table, What I'd change) → on a phone, the full label as a card (`cx-label--card`) → pagination → footer | Title and hero, then prose | Label, TOC |
|
|
19
19
|
| **Writing list** | Header → page head (h1 "Writing", description, RSS link) → tag filter → post rows grouped by year → pagination → footer | Post titles | Numbers, dates, tags |
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{{- /* site-header.md. A child page marks its section (a post marks Writing). A menu entry whose URL starts with
|
|
2
2
|
"http" gets the outward arrow. Optional, from params.motifspec: search = true adds search (search.md);
|
|
3
|
-
version = "1.19.0" with changelog = "<url>" adds the version, linked to the changelog.
|
|
3
|
+
version = "1.19.0" with changelog = "<url>" adds the version, linked to the changelog. On a documentation site the
|
|
4
|
+
version sits beside the wordmark in place of the role, and shows and hides as the role does.
|
|
4
5
|
On a documentation site (params.motifspec.layout "documentation"), below size.breakpoint.lg the bar holds only
|
|
5
6
|
the wordmark, "On this page", search and the menu, whose sheet has the page navigation (docs-shell.md), the
|
|
6
7
|
menu's external links, the changelog and the theme toggle. */ -}}
|
|
@@ -9,7 +10,14 @@
|
|
|
9
10
|
{{- $external := where site.Menus.main "URL" "like" `^https?://` -}}
|
|
10
11
|
<header class="cx-header{{ if $docs }} cx-header--docs{{ end }}">
|
|
11
12
|
<div class="cx-container cx-header__inner">
|
|
13
|
+
{{- if and $docs $ms.version }}
|
|
14
|
+
<div class="cx-header__brand">
|
|
15
|
+
<a class="cx-wordmark" href="{{ site.Home.RelPermalink }}">{{ site.Title }}</a>
|
|
16
|
+
<a class="cx-header__version" href="{{ $ms.changelog | default "#" }}">v{{ $ms.version }}<span class="cx-visually-hidden">, changelog</span></a>
|
|
17
|
+
</div>
|
|
18
|
+
{{- else }}
|
|
12
19
|
<a class="cx-wordmark" href="{{ site.Home.RelPermalink }}">{{ site.Title }} <span class="cx-wordmark__role">{{ site.Params.role }}</span></a>
|
|
20
|
+
{{- end }}
|
|
13
21
|
<div class="cx-header__end">
|
|
14
22
|
{{- if $docs }}
|
|
15
23
|
{{- /* "On this page", for a page whose article shows a table of contents: three or more h2s, and no toc: false. */}}
|
|
@@ -38,8 +46,8 @@
|
|
|
38
46
|
{{- end }}
|
|
39
47
|
</ul>
|
|
40
48
|
</nav>
|
|
41
|
-
{{-
|
|
42
|
-
<a class="cx-header__version" href="{{ $ms.changelog | default "#" }}">v{{ . }}<span class="cx-visually-hidden">, changelog</span></a>
|
|
49
|
+
{{- if and $ms.version (not $docs) }}
|
|
50
|
+
<a class="cx-header__version" href="{{ $ms.changelog | default "#" }}">v{{ $ms.version }}<span class="cx-visually-hidden">, changelog</span></a>
|
|
43
51
|
{{- end }}
|
|
44
52
|
{{ partial "motifspec/theme-toggle.html" . }}
|
|
45
53
|
{{- if $docs }}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aitrien/motifspec",
|
|
3
|
-
"version": "1.24.
|
|
3
|
+
"version": "1.24.2",
|
|
4
4
|
"description": "Liam Marshall's design system: DTCG tokens and layered component rules that AI assistants read a layer at a time, with generated CSS, Hugo templates and a rule checker.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"design-system",
|