@openelement/create 1.0.0-alpha.12 → 1.0.0-alpha.14

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/README.md CHANGED
@@ -12,9 +12,9 @@ Docs and guides: <https://openelement.org>.
12
12
 
13
13
  `@openelement/create` generates a new openElement project from ONE template —
14
14
  the showcase starter: a static-first landing page with two islands, a fully
15
- static About page, an `/api/ping` server route, and a pure-CSS design-token
16
- sheet (no Tailwind, no template variants). The generated project is a plain
17
- Node/pnpm project.
15
+ static About page, an `/api/ping` server route, and a Tailwind-ON design-token
16
+ sheet (the `@theme` role table; one template, no variants). The generated
17
+ project is a plain Node/pnpm project.
18
18
 
19
19
  ## Usage (1.0 Alpha)
20
20
 
@@ -45,18 +45,19 @@ npx @openelement/create my-app --no-install --no-git -t showcase
45
45
  resolves to `@scope/create` at the scope's default dist-tag — with no tag in
46
46
  the command, that is `latest`, which the 1.0 line rides — so the canonical
47
47
  spelling names no tag, and npm runs this package's generator. The version a
48
- versionless install resolves is registered in
49
- `the tracked release-state manifest` (currently `1.0.0-alpha.11`, a new baseline —
50
- not a 0.x upgrade, with no migration path from 0.x). Pin that exact version
51
- when reproducibility matters (verify against the live registry with
52
- `npm view @openelement/create dist-tags`):
48
+ versionless install resolves is registry truth: read it from the live registry
49
+ (`npm view @openelement/create dist-tags`), and from the framework's tracked
50
+ release-state manifest, which records the version each dist-tag was last
51
+ verified to serve. The 1.0 line is a new baseline — not a 0.x upgrade, with no
52
+ migration path from 0.x. Pin an exact version when reproducibility matters:
53
53
 
54
54
  ```bash
55
- npm create @openelement@1.0.0-alpha.11 my-app
55
+ npm create @openelement@1.0.0-alpha.13 my-app
56
56
  ```
57
57
 
58
- The generated starter pins the exact `@openelement/*` versions it was built
59
- from in its `package.json` dependencies.
58
+ The generated starter depends on `@openelement/*` through caret ranges over
59
+ the release it was generated from, so `pnpm update` picks up later `1.0.0`
60
+ prereleases without a manifest edit.
60
61
 
61
62
  The canonical install command is exported from `@openelement/create/install-command` (one builder, every documented copy derives from it).
62
63
 
@@ -99,8 +100,10 @@ npm create @openelement@0.43 my-app
99
100
 
100
101
  ## What It Creates
101
102
 
102
- - `package.json` - starter dependencies (exact `@openelement/*` release pins)
103
- and the lifecycle scripts (`dev`/`check`/`test`/`build`/`start`/`preview`)
103
+ - `package.json` - starter dependencies (`@openelement/*` with caret ranges
104
+ over the generated-from release)
105
+ and the lifecycle scripts (`dev`/`check`/`test`/`build`/`start`; `build` and
106
+ `start` run the `openelement` bin from `@openelement/router`)
104
107
  - `tsconfig.json` - the type-check surface for `pnpm check`: JSX authoring
105
108
  through the element import source, whole-`app/` coverage
106
109
  - `vite.config.ts` - Vite build configuration only; framework options still
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openelement/create",
3
- "version": "1.0.0-alpha.12",
3
+ "version": "1.0.0-alpha.14",
4
4
  "type": "module",
5
5
  "main": "./src/cli.js",
6
6
  "types": "./src/cli.d.ts",
package/src/cli.js CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env node
2
+ import { CREATE_VERSION } from "./version.js";
2
3
  import { buildTemplates, resolveVersions, validateProjectName } from "./template-builder.js";
3
4
  import { createInstallCommand } from "./install-command.js";
4
5
  import { detectPackageManager } from "./pm.js";
@@ -173,11 +174,19 @@ function initGitRepository(targetDir, relativeTarget) {
173
174
  }
174
175
  console.info(" initialized git repository (with .gitignore)");
175
176
  }
