@aitrien/motifspec 1.14.2 → 1.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -0
- package/dist/codex.css +17 -1
- package/dist/tokens.css +1 -1
- package/dist/tokens.js +2 -1
- package/dist/tokens.json +2 -1
- package/docs/components/figure.md +38 -5
- package/docs/components/site-footer.md +3 -2
- package/docs/hugo.md +1 -1
- package/layouts/_markup/render-image.html +4 -1
- package/layouts/_partials/motifspec/figure.html +22 -7
- package/layouts/_partials/motifspec/site-header.html +1 -1
- package/package.json +2 -1
- package/scripts/check.mjs +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,28 @@
|
|
|
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.16.0] - 2026-10-29
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
- `showcase` in `package.json`, the published showcase at https://motifspec.com, also served as `showcase` in `dist/tokens.json` and `dist/tokens.js`.
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
- Site footers link the MotifSpec version to the showcase instead of the changelog: `aria-label="Version x.y.z: view the MotifSpec showcase"`, tooltip "View showcase". The showcase's own footer still links to the changelog. `site-footer.md` is updated.
|
|
12
|
+
|
|
13
|
+
### Fixed
|
|
14
|
+
- "Back to top" now goes to the top. The site header had `id="top"`, and because the header is sticky, the browser scrolled to where it was stuck, which moved the page by a header's height. The header has no id now, so `#top` scrolls to the top of the document, as HTML defines for a `#top` link with no matching element.
|
|
15
|
+
|
|
16
|
+
## [1.15.0] - 2026-10-29
|
|
17
|
+
|
|
18
|
+
### Added
|
|
19
|
+
- Diagrams. `cx-diagram` classes draw an SVG inside a `cx-figure--diagram`, using only existing tokens, so diagrams follow light and dark themes:
|
|
20
|
+
- nodes (`__node`, `--accent`), groups (`__group`), edges and arrowheads (`__edge`, `__head`, each with `--accent`)
|
|
21
|
+
- text (`__title`, `__text`, `__label`, `--accent`)
|
|
22
|
+
|
|
23
|
+
Every colour is a pair already checked on `color.surface.raised`, the frame's surface. Strokes stay a screen hairline at any scale. `figure.md` has the markup, the parts and the rules: viewBox at most 740 wide, ids prefixed.
|
|
24
|
+
- Hugo: an `.svg` in a page bundle, on its own line in Markdown, becomes a diagram figure. It is inlined, numbered like other plates, and gets `role="img"` with the alt text as its name. The build stops if the file sets its own role, label or `<title>`, or has no `cx-diagram` class.
|
|
25
|
+
- The checker reads `.svg` files, so a diagram with a raw colour, a style attribute or an unknown class fails like any template.
|
|
26
|
+
|
|
5
27
|
## [1.14.2] - 2026-10-29
|
|
6
28
|
|
|
7
29
|
### Fixed
|
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.
|
|
5
|
+
/* MotifSpec 1.16.0 — 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 {
|
|
@@ -887,6 +887,22 @@ a.cx-tag:hover { border-color: var(--cx-color-accent-border); color: var(--cx-co
|
|
|
887
887
|
.cx-figure__frame > :where(img, svg) { display: block; width: 100%; height: auto; }
|
|
888
888
|
/* Diagrams keep a legible text size and scroll inside the frame on narrow screens. */
|
|
889
889
|
.cx-figure--diagram .cx-figure__frame > svg { min-width: calc(var(--cx-size-column-card) * 2); }
|
|
890
|
+
/* Diagram parts: an SVG in a cx-figure--diagram is drawn and set only through these classes, so it follows the theme.
|
|
891
|
+
Every colour is a pair checked on color.surface.raised, the frame's surface. Strokes stay one screen hairline (or
|
|
892
|
+
the emphasis width) however the SVG scales. */
|
|
893
|
+
.cx-diagram { font-family: var(--cx-font-family-body); }
|
|
894
|
+
.cx-diagram :where(rect, path, line, polyline, polygon, circle, ellipse) { vector-effect: non-scaling-stroke; }
|
|
895
|
+
.cx-diagram__node { fill: var(--cx-color-surface-raised); stroke: var(--cx-color-border-strong); stroke-width: var(--cx-border-width-hairline); }
|
|
896
|
+
.cx-diagram__node--accent { stroke: var(--cx-color-accent-border); stroke-width: var(--cx-border-width-emphasis); }
|
|
897
|
+
.cx-diagram__group { fill: none; stroke: var(--cx-color-border-strong); stroke-width: var(--cx-border-width-hairline); }
|
|
898
|
+
.cx-diagram__edge { fill: none; stroke: var(--cx-color-border-strong); stroke-width: var(--cx-border-width-hairline); }
|
|
899
|
+
.cx-diagram__edge--accent { stroke: var(--cx-color-accent-border); stroke-width: var(--cx-border-width-emphasis); }
|
|
900
|
+
.cx-diagram__head { fill: var(--cx-color-border-strong); }
|
|
901
|
+
.cx-diagram__head--accent { fill: var(--cx-color-accent-border); }
|
|
902
|
+
.cx-diagram__title { fill: var(--cx-color-text-primary); font-size: var(--cx-font-size-small); font-weight: var(--cx-font-weight-ui); }
|
|
903
|
+
.cx-diagram__text { fill: var(--cx-color-text-secondary); font-size: var(--cx-font-size-small); }
|
|
904
|
+
.cx-diagram__label { fill: var(--cx-color-text-muted); font-family: var(--cx-font-family-mono); font-size: var(--cx-font-size-small); letter-spacing: var(--cx-font-tracking-label); text-transform: uppercase; }
|
|
905
|
+
.cx-diagram__label--accent { fill: var(--cx-color-text-accent); }
|
|
890
906
|
.cx-figure figcaption { display: flex; flex-wrap: wrap; gap: var(--cx-space-stack-xs) var(--cx-space-inline-md); max-width: var(--cx-size-measure-caption); color: var(--cx-color-text-secondary); font-size: var(--cx-font-size-small); line-height: var(--cx-font-line-height-ui); }
|
|
891
907
|
.cx-figure__plate { color: var(--cx-color-text-accent); }
|
|
892
908
|
|
package/dist/tokens.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* MotifSpec 1.
|
|
1
|
+
/* MotifSpec 1.16.0 — 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,6 +1,7 @@
|
|
|
1
1
|
// Generated by npm run build. Do not edit.
|
|
2
|
-
export const version = "1.
|
|
2
|
+
export const version = "1.16.0";
|
|
3
3
|
export const changelog = "https://github.com/Aitrien/motifspec/blob/main/CHANGELOG.md";
|
|
4
|
+
export const showcase = "https://motifspec.com";
|
|
4
5
|
export const tokens = [
|
|
5
6
|
{
|
|
6
7
|
"name": "primitive.border.width.1",
|
package/dist/tokens.json
CHANGED
|
@@ -2,11 +2,17 @@
|
|
|
2
2
|
name: figure
|
|
3
3
|
status: stable
|
|
4
4
|
tokens:
|
|
5
|
+
- border.width.emphasis
|
|
5
6
|
- border.width.hairline
|
|
7
|
+
- color.accent.border
|
|
6
8
|
- color.border.default
|
|
9
|
+
- color.border.strong
|
|
7
10
|
- color.surface.raised
|
|
8
11
|
- color.text.accent
|
|
12
|
+
- color.text.muted
|
|
13
|
+
- color.text.primary
|
|
9
14
|
- color.text.secondary
|
|
15
|
+
- font.family.body
|
|
10
16
|
- font.family.mono
|
|
11
17
|
- font.line-height.ui
|
|
12
18
|
- font.size.label
|
|
@@ -42,18 +48,45 @@ A framed image or diagram with a numbered plate label and a caption.
|
|
|
42
48
|
```html preview
|
|
43
49
|
<figure class="cx-figure cx-figure--breakout cx-figure--diagram">
|
|
44
50
|
<div class="cx-figure__frame">
|
|
45
|
-
<svg viewBox="0 0 720
|
|
51
|
+
<svg class="cx-diagram" viewBox="0 0 720 120" role="img" aria-label="Tokens go through the build, which writes CSS for sites.">
|
|
52
|
+
<defs><marker id="pipeline-head" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="8" markerHeight="8" orient="auto"><path class="cx-diagram__head" d="M0 0 10 5 0 10z"/></marker></defs>
|
|
53
|
+
<rect class="cx-diagram__node" x="20" y="30" width="180" height="60"/>
|
|
54
|
+
<text class="cx-diagram__title" x="110" y="57" text-anchor="middle">tokens/*.json</text>
|
|
55
|
+
<text class="cx-diagram__text" x="110" y="77" text-anchor="middle">Values and usage rules</text>
|
|
56
|
+
<path class="cx-diagram__edge" d="M200 60 H268" marker-end="url(#pipeline-head)"/>
|
|
57
|
+
<rect class="cx-diagram__node cx-diagram__node--accent" x="270" y="30" width="180" height="60"/>
|
|
58
|
+
<text class="cx-diagram__title" x="360" y="57" text-anchor="middle">npm run build</text>
|
|
59
|
+
<text class="cx-diagram__text" x="360" y="77" text-anchor="middle">Validates every pair</text>
|
|
60
|
+
<path class="cx-diagram__edge" d="M450 60 H518" marker-end="url(#pipeline-head)"/>
|
|
61
|
+
<rect class="cx-diagram__node" x="520" y="30" width="180" height="60"/>
|
|
62
|
+
<text class="cx-diagram__title" x="610" y="57" text-anchor="middle">dist/codex.css</text>
|
|
63
|
+
<text class="cx-diagram__label" x="610" y="77" text-anchor="middle">For sites</text>
|
|
64
|
+
</svg>
|
|
46
65
|
</div>
|
|
47
|
-
<figcaption><span class="cx-figure__plate">Plate 2</span>One build feeds
|
|
66
|
+
<figcaption><span class="cx-figure__plate">Plate 2</span>One build feeds every consumer.</figcaption>
|
|
48
67
|
</figure>
|
|
49
68
|
```
|
|
50
69
|
|
|
70
|
+
### Diagram parts
|
|
71
|
+
|
|
72
|
+
| Class | Draws |
|
|
73
|
+
|---|---|
|
|
74
|
+
| `cx-diagram` | The `<svg>`. Sets the body font. |
|
|
75
|
+
| `cx-diagram__node`, `--accent` | A box: raised fill, strong hairline; the accent version marks the step the diagram is about. |
|
|
76
|
+
| `cx-diagram__group` | An outline around related nodes, with no fill. |
|
|
77
|
+
| `cx-diagram__edge`, `--accent` | A connector line. Give it `marker-end` pointing at a marker drawn with `cx-diagram__head` (or `--accent`). |
|
|
78
|
+
| `cx-diagram__title`, `cx-diagram__text` | A node's name, and a short line under it. |
|
|
79
|
+
| `cx-diagram__label`, `--accent` | Mono, uppercase labels for groups and edges. |
|
|
80
|
+
|
|
51
81
|
## Do
|
|
52
82
|
|
|
53
83
|
- Number plates in order of appearance on the page, starting at 1. Plate 0 is reserved for the specimen plate.
|
|
54
84
|
- Write captions that say what to notice, not what the image is.
|
|
55
85
|
- Use `cx-figure--diagram` for SVG with text, so it scrolls instead of shrinking text below 12px on phones.
|
|
56
|
-
- Colour SVG through classes that use `color.*` tokens, never `fill="#…"`; diagrams then follow the theme.
|
|
86
|
+
- Colour SVG through classes that use `color.*` tokens, never `fill="#…"`; diagrams then follow the theme. Draw diagrams with the `cx-diagram` classes above.
|
|
87
|
+
- Keep a diagram's `viewBox` at most 740 wide and set text only through the classes, so text stays at or above 12px at the diagram's minimum width.
|
|
88
|
+
- Prefix the ids inside a diagram (markers, gradients) with its name, since it is inlined into the page with everything else.
|
|
89
|
+
- In Hugo, save a diagram as an `.svg` in the page bundle and use it like an image, on its own line: ``. It is inlined and gets `role="img"` with the alt text as its name.
|
|
57
90
|
- Use `color.data.1` to `color.data.5` in order for chart series, and label series directly.
|
|
58
91
|
|
|
59
92
|
## Don't
|
|
@@ -63,6 +96,6 @@ A framed image or diagram with a numbered plate label and a caption.
|
|
|
63
96
|
|
|
64
97
|
## Accessibility
|
|
65
98
|
|
|
66
|
-
- Informative images need `alt`, or `role="img"`
|
|
99
|
+
- Informative images need `alt`, or `role="img"` and an accessible name for SVG. In Hugo the Markdown alt text becomes that name, so the `.svg` file sets no `role`, `aria-label` or `<title>` of its own. The caption doesn't replace alt text.
|
|
67
100
|
- The plate number is plain text inside `<figcaption>`.
|
|
68
|
-
- Pairs: `color.text.secondary` caption on `color.surface.base` (7:1); `color.text.accent` plate label (4.5:1); data series on `color.surface.raised` (3:1).
|
|
101
|
+
- Pairs: `color.text.secondary` caption on `color.surface.base` (7:1); `color.text.accent` plate label (4.5:1); data series on `color.surface.raised` (3:1). Diagrams, all on `color.surface.raised`: `color.border.strong` nodes, groups and edges (3:1); `color.accent.border` accents (3:1); `color.text.primary` and `color.text.secondary` text (7:1); `color.text.muted` and `color.text.accent` labels (4.5:1).
|
|
@@ -70,7 +70,7 @@ The closing band of every page: a knitted ornament band, grouped links, a coloph
|
|
|
70
70
|
<div class="cx-container">
|
|
71
71
|
<div class="cx-footer__base">
|
|
72
72
|
<span>© 2026 Liam Marshall</span>
|
|
73
|
-
<a class="cx-version" href="https://
|
|
73
|
+
<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
74
|
<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>
|
|
75
75
|
</div>
|
|
76
76
|
</div>
|
|
@@ -83,7 +83,8 @@ The closing band of every page: a knitted ornament band, grouped links, a coloph
|
|
|
83
83
|
- Keep two to four columns; the grid wraps on its own.
|
|
84
84
|
- Use the footer band as the page's single ornament when the page has no other.
|
|
85
85
|
- 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.
|
|
86
|
-
- Put the MotifSpec version in the base row on sites that consume it, as a `cx-version` link to the
|
|
86
|
+
- 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
|
+
- 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.
|
|
87
88
|
|
|
88
89
|
## Don't
|
|
89
90
|
|
package/docs/hugo.md
CHANGED
|
@@ -105,7 +105,7 @@ These apply to all Markdown content once the module is imported.
|
|
|
105
105
|
| Hook | Markdown | Doc |
|
|
106
106
|
|---|---|---|
|
|
107
107
|
| `render-heading.html` | Headings get ids; h2s get a `#` anchor. | `heading-anchor.md` |
|
|
108
|
-
| `render-image.html` | A standalone image is a numbered figure: ``, image in the page bundle, alt and caption required. `{width="prose"}` on the next line keeps it to the text measure. Inline images stay plain. | `figure.md` |
|
|
108
|
+
| `render-image.html` | A standalone image is a numbered figure: ``, image in the page bundle, alt and caption required. `{width="prose"}` on the next line keeps it to the text measure. Inline images stay plain. An `.svg` on its own line becomes a diagram figure, inlined so its `cx-diagram` classes follow the theme. | `figure.md` |
|
|
109
109
|
| `render-table.html` | `{caption="Title \| subtitle"}` on the line after a table is required. Numeric columns align right; more than four columns break out. | `data-table.md` |
|
|
110
110
|
| `render-codeblock.html` | Header bar with language, optional `{file="path"}` and copy button. Breaks out when a line is longer than the prose measure. | `code-block.md` |
|
|
111
111
|
| `render-blockquote.html` | `> [!NOTE]`, `[!TIP]`, `[!WARNING]` and `[!CAUTION]` become callouts. A quotation must end with a line `— Name \| Source title`. | `callout.md`, `prose.md` |
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{{- /* figure.md. A standalone image becomes a numbered figure: . On a page with a `hero` in front matter,
|
|
2
2
|
the hero is Plate 1, so content plates start at 2. Inline images stay plain. Alt text is required.
|
|
3
|
-
{width="prose"} on the line after a figure keeps it to the prose measure instead of breaking out.
|
|
3
|
+
{width="prose"} on the line after a figure keeps it to the prose measure instead of breaking out.
|
|
4
|
+
An .svg is a diagram: inlined, coloured by its cx-diagram classes, named by the alt text. */ -}}
|
|
4
5
|
{{- $img := .Page.Resources.Get .Destination -}}
|
|
5
6
|
{{- if not $img }}{{ errorf "content/%s: image %q is not in the page bundle." .Page.File.Path .Destination }}{{ end -}}
|
|
6
7
|
{{- if not .PlainText }}{{ errorf "content/%s: image %q has no alt text. Describe what the image shows (figure.md)." .Page.File.Path .Destination }}{{ end -}}
|
|
@@ -8,6 +9,8 @@
|
|
|
8
9
|
{{- if not .Title }}{{ errorf "content/%s: figure %q has no caption. Add one as the image title: ." .Page.File.Path .Destination }}{{ end -}}
|
|
9
10
|
{{- $first := cond (isset .Page.Params "hero") 2 1 -}}
|
|
10
11
|
{{- partial "motifspec/figure.html" (dict "image" $img "alt" .PlainText "caption" (.Title | markdownify) "plate" (add .Ordinal $first) "prose" (eq (index .Attributes "width") "prose")) -}}
|
|
12
|
+
{{- else if eq $img.MediaType.SubType "svg" -}}
|
|
13
|
+
{{- errorf "content/%s: %q is an SVG diagram; give it a line of its own so it becomes a figure (figure.md)." .Page.File.Path .Destination -}}
|
|
11
14
|
{{- else -}}
|
|
12
15
|
{{- $s := $img.Process "webp" -}}
|
|
13
16
|
<img src="{{ $s.RelPermalink }}" alt="{{ .PlainText }}" width="{{ $s.Width }}" height="{{ $s.Height }}" loading="lazy" decoding="async">
|
|
@@ -1,14 +1,29 @@
|
|
|
1
|
-
{{- /* figure.md
|
|
2
|
-
|
|
3
|
-
"
|
|
4
|
-
|
|
1
|
+
{{- /* figure.md. A raster image from the page bundle: WebP at two widths, explicit width and height, and a numbered
|
|
2
|
+
plate in the caption. Or an SVG diagram, inlined so its cx-diagram classes take the theme's colours.
|
|
3
|
+
Context: dict "image" (resource) "alt" "caption" (HTML) "plate" (number), plus "eager" (true for the case-study
|
|
4
|
+
hero, the likely largest paint) and "prose" (true to keep the figure to the prose measure instead of breaking
|
|
5
|
+
out, for a supporting image). An SVG takes "alt" as its accessible name. */ -}}
|
|
5
6
|
{{- $img := .image -}}
|
|
6
|
-
{{-
|
|
7
|
-
{{- $
|
|
8
|
-
{{-
|
|
7
|
+
{{- if eq $img.MediaType.SubType "svg" -}}
|
|
8
|
+
{{- $svg := $img.Content | replaceRE `^\s*<\?xml[^>]*\?>\s*` "" | strings.TrimSpace -}}
|
|
9
|
+
{{- if not (hasPrefix $svg "<svg") }}{{ errorf "figure: %s doesn't start with <svg>." $img.Name }}{{ end -}}
|
|
10
|
+
{{- if findRE `<svg[^>]*\s(role|aria-label|aria-labelledby)=|<title[\s>]` $svg }}{{ errorf "figure: %s sets its own role, label or <title>. Remove them: the Markdown alt text becomes the diagram's accessible name (figure.md)." $img.Name }}{{ end -}}
|
|
11
|
+
{{- if not (findRE `<svg[^>]*\sclass="[^"]*\bcx-diagram\b` $svg) }}{{ errorf "figure: %s needs class=\"cx-diagram\" on its <svg>, and cx-diagram__ classes on what it draws (figure.md)." $img.Name }}{{ end -}}
|
|
12
|
+
{{- $svg = replace $svg "<svg" (printf `<svg role="img" aria-label="%s"` (.alt | htmlEscape)) 1 }}
|
|
13
|
+
<figure class="cx-figure{{ if not .prose }} cx-figure--breakout{{ end }} cx-figure--diagram">
|
|
14
|
+
<div class="cx-figure__frame">
|
|
15
|
+
{{ $svg | safeHTML }}
|
|
16
|
+
</div>
|
|
17
|
+
<figcaption><span class="cx-figure__plate">Plate {{ .plate }}</span>{{ .caption }}</figcaption>
|
|
18
|
+
</figure>
|
|
19
|
+
{{- else -}}
|
|
20
|
+
{{- $w := cond (gt $img.Width 1600) 1600 $img.Width -}}
|
|
21
|
+
{{- $large := $img.Process (printf "resize %dx webp" $w) -}}
|
|
22
|
+
{{- $small := $img.Process (printf "resize %dx webp" (div $w 2)) -}}
|
|
9
23
|
<figure class="cx-figure{{ if not .prose }} cx-figure--breakout{{ end }}">
|
|
10
24
|
<div class="cx-figure__frame">
|
|
11
25
|
<img src="{{ $large.RelPermalink }}" srcset="{{ $small.RelPermalink }} {{ $small.Width }}w, {{ $large.RelPermalink }} {{ $large.Width }}w" alt="{{ .alt }}" width="{{ $large.Width }}" height="{{ $large.Height }}"{{ if .eager }} fetchpriority="high"{{ else }} loading="lazy"{{ end }} decoding="async">
|
|
12
26
|
</div>
|
|
13
27
|
<figcaption><span class="cx-figure__plate">Plate {{ .plate }}</span>{{ .caption }}</figcaption>
|
|
14
28
|
</figure>
|
|
29
|
+
{{- end -}}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{{- /* site-header.md. A child page marks its section (a post marks Writing). The backdrop pause control ships hidden;
|
|
2
2
|
dist/plate.js reveals it when the backdrop starts to drift. */ -}}
|
|
3
|
-
<header class="cx-header"
|
|
3
|
+
<header class="cx-header">
|
|
4
4
|
<div class="cx-container cx-header__inner">
|
|
5
5
|
<a class="cx-wordmark" href="{{ site.Home.RelPermalink }}">{{ site.Title }} <span class="cx-wordmark__role">{{ site.Params.role }}</span></a>
|
|
6
6
|
<div class="cx-header__end">
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aitrien/motifspec",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.16.0",
|
|
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",
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"url": "git+https://github.com/Aitrien/motifspec.git"
|
|
19
19
|
},
|
|
20
20
|
"changelog": "https://github.com/Aitrien/motifspec/blob/main/CHANGELOG.md",
|
|
21
|
+
"showcase": "https://motifspec.com",
|
|
21
22
|
"publishConfig": {
|
|
22
23
|
"access": "public"
|
|
23
24
|
},
|
package/scripts/check.mjs
CHANGED
|
@@ -91,7 +91,7 @@ export function checkText(text, { file = '<input>', kind = 'html' } = {}) {
|
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
const KIND = {
|
|
94
|
-
'.html': 'html', '.xml': 'html', '.jsx': 'html', '.tsx': 'html', '.vue': 'html', '.svelte': 'html', '.astro': 'html',
|
|
94
|
+
'.html': 'html', '.xml': 'html', '.svg': 'html', '.jsx': 'html', '.tsx': 'html', '.vue': 'html', '.svelte': 'html', '.astro': 'html',
|
|
95
95
|
'.txt': 'md', '.md': 'md', '.mdx': 'md', '.json': 'md', '.css': 'css',
|
|
96
96
|
};
|
|
97
97
|
// Build output and dependencies, which contain MotifSpec's own CSS.
|