@aitrien/motifspec 1.13.0 → 1.13.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 +269 -257
- package/LICENSE +21 -21
- package/README.md +150 -150
- package/dist/backdrop.html +1 -1
- package/dist/chroma.css +36 -36
- package/dist/codex.css +1145 -1145
- package/dist/codex.js +126 -126
- package/dist/contrast.md +101 -101
- package/dist/fonts.css +3 -3
- package/dist/icons.svg +18 -18
- package/dist/plate.html +1 -1
- package/dist/plate.js +292 -292
- package/dist/theme-init.js +1 -1
- package/dist/tokens.css +466 -466
- package/dist/tokens.js +3330 -3330
- package/dist/tokens.json +3330 -3330
- package/docs/components/_template.md +37 -37
- package/docs/components/accession-label.md +106 -106
- package/docs/components/backdrop.md +83 -83
- package/docs/components/button-and-link.md +87 -87
- package/docs/components/callout.md +75 -75
- package/docs/components/code-block.md +109 -109
- package/docs/components/data-table.md +73 -73
- package/docs/components/figure.md +68 -68
- package/docs/components/heading-anchor.md +76 -76
- package/docs/components/icon.md +63 -63
- package/docs/components/ornament.md +77 -77
- package/docs/components/pagination.md +78 -78
- package/docs/components/post-list-item.md +91 -91
- package/docs/components/project-card.md +82 -82
- package/docs/components/prose.md +122 -122
- package/docs/components/site-footer.md +99 -99
- package/docs/components/site-header.md +133 -133
- package/docs/components/specimen-plate.md +92 -92
- package/docs/components/table-of-contents.md +83 -83
- package/docs/components/tag.md +70 -70
- package/docs/components/tooltip.md +67 -67
- package/docs/hugo.md +120 -120
- package/docs/syntax-highlighting.md +55 -55
- package/docs/templates.md +30 -30
- package/fonts/OFL-jetbrains-mono.txt +93 -93
- package/fonts/OFL-national-park.txt +93 -93
- package/fonts/OFL-yarndings-12.txt +93 -93
- package/icons/LICENSE +202 -202
- package/icons/manifest.json +75 -75
- package/layouts/_markup/render-blockquote.html +30 -30
- package/layouts/_markup/render-codeblock.html +18 -18
- package/layouts/_markup/render-heading.html +2 -2
- package/layouts/_markup/render-image.html +14 -14
- package/layouts/_markup/render-link.html +14 -14
- package/layouts/_markup/render-table.html +31 -31
- package/layouts/_partials/motifspec/accession/id.html +2 -2
- package/layouts/_partials/motifspec/accession/label.html +18 -18
- package/layouts/_partials/motifspec/accession/status.html +2 -2
- package/layouts/_partials/motifspec/article.html +24 -24
- package/layouts/_partials/motifspec/back-link.html +2 -2
- package/layouts/_partials/motifspec/body-end.html +5 -5
- package/layouts/_partials/motifspec/body-start.html +5 -5
- package/layouts/_partials/motifspec/figure.html +14 -14
- package/layouts/_partials/motifspec/filed-under.html +5 -5
- package/layouts/_partials/motifspec/h2s.html +7 -7
- package/layouts/_partials/motifspec/head.html +15 -15
- package/layouts/_partials/motifspec/pagination-entries.html +34 -34
- package/layouts/_partials/motifspec/pagination-pages.html +30 -30
- package/layouts/_partials/motifspec/post-list-item.html +15 -15
- package/layouts/_partials/motifspec/project-card.html +23 -23
- package/layouts/_partials/motifspec/section-heading.html +3 -3
- package/layouts/_partials/motifspec/site-header.html +27 -27
- package/layouts/_partials/motifspec/table-of-contents.html +21 -21
- package/layouts/_partials/motifspec/tag-filter.html +22 -22
- package/layouts/_partials/motifspec/tags.html +8 -8
- package/layouts/_partials/motifspec/tokens.html +9 -9
- package/package.json +68 -68
- package/scripts/check.mjs +153 -153
- package/scripts/lib.mjs +176 -176
- package/tokens/README.md +3 -3
- package/tokens/border.json +63 -63
- package/tokens/color.json +1902 -1902
- package/tokens/motion.json +207 -207
- package/tokens/radius.json +53 -53
- package/tokens/size.json +378 -378
- package/tokens/space.json +289 -289
- package/tokens/typography.json +859 -859
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
{{- /* project-card.md. Context: dict "page" "level" (the heading level that fits the page outline).
|
|
2
|
-
The thumbnail is the hero, cropped to 16:10. A case study whose hero is a line drawing can give `thumb`, an
|
|
3
|
-
SVG of the same drawing whose strokes stay one screen pixel wide: a raster line drawing shrunk to card size blurs
|
|
4
|
-
its lines to uneven weights. */ -}}
|
|
5
|
-
{{- $p := .page -}}
|
|
6
|
-
{{- $h := .level | default 3 -}}
|
|
7
|
-
{{- $hero := $p.Resources.Get $p.Params.hero.src -}}
|
|
8
|
-
{{- $svg := cond (isset $p.Params "thumb") ($p.Resources.Get $p.Params.thumb) nil -}}
|
|
9
|
-
<article class="cx-card">
|
|
10
|
-
<div class="cx-card__media">
|
|
11
|
-
{{- with $svg }}
|
|
12
|
-
<img src="{{ .RelPermalink }}" alt="" width="1600" height="1000" loading="lazy" decoding="async">
|
|
13
|
-
{{- else }}{{ with $hero }}{{ $thumb := .Process "fill 640x400 Center webp" }}{{ $thumb2 := .Process "fill 1280x800 Center webp" }}
|
|
14
|
-
<img src="{{ $thumb.RelPermalink }}" srcset="{{ $thumb.RelPermalink }} {{ $thumb.Width }}w, {{ $thumb2.RelPermalink }} {{ $thumb2.Width }}w" alt="" width="{{ $thumb.Width }}" height="{{ $thumb.Height }}" loading="lazy" decoding="async">
|
|
15
|
-
{{- end }}{{ end }}
|
|
16
|
-
</div>
|
|
17
|
-
<div class="cx-card__body">
|
|
18
|
-
<p class="cx-id"><span class="cx-id__no">{{ $p.Params.accession }}</span><span>{{ $p.Date.Format "2006" }}</span>{{ partial "motifspec/accession/status.html" $p.Params.status }}</p>
|
|
19
|
-
<h{{ $h }} class="cx-card__title"><a class="cx-card__link" href="{{ $p.RelPermalink }}">{{ $p.Title }}</a></h{{ $h }}>
|
|
20
|
-
<p class="cx-card__summary">{{ $p.Summary | plainify }}</p>
|
|
21
|
-
{{- partial "motifspec/tags.html" (dict "page" $p "max" 3) }}
|
|
22
|
-
</div>
|
|
23
|
-
</article>
|
|
1
|
+
{{- /* project-card.md. Context: dict "page" "level" (the heading level that fits the page outline).
|
|
2
|
+
The thumbnail is the hero, cropped to 16:10. A case study whose hero is a line drawing can give `thumb`, an
|
|
3
|
+
SVG of the same drawing whose strokes stay one screen pixel wide: a raster line drawing shrunk to card size blurs
|
|
4
|
+
its lines to uneven weights. */ -}}
|
|
5
|
+
{{- $p := .page -}}
|
|
6
|
+
{{- $h := .level | default 3 -}}
|
|
7
|
+
{{- $hero := $p.Resources.Get $p.Params.hero.src -}}
|
|
8
|
+
{{- $svg := cond (isset $p.Params "thumb") ($p.Resources.Get $p.Params.thumb) nil -}}
|
|
9
|
+
<article class="cx-card">
|
|
10
|
+
<div class="cx-card__media">
|
|
11
|
+
{{- with $svg }}
|
|
12
|
+
<img src="{{ .RelPermalink }}" alt="" width="1600" height="1000" loading="lazy" decoding="async">
|
|
13
|
+
{{- else }}{{ with $hero }}{{ $thumb := .Process "fill 640x400 Center webp" }}{{ $thumb2 := .Process "fill 1280x800 Center webp" }}
|
|
14
|
+
<img src="{{ $thumb.RelPermalink }}" srcset="{{ $thumb.RelPermalink }} {{ $thumb.Width }}w, {{ $thumb2.RelPermalink }} {{ $thumb2.Width }}w" alt="" width="{{ $thumb.Width }}" height="{{ $thumb.Height }}" loading="lazy" decoding="async">
|
|
15
|
+
{{- end }}{{ end }}
|
|
16
|
+
</div>
|
|
17
|
+
<div class="cx-card__body">
|
|
18
|
+
<p class="cx-id"><span class="cx-id__no">{{ $p.Params.accession }}</span><span>{{ $p.Date.Format "2006" }}</span>{{ partial "motifspec/accession/status.html" $p.Params.status }}</p>
|
|
19
|
+
<h{{ $h }} class="cx-card__title"><a class="cx-card__link" href="{{ $p.RelPermalink }}">{{ $p.Title }}</a></h{{ $h }}>
|
|
20
|
+
<p class="cx-card__summary">{{ $p.Summary | plainify }}</p>
|
|
21
|
+
{{- partial "motifspec/tags.html" (dict "page" $p "max" 3) }}
|
|
22
|
+
</div>
|
|
23
|
+
</article>
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
{{- /* heading-anchor.md, page-section form: the <section> carries the id and is labelled by the title text,
|
|
2
|
-
so the label excludes the anchor. Context: dict "id" "title". */ -}}
|
|
3
|
-
<h2><span id="{{ .id }}-title">{{ .title }}</span> <a class="cx-anchor" href="#{{ .id }}" aria-label="Link to {{ .title }}">#</a></h2>
|
|
1
|
+
{{- /* heading-anchor.md, page-section form: the <section> carries the id and is labelled by the title text,
|
|
2
|
+
so the label excludes the anchor. Context: dict "id" "title". */ -}}
|
|
3
|
+
<h2><span id="{{ .id }}-title">{{ .title }}</span> <a class="cx-anchor" href="#{{ .id }}" aria-label="Link to {{ .title }}">#</a></h2>
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
{{- /* site-header.md. A child page marks its section (a post marks Writing). The backdrop pause control ships hidden;
|
|
2
|
-
dist/plate.js reveals it when the backdrop starts to drift. */ -}}
|
|
3
|
-
<header class="cx-header" id="top">
|
|
4
|
-
<div class="cx-container cx-header__inner">
|
|
5
|
-
<a class="cx-wordmark" href="{{ site.Home.RelPermalink }}">{{ site.Title }} <span class="cx-wordmark__role">{{ site.Params.role }}</span></a>
|
|
6
|
-
<div class="cx-header__end">
|
|
7
|
-
<nav class="cx-nav" aria-label="Main">
|
|
8
|
-
<ul>
|
|
9
|
-
{{- range site.Menus.main }}
|
|
10
|
-
<li><a href="{{ .URL }}"{{ if eq $.Section .Identifier }} aria-current="page"{{ end }}>{{ .Name }}</a></li>
|
|
11
|
-
{{- end }}
|
|
12
|
-
</ul>
|
|
13
|
-
</nav>
|
|
14
|
-
<label class="cx-backdrop__pause" hidden>
|
|
15
|
-
<input class="cx-visually-hidden" type="checkbox" aria-label="Pause background animation">
|
|
16
|
-
<svg class="cx-icon" data-when="running" aria-hidden="true" focusable="false"><use href="#cx-icon-pause"></use></svg>
|
|
17
|
-
<svg class="cx-icon" data-when="paused" aria-hidden="true" focusable="false"><use href="#cx-icon-play"></use></svg>
|
|
18
|
-
<span class="cx-tooltip" aria-hidden="true"><span data-when="running">Pause background</span><span data-when="paused">Play background</span></span>
|
|
19
|
-
</label>
|
|
20
|
-
<button class="cx-theme-toggle" type="button" data-theme-toggle hidden aria-label="Switch to dark theme">
|
|
21
|
-
<svg class="cx-icon" data-icon="to-dark" aria-hidden="true" focusable="false"><use href="#cx-icon-theme-dark"></use></svg>
|
|
22
|
-
<svg class="cx-icon" data-icon="to-light" aria-hidden="true" focusable="false"><use href="#cx-icon-theme-light"></use></svg>
|
|
23
|
-
<span class="cx-tooltip" aria-hidden="true">Switch to dark theme</span>
|
|
24
|
-
</button>
|
|
25
|
-
</div>
|
|
26
|
-
</div>
|
|
27
|
-
</header>
|
|
1
|
+
{{- /* site-header.md. A child page marks its section (a post marks Writing). The backdrop pause control ships hidden;
|
|
2
|
+
dist/plate.js reveals it when the backdrop starts to drift. */ -}}
|
|
3
|
+
<header class="cx-header" id="top">
|
|
4
|
+
<div class="cx-container cx-header__inner">
|
|
5
|
+
<a class="cx-wordmark" href="{{ site.Home.RelPermalink }}">{{ site.Title }} <span class="cx-wordmark__role">{{ site.Params.role }}</span></a>
|
|
6
|
+
<div class="cx-header__end">
|
|
7
|
+
<nav class="cx-nav" aria-label="Main">
|
|
8
|
+
<ul>
|
|
9
|
+
{{- range site.Menus.main }}
|
|
10
|
+
<li><a href="{{ .URL }}"{{ if eq $.Section .Identifier }} aria-current="page"{{ end }}>{{ .Name }}</a></li>
|
|
11
|
+
{{- end }}
|
|
12
|
+
</ul>
|
|
13
|
+
</nav>
|
|
14
|
+
<label class="cx-backdrop__pause" hidden>
|
|
15
|
+
<input class="cx-visually-hidden" type="checkbox" aria-label="Pause background animation">
|
|
16
|
+
<svg class="cx-icon" data-when="running" aria-hidden="true" focusable="false"><use href="#cx-icon-pause"></use></svg>
|
|
17
|
+
<svg class="cx-icon" data-when="paused" aria-hidden="true" focusable="false"><use href="#cx-icon-play"></use></svg>
|
|
18
|
+
<span class="cx-tooltip" aria-hidden="true"><span data-when="running">Pause background</span><span data-when="paused">Play background</span></span>
|
|
19
|
+
</label>
|
|
20
|
+
<button class="cx-theme-toggle" type="button" data-theme-toggle hidden aria-label="Switch to dark theme">
|
|
21
|
+
<svg class="cx-icon" data-icon="to-dark" aria-hidden="true" focusable="false"><use href="#cx-icon-theme-dark"></use></svg>
|
|
22
|
+
<svg class="cx-icon" data-icon="to-light" aria-hidden="true" focusable="false"><use href="#cx-icon-theme-light"></use></svg>
|
|
23
|
+
<span class="cx-tooltip" aria-hidden="true">Switch to dark theme</span>
|
|
24
|
+
</button>
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
</header>
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
{{- /* table-of-contents.md: numbered h2 entries with one nested level of h3. Ships <details open>, so it works
|
|
2
|
-
without script; codex.js docks it and marks the current section. Context: a page. */ -}}
|
|
3
|
-
{{- $h2s := partial "motifspec/h2s.html" . -}}
|
|
4
|
-
<nav class="cx-toc" aria-labelledby="toc-title">
|
|
5
|
-
<details open>
|
|
6
|
-
<summary id="toc-title">On this page<svg class="cx-icon cx-icon--sm cx-toc__chevron" aria-hidden="true" focusable="false"><use href="#cx-icon-expand"></use></svg></summary>
|
|
7
|
-
<ol>
|
|
8
|
-
{{- range $i, $h := $h2s }}
|
|
9
|
-
<li><a href="#{{ $h.ID }}"><span class="cx-toc__no">{{ printf "%02d" (add $i 1) }}</span>{{ $h.Title | plainify | htmlUnescape }}</a>
|
|
10
|
-
{{- with $h.Headings }}
|
|
11
|
-
<ol>
|
|
12
|
-
{{- range $j, $h3 := . }}
|
|
13
|
-
<li><a href="#{{ $h3.ID }}"><span class="cx-toc__no">{{ add $i 1 }}.{{ add $j 1 }}</span>{{ $h3.Title | plainify | htmlUnescape }}</a></li>
|
|
14
|
-
{{- end }}
|
|
15
|
-
</ol>
|
|
16
|
-
{{- end }}
|
|
17
|
-
</li>
|
|
18
|
-
{{- end }}
|
|
19
|
-
</ol>
|
|
20
|
-
</details>
|
|
21
|
-
</nav>
|
|
1
|
+
{{- /* table-of-contents.md: numbered h2 entries with one nested level of h3. Ships <details open>, so it works
|
|
2
|
+
without script; codex.js docks it and marks the current section. Context: a page. */ -}}
|
|
3
|
+
{{- $h2s := partial "motifspec/h2s.html" . -}}
|
|
4
|
+
<nav class="cx-toc" aria-labelledby="toc-title">
|
|
5
|
+
<details open>
|
|
6
|
+
<summary id="toc-title">On this page<svg class="cx-icon cx-icon--sm cx-toc__chevron" aria-hidden="true" focusable="false"><use href="#cx-icon-expand"></use></svg></summary>
|
|
7
|
+
<ol>
|
|
8
|
+
{{- range $i, $h := $h2s }}
|
|
9
|
+
<li><a href="#{{ $h.ID }}"><span class="cx-toc__no">{{ printf "%02d" (add $i 1) }}</span>{{ $h.Title | plainify | htmlUnescape }}</a>
|
|
10
|
+
{{- with $h.Headings }}
|
|
11
|
+
<ol>
|
|
12
|
+
{{- range $j, $h3 := . }}
|
|
13
|
+
<li><a href="#{{ $h3.ID }}"><span class="cx-toc__no">{{ add $i 1 }}.{{ add $j 1 }}</span>{{ $h3.Title | plainify | htmlUnescape }}</a></li>
|
|
14
|
+
{{- end }}
|
|
15
|
+
</ol>
|
|
16
|
+
{{- end }}
|
|
17
|
+
</li>
|
|
18
|
+
{{- end }}
|
|
19
|
+
</ol>
|
|
20
|
+
</details>
|
|
21
|
+
</nav>
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
{{- /* tag.md as a filter. A static site filters with links: each tag opens its term page (/tags/{term}/),
|
|
2
|
-
which lists the matching entries; the current tag carries aria-current. Works without JavaScript and
|
|
3
|
-
every filter state has its own URL. Context: dict "section" ("" for every collection) "current" (term page or nil). */ -}}
|
|
4
|
-
{{- $section := .section -}}
|
|
5
|
-
{{- $current := .current -}}
|
|
6
|
-
{{- $terms := slice -}}
|
|
7
|
-
{{- range site.Taxonomies.tags.ByCount -}}
|
|
8
|
-
{{- $n := len (cond (eq $section "") .Pages (where .Pages "Section" $section)) -}}
|
|
9
|
-
{{- if $n }}{{ $terms = $terms | append (dict "page" .Page "count" $n) }}{{ end -}}
|
|
10
|
-
{{- end -}}
|
|
11
|
-
{{- with $terms }}
|
|
12
|
-
<nav aria-label="Filter by tag">
|
|
13
|
-
<ul class="cx-tags">
|
|
14
|
-
{{- with $section }}{{ with site.GetPage (printf "/%s" .) }}
|
|
15
|
-
<li><a class="cx-tag" href="{{ .RelPermalink }}"{{ if not $current }} aria-current="page"{{ end }}>all<span class="cx-tag__count">{{ len .RegularPages }}</span></a></li>
|
|
16
|
-
{{- end }}{{ end }}
|
|
17
|
-
{{- range . }}
|
|
18
|
-
<li><a class="cx-tag" href="{{ .page.RelPermalink }}"{{ if and $current (eq $current.RelPermalink .page.RelPermalink) }} aria-current="page"{{ end }}>{{ .page.Data.Term }}<span class="cx-tag__count">{{ .count }}</span></a></li>
|
|
19
|
-
{{- end }}
|
|
20
|
-
</ul>
|
|
21
|
-
</nav>
|
|
22
|
-
{{- end -}}
|
|
1
|
+
{{- /* tag.md as a filter. A static site filters with links: each tag opens its term page (/tags/{term}/),
|
|
2
|
+
which lists the matching entries; the current tag carries aria-current. Works without JavaScript and
|
|
3
|
+
every filter state has its own URL. Context: dict "section" ("" for every collection) "current" (term page or nil). */ -}}
|
|
4
|
+
{{- $section := .section -}}
|
|
5
|
+
{{- $current := .current -}}
|
|
6
|
+
{{- $terms := slice -}}
|
|
7
|
+
{{- range site.Taxonomies.tags.ByCount -}}
|
|
8
|
+
{{- $n := len (cond (eq $section "") .Pages (where .Pages "Section" $section)) -}}
|
|
9
|
+
{{- if $n }}{{ $terms = $terms | append (dict "page" .Page "count" $n) }}{{ end -}}
|
|
10
|
+
{{- end -}}
|
|
11
|
+
{{- with $terms }}
|
|
12
|
+
<nav aria-label="Filter by tag">
|
|
13
|
+
<ul class="cx-tags">
|
|
14
|
+
{{- with $section }}{{ with site.GetPage (printf "/%s" .) }}
|
|
15
|
+
<li><a class="cx-tag" href="{{ .RelPermalink }}"{{ if not $current }} aria-current="page"{{ end }}>all<span class="cx-tag__count">{{ len .RegularPages }}</span></a></li>
|
|
16
|
+
{{- end }}{{ end }}
|
|
17
|
+
{{- range . }}
|
|
18
|
+
<li><a class="cx-tag" href="{{ .page.RelPermalink }}"{{ if and $current (eq $current.RelPermalink .page.RelPermalink) }} aria-current="page"{{ end }}>{{ .page.Data.Term }}<span class="cx-tag__count">{{ .count }}</span></a></li>
|
|
19
|
+
{{- end }}
|
|
20
|
+
</ul>
|
|
21
|
+
</nav>
|
|
22
|
+
{{- end -}}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
{{- /* tag.md on cards, rows and post footers. Context: dict "page" "max". */ -}}
|
|
2
|
-
{{- with .page.GetTerms "tags" }}
|
|
3
|
-
<ul class="cx-tags">
|
|
4
|
-
{{- range first ($.max | default 5) . }}
|
|
5
|
-
<li><a class="cx-tag" href="{{ .RelPermalink }}">{{ .Data.Term }}</a></li>
|
|
6
|
-
{{- end }}
|
|
7
|
-
</ul>
|
|
8
|
-
{{- end -}}
|
|
1
|
+
{{- /* tag.md on cards, rows and post footers. Context: dict "page" "max". */ -}}
|
|
2
|
+
{{- with .page.GetTerms "tags" }}
|
|
3
|
+
<ul class="cx-tags">
|
|
4
|
+
{{- range first ($.max | default 5) . }}
|
|
5
|
+
<li><a class="cx-tag" href="{{ .RelPermalink }}">{{ .Data.Term }}</a></li>
|
|
6
|
+
{{- end }}
|
|
7
|
+
</ul>
|
|
8
|
+
{{- end -}}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
{{- /* The pinned MotifSpec tokens (dist/tokens.json) as a map from token name to its entry, so templates read
|
|
2
|
-
values from the system instead of repeating them. Call with partialCached. */ -}}
|
|
3
|
-
{{- $map := dict -}}
|
|
4
|
-
{{- with resources.Get "motifspec/tokens.json" -}}
|
|
5
|
-
{{- range (. | transform.Unmarshal).tokens }}{{ $map = merge $map (dict .name .) }}{{ end -}}
|
|
6
|
-
{{- else -}}
|
|
7
|
-
{{- errorf "motifspec/tokens.json is missing: is the MotifSpec module imported?" -}}
|
|
8
|
-
{{- end -}}
|
|
9
|
-
{{- return $map -}}
|
|
1
|
+
{{- /* The pinned MotifSpec tokens (dist/tokens.json) as a map from token name to its entry, so templates read
|
|
2
|
+
values from the system instead of repeating them. Call with partialCached. */ -}}
|
|
3
|
+
{{- $map := dict -}}
|
|
4
|
+
{{- with resources.Get "motifspec/tokens.json" -}}
|
|
5
|
+
{{- range (. | transform.Unmarshal).tokens }}{{ $map = merge $map (dict .name .) }}{{ end -}}
|
|
6
|
+
{{- else -}}
|
|
7
|
+
{{- errorf "motifspec/tokens.json is missing: is the MotifSpec module imported?" -}}
|
|
8
|
+
{{- end -}}
|
|
9
|
+
{{- return $map -}}
|
package/package.json
CHANGED
|
@@ -1,68 +1,68 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@aitrien/motifspec",
|
|
3
|
-
"version": "1.13.
|
|
4
|
-
"description": "Liam Marshall's design system: DTCG tokens, component rules, generated CSS, Hugo templates and a rule checker.",
|
|
5
|
-
"keywords": [
|
|
6
|
-
"design-system",
|
|
7
|
-
"design-tokens",
|
|
8
|
-
"dtcg",
|
|
9
|
-
"css",
|
|
10
|
-
"hugo"
|
|
11
|
-
],
|
|
12
|
-
"homepage": "https://github.com/Aitrien/motifspec#readme",
|
|
13
|
-
"bugs": "https://github.com/Aitrien/motifspec/issues",
|
|
14
|
-
"type": "module",
|
|
15
|
-
"license": "MIT",
|
|
16
|
-
"repository": {
|
|
17
|
-
"type": "git",
|
|
18
|
-
"url": "git+https://github.com/
|
|
19
|
-
},
|
|
20
|
-
"changelog": "https://github.com/Aitrien/motifspec/blob/main/CHANGELOG.md",
|
|
21
|
-
"publishConfig": {
|
|
22
|
-
"access": "public"
|
|
23
|
-
},
|
|
24
|
-
"files": [
|
|
25
|
-
"dist",
|
|
26
|
-
"!dist/showcase.html",
|
|
27
|
-
"!dist/showcase.standalone.html",
|
|
28
|
-
"tokens",
|
|
29
|
-
"docs",
|
|
30
|
-
"fonts",
|
|
31
|
-
"icons",
|
|
32
|
-
"layouts",
|
|
33
|
-
"scripts/check.mjs",
|
|
34
|
-
"scripts/lib.mjs",
|
|
35
|
-
"CHANGELOG.md"
|
|
36
|
-
],
|
|
37
|
-
"bin": {
|
|
38
|
-
"motifspec-check": "scripts/check.mjs"
|
|
39
|
-
},
|
|
40
|
-
"exports": {
|
|
41
|
-
"./codex.css": "./dist/codex.css",
|
|
42
|
-
"./tokens.css": "./dist/tokens.css",
|
|
43
|
-
"./fonts.css": "./dist/fonts.css",
|
|
44
|
-
"./chroma.css": "./dist/chroma.css",
|
|
45
|
-
"./codex.js": "./dist/codex.js",
|
|
46
|
-
"./theme-init.js": "./dist/theme-init.js",
|
|
47
|
-
"./plate.js": "./dist/plate.js",
|
|
48
|
-
"./plate.html": "./dist/plate.html",
|
|
49
|
-
"./backdrop.html": "./dist/backdrop.html",
|
|
50
|
-
"./icons.svg": "./dist/icons.svg",
|
|
51
|
-
"./tokens.js": "./dist/tokens.js",
|
|
52
|
-
"./tokens.json": "./dist/tokens.json",
|
|
53
|
-
"./check": "./scripts/check.mjs",
|
|
54
|
-
"./fonts/*": "./fonts/*",
|
|
55
|
-
"./package.json": "./package.json"
|
|
56
|
-
},
|
|
57
|
-
"scripts": {
|
|
58
|
-
"validate": "node scripts/validate.mjs",
|
|
59
|
-
"build": "node scripts/validate.mjs && node scripts/build.mjs",
|
|
60
|
-
"audit": "node scripts/audit.mjs",
|
|
61
|
-
"check": "node scripts/check.mjs",
|
|
62
|
-
"release:check": "node scripts/release.mjs",
|
|
63
|
-
"pack:check": "node scripts/pack-check.mjs"
|
|
64
|
-
},
|
|
65
|
-
"engines": {
|
|
66
|
-
"node": ">=20"
|
|
67
|
-
}
|
|
68
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@aitrien/motifspec",
|
|
3
|
+
"version": "1.13.2",
|
|
4
|
+
"description": "Liam Marshall's design system: DTCG tokens, component rules, generated CSS, Hugo templates and a rule checker.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"design-system",
|
|
7
|
+
"design-tokens",
|
|
8
|
+
"dtcg",
|
|
9
|
+
"css",
|
|
10
|
+
"hugo"
|
|
11
|
+
],
|
|
12
|
+
"homepage": "https://github.com/Aitrien/motifspec#readme",
|
|
13
|
+
"bugs": "https://github.com/Aitrien/motifspec/issues",
|
|
14
|
+
"type": "module",
|
|
15
|
+
"license": "MIT",
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "git+https://github.com/Aitrien/motifspec.git"
|
|
19
|
+
},
|
|
20
|
+
"changelog": "https://github.com/Aitrien/motifspec/blob/main/CHANGELOG.md",
|
|
21
|
+
"publishConfig": {
|
|
22
|
+
"access": "public"
|
|
23
|
+
},
|
|
24
|
+
"files": [
|
|
25
|
+
"dist",
|
|
26
|
+
"!dist/showcase.html",
|
|
27
|
+
"!dist/showcase.standalone.html",
|
|
28
|
+
"tokens",
|
|
29
|
+
"docs",
|
|
30
|
+
"fonts",
|
|
31
|
+
"icons",
|
|
32
|
+
"layouts",
|
|
33
|
+
"scripts/check.mjs",
|
|
34
|
+
"scripts/lib.mjs",
|
|
35
|
+
"CHANGELOG.md"
|
|
36
|
+
],
|
|
37
|
+
"bin": {
|
|
38
|
+
"motifspec-check": "scripts/check.mjs"
|
|
39
|
+
},
|
|
40
|
+
"exports": {
|
|
41
|
+
"./codex.css": "./dist/codex.css",
|
|
42
|
+
"./tokens.css": "./dist/tokens.css",
|
|
43
|
+
"./fonts.css": "./dist/fonts.css",
|
|
44
|
+
"./chroma.css": "./dist/chroma.css",
|
|
45
|
+
"./codex.js": "./dist/codex.js",
|
|
46
|
+
"./theme-init.js": "./dist/theme-init.js",
|
|
47
|
+
"./plate.js": "./dist/plate.js",
|
|
48
|
+
"./plate.html": "./dist/plate.html",
|
|
49
|
+
"./backdrop.html": "./dist/backdrop.html",
|
|
50
|
+
"./icons.svg": "./dist/icons.svg",
|
|
51
|
+
"./tokens.js": "./dist/tokens.js",
|
|
52
|
+
"./tokens.json": "./dist/tokens.json",
|
|
53
|
+
"./check": "./scripts/check.mjs",
|
|
54
|
+
"./fonts/*": "./fonts/*",
|
|
55
|
+
"./package.json": "./package.json"
|
|
56
|
+
},
|
|
57
|
+
"scripts": {
|
|
58
|
+
"validate": "node scripts/validate.mjs",
|
|
59
|
+
"build": "node scripts/validate.mjs && node scripts/build.mjs",
|
|
60
|
+
"audit": "node scripts/audit.mjs",
|
|
61
|
+
"check": "node scripts/check.mjs",
|
|
62
|
+
"release:check": "node scripts/release.mjs",
|
|
63
|
+
"pack:check": "node scripts/pack-check.mjs"
|
|
64
|
+
},
|
|
65
|
+
"engines": {
|
|
66
|
+
"node": ">=20"
|
|
67
|
+
}
|
|
68
|
+
}
|