176
- /** The boxed end-of-run handoff: where to go, what to run, where to read. */
177
+ /**
178
+ * The boxed end-of-run handoff: where to go, what to run, where to read, and
179
+ * which generator version produced the scaffold. The version line is load
180
+ * bearing: a cached `npm exec` / `npx` run resolves whatever copy it first
181
+ * downloaded, so the box is the one place a stale generator announces itself
182
+ * (#1634). The framework's packed-starter qualification asserts the line on
183
+ * the packed artifact.
184
+ */
177
185
  function printHandoff(relativeTarget, pm, startRequested) {
178
186
  const devCommand = pm ? `${pm} run dev` : "pnpm run dev";
179
187
  const lines = [
180
188
  "openElement project ready",
189
+ `(@openelement/create ${CREATE_VERSION})`,
181
190
  "",
182
191
  `cd ${relativeTarget}`,
183
192
  `${devCommand} # start the dev server`,
@@ -40,6 +40,7 @@ const TEMPLATE_FILES = [
40
40
  ["package.json.tmpl", "package.json"],
41
41
  ["tsconfig.json.tmpl", "tsconfig.json"],
42
42
  ["vite.config.ts.tmpl", "vite.config.ts"],
43
+ ["pnpm-workspace.yaml.tmpl", "pnpm-workspace.yaml"],
43
44
  ["openelement.config.ts.tmpl", "openelement.config.ts"],
44
45
  ["app/styles/theme.css", "app/styles/theme.css"],
45
46
  ["app/styles/recipes.css", "app/styles/recipes.css"],
@@ -59,7 +60,8 @@ const TEMPLATE_FILES = [
59
60
  ["app/islands/my-counter.tsx.tmpl", "app/islands/my-counter.tsx"],
60
61
  ["app/islands/my-counter.css", "app/islands/my-counter.css"],
61
62
  ["app/islands/live-timer.tsx.tmpl", "app/islands/live-timer.tsx"],
62
- ["app/islands/live-timer.css", "app/islands/live-timer.css"]
63
+ ["app/islands/live-timer.css", "app/islands/live-timer.css"],
64
+ ["app/islands/app-shell.tsx.tmpl", "app/islands/app-shell.tsx"]
63
65
  ];
64
66
  function versionTokens(v) {
65
67
  return {
package/src/version.js CHANGED
@@ -1,6 +1,6 @@
1
1
  //#region src/version.ts
2
2
  /** The published CLI version, embedded so packed npm installs are self-contained. */
3
- const CREATE_VERSION = "1.0.0-alpha.12";
3
+ const CREATE_VERSION = "1.0.0-alpha.14";
4
4
  /**
5
5
  * The Vite release pinned into the generated starter's package.json (the
6
6
  * `${v.vite}` scaffold token in the npm/pnpm starter). Embedded for the same
@@ -15,19 +15,20 @@ root holds the build's internal state (head-convention bookkeeping and build
15
15
  plans). `pnpm dev` and `pnpm build` write it as needed; the `.gitignore`
16
16
  excludes it and deleting it is safe — the next run recreates it.
17
17
 
18
- This starter pins the exact `@openelement/element` and `@openelement/router`
19
- versions it was generated from in `package.json`; update both there when
20
- moving to a new release.
18
+ The `@openelement/element` and `@openelement/router` dependencies carry caret
19
+ ranges over the `1.0.0` release this starter was generated from, so
20
+ `pnpm update` picks up later `1.0.0` prereleases (and the final `1.0.0`)
21
+ without editing this file.
21
22
 
22
23
  ## The JS cost map
23
24
 
24
- | Surface | Ships JavaScript? | Why |
25
- | --- | --- | --- |
26
- | `/` hero + architecture sections | no | prerendered markup, styled with CSS |
27
- | `/` counter island (`my-counter`) | yes, hydrates on idle | the one interactive piece |
28
- | `/` live timer island (`live-timer`) | yes, client-only | a live clock has nothing to prerender |
29
- | `/about` | no islands at all | fully static SSG output |
30
- | `/api/ping` | no (server) | a plain `Request → Response` handler |
25
+ | Surface | Ships JavaScript? | Why |
26
+ | ------------------------------------ | --------------------- | ------------------------------------- |
27
+ | `/` hero + architecture sections | no | prerendered markup, styled with CSS |
28
+ | `/` counter island (`my-counter`) | yes, hydrates on idle | the one interactive piece |
29
+ | `/` live timer island (`live-timer`) | yes, client-only | a live clock has nothing to prerender |
30
+ | `/about` | no islands at all | fully static SSG output |
31
+ | `/api/ping` | no (server) | a plain `Request → Response` handler |
31
32
 
32
33
  The badge classes (`badge-static`, `badge-island`) live in
33
34
  `app/components/badges.css` — copy them onto new sections and keep the
@@ -47,12 +48,13 @@ Framework options have exactly one home: `openelement.config.ts`. It is
47
48
  optional and nearly empty — every option it omits comes from a file
48
49
  convention:
49
50
 
50
- | Option | Convention |
51
- | --- | --- |
52
- | design tokens | `app/styles/theme.css` (the @theme role sheet) |
53
- | document head content | `app/head.tsx` (meta tags, preloads, inline CSS) |
54
- | site title | the `name` field of `package.json` |
55
- | static-shape recipes | `app/styles/recipes.css` (zero-interaction badge/callout/card/tabs shapes as plain HTML+CSS — the @openelement/ui components retired to these recipes in #1557) |
51
+ | Option | Convention |
52
+ | --------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
53
+ | design tokens | `app/styles/theme.css` (the @theme role sheet) |
54
+ | app shell | `app/islands/app-shell.tsx` (the shared site chrome every page renders inside) |
55
+ | document head content | `app/head.tsx` (meta tags, preloads, inline CSS) |
56
+ | site title | the `name` field of `package.json` |
57
+ | static-shape recipes | `app/styles/recipes.css` (zero-interaction badge/callout/card/tabs shapes as plain HTML+CSS — the @openelement/ui components retired to these recipes in #1557) |
56
58
 
57
59
  Passing framework options inline to `openElement()` while the config file
58
60
  carries options is a hard error, and an unknown key fails the build with the
@@ -67,7 +69,16 @@ accepted-key list. `vite.config.ts` stays Vite-only: `plugins: [...openElement()
67
69
  array them in `static styles`, sharing `site-chrome.css`/`badges.css`).
68
70
  - `app/islands/` — client islands, the only code that ships JavaScript. Each
69
71
  island declares its hydration strategy (`idle`, `load`, `visible`,
70
- client-only) through `defineIslandConfig`.
72
+ client-only) through `defineIslandConfig`. The directory also hosts
73
+ `app-shell.tsx` — not an island itself, but the auto-registered application
74
+ shell (see below).
75
+ - `app/islands/app-shell.tsx` — the site chrome every page renders inside:
76
+ the header, the `main` content region, and the footer live here exactly
77
+ once instead of being copied onto each page. The build registers the shell
78
+ automatically and projects each page's render into its default slot, so a
79
+ page module carries only its own content. The shell is a convention: delete
80
+ the file and pages still render (carrying their own chrome again), or opt
81
+ out explicitly with `appShell: false` in `openelement.config.ts`.
71
82
  - `app/styles/theme.css` — the @theme role sheet: Tailwind-ON roles, the starter palette aliases, dark and forced-colors pairs. Dev serves it directly; the build compiles it through the router's Tailwind preset.
72
83
  Dark values ride `prefers-color-scheme`; no theme runtime.
73
84
  - `app/styles/recipes.css` — documented plain HTML+CSS recipes for the
@@ -78,24 +89,41 @@ accepted-key list. `vite.config.ts` stays Vite-only: `plugins: [...openElement()
78
89
 
79
90
  ## Scripts
80
91
 
81
- - `pnpm dev` — start the Vite dev server.
82
- - `pnpm check` — type-check every route/component file. The check covers the
83
- whole `app/` directory (`tsconfig.json`), so new files are picked up
84
- automatically.
92
+ The starter runs on the Vite+ toolchain (`vite-plus`, the `vp` command):
93
+
94
+ - `pnpm dev` — start the dev server (`vp dev`).
95
+ - `pnpm fmt` — format the sources (`vp fmt`).
96
+ - `pnpm lint` — lint the sources (`vp lint`).
97
+ - `pnpm typecheck` — type-check every route/component file (`tsc --noEmit`).
98
+ The check covers the whole `app/` directory (`tsconfig.json`), so new files
99
+ are picked up automatically.
85
100
  - `pnpm test` — run Node's built-in test runner (the starter ships none).
86
- - `pnpm build` — production build (SSG + Nitro server) into `dist/`.
101
+ - `pnpm build` — production build into `dist/`: prerendered HTML for every
102
+ static route, plus the request-time server when the app has one.
87
103
  - `pnpm start` — serve the production build.
88
- - `pnpm preview` — static-only preview of the SSG output.
104
+
105
+ `build` and `start` run the router CLI's short `oe` bin from the
106
+ `@openelement/router` dependency (`oe build` / `oe start`; the same entry is
107
+ installed as `openelement`, so both spellings work). The CLI also carries a
108
+ static-only `oe start --mode=preview`, which refuses a build that has a
109
+ request-time server.
110
+
111
+ The Vite tree itself is catalog-managed: `pnpm-workspace.yaml` points `vite`
112
+ at the Vite+ core (`@voidzero-dev/vite-plus-core`) through a catalog entry
113
+ and a `vite@*` override, so every peer that asks for vite resolves the same
114
+ Vite+ build — there is no direct `vite` devDependency to pin.
89
115
 
90
116
  ## Styling ownership
91
117
 
92
118
  Global design tokens and the document baseline (`body`, `::selection`) live
93
- in `app/styles/theme.css`. Pages use light roots and own their rules in
94
- `static styles`, arrayed from imported `.css` files (#1558 — the one style
95
- authoring form): the server inlines each page's sheets into the SSR output as
96
- a `@scope(<page-tag>)` style block, so pages are fully styled with zero
97
- client JavaScript. Islands carry their own `.css` sheets the same way; in
98
- island chunks those ride the style-asset protocol as real `.css` assets.
119
+ in `app/styles/theme.css`. The app shell owns the shared chrome sheet
120
+ (`app/components/site-chrome.css`), arrayed in its `static styles`. Pages use
121
+ light roots and own their rules in `static styles`, arrayed from imported
122
+ `.css` files (#1558 — the one style authoring form): the server inlines each
123
+ page's sheets into the SSR output as a `@scope(<page-tag>)` style block, so
124
+ pages are fully styled with zero client JavaScript. Islands carry their own
125
+ `.css` sheets the same way; in island chunks those ride the style-asset
126
+ protocol as real `.css` assets.
99
127
 
100
128
  ## Brand assets
101
129
 
@@ -105,13 +133,25 @@ unused.
105
133
 
106
134
  ## Dependency notes
107
135
 
108
- `@hono/vite-dev-server` is installed even though no source file imports it:
109
- the Vite dev server needs it, and it is loaded lazily, so `build`/`start`
110
- never resolve it. `hono` rides along because the dev server's own node
111
- adapter declares it a peer. The generated server entry itself imports no
136
+ `@openelement/element` and `@openelement/router` are the runtime dependencies
137
+ your app imports. Everything else rides devDependencies: `vite-plus` (the
138
+ `vp` toolchain the scripts run through; the Vite tree itself resolves through
139
+ the `pnpm-workspace.yaml` catalog), the Tailwind-ON build-time pins, the
140
+ dev-server pair — `@hono/vite-dev-server` (loaded lazily by the dev server)
141
+ and its `hono` peer — and the `typescript` pin. None of them resolve under a
142
+ production install: `npm install --omit=dev` in a production image installs
143
+ only the runtime pair. The generated server entry itself imports no
112
144
  HTTP framework — it composes on the internal WinterCG layer (#1560); `hono`
113
145
  is an optional peer of `@openelement/router`, and `@openelement/router/hono`
114
146
  (`createHonoAdapter`) is the one opt-in if you ever want to mount the built
115
147
  handler inside your own Hono app. For Nitro deployments, the built handler
116
148
  bridges through the `@openelement/router/nitro-mount` subpath of the one
117
149
  `@openelement/router` dependency. Do not remove them.
150
+
151
+ `pnpm-workspace.yaml` ships with the scaffold and is pnpm's own bookkeeping:
152
+ it carries the Vite+ catalog and override pair, and `minimumReleaseAge` — the
153
+ supply-chain window that withholds freshly published versions — with the
154
+ exemptions this project starts with (the `@openelement` packages at the
155
+ version it was generated from, plus `vite-plus`). pnpm rewrites the file when
156
+ you approve more packages inside that window; keep it and review the
157
+ exemptions it lists.
@@ -1,5 +1,24 @@
1
-
2
- .badge { display: inline-flex; align-items: center; gap: 0.4em; padding: 0.2rem 0.65rem; border-radius: 999px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; border: 1px solid var(--line); color: var(--ink-soft); background: var(--surface); }
3
- .badge-static { border-color: color-mix(in srgb, var(--ok) 35%, transparent); color: var(--ok); background: color-mix(in srgb, var(--ok) 8%, transparent); }
4
- .badge-island { border-color: color-mix(in srgb, var(--brand) 40%, transparent); color: var(--brand); background: var(--brand-soft); }
5
-
1
+ .badge {
2
+ display: inline-flex;
3
+ align-items: center;
4
+ gap: 0.4em;
5
+ padding: 0.2rem 0.65rem;
6
+ border-radius: 999px;
7
+ font-size: 0.72rem;
8
+ font-weight: 600;
9
+ letter-spacing: 0.04em;
10
+ text-transform: uppercase;
11
+ border: 1px solid var(--line);
12
+ color: var(--ink-soft);
13
+ background: var(--surface);
14
+ }
15
+ .badge-static {
16
+ border-color: color-mix(in srgb, var(--ok) 35%, transparent);
17
+ color: var(--ok);
18
+ background: color-mix(in srgb, var(--ok) 8%, transparent);
19
+ }
20
+ .badge-island {
21
+ border-color: color-mix(in srgb, var(--brand) 40%, transparent);
22
+ color: var(--brand);
23
+ background: var(--brand-soft);
24
+ }
@@ -1,7 +1,21 @@
1
-
2
- :host { display: block; }
3
- h1 { font-size: 2.4rem; letter-spacing: -0.02em; margin: 0.75rem 0 0.5rem; font-weight: 700; }
4
- p { color: var(--ink-soft); line-height: 1.6; }
5
- a { color: var(--brand); font-weight: 600; text-decoration: none; }
6
- a:hover { text-decoration: underline; }
7
-
1
+ :host {
2
+ display: block;
3
+ }
4
+ h1 {
5
+ font-size: 2.4rem;
6
+ letter-spacing: -0.02em;
7
+ margin: 0.75rem 0 0.5rem;
8
+ font-weight: 700;
9
+ }
10
+ p {
11
+ color: var(--ink-soft);
12
+ line-height: 1.6;
13
+ }
14
+ a {
15
+ color: var(--brand);
16
+ font-weight: 600;
17
+ text-decoration: none;
18
+ }
19
+ a:hover {
20
+ text-decoration: underline;
21
+ }
@@ -1,46 +1,27 @@
1
1
  /**
2
2
  * Styled 404 page element (#923): the request-time server renders this page
3
- * with a 404 status for unmatched paths; SSG builds also emit it as static
4
- * 404.html. The path-derived tag is 'el-404'. Light root: the page owns its
5
- * rules via `static styles` (the imported .css sheets), inlined into SSR as
6
- * @scope(el-404). The site chrome sheet (./site-chrome.css) is shared
3
+ * with a 404 status for unmatched paths; a build with no request-time route
4
+ * prerenders the route (see ./../routes/404.tsx) to dist/404.html instead.
5
+ * The path-derived tag is 'el-404'. Light root: the page owns its rules via
6
+ * `static styles` (the imported .css sheets), inlined into SSR as
7
+ * @scope(el-404). Like every page it renders inside the app shell
8
+ * (app/islands/app-shell.tsx), which owns the header and footer.
7
9
  */
8
- import { element, OpenElement } from '@openelement/element';
9
- import notFoundPageStyles from './page-404.css';
10
- import siteChromeStyles from './site-chrome.css';
10
+ import { element, OpenElement } from "@openelement/element";
11
+ import notFoundPageStyles from "./page-404.css";
11
12
 
12
- @element('el-404', { root: 'light' })
13
+ @element("el-404", { root: "light" })
13
14
  export default class NotFoundPage extends OpenElement {
14
- static override styles = [notFoundPageStyles, siteChromeStyles];
15
+ static override styles = [notFoundPageStyles];
15
16
 
16
17
  render() {
17
18
  return (
18
- <div class='page-body'>
19
- <header class='site-head'>
20
- <div class='bar'>
21
- <a class='site-brand' href='/'>
22
- openElement
23
- </a>
24
- <nav>
25
- <a href='/'>Home</a>
26
- <a href='/about'>About</a>
27
- <a href='/api/ping'>API</a>
28
- </nav>
29
- </div>
30
- </header>
31
- <main>
32
- <h1>404</h1>
33
- <p>The page you are looking for does not exist.</p>
34
- <p>
35
- <a href='/'>Back to the homepage</a>
36
- </p>
37
- </main>
38
- <footer class='site-foot'>
39
- <div class='bar'>
40
- <span>Generated by @openelement/create.</span>
41
- <a href='https://openelement.org'>openelement.org</a>
42
- </div>
43
- </footer>
19
+ <div class="page-content">
20
+ <h1>404</h1>
21
+ <p>The page you are looking for does not exist.</p>
22
+ <p>
23
+ <a href="/">Back to the homepage</a>
24
+ </p>
44
25
  </div>
45
26
  );
46
27
  }
@@ -1,15 +1,72 @@
1
-
2
- :host { display: block; }
3
- .eyebrow { color: var(--brand); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; margin: 0; }
4
- h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); line-height: 1.15; letter-spacing: -0.02em; margin: 0.75rem 0 1rem; font-weight: 700; }
5
- .lede { font-size: 1.08rem; color: var(--ink-soft); max-width: 58ch; margin: 0 0 2rem; }
6
- h2 { font-size: 1.25rem; letter-spacing: -0.01em; margin: 2.25rem 0 0.6rem; }
7
- p { margin: 0.6rem 0; max-width: 62ch; }
8
- p code, li code { font-family: var(--font-mono); font-size: 0.85em; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; padding: 0.08em 0.35em; }
9
- .conventions { list-style: none; margin: 1rem 0 0; padding: 0; border-top: 1px solid var(--line); }
10
- .conventions li { display: flex; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
11
- .conventions code { font-family: var(--font-mono); font-size: 0.85rem; color: var(--brand); min-width: 15rem; }
12
- .conventions span { color: var(--ink-soft); font-size: 0.92rem; }
13
- a { color: var(--brand); text-decoration: none; }
14
- a:hover { text-decoration: underline; }
15
-
1
+ :host {
2
+ display: block;
3
+ }
4
+ .eyebrow {
5
+ color: var(--brand);
6
+ font-weight: 600;
7
+ font-size: 0.78rem;
8
+ letter-spacing: 0.14em;
9
+ text-transform: uppercase;
10
+ margin: 0;
11
+ }
12
+ h1 {
13
+ font-size: clamp(1.9rem, 5vw, 2.6rem);
14
+ line-height: 1.15;
15
+ letter-spacing: -0.02em;
16
+ margin: 0.75rem 0 1rem;
17
+ font-weight: 700;
18
+ }
19
+ .lede {
20
+ font-size: 1.08rem;
21
+ color: var(--ink-soft);
22
+ max-width: 58ch;
23
+ margin: 0 0 2rem;
24
+ }
25
+ h2 {
26
+ font-size: 1.25rem;
27
+ letter-spacing: -0.01em;
28
+ margin: 2.25rem 0 0.6rem;
29
+ }
30
+ p {
31
+ margin: 0.6rem 0;
32
+ max-width: 62ch;
33
+ }
34
+ p code,
35
+ li code {
36
+ font-family: var(--font-mono);
37
+ font-size: 0.85em;
38
+ background: var(--surface);
39
+ border: 1px solid var(--line);
40
+ border-radius: 5px;
41
+ padding: 0.08em 0.35em;
42
+ }
43
+ .conventions {
44
+ list-style: none;
45
+ margin: 1rem 0 0;
46
+ padding: 0;
47
+ border-top: 1px solid var(--line);
48
+ }
49
+ .conventions li {
50
+ display: flex;
51
+ gap: 1rem;
52
+ padding: 0.7rem 0;
53
+ border-bottom: 1px solid var(--line);
54
+ flex-wrap: wrap;
55
+ }
56
+ .conventions code {
57
+ font-family: var(--font-mono);
58
+ font-size: 0.85rem;
59
+ color: var(--brand);
60
+ min-width: 15rem;
61
+ }
62
+ .conventions span {
63
+ color: var(--ink-soft);
64
+ font-size: 0.92rem;
65
+ }
66
+ a {
67
+ color: var(--brand);
68
+ text-decoration: none;
69
+ }
70
+ a:hover {
71
+ text-decoration: underline;
72
+ }