Skip to content

armgit / bento

Public Imported from GitHub
0

Bento, the office suite that fits in a file

spaces: selectable page designs (author picks, reader's theme picks the palette) (#559)

nyblnet9feb51b4c325
diff --git a/docs/DECISIONS.md b/docs/DECISIONS.md
index ac014511..1f635b00 100644
--- a/docs/DECISIONS.md
+++ b/docs/DECISIONS.md
@@ -9375,3 +9375,141 @@ block. Block `html` still goes through `sanitizeInline` in the importer.
`![[Page]]`/`![[Page#Section]]`, GFM footnotes, `:::columns`/`:::hero`/`:::card`):
the syntax is fixed in `docs/spaces-agents.md` so the branches that ship them
agree with each other and with this importer.
+
+## 2026-09-26 — bento/spaces: the author picks the design; the reader's theme picks its palette
+
+**The maintainer's ruling, and what it replaces.** Designs are selectable in the
+document. The author picks the design; the reader's light/dark setting picks
+between that design's two palettes; the app chrome stays the reader's. This
+reverses the second half of the 2026-08-22 entry ("bento/spaces goes dark, and
+its reading column goes with it"), which concluded:
+
+> So in spaces the reading surface IS chrome and it follows the reader.
+
+That was the right call while the column had nothing of the author's to show —
+`doc.theme`'s colours were painted only by the thumbnail. It is superseded now
+that a design exists. What survives from it: the theme is still a viewer
+preference and never document data, the three-state light/dark rule, and dark
+being `@media screen` so paper is light. `kernel/src/theme.ts` already said "the
+document does not invert… a slide's background is document data the author
+chose"; spaces now joins slides there.
+
+**Format (additive).** `doc.design`: a built-in name or a key of `doc.designs`.
+ABSENT is the default look, and returning to the default DELETES the key
+(`designs.ts setDesign`), so a space that tried a design and went back is
+byte-identical to one that never did. An unknown name renders the default,
+round-trips untouched, and `validate()` reports `unknown-design`. Document-wide
+for now; the resolver takes a name rather than reading a fixed field, so a
+later `Page.design` resolves through the same function and overrides it
+without a format change.
+
+**A design is data, not a stylesheet** (the maintainer's follow-up: designs are
+an open set, built-in and custom). Two palettes of thirteen colour roles, four
+font roles, and a closed set of switches (`designs.ts PROPS`). ONE base
+stylesheet, `spaces/src/designs.css`, reads the custom properties and data
+attributes `applyDesign()` writes onto the reading surface (`.sp-main`, and the
+print root). Every rule is keyed under `[data-sp-design]` or a `data-sd-*`
+attribute, which is what makes "no design" the untouched stylesheet — the model
+rig parses the file and asserts it. Adding a built-in is a data entry. Switches
+added so far: `headStyle headCase label labelInk h2 dropCap callout quote table
+numerals check tile shadow justify divider bullet`, plus the metrics
+`size leading titleSize titleWeight titleTracking titleLeading headWeight radius
+rule`.
+
+**Six built-ins**, each from a publishing tradition and differing in structure,
+not palette: Ledger (the financial report / Swiss grid), Almanac (the literary
+quarterly), Studio (the Bento mark as layout grammar — the tile), Broadsheet
+(the newspaper), Typescript (the manuscript / RFC), Riso (the risograph zine).
+Almanac's accent is #b07800 rather than the prototype's #c98a0b: the drop cap
+and a done box are marks that carry meaning, and #c98a0b measured 2.56:1 on its
+paper.
+
+**Custom designs are tier 1 and the whole story: token-only.** `doc.designs`
+holds overrides on a built-in base. Every value is VALIDATED, never sanitized:
+a colour must be `#rgb`/`#rrggbb`, a font a name from `FONT_STACKS` or
+`asset:<key>` naming a `data:font/…` asset, a switch one of its words, a number
+inside its range. A failure is dropped to the base's value and named by
+`validate()`. No author text becomes CSS: stacks are the module's own strings,
+an embedded face gets a family name derived from its asset key and is loaded
+through the FontFace API (no `@font-face` text), and attribute values are
+PROPS words. A doc-local name that is also a built-in's shadows nothing.
+
+**Raw author CSS does not ship.** Deliberately not built, and the security
+review of the same day kept it that way: a stylesheet in a mailed file can
+fetch (tracking) and can overlay Save or the password gate. Revisiting it means
+its own field, its own sanitizer and its own review — never `designs.ts`, whose
+guarantee is that nothing in it is free text.
+
+**No design may hide text** (security review, finding 3: `design`/`designs` are
+ordinary CRDT registers, so any writer in a live space can restyle every
+reader's page — accepted, because a writer can already edit the words). The
+floors, stated in the validator: text, secondary text and accent text on paper,
+text on wells, text on the accent and on the tile all ≥ 4.5:1; a tile cell
+against the ink chosen for it ≥ 4.5:1; a FILLED callout's ink over the fill mix
+≥ 4.5:1 (a teal fork measured 4.27:1 in dark before this floor); size ≥ 0.85,
+line spacing ≥ 1.3, title ≥ 1.4em. There is no display, visibility or opacity
+switch, and the only generated `content` is constant decoration. A custom value
+that breaks a floor falls back; an ink the author did not set is re-chosen for
+a ground they did, so a dark accent is kept rather than refused.
+
+**Tone is meaning.** The first cut had a `tones: accent` switch that gave all
+five callout tones the design's one colour; Studio, Almanac and Typescript drew
+five identical boxes, the Note reading "the blue one" in coral. Measured in
+pixels, one distinct fill or label ink out of five in each. The switch is gone:
+the five tones are palette roles (`toneNote … toneCaution`) that every design
+names in its own register, and the validator holds them pairwise apart as
+PAINTED — the fill for a filled callout, the hue (rule, start bar, shadow)
+otherwise — at an sRGB distance of at least 24; a custom design that collapses
+them gets its base's five back. Measured after: five distinct fills or tone
+edges and five distinct label inks in every design and mode where the style
+colours them.
+
+**Consent stays chrome** (finding 1). The remote-content gate sits inside the
+column, so it reads the CHROME's tokens (captured at `:root` as `--sp-app-*`
+before any surface re-points them) and its own type. Measured in pixels with
+the design tokens overwritten to ink = paper: the gate stays 12.59:1 light and
+11.5:1 dark, identical to an honest design.
+
+**Nothing of a design goes into a `<style>` that reaches the shell** (finding
+2). The static preview draws the design — a thumbnail is the document's face —
+in its LIGHT palette, as inline styles written through `style.setProperty`, so
+the CSSOM re-parses every value; the preview's `<style>` holds only its fixed
+sheet. A custom design carrying `</style><script>` in its label, a colour, a
+font and two switches saved to a shell that passed `shell-gate.mjs` and ran
+nothing on reopen.
+
+**Markdown.** The export opens with `design: <name>`, plus a one-line
+`designs: {…}` JSON (valid YAML flow syntax, so no YAML parser) when the design
+is the space's own. Front matter holding only those keys is consumed on
+import; any other front matter keeps the old rule and is kept verbatim. An
+import adopts the design only into a space that has none.
+
+**Fonts: system stacks ship; the real faces are measured, not chosen.** Zero
+font bytes in this change. The intended faces, latin-subset woff2, cheapest of
+variable vs the minimum static weights: Ledger 137,504 B (Schibsted Grotesk
+variable 97,024 + JetBrains Mono variable 40,480); Almanac 271,072 B (Fraunces
+variable 149,092 + Source Serif 4 statics 121,980 — its variable file is
+252,108); Studio 76,868 B (Bricolage Grotesque variable). Total 485,444 B,
+about 647 KB as base64 — 2.4× today's whole 271,810 B shell. Broadsheet,
+Typescript and Riso were drawn for faces machines already have. The options,
+for the maintainer: every face in every shell (+~650 KB each); system stacks
+only (this change); or the author drops a font file in, which lands as an
+asset in that one document (built — Customise → Add a font file).
+
+**Open for security, not settled here.** An embedded face can remap glyphs, so
+a writer could make displayed text differ from stored text. It gives a writer
+nothing they cannot do by editing, but display and data diverging is a new
+shape; the consent gate is pinned to the system stack either way.
+
+**Guarded.** `scripts/test-spaces-model.ts` (design section, 1057 checks in
+all) and `scripts/test-spaces-roundtrip.ts` (Markdown front matter). Sabotaged
+and seen to fail, each at its own assertion: an unscoped rule in designs.css;
+every built-in resolving to Ledger; an unknown name resolving to something; the
+unknown-design finding removed; `design` stripped at load; the importer
+ignoring `design:`; the default writing `design: undefined`; the hex check
+removed; the contrast floors removed; the five tones collapsed to the accent in every
+built-in; the custom-design tone check removed; the surface no longer mapping
+the tone roles.
+
+**Cost.** Shell 271,810 → 300,835 B (+29,025, 10.7%); about 12 KB of it is 115
+new UI strings in nine languages.
diff --git a/docs/spaces-agents.md b/docs/spaces-agents.md
index ac8ce27a..d825c52b 100644
--- a/docs/spaces-agents.md
+++ b/docs/spaces-agents.md
@@ -52,6 +52,42 @@ document into the empty block.
}
```
+### Designs
+
+`"design": "almanac"` sets how the pages look. Leave it **out** for the default
+look — never write `""` or `null`. Built-ins: `ledger`, `almanac`, `studio`,
+`broadsheet`, `typescript`, `riso`. The author picks the design; each reader's
+light/dark setting picks between the design's two palettes. An unknown name
+renders the default look, is kept, and `validate()` reports `unknown-design`.
+
+A space can carry its own design in `"designs"`, as overrides on a built-in:
+
+```jsonc
+"design": "harbour",
+"designs": { "harbour": {
+ "label": "Harbour", "base": "almanac",
+ "light": { "accent": "#0f6e63", "paper": "#f3f1ea" }, // #rgb or #rrggbb only
+ "dark": { "accent": "#4fc2b1" },
+ "fonts": { "body": "news", "display": "asset:<key>" }, // a name, or an embedded font
+ "props": { "callout": "fill", "quote": "bar", "radius": 4 }
+} }
+```
+
+**Every value is validated, never interpreted.** Colours must be hex; `fonts`
+take a name (`system grotesk humanist condensed transitional oldstyle news mono
+typewriter rounded`) or `asset:<key>` naming a `data:font/…` asset; `props`
+take the words and ranges listed in `spaces/src/designs.ts` `PROPS`. Palette
+roles: `paper ink muted rule soft accent accentInk onAccent tile tileInk cell1
+cell2 cell3 toneNote toneTip toneImportant toneWarning toneCaution` (the five
+callout tones must stay distinct — `design-contrast` if they collapse). A value that fails is dropped to the base design's and reported as
+`bad-design-value`; a colour that would put text under 4.5:1 is dropped as
+`design-contrast`. There is no free CSS anywhere in a design. A name that is
+also a built-in's is never used (`design-shadows-builtin`).
+
+The Markdown export opens with the design as front matter —
+`design: harbour` plus a one-line `designs: {…}` JSON for a carried design —
+and importing that file into a space with no design adopts it.
+
**Both arrays are flat and in pre-order; nesting is a `parent` field.** A child
always follows its parent, which is what lets one forward pass rebuild the
tree. Do not nest arrays inside arrays.
diff --git a/scripts/test-spaces-model.ts b/scripts/test-spaces-model.ts
index 644b0988..fb71dd13 100644
--- a/scripts/test-spaces-model.ts
+++ b/scripts/test-spaces-model.ts
@@ -3910,6 +3910,220 @@ function fsTable(f: string): string {
}
+// ---- page designs (DECISIONS 2026-09-26) ----------------------------------
+// The author picks the design; the reader's theme picks between its two
+// palettes. A design is DATA — palettes, font names, switch words, numbers —
+// and one base stylesheet (designs.css) reads it. What must never break:
+// no `design` renders today's CSS untouched; each name selects its own
+// tokens; an unknown name falls back, round-trips and is named; returning to
+// the default deletes the key; and no author text ever becomes CSS.
+{
+ const D = await import('../spaces/src/designs.ts')
+ const { validateDoc } = await import('../spaces/src/agent.ts')
+ const { orphanAssets } = await import('../spaces/src/assets.ts')
+ const fsd = await import('node:fs')
+ const rdd = (f: string) => fsd.readFileSync(new URL(`../spaces/src/${f}`, import.meta.url), 'utf8')
+ const css = rdd('designs.css')
+ const base = (): SpacesDoc => {
+ const r = parseDoc(JSON.stringify({ format: FORMAT, version: 1, docId: 'dsg-doc', title: 'D', pages: [{ id: 'p1', title: 'P', blocks: [{ id: 'b1', type: 'p', html: 'hi' }] }] }))
+ if (!r.ok) throw new Error('fixture')
+ return r.doc
+ }
+
+ // ABSENT = TODAY. Nothing resolves, and nothing in designs.css can match a
+ // surface that carries no design attribute: every rule is keyed under one,
+ // except the :root block that only CAPTURES the chrome's own tokens.
+ const plain = base()
+ ok(D.resolveDesign(plain) === null, 'no `design` key resolves to no design (the untouched stylesheet)')
+ ok(!Object.hasOwn(plain, 'design'), 'a document without a design gains no key by being loaded')
+ const flat = css.replace(/\/\*[\s\S]*?\*\//g, '')
+ const selectors: string[] = []
+ for (const m of flat.matchAll(/([^{}]+)\{/g)) {
+ const s = m[1].trim()
+ if (!s || s.startsWith('@')) continue
+ // split at TOP-LEVEL commas only: `:is(a, b)` is one selector
+ let depth = 0, cur = ''
+ for (const ch of s) {
+ if (ch === '(') depth++
+ if (ch === ')') depth--
+ if (ch === ',' && depth === 0) { selectors.push(cur.trim()); cur = '' } else cur += ch
+ }
+ selectors.push(cur.trim())
+ }
+ const unscoped = selectors.filter((s) => !/\[data-sp-design\]|\[data-sd-[a-z0-9]+="[a-z0-9]+"\]/.test(s) && s !== ':root')
+ ok(selectors.length > 60 && unscoped.length === 0,
+ `every designs.css selector is scoped to a designed surface (${selectors.length} selectors; unscoped: ${unscoped.join(' | ') || 'none'})`)
+ const rootBlocks = [...flat.matchAll(/(^|\})\s*:root\s*\{([^}]*)\}/g)].map((m) => m[2])
+ ok(rootBlocks.length === 1 && rootBlocks[0].split(';').filter((d) => d.trim()).every((d) => /^\s*--sp-app-[a-z0-9-]+:\s*var\(--[a-z0-9-]+\)\s*$/.test(d)),
+ 'the one unscoped :root block only captures chrome tokens (--sp-app-* = var(--…)) and styles nothing')
+ // The key as main had it before designs (footnotes, templates, the journal
+ // template): a document with no design must key EXACTLY that, byte for byte.
+ const docKeyOld = JSON.stringify([plain.title, plain.home, plain.pages, plain.footnotes, plain.templates, plain.journalTemplate])
+ ok(docContentKey(plain) === docKeyOld, 'a document with no design keys for recovery exactly as it did before designs existed')
+ {
+ const withNotes = base()
+ ;(withNotes as { footnotes?: Record<string, string> }).footnotes = { a: 'n' }
+ ;(withNotes as { journalTemplate?: string }).journalTemplate = 't1'
+ const k0 = docContentKey(withNotes)
+ D.setDesign(withNotes, 'almanac')
+ const k1 = docContentKey(withNotes)
+ ok(k1 !== k0 && JSON.parse(k1).length === 8 && JSON.parse(k1)[3].a === 'n' && JSON.parse(k1)[5] === 't1',
+ 'choosing a design changes the content key, and footnotes and the journal template stay in it beside the design')
+ ;(withNotes as { designs?: unknown }).designs = { mine: { base: 'ledger' } }
+ ok(docContentKey(withNotes) !== k1, 'a custom design is content too')
+ D.setDesign(withNotes, null)
+ delete (withNotes as { designs?: unknown }).designs
+ ok(docContentKey(withNotes) === k0, 'returning to the default keys exactly as before the design was chosen')
+ // ONE return: a merge seam that leaves two makes the second dead code
+ const msrc = rdd('model.ts')
+ const fnBody = msrc.slice(msrc.indexOf('export function docContentKey'), msrc.indexOf('\n}\n', msrc.indexOf('export function docContentKey')))
+ const returns = fnBody.split('\n').filter((l) => /^\s*return\b/.test(l))
+ ok(returns.length === 1, `docContentKey has exactly ONE return statement (found ${returns.length})`)
+ }
+
+ // EACH NAME SELECTS ITS OWN SHEET: its name on the surface, its own tokens,
+ // and a CSS rule for every switch value it uses that differs from today.
+ const sigs = new Set<string>()
+ for (const name of D.BUILT_IN_NAMES) {
+ const doc = base()
+ D.setDesign(doc, name)
+ const r = D.resolveDesign(doc)
+ const st = r && D.designStyle(r)
+ ok(!!st && st.attrs['data-sp-design'] === name && r!.design === D.BUILT_INS[name], `design "${name}" resolves to its own entry and stamps data-sp-design="${name}"`)
+ if (st) sigs.add(JSON.stringify([st.attrs, st.vars]))
+ }
+ ok(sigs.size === D.BUILT_IN_NAMES.length, `the ${D.BUILT_IN_NAMES.length} built-ins put ${sigs.size} distinct token sets on the surface`)
+ ok(D.BUILT_IN_NAMES.length >= 6, 'six built-ins ship: ledger, almanac, studio, broadsheet, typescript, riso')
+ for (const k of D.PROP_KEYS) {
+ const rule = D.PROPS[k] as { kind: string; values?: readonly string[] }
+ if (rule.kind !== 'enum') { ok(css.includes(`var(--d-${k.replace(/[A-Z]/g, (c) => '-' + c.toLowerCase())})`), `designs.css reads the metric --d-${k}`); continue }
+ for (const v of rule.values!) {
+ if (v === D.PLAIN.props[k]) continue
+ ok(css.includes(`[data-sd-${k.toLowerCase()}="${v}"]`), `switch ${k}="${v}" has a rule in designs.css (a word with no rule is a switch that does nothing)`)
+ }
+ }
+ for (const k of D.PALETTE_KEYS) {
+ const v = `--dl-${k.replace(/[A-Z]/g, (c) => '-' + c.toLowerCase())}`
+ ok(css.includes(`var(${v})`) && css.includes(`var(${v.replace('--dl-', '--dd-')})`), `palette role ${k} is read in both palettes`)
+ }
+ const darkBlocks = [...css.matchAll(/:root:not\(\[data-theme="light"\]\) \[data-sp-design\] \{([^}]*)\}|:root\[data-theme="dark"\] \[data-sp-design\] \{([^}]*)\}/g)].map((m) => (m[1] ?? m[2]).trim())
+ ok(darkBlocks.length === 2 && darkBlocks[0] === darkBlocks[1], 'the two dark mappings (OS dark, reader chose dark) are byte-identical')
+ ok(/@media screen and \(prefers-color-scheme: dark\)/.test(css) && /@media screen \{\s*:root\[data-theme="dark"\]/.test(css),
+ 'both dark mappings are @media screen, so print gets the light palette')
+
+ // UNKNOWN FALLS BACK, ROUND-TRIPS, AND IS NAMED
+ const unk = base()
+ ;(unk as { design?: string }).design = 'nonesuch'
+ ok(D.resolveDesign(unk) === null, 'an unknown design name renders the default look')
+ const back = parseDoc(JSON.stringify(unk))
+ ok(back.ok && (back.doc as { design?: string }).design === 'nonesuch', 'an unknown design name survives a load/save round trip untouched')
+ ok(validateDoc(unk).findings.some((f) => f.code === 'unknown-design' && f.path === 'design'), 'validate() names an unknown design')
+ ok(validateDoc(plain).findings.every((f) => !/design/.test(f.code)), 'validate() says nothing about a document with no design')
+ const shadow = base()
+ ;(shadow as { designs?: unknown }).designs = { ledger: { base: 'studio' } }
+ D.setDesign(shadow, 'ledger')
+ ok(D.resolveDesign(shadow)?.design === D.BUILT_INS.ledger && validateDoc(shadow).findings.some((f) => f.code === 'design-shadows-builtin'),
+ 'a doc-local design named like a built-in shadows nothing, and validate() says so')
+
+ // THE DEFAULT DELETES THE KEY
+ const dd = base()
+ D.setDesign(dd, 'almanac')
+ D.setDesign(dd, null)
+ ok(!Object.hasOwn(dd, 'design') && JSON.stringify(dd) === JSON.stringify(base()), 'returning to the default deletes `design` — byte-identical to never having chosen')
+ ok(/setDesign\(store\.doc, name\)/.test(rdd('designpanel.ts')) && /store\.commit\(\(\) => setDesign/.test(rdd('designpanel.ts')),
+ 'the picker writes through setDesign inside ONE store.commit (one undo step)')
+
+ // CUSTOM DESIGNS: validated, not sanitized
+ const hostile = '</style><script>alert(1)</script>'
+ const cd = base()
+ ;(cd as { designs?: unknown }).designs = { mine: {
+ base: 'ledger', label: 'Mine',
+ light: { accent: hostile, paper: '#fffdf8', ink: 'red' },
+ fonts: { body: hostile, display: 'news', mono: 'asset:nope' },
+ props: { callout: hostile, radius: 999, size: 0.1, quote: 'pull', leading: '1.5' },
+ } }
+ D.setDesign(cd, 'mine')
+ const rc = D.resolveDesign(cd)!
+ ok(rc.custom && rc.design.light.accent === D.BUILT_INS.ledger.light.accent && rc.design.light.ink === D.BUILT_INS.ledger.light.ink,
+ 'a colour that is not #rgb/#rrggbb falls back to the base design (hostile string, named colour)')
+ ok(rc.design.light.paper === '#fffdf8' && rc.design.fonts.display === 'news' && rc.design.props.quote === 'pull', 'the valid values of the same custom design are used')
+ ok(rc.design.fonts.body === D.BUILT_INS.ledger.fonts.body && rc.design.fonts.mono === D.BUILT_INS.ledger.fonts.mono, 'a font that is neither a listed name nor an embedded font asset falls back')
+ ok(rc.design.props.callout === D.BUILT_INS.ledger.props.callout && rc.design.props.radius === 0 && rc.design.props.size === 1 && rc.design.props.leading === D.BUILT_INS.ledger.props.leading,
+ 'a switch outside its words, or a number outside its range (or not a number), falls back')
+ const st = D.designStyle(rc)
+ const every = [...Object.values(st.attrs), ...Object.values(st.vars), ...D.previewRules(rc).flatMap(([s, d]) => [s, ...Object.values(d)])]
+ ok(every.length > 60 && every.every((v) => !/[<>{};\\]/.test(v)),
+ 'nothing a design puts on a surface or into the preview can carry "<", "{" or "}" — a hostile value never reaches CSS text')
+ const vf = validateDoc(cd).findings.filter((f) => f.code === 'bad-design-value').map((f) => f.path)
+ for (const p of ['designs.mine.light.accent', 'designs.mine.light.ink', 'designs.mine.fonts.body', 'designs.mine.fonts.mono', 'designs.mine.props.callout', 'designs.mine.props.radius', 'designs.mine.props.size', 'designs.mine.props.leading']) {
+ ok(vf.includes(p), `validate() names the dropped value at ${p}`)
+ }
+ ok(!/<script/i.test(JSON.stringify(D.previewRules(rc))), 'the preview rules of a hostile design hold no script text')
+
+ // FLOORS: no design may hide text
+ for (const [name, d] of Object.entries({ plain: D.PLAIN, ...D.BUILT_INS })) {
+ for (const mode of ['light', 'dark'] as const) {
+ const low = D.CONTRAST_FLOORS.filter(([f, b, m]) => D.contrast(d[mode][f], d[mode][b]) < m)
+ ok(low.length === 0, `${name} ${mode} clears every contrast floor${low.length ? ` (fails ${low.map(([f, b]) => f + '/' + b).join(', ')})` : ''}`)
+ }
+ }
+ const hide = base()
+ ;(hide as { designs?: unknown }).designs = { ghost: { light: { ink: '#ffffff', paper: '#ffffff', muted: '#fefefe' }, dark: { ink: '#14181e' } } }
+ D.setDesign(hide, 'ghost')
+ const rh = D.resolveDesign(hide)!
+ ok(D.contrast(rh.design.light.ink, rh.design.light.paper) >= 4.5 && D.contrast(rh.design.light.muted, rh.design.light.paper) >= 4.5 && D.contrast(rh.design.dark.ink, rh.design.dark.paper) >= 4.5,
+ 'a palette that sets text equal to its ground is pulled back over the 4.5:1 floor')
+ ok(validateDoc(hide).findings.some((f) => f.code === 'design-contrast'), 'validate() names a colour dropped for contrast')
+ const fillFork = base()
+ ;(fillFork as { designs?: unknown }).designs = { teal: { base: 'almanac', dark: { accent: '#4fc2b1' }, props: { callout: 'fill' } } }
+ D.setDesign(fillFork, 'teal')
+ const rf = D.resolveDesign(fillFork)!
+ const fillOk = (p: { ink: string; paper: string; accent: string }) => D.contrast(p.ink, D.mixHex(p.accent, p.paper, D.FILL_MIX)) >= 4.5
+ ok(fillOk(rf.design.light) && fillOk(rf.design.dark), 'a filled callout keeps its ink over 4.5:1 on the fill (the dark teal fork measured 4.27 before this floor)')
+ ok(css.includes(`${D.FILL_MIX * 100}%, var(--bg))`), 'designs.css fills a callout with the same FILL_MIX the floor checks')
+ const toneCss = [...rdd('styles.css').matchAll(/--tone-(?:note|tip|important|warning|caution): (#[0-9a-f]{6});/g)].slice(0, 5).map((m) => m[1])
+ ok(JSON.stringify(toneCss) === JSON.stringify([...D.TONE_HUES]), 'designs.ts TONE_HUES are styles.css\'s tone hues')
+ const PR = D.PROPS as Record<string, { kind: string; min?: number }>
+ ok(PR.size.min! >= 0.85 && PR.leading.min! >= 1.3 && PR.titleSize.min! >= 1.4, 'size, line spacing and title floors hold (0.85, 1.3, 1.4em)')
+ ok(!/\b(display|visibility|opacity)\s*:/.test(flat.replace(/display:\s*(block|flex|inline-grid|inline-flex)/g, '')), 'designs.css never hides: no display:none, visibility or opacity')
+ ok([...flat.matchAll(/(?<![-\w])content:\s*([^;]+);/g)].every((m) => /^'[^']*'$/.test(m[1].trim())), 'every generated `content` in designs.css is a constant string, never author data')
+ ok(/\[data-sp-design\] :is\(\.sp-remote, \.sp-media-empty\) \{[^}]*--ink: var\(--sp-app-ink\)[^}]*color: var\(--sp-app-ink\)/.test(flat),
+ 'the remote-content gate reads the CHROME\'s tokens inside a designed page')
+
+ // TONE IS MEANING: five callout tones stay five things in every design and mode
+ for (const [name, d] of Object.entries({ plain: D.PLAIN, ...D.BUILT_INS })) {
+ for (const mode of ['light', 'dark'] as const) {
+ const sig = D.toneSignature(d[mode], d.props.callout)
+ let min = Infinity
+ for (let i = 0; i < 5; i++) for (let j = i + 1; j < 5; j++) min = Math.min(min, D.rgbDistance(sig[i], sig[j]))
+ ok(min >= D.TONE_MIN_DISTANCE, `${name} ${mode}: the five callout tones are pairwise distinct as painted (${d.props.callout}; closest pair ${min.toFixed(0)} apart, floor ${D.TONE_MIN_DISTANCE})`)
+ }
+ }
+ ok(['note', 'tip', 'important', 'warning', 'caution'].every((t) => new RegExp(`\\[data-sp-design\\] \\{[^}]*--tone-${t}: var\\(--d-tone-${t}\\)`).test(flat)),
+ 'the surface maps the five tone roles onto the tones every callout rule reads')
+ const one = base()
+ ;(one as { designs?: unknown }).designs = { mono: { base: 'studio', light: { toneNote: '#ff9e8a', toneTip: '#ff9e8a', toneImportant: '#ff9e8a', toneWarning: '#ff9e8a', toneCaution: '#ff9e8a' } } }
+ D.setDesign(one, 'mono')
+ ok(D.tonesDistinct(D.resolveDesign(one)!.design.light, 'fill') && validateDoc(one).findings.some((f) => f.code === 'design-contrast' && /toneTip/.test(f.path ?? '')),
+ 'a custom design that paints all five tones one colour gets the base\'s five back, and validate() names it')
+
+ // fonts travel as assets
+ const fd = base()
+ fd.assets = { f1: 'data:font/woff2;base64,AAAA', img: 'data:image/png;base64,AAAA' }
+ ;(fd as { designs?: unknown }).designs = { face: { fonts: { body: 'asset:f1', display: 'asset:img' } } }
+ D.setDesign(fd, 'face')
+ const rfd = D.resolveDesign(fd)!
+ ok(rfd.design.fonts.body === 'asset:f1' && rfd.design.fonts.display === D.PLAIN.fonts.display, 'an embedded font asset is honoured; an image under a font role is refused')
+ ok(D.designStyle(rfd).vars['--d-body'].startsWith(`'bento-face-`), 'an embedded face gets a family name derived from its key, never from author text')
+ ok(!orphanAssets(fd).includes('f1'), 'a face a design uses is not an orphan asset')
+
+ // preview: inline styles, never a <style> with design values
+ const pv = rdd('preview.ts')
+ ok(/applyPreviewRules\(box, previewRules\(design\)\)/.test(pv) && !/previewSheet/.test(pv) && /style\.textContent = SHEET\(doc\)\n/.test(pv),
+ 'preview.ts puts the design on as inline styles; its <style> holds only the fixed sheet')
+ ok(/style\.setProperty\(k, v\)/.test(rdd('designs.ts')), 'preview declarations go through the CSSOM, which re-parses every value')
+}
+
// ---- TRANSCLUSION ----------------------------------------------------------
//
// An `embed` block shows another page LIVE. Everything asserted here is the
diff --git a/scripts/test-spaces-restore-gate.ts b/scripts/test-spaces-restore-gate.ts
index e9dc558c..d48bea71 100644
--- a/scripts/test-spaces-restore-gate.ts
+++ b/scripts/test-spaces-restore-gate.ts
@@ -231,5 +231,27 @@ console.log('\nevery restore path uses the gate\n')
ok(!/JSON\.parse\((snap|v)\.json\)/.test(main + about), 'no raw JSON.parse of a stored entry remains')
}
+console.log('\na design is content, not identity\n')
+{
+ // `design` / `designs` (spaces/src/designs.ts) are NOT on FROM_LIVE: a
+ // restore brings the snapshot's design back, and a snapshot that differs
+ // only by its design still raises the recovery banner.
+ const { FROM_LIVE } = await import('../kernel/src/docfields.ts')
+ const fl = FROM_LIVE as readonly string[]
+ ok(!fl.includes('design') && !fl.includes('designs'), 'design and designs are not on FROM_LIVE')
+ const live = liveA()
+ const snap = clone(live) as SpacesDoc & { design?: string; designs?: Record<string, unknown> }
+ snap.design = 'mine'
+ snap.designs = { mine: { base: 'riso', label: 'Mine' } }
+ const g = gateRestored(JSON.stringify(snap), live)
+ ok(g.ok && (g.doc as typeof snap).design === 'mine' && JSON.stringify((g.doc as typeof snap).designs) === JSON.stringify(snap.designs),
+ 'the gate passes design and designs through from the snapshot')
+ ok(recoveryOffered(JSON.stringify(snap), live), 'a snapshot that differs only by its design is offered for recovery')
+ const designedLive = clone(live) as SpacesDoc & { design?: string }
+ designedLive.design = 'ledger'
+ const g2 = gateRestored(JSON.stringify(clone(live)), designedLive)
+ ok(g2.ok && !Object.hasOwn(g2.doc, 'design'), 'restoring a snapshot with no design does not keep the live design (it is content, not identity)')
+}
+
console.log(`\n${checks - failures}/${checks} checks passed`)
process.exit(failures ? 1 : 0)
diff --git a/scripts/test-spaces-roundtrip.ts b/scripts/test-spaces-roundtrip.ts
index be2281b9..a6a3fcea 100644
--- a/scripts/test-spaces-roundtrip.ts
+++ b/scripts/test-spaces-roundtrip.ts
@@ -43,7 +43,8 @@
// less than one with a stated blind spot.
import { starterDoc } from '../spaces/src/starter.ts'
import { toMarkdown } from '../spaces/src/about.ts'
-import { parseNote } from '../spaces/src/markdown.ts'
+import { parseNote, planImport } from '../spaces/src/markdown.ts'
+import { adoptDesign } from '../spaces/src/designs.ts'
import { Store } from '../spaces/src/store.ts'
let checks = 0
@@ -138,5 +139,46 @@ if (lostBy.length) {
ok(/\[[^\]]+\]\(https?:\/\/[^)]+\)/.test(md), 'a link card exports with its address intact')
ok(/!\[[^\]]+\]\([^)]+\)/.test(md), 'an image exports with its alt text and reference')
+// ---- the design rides in the front matter ---------------------------------
+// "Selectable in the page Markdown": `design:` names it, and a design the
+// space carries itself travels as one `designs:` line. A space with no design
+// exports exactly as before — no front matter at all.
+{
+ ok(md.startsWith('# '), 'a space with no design exports with no front matter')
+
+ const withDesign = starterDoc() as unknown as Record<string, unknown>
+ withDesign.design = 'almanac'
+ const mdA = toMarkdown(new Store(withDesign as never) as never)
+ ok(mdA.startsWith('---\ndesign: almanac\n---\n'), 'a built-in design leads the export as `design: almanac` front matter')
+ const noteA = parseNote(mdA, 'x')
+ ok(noteA.design === 'almanac', 'the importer reads `design` back out of the front matter')
+ ok(noteA.frontmatter === undefined, 'front matter holding only the design is consumed, not kept as a folded yaml block')
+
+ const custom = starterDoc() as unknown as Record<string, unknown>
+ const harbour = { label: 'Harbour', base: 'almanac', light: { accent: '#0f6e63' }, props: { callout: 'fill' } }
+ custom.designs = { harbour, unused: { base: 'riso' } }
+ custom.design = 'harbour'
+ const mdC = toMarkdown(new Store(custom as never) as never)
+ const noteC = parseNote(mdC, 'x')
+ ok(noteC.design === 'harbour' && JSON.stringify(noteC.designs) === JSON.stringify({ harbour }),
+ 'a design the space carries round-trips through Markdown value for value (and only the one in use travels)')
+ const plan = planImport([{ path: 'space.md', text: mdC }], { rootTitle: 'Imported' })
+ const into = starterDoc() as unknown as Record<string, unknown>
+ const adopted = adoptDesign(into as never, plan.design, plan.designs)
+ ok(adopted === 'harbour' && into.design === 'harbour' && JSON.stringify((into.designs as Record<string, unknown>).harbour) === JSON.stringify(harbour),
+ 'importing that Markdown into a space with no design adopts the design it carried')
+ const already = starterDoc() as unknown as Record<string, unknown>
+ already.design = 'ledger'
+ ok(adoptDesign(already as never, plan.design, plan.designs) === null && already.design === 'ledger',
+ 'an import never restyles a space that already has a design')
+
+ const odd = starterDoc() as unknown as Record<string, unknown>
+ odd.design = 'from: a newer build'
+ const noteO = parseNote(toMarkdown(new Store(odd as never) as never), 'x')
+ ok(noteO.design === 'from: a newer build', 'a design name this build does not know still round-trips through the front matter')
+ const obsidian = parseNote('---\ntags: [a]\ndesign: ledger\n---\n# Note\n\nbody', 'x')
+ ok(obsidian.design === 'ledger' && obsidian.frontmatter === 'tags: [a]\ndesign: ledger', 'front matter with other keys is still kept verbatim')
+}
+
console.log(`\n${checks - failures}/${checks} checks passed`)
process.exit(failures ? 1 : 0)
diff --git a/spaces/CHANGELOG.md b/spaces/CHANGELOG.md
index 920ba20e..405ba4aa 100644
--- a/spaces/CHANGELOG.md
+++ b/spaces/CHANGELOG.md
@@ -1104,6 +1104,36 @@ Versions follow `0.MINOR.PATCH` while pre-1.0.
divider never carries an id, because the attribute would break the row or
the rule.
+- **A space can have a design.** About → Design offers six: **Ledger** (a
+ grotesque grid, figures in a monospace, cobalt rules), **Almanac** (an
+ editorial serif, a drop cap, marigold for its accent), **Studio** (the
+ Bento tile — a canvas or a gallery becomes navy with slate, coral and cream
+ compartments), **Broadsheet** (a news serif under double rules, justified,
+ with pull quotes), **Typescript** (a typewritten manuscript) and **Riso** (a
+ two-ink risograph zine). Hover one to see it on the page; clicking it is one
+ undo step. The design travels in the file; each reader's light or dark
+ setting picks between the design's two palettes, and the app's own bar and
+ panels stay the reader's. It prints (in its light palette) and it is what a
+ file manager's thumbnail shows. A file with no design looks exactly as it did.
+
+ **Customise…** makes the current design the space's own and opens a panel
+ beside the page: colours for light and dark, a face for headings, body,
+ labels and code — including a font file you drop in, which is embedded like
+ a picture — and the layout switches (callouts, quotes, tables, rules, drop
+ cap, tiles…). Every value is checked before it is used, and a colour that
+ would leave text under 4.5:1 is not used. Every design keeps the five
+ callout tones (note, tip, important, warning, caution) five distinct
+ colours of its own; a custom design that paints them alike gets its base's
+ five back.
+
+ The Markdown export now opens with the design as front matter (`design:
+ almanac`), and importing it into a space without a design brings the design
+ along. Format: an optional `design` name and an optional `designs` map; an
+ older build shows the default look and keeps both. The designs use fonts
+ already on the reader's machine — nothing is fetched. Shell 271,810 →
+ 300,835 B (+29,025; roughly 12 KB of that is the picker and panel's 115
+ new strings in nine languages).
+
## [0.1.0] — 2026-08-03
First release.
diff --git a/spaces/src/about.ts b/spaces/src/about.ts
index 7464b618..781dc39c 100644
--- a/spaces/src/about.ts
+++ b/spaces/src/about.ts
@@ -39,6 +39,8 @@ import { createDialog, type Dialog } from '../../kernel/src/ui/dialog.ts'
import '../../kernel/src/ui/dialog.css'
import { t, localeChoices, locale, setLocale } from './i18n'
import { appearanceSection } from './appearance'
+import { designSection } from './designpanel'
+import { designFrontMatter, type Resolved } from './designs.ts'
import { esc, textOf } from './sanitize'
import { htmlToMd } from './marks.ts'
import { definitionLines } from './footnotes.ts'
@@ -73,6 +75,10 @@ export interface AboutHooks {
* one does. "Update this file" is stamped inside the save queue instead.
*/
onBeforeWrite?: () => void
+ /** paint a design on the page without writing it (the picker's hover) */
+ previewDesign?: (r: Resolved | null | undefined) => void
+ /** the non-modal customise panel, opened over the page */
+ openDesignPanel?: () => void
}
/**
@@ -98,7 +104,7 @@ export async function launchUpdateCheck(): Promise<UpdateCheck | null> {
}
export function openAbout(hooks: AboutHooks): void {
- const { store, onRepaint, onUpdateInPlace, onBeforeWrite } = hooks
+ const { store, onRepaint, onUpdateInPlace, onBeforeWrite, previewDesign, openDesignPanel } = hooks
const doc = store.doc
// THE KERNEL'S DIALOG (kernel/src/ui/dialog.ts) is the shell; `card` is its
@@ -281,6 +287,18 @@ export function openAbout(hooks: AboutHooks): void {
props.append(row(t('Document id'), mono(doc.docId)))
if (doc.modified) props.append(row(t('Last saved'), mono(shortStamp(doc.modified))))
+ // ---- design ------------------------------------------------------------
+ // The AUTHOR's choice, so it sits with the document's own properties and
+ // not with the reader's theme and language further down (DECISIONS,
+ // 2026-09-26). Built in designpanel.ts; this costs one import and one call.
+ if (previewDesign && openDesignPanel) {
+ section(t('Design'), ...designSection({
+ store,
+ preview: previewDesign,
+ openPanel: () => { close(); openDesignPanel() },
+ }))
+ }
+
// ---- updates -----------------------------------------------------------
const upSec = section(t('Updates'))
const upStatus = document.createElement('div')
@@ -477,7 +495,12 @@ export function openAbout(hooks: AboutHooks): void {
foot.append(button(t('Close'), close, true))
card.append(foot)
- dlg = createDialog({ label: t('About this space'), content: card })
+ // The picker's hover paints a design without writing it; however the dialog
+ // closes (Escape, the scrim, Close, Customise…), that preview is cleared.
+ dlg = createDialog({
+ label: t('About this space'), content: card,
+ onClose: () => previewDesign?.(undefined),
+ })
dlg.card.classList.add('sp-dlg', 'sp-dlg-about')
dlg.open()
// the one control the dialog opens FOR, not the logo link the trap would pick
@@ -666,7 +689,9 @@ export function toMarkdown(store: Store): string {
}
}
walk()
- return out.join('\n').replace(/\n{3,}/g, '\n\n')
+ // The design leads, as front matter, so the Markdown carries the look with
+ // it (designs.ts designFrontMatter). Nothing is written when there is none.
+ return [...designFrontMatter(store.doc), ...out].join('\n').replace(/\n{3,}/g, '\n\n')
}
/**
diff --git a/spaces/src/agent.ts b/spaces/src/agent.ts
index abc5cc2b..3a8d3fe4 100644
--- a/spaces/src/agent.ts
+++ b/spaces/src/agent.ts
@@ -35,6 +35,7 @@ import { SPECS, SPEC } from './blocks.ts'
import { aliasesOf, nameKey } from './mentions.ts'
import { sanitizeInline, textOf, inertBody, esc, UNWRAP } from './sanitize.ts'
import { orphanAssets, humanBytes } from './assets.ts'
+import { designProblems, designAssetKeys, BUILT_IN_NAMES } from './designs.ts'
import { isPageRef, anchorOf, sectionOf, embedReaches } from './embed.ts'
import { danglingRefs, orphanNotes, LABEL_OK } from './footnotes.ts'
import {
@@ -588,6 +589,29 @@ export function validateDoc(doc: SpacesDoc): ValidateResult {
}
}
+ // ---- the design ----------------------------------------------------------
+ // Validated, never sanitized: every value a doc-local design carries is
+ // checked against a closed rule, and one that fails is DROPPED to the base
+ // design's value. The document still opens and still looks designed — so
+ // this is the only place an author finds out a colour was not used.
+ for (const pr of designProblems(doc)) {
+ add({ code: pr.code, path: pr.path, message: pr.message,
+ severity: pr.code === 'unknown-design-key' ? 'info' : 'warning',
+ fix: pr.code === 'unknown-design'
+ ? `Set design to one of ${BUILT_IN_NAMES.join(', ')}, define it under designs, or delete the key for the default look.`
+ : pr.code === 'design-shadows-builtin' || pr.code === 'bad-design-name'
+ ? 'Rename the entry (lowercase letters, digits, hyphens; not a built-in name) and point design at the new name.'
+ : 'Write a value the rule accepts (see docs/spaces-agents.md, Designs), or delete the key to take the base design\'s.' })
+ }
+ for (const k of designAssetKeys(doc)) {
+ if (!(k in assets)) {
+ add({ code: 'missing-asset', severity: 'error', path: 'designs',
+ message: `A design names embedded font asset "${k}", which is not in doc.assets — the face never loads and text falls back to the role's stack.`,
+ fix: 'Add the font data: URI under that key, or point the font role at a name from the list.' })
+ }
+ usedAssets.add(k)
+ }
+
// ---- assets --------------------------------------------------------------
for (const f of doc.fonts ?? []) {
if (f.asset && !(f.asset in assets)) {
diff --git a/spaces/src/assets.ts b/spaces/src/assets.ts
index 7895c1bb..9f873147 100644
--- a/spaces/src/assets.ts
+++ b/spaces/src/assets.ts
@@ -8,6 +8,7 @@
// downscaled before it travels, visibly and reversibly.
import { pageAssetKeys, type SpacesDoc } from './model.ts'
+import { designAssetKeys } from './designs.ts'
/** Longest edge kept when downscaling. Above this, detail is invisible in a
* text column and costs megabytes. */
@@ -98,6 +99,8 @@ export function orphanAssets(doc: SpacesDoc): string[] {
}
}
for (const f of doc.fonts ?? []) used.add(f.asset)
+ // a face a doc-local design embeds is referenced from the design, not a block
+ for (const k of designAssetKeys(doc)) used.add(k)
return Object.keys(doc.assets ?? {}).filter((k) => !used.has(k))
}
diff --git a/spaces/src/designpanel.ts b/spaces/src/designpanel.ts
new file mode 100644
index 00000000..fa4e2667
--- /dev/null
+++ b/spaces/src/designpanel.ts
@@ -0,0 +1,612 @@
+// SPDX-License-Identifier: MIT
+// Copyright (c) 2026 The Bento authors
+//
+// Choosing and customising a page design — the controls, not the look.
+//
+// TWO SURFACES. The picker is a section of the About dialog, beside the
+// document's other properties: a design is the AUTHOR's choice and belongs
+// with the title, not with the reader's theme and language further down.
+// Hovering a choice previews it on the page behind the dialog; clicking one
+// is ONE undo step. "Customise…" forks the current design into a doc-local
+// one and opens a NON-modal panel, so the page stays visible while its tokens
+// change under the pointer.
+//
+// NOTHING HERE WRITES CSS. The panel edits `doc.designs[name]` — colours,
+// font names, switch words and numbers — and designs.ts validates every value
+// before it reaches a style. A colour input can only produce #rrggbb; a
+// select can only produce one of its options; a range input is clamped by the
+// browser and re-checked by validProp().
+
+import { t } from './i18n'
+import type { Store } from './store'
+import type { SpacesDoc } from './model'
+import { internAsset, blobToDataUri, humanBytes } from './assets'
+import {
+ BUILT_INS, BUILT_IN_NAMES, PLAIN, PALETTE_KEYS, FONT_ROLES, FONT_STACKS, PROPS, PROP_KEYS,
+ resolveDesign, resolveData, localDesigns, localLabel, freshDesignName, setDesign, isBuiltIn,
+ fontAssetUri, parseColour,
+ type Resolved, type DesignData, type PaletteKey, type FontRole, type PropKey, type Design,
+} from './designs.ts'
+
+/** A design's name as the picker shows it. Literals, so the i18n sweep sees them. */
+export function designLabel(doc: SpacesDoc, name: string | null): string {
+ switch (name) {
+ case null: return t('Default')
+ case 'ledger': return t('Ledger')
+ case 'almanac': return t('Almanac')
+ case 'studio': return t('Studio')
+ case 'broadsheet': return t('Broadsheet')
+ case 'typescript': return t('Typescript')
+ case 'riso': return t('Riso')
+ default: return localLabel(doc, name)
+ }
+}
+
+function designHint(name: string | null): string {
+ switch (name) {
+ case null: return t('The look every space starts with.')
+ case 'ledger': return t('A precise grid, figures in a monospace, cobalt rules.')
+ case 'almanac': return t('An editorial serif, a drop cap, and marigold for its accent.')
+ case 'studio': return t('The Bento tile: navy, slate, coral and cream compartments.')
+ case 'broadsheet': return t('A news serif under double rules, justified, with pull quotes.')
+ case 'typescript': return t('A typewritten manuscript: one face, capitals, a two-colour ribbon.')
+ case 'riso': return t('A risograph zine: two spot inks, heavy capitals, offset shadows.')
+ default: return t('Carried by this space.')
+ }
+}
+
+const COLOUR_LABEL = (k: PaletteKey): string => {
+ switch (k) {
+ case 'paper': return t('Paper')
+ case 'ink': return t('Text')
+ case 'muted': return t('Secondary text')
+ case 'rule': return t('Rules')
+ case 'soft': return t('Wells')
+ case 'accent': return t('Accent')
+ case 'accentInk': return t('Accent text')
+ case 'onAccent': return t('Text on accent')
+ case 'tile': return t('Tile')
+ case 'tileInk': return t('Text on tile')
+ case 'cell1': return t('Cell 1')
+ case 'cell2': return t('Cell 2')
+ case 'cell3': return t('Cell 3')
+ case 'toneNote': return t('Note')
+ case 'toneTip': return t('Tip')
+ case 'toneImportant': return t('Important')
+ case 'toneWarning': return t('Warning')
+ case 'toneCaution': return t('Caution')
+ }
+}
+
+const ROLE_LABEL = (r: FontRole): string =>
+ r === 'display' ? t('Headings') : r === 'body' ? t('Body') : r === 'label' ? t('Labels') : t('Code and figures')
+
+const STACK_LABEL = (k: string): string => {
+ switch (k) {
+ case 'system': return t('System')
+ case 'grotesk': return t('Grotesque')
+ case 'humanist': return t('Humanist')
+ case 'condensed': return t('Condensed')
+ case 'transitional': return t('Book serif')
+ case 'oldstyle': return t('Old-style serif')
+ case 'news': return t('News serif')
+ case 'mono': return t('Monospace')
+ case 'typewriter': return t('Typewriter')
+ case 'rounded': return t('Rounded')
+ default: return k
+ }
+}
+
+const PROP_LABEL = (k: PropKey): string => {
+ switch (k) {
+ case 'size': return t('Text size')
+ case 'leading': return t('Line spacing')
+ case 'titleSize': return t('Title size')
+ case 'titleWeight': return t('Title weight')
+ case 'titleTracking': return t('Title letter spacing')
+ case 'titleLeading': return t('Title line spacing')
+ case 'headWeight': return t('Heading weight')
+ case 'radius': return t('Corner radius')
+ case 'rule': return t('Rule weight')
+ case 'headStyle': return t('Heading style')
+ case 'headCase': return t('Heading case')
+ case 'label': return t('Labels')
+ case 'labelInk': return t('Label colour')
+ case 'h2': return t('Section heads')
+ case 'dropCap': return t('Drop cap')
+ case 'callout': return t('Callouts')
+ case 'quote': return t('Quotes')
+ case 'table': return t('Tables')
+ case 'numerals': return t('Figures')
+ case 'check': return t('Checkboxes')
+ case 'tile': return t('Tiles')
+ case 'shadow': return t('Shadows')
+ case 'justify': return t('Justified text')
+ case 'divider': return t('Dividers')
+ case 'bullet': return t('Bullets')
+ }
+}
+
+/** Display words for switch values; the stored value is always the model word. */
+const VALUE_LABEL = (k: PropKey, v: string): string => {
+ switch (`${k}:${v}`) {
+ case 'headStyle:normal': return t('Upright')
+ case 'headStyle:italic': case 'label:italic': return t('Italic')
+ case 'headCase:none': return t('As written')
+ case 'headCase:upper': case 'label:caps': return t('Capitals')
+ case 'label:plain': case 'quote:plain': return t('Plain')
+ case 'label:smallcaps': return t('Small capitals')
+ case 'labelInk:ink': return t('Text colour')
+ case 'labelInk:accent': return t('Accent')
+ case 'h2:none': case 'shadow:none': return t('None')
+ case 'h2:above': return t('Rule above')
+ case 'h2:double': return t('Double rule above')
+ case 'h2:bar': return t('Short bar below')
+ case 'h2:under': return t('Underlined')
+ case 'dropCap:off': case 'tile:off': case 'justify:off': return t('Off')
+ case 'dropCap:on': case 'tile:on': case 'justify:on': return t('On')
+ case 'callout:tint': return t('Tinted')
+ case 'callout:outline': return t('Outlined')
+ case 'callout:rules': return t('Rules above and below')
+ case 'callout:fill': return t('Filled')
+ case 'callout:shadow': return t('Offset shadow')
+ case 'quote:bar': return t('Accent bar')
+ case 'quote:display': return t('Display italic')
+ case 'quote:pull': return t('Pull quote')
+ case 'quote:tile': return t('Tile')
+ case 'quote:indent': return t('Indented')
+ case 'table:grid': return t('Grid')
+ case 'table:rules': return t('Rules')
+ case 'table:bands': return t('Bands')
+ case 'numerals:lining': return t('Lining')
+ case 'numerals:mono': return t('Monospace')
+ case 'numerals:oldstyle': return t('Old-style')
+ case 'check:native': return t('System')
+ case 'check:square': case 'bullet:square': return t('Square')
+ case 'check:round': return t('Round')
+ case 'shadow:hard': return t('Hard offset')
+ case 'divider:rule': return t('Hairline')
+ case 'divider:ink': return t('Heavy rule')
+ case 'divider:double': return t('Double rule')
+ case 'divider:asterism': return t('Asterism')
+ case 'divider:short': return t('Short bar')
+ case 'bullet:disc': return t('Disc')
+ case 'bullet:dash': return t('Dash')
+ default: return v
+ }
+}
+
+/** Three dots of a design's own palette: paper, ink, accent. */
+function swatch(d: Design): HTMLElement {
+ const s = document.createElement('i')
+ s.className = 'sp-dsg-sw'
+ s.setAttribute('aria-hidden', 'true')
+ for (const k of ['paper', 'ink', 'accent'] as const) {
+ const dot = document.createElement('b')
+ // values straight out of the registry or through parseColour — never text
+ dot.style.background = d.light[k]
+ s.append(dot)
+ }
+ return s
+}
+
+export interface DesignHooks {
+ store: Store
+ /** paint a design on the page without writing it; undefined ends the preview */
+ preview: (r: Resolved | null | undefined) => void
+ /** the About dialog closes itself before the panel opens over the page */
+ openPanel: () => void
+}
+
+/**
+ * The picker, as an About section's children.
+ *
+ * Buttons rather than a <select>: an option in a native dropdown cannot be
+ * hovered for a preview on any platform, and the preview is the point.
+ */
+export function designSection(h: DesignHooks): HTMLElement[] {
+ const { store } = h
+ const doc = store.doc
+ const current = resolveDesign(doc)
+ const grid = document.createElement('div')
+ grid.className = 'sp-dsg-grid'
+ grid.setAttribute('role', 'radiogroup')
+ grid.setAttribute('aria-label', t('Design'))
+
+ const names: Array<string | null> = [null, ...BUILT_IN_NAMES,
+ ...Object.keys(localDesigns(doc)).filter((n) => !isBuiltIn(n) && resolveDesign(doc, n))]
+ const buttons: HTMLButtonElement[] = []
+ for (const name of names) {
+ const b = document.createElement('button')
+ b.type = 'button'
+ b.className = 'sp-choice sp-dsg-choice'
+ b.setAttribute('role', 'radio')
+ const on = (current?.name ?? null) === name
+ b.setAttribute('aria-checked', String(on))
+ if (on) b.classList.add('sp-sel')
+ b.disabled = store.readOnly
+ const r = name === null ? null : resolveDesign(doc, name)
+ const strong = document.createElement('strong')
+ strong.append(swatch(r?.design ?? PLAIN), document.createTextNode(designLabel(doc, name)))
+ const span = document.createElement('span')
+ span.textContent = designHint(name)
+ b.append(strong, span)
+ // PREVIEW ON HOVER AND ON FOCUS — a keyboard reader gets it too
+ const show = () => h.preview(r)
+ const hide = () => h.preview(undefined)
+ b.addEventListener('mouseenter', show)
+ b.addEventListener('focus', show)
+ b.addEventListener('mouseleave', hide)
+ b.addEventListener('blur', hide)
+ b.addEventListener('click', () => {
+ // read LIVE, not the value from when the dialog opened: an undo while it
+ // is open changes the answer
+ if ((resolveDesign(store.doc)?.name ?? null) === name) { h.preview(undefined); return }
+ // ONE undo step, and the default DELETES the key (designs.ts setDesign)
+ store.commit(() => setDesign(store.doc, name), { structure: false })
+ h.preview(undefined)
+ mark()
+ })
+ b.dataset.design = name ?? ''
+ buttons.push(b)
+ grid.append(b)
+ }
+ // leaving the whole grid ends any preview, whichever child the pointer left from
+ grid.addEventListener('mouseleave', () => h.preview(undefined))
+ // the checked choice follows the DOCUMENT, so an undo while the dialog is
+ // open moves it back
+ const mark = () => {
+ const now = resolveDesign(store.doc)?.name ?? ''
+ for (const o of buttons) {
+ const sel = o.dataset.design === now
+ o.classList.toggle('sp-sel', sel)
+ o.setAttribute('aria-checked', String(sel))
+ }
+ }
+ const off = store.on('doc', () => { if (grid.isConnected) mark(); else off() })
+
+ const custom = document.createElement('button')
+ custom.type = 'button'
+ custom.className = 'sp-btn'
+ custom.textContent = t('Customise…')
+ custom.disabled = store.readOnly
+ custom.addEventListener('click', () => {
+ h.preview(undefined)
+ forkIfNeeded(store)
+ h.openPanel()
+ })
+ const acts = document.createElement('div')
+ acts.className = 'sp-actions'
+ acts.append(custom)
+
+ const note = document.createElement('p')
+ note.className = 'sp-note'
+ note.textContent = t('The design travels with the file. Each reader’s light or dark setting picks between its two palettes.')
+ return [grid, acts, note]
+}
+
+/**
+ * Make the current design one this document owns, as ONE undo step.
+ *
+ * A doc-local design is edited in place; anything else — a built-in, or the
+ * default — is FORKED: a new entry naming it as its base, with no overrides
+ * yet, so the page does not change until a value does.
+ */
+function forkIfNeeded(store: Store): string {
+ const cur = resolveDesign(store.doc)
+ if (cur?.custom) return cur.name
+ const name = freshDesignName(store.doc)
+ const base = cur && isBuiltIn(cur.name) ? cur.name : undefined
+ const data: DesignData = {
+ label: base ? t('{name}, customised', { name: designLabel(store.doc, base) }) : t('Custom'),
+ ...(base ? { base } : {}),
+ }
+ store.commit(() => {
+ const d = store.doc as { designs?: Record<string, unknown> }
+ d.designs = { ...(d.designs && typeof d.designs === 'object' ? d.designs : {}), [name]: data }
+ setDesign(store.doc, name)
+ }, { structure: false })
+ return name
+}
+
+const clone = <T>(v: T): T => JSON.parse(JSON.stringify(v ?? null)) as T
+
+/** The panel element, while it is open. One at a time. */
+let openPanelEl: HTMLElement | null = null
+
+/**
+ * The customise panel: non-modal, over the inspector's side of the window,
+ * so the page it is changing stays in view.
+ */
+export function openDesignPanel(store: Store, preview: (r: Resolved | null | undefined) => void): void {
+ openPanelEl?.remove()
+ const panel = document.createElement('aside')
+ panel.className = 'sp-dsg-panel'
+ panel.setAttribute('role', 'dialog')
+ panel.setAttribute('aria-label', t('Customise design'))
+ document.body.append(panel)
+ openPanelEl = panel
+
+ const name = () => resolveDesign(store.doc)?.custom ? resolveDesign(store.doc)!.name : null
+ let draft: DesignData = {}
+ const stored = () => {
+ const n = name()
+ return n ? clone(localDesigns(store.doc)[n] as DesignData) : null
+ }
+
+ const close = () => {
+ preview(undefined)
+ off()
+ panel.remove()
+ document.removeEventListener('keydown', onKey, true)
+ if (openPanelEl === panel) openPanelEl = null
+ }
+ const onKey = (e: KeyboardEvent) => {
+ if (e.key === 'Escape' && panel.contains(document.activeElement)) { e.stopPropagation(); close() }
+ }
+ document.addEventListener('keydown', onKey, true)
+
+ /** Live: paint the draft without writing it. */
+ const live = () => {
+ const n = name()
+ if (n) preview({ name: n, design: resolveData(store.doc, n, draft), custom: true })
+ }
+ /** Commit the draft as ONE undo step, keeping only what differs from the base. */
+ const commit = () => {
+ const n = name()
+ if (!n) return
+ const base = isBuiltIn(draft.base) ? BUILT_INS[draft.base] : PLAIN
+ const out = clone(draft)
+ for (const mode of ['light', 'dark'] as const) {
+ const pal = out[mode]
+ if (!pal) continue
+ for (const k of Object.keys(pal) as PaletteKey[]) if (pal[k] === base[mode][k]) delete pal[k]
+ if (!Object.keys(pal).length) delete out[mode]
+ }
+ if (out.fonts) {
+ for (const k of Object.keys(out.fonts) as FontRole[]) if (out.fonts[k] === base.fonts[k]) delete out.fonts[k]
+ if (!Object.keys(out.fonts).length) delete out.fonts
+ }
+ if (out.props) {
+ for (const k of Object.keys(out.props) as PropKey[]) if (out.props[k] === base.props[k]) delete out.props[k]
+ if (!Object.keys(out.props).length) delete out.props
+ }
+ if (JSON.stringify(out) === JSON.stringify(stored())) { preview(undefined); return }
+ store.commit(() => {
+ const d = store.doc as { designs?: Record<string, unknown> }
+ d.designs = { ...(d.designs ?? {}), [n]: out }
+ }, { structure: false })
+ preview(undefined)
+ }
+
+ const build = () => {
+ const n = name()
+ panel.replaceChildren()
+ const head = document.createElement('div')
+ head.className = 'sp-dsg-head'
+ const title = document.createElement('h2')
+ title.className = 'sp-card-h'
+ title.textContent = t('Customise design')
+ const x = document.createElement('button')
+ x.type = 'button'
+ x.className = 'sp-btn'
+ x.textContent = t('Done')
+ x.addEventListener('click', close)
+ head.append(title, x)
+ panel.append(head)
+ if (!n) {
+ const p = document.createElement('p')
+ p.className = 'sp-note'
+ p.textContent = t('This space no longer uses a design of its own.')
+ panel.append(p)
+ return
+ }
+ draft = stored() ?? {}
+ const doc = store.doc
+ const resolved = resolveData(doc, n, draft)
+ const base = isBuiltIn(draft.base) ? draft.base : null
+
+ // ---- name
+ const nameIn = document.createElement('input')
+ nameIn.type = 'text'
+ nameIn.className = 'sp-input'
+ nameIn.maxLength = 60
+ nameIn.value = localLabel(doc, n)
+ nameIn.addEventListener('change', () => {
+ const v = nameIn.value.trim()
+ if (v) draft.label = v
+ else delete draft.label
+ commit()
+ })
+ panel.append(field(t('Name'), nameIn))
+ const basis = document.createElement('p')
+ basis.className = 'sp-note'
+ basis.textContent = t('Based on {name}. Only what you change here is stored.', { name: designLabel(doc, base) })
+ panel.append(basis)
+
+ // ---- colours: light and dark side by side
+ panel.append(heading(t('Colours')))
+ const table = document.createElement('div')
+ table.className = 'sp-dsg-cols'
+ table.append(span(''), span(t('Light')), span(t('Dark')))
+ for (const k of PALETTE_KEYS) {
+ table.append(span(COLOUR_LABEL(k)))
+ for (const mode of ['light', 'dark'] as const) {
+ const c = document.createElement('input')
+ c.type = 'color'
+ c.value = resolved[mode][k]
+ c.setAttribute('aria-label', `${COLOUR_LABEL(k)} · ${mode === 'light' ? t('Light') : t('Dark')}`)
+ c.addEventListener('input', () => {
+ const v = parseColour(c.value)
+ if (!v) return
+ ;(draft[mode] ??= {})[k] = v
+ live()
+ })
+ c.addEventListener('change', commit)
+ table.append(c)
+ }
+ }
+ panel.append(table)
+
+ // ---- fonts
+ panel.append(heading(t('Type')))
+ for (const role of FONT_ROLES) {
+ const sel = document.createElement('select')
+ sel.className = 'sp-select'
+ for (const k of Object.keys(FONT_STACKS)) sel.append(option(k, STACK_LABEL(k)))
+ // faces this file already carries
+ for (const f of doc.fonts ?? []) {
+ const ref = `asset:${f.asset}`
+ if (fontAssetUri(doc, ref)) sel.append(option(ref, f.family || f.asset))
+ }
+ sel.append(option('+', t('Add a font file…')))
+ sel.value = resolved.fonts[role]
+ sel.addEventListener('change', () => {
+ if (sel.value === '+') {
+ sel.value = resolved.fonts[role]
+ void addFont(store, (ref) => { (draft.fonts ??= {})[role] = ref; commit() })
+ return
+ }
+ ;(draft.fonts ??= {})[role] = sel.value
+ commit()
+ })
+ panel.append(field(ROLE_LABEL(role), sel))
+ }
+
+ // ---- switches and metrics
+ panel.append(heading(t('Layout')))
+ for (const k of PROP_KEYS) {
+ const rule = PROPS[k] as { kind: 'num'; min: number; max: number } | { kind: 'enum'; values: readonly string[] }
+ const v = resolved.props[k]
+ if (rule.kind === 'enum') {
+ const sel = document.createElement('select')
+ sel.className = 'sp-select'
+ for (const w of rule.values) sel.append(option(w, VALUE_LABEL(k, w)))
+ sel.value = String(v)
+ sel.addEventListener('change', () => { (draft.props ??= {} as Partial<typeof resolved.props>)[k] = sel.value as never; commit() })
+ panel.append(field(PROP_LABEL(k), sel))
+ } else {
+ const r = document.createElement('input')
+ r.type = 'range'
+ r.min = String(rule.min)
+ r.max = String(rule.max)
+ const step = rule.max - rule.min >= 100 ? 50 : rule.max - rule.min >= 10 ? 1 : rule.max - rule.min >= 1 ? 0.05 : 0.005
+ r.step = String(step)
+ r.value = String(v)
+ const out = document.createElement('output')
+ out.textContent = String(v)
+ r.addEventListener('input', () => {
+ const nv = Number(r.value)
+ out.textContent = String(nv)
+ ;(draft.props ??= {})[k] = nv as never
+ live()
+ })
+ r.addEventListener('change', commit)
+ const wrap = document.createElement('span')
+ wrap.className = 'sp-dsg-range'
+ wrap.append(r, out)
+ panel.append(field(PROP_LABEL(k), wrap))
+ }
+ }
+
+ // ---- remove
+ const del = document.createElement('button')
+ del.type = 'button'
+ del.className = 'sp-btn'
+ del.textContent = t('Remove this design')
+ del.addEventListener('click', () => {
+ store.commit(() => {
+ const d = store.doc as { designs?: Record<string, unknown> }
+ if (d.designs) {
+ delete d.designs[n]
+ if (!Object.keys(d.designs).length) delete d.designs
+ }
+ // back to what it was forked from — or the default, which deletes `design`
+ setDesign(store.doc, base)
+ }, { structure: false })
+ close()
+ })
+ const acts = document.createElement('div')
+ acts.className = 'sp-actions'
+ acts.append(del)
+ panel.append(acts)
+ }
+
+ // An undo, a redo or a collaborator can change the entry underneath the
+ // panel — and a commit here can change a DERIVED value (a new accent picks
+ // its own text-on-accent). Rebuild from the document every time, keeping
+ // the scroll, unless someone is mid-way through typing or dragging.
+ const off = store.on('doc', () => {
+ if (!panel.isConnected) return
+ const focus = document.activeElement
+ if (focus instanceof HTMLInputElement && panel.contains(focus) && (focus.type === 'text' || focus.type === 'range')) return
+ const top = panel.scrollTop
+ build()
+ panel.scrollTop = top
+ })
+ build()
+ panel.querySelector<HTMLElement>('input,select,button')?.focus()
+}
+
+const span = (text: string): HTMLElement => {
+ const s = document.createElement('span')
+ s.textContent = text
+ return s
+}
+const heading = (text: string): HTMLElement => {
+ const h = document.createElement('h3')
+ h.className = 'sp-dsg-sub'
+ h.textContent = text
+ return h
+}
+const option = (value: string, label: string): HTMLOptionElement => {
+ const o = document.createElement('option')
+ o.value = value
+ o.textContent = label
+ return o
+}
+function field(label: string, control: HTMLElement): HTMLElement {
+ const row = document.createElement('label')
+ row.className = 'sp-dsg-row'
+ const s = document.createElement('span')
+ s.textContent = label
+ row.append(s, control)
+ return row
+}
+
+/** Above this a face is asked about before it is embedded. */
+const FONT_BUDGET = 1024 * 1024
+const FONT_MIME: Record<string, string> = { woff2: 'font/woff2', woff: 'font/woff', ttf: 'font/ttf', otf: 'font/otf' }
+
+/**
+ * Embed a font file as an asset — the only way a custom face reaches a design,
+ * because nothing is ever fetched (PLATFORM §1). The bytes are interned like
+ * an image (content-addressed, deduplicated) and listed in `doc.fonts`, which
+ * is what names the face in the picker and keeps the asset from reading as an
+ * orphan.
+ */
+async function addFont(store: Store, use: (ref: string) => void): Promise<void> {
+ const input = document.createElement('input')
+ input.type = 'file'
+ input.accept = '.woff2,.woff,.ttf,.otf,font/woff2,font/woff,font/ttf,font/otf'
+ const file = await new Promise<File | null>((res) => {
+ input.addEventListener('change', () => res(input.files?.[0] ?? null))
+ input.click()
+ })
+ if (!file) return
+ const ext = (/\.([a-z0-9]+)$/i.exec(file.name)?.[1] ?? '').toLowerCase()
+ if (!Object.hasOwn(FONT_MIME, ext)) { alert(t('That is not a font file (.woff2, .woff, .ttf or .otf).')); return }
+ if (file.size > FONT_BUDGET && !confirm(t('This font is {size}, and it travels inside the file. Embed it anyway?', { size: humanBytes(file.size) }))) return
+ const raw = await blobToDataUri(file)
+ // the MIME is decided HERE, from the extension, never taken from the picker:
+ // fontAssetUri only honours data:font/… and a browser may report none
+ const uri = `data:${FONT_MIME[ext]};base64,${raw.slice(raw.indexOf(',') + 1)}`
+ const ref = await internAsset(store.doc, uri)
+ const key = ref.slice(6)
+ const family = file.name.replace(/\.[^.]+$/, '').slice(0, 60) || key
+ const d = store.doc
+ if (!(d.fonts ?? []).some((f) => f.asset === key)) {
+ store.commit(() => { (d.fonts ??= []).push({ family, asset: key }) }, { structure: false })
+ }
+ use(ref)
+}
diff --git a/spaces/src/designs.css b/spaces/src/designs.css
new file mode 100644
index 00000000..77c59637
--- /dev/null
+++ b/spaces/src/designs.css
@@ -0,0 +1,288 @@
+/* SPDX-License-Identifier: MIT
+ Copyright (c) 2026 The Bento authors
+ bento/spaces page designs — the ONE base stylesheet every design runs on.
+
+ WHAT THIS FILE IS. A design is data (designs.ts): two palettes, four font
+ roles and a closed set of switches. applyDesign() writes them onto the
+ READING SURFACE as custom properties (--dl-*, --dd-*, --d-*) and data
+ attributes (data-sp-design, data-sd-*). Every rule below is keyed under one
+ of those, so:
+
+ · NO DESIGN IS TODAY, BYTE FOR BYTE. A surface with no `data-sp-design`
+ matches nothing in this file; the model rig asserts that every selector
+ here is scoped.
+ · A DESIGN NEVER REACHES THE CHROME. The attributes live on `.sp-main`, the
+ print root and nothing else; the bar, the panels, menus, popovers and
+ dialogs are outside them, and popovers mount on <body>.
+ · A NEW BUILT-IN IS A DATA ENTRY. If a look needs structure that the
+ switches cannot express, add a switch here that any design can use.
+
+ NO LITERAL COLOURS outside the print block: every colour is a design token
+ or derived from one, which is what lets a custom palette recolour all of it.
+
+ LIGHT/DARK. The design carries both palettes; the READER's theme picks one.
+ The same three-state rule as styles.css, so the dark mapping appears twice
+ (OS-dark unless the reader chose light, and the reader choosing dark) and
+ both are @media screen — print matches neither and gets the light palette
+ without a third copy. */
+
+/* ————— the surface: design tokens, and the app's roles re-pointed at them ————— */
+[data-sp-design] {
+ --d-paper: var(--dl-paper); --d-ink: var(--dl-ink); --d-muted: var(--dl-muted);
+ --d-rule-c: var(--dl-rule); --d-soft: var(--dl-soft);
+ --d-accent: var(--dl-accent); --d-accent-ink: var(--dl-accent-ink); --d-on-accent: var(--dl-on-accent);
+ --d-mark: var(--dl-mark);
+ --d-tile: var(--dl-tile); --d-tile-ink: var(--dl-tile-ink);
+ --d-cell1: var(--dl-cell1); --d-cell2: var(--dl-cell2); --d-cell3: var(--dl-cell3);
+ --d-cell1-ink: var(--dl-cell1-ink); --d-cell2-ink: var(--dl-cell2-ink); --d-cell3-ink: var(--dl-cell3-ink);
+ --d-tone-note: var(--dl-tone-note); --d-tone-tip: var(--dl-tone-tip); --d-tone-important: var(--dl-tone-important);
+ --d-tone-warning: var(--dl-tone-warning); --d-tone-caution: var(--dl-tone-caution);
+
+ /* The app's roles, INSIDE THE SURFACE ONLY. Every existing block rule in
+ styles.css reads these, which is why a design recolours callouts, boards,
+ cards and code wells it has no rule of its own for. */
+ --bg: var(--d-paper); --surface: var(--d-paper); --field: var(--d-paper);
+ --ink: var(--d-ink); --ink-2: color-mix(in srgb, var(--d-ink) 82%, var(--d-paper));
+ --muted: var(--d-muted); --line: var(--d-rule-c);
+ --edge: color-mix(in srgb, var(--d-rule-c) 55%, var(--d-ink));
+ --chrome: var(--d-soft); --chrome-2: color-mix(in srgb, var(--d-soft) 90%, var(--d-ink));
+ --accent: var(--d-accent); --accent-ink: var(--d-accent-ink);
+ --tone-note: var(--d-tone-note); --tone-tip: var(--d-tone-tip); --tone-important: var(--d-tone-important);
+ --tone-warning: var(--d-tone-warning); --tone-caution: var(--d-tone-caution);
+ --ph: color-mix(in srgb, var(--d-muted) 60%, var(--d-paper));
+ --ghost: color-mix(in srgb, var(--d-muted) 75%, var(--d-paper));
+ --radius: var(--d-radius);
+ background: var(--d-paper); color: var(--d-ink);
+}
+
+/* DARK — identical by contract, see the header */
+@media screen and (prefers-color-scheme: dark) {
+ :root:not([data-theme="light"]) [data-sp-design] {
+ --d-paper: var(--dd-paper); --d-ink: var(--dd-ink); --d-muted: var(--dd-muted);
+ --d-rule-c: var(--dd-rule); --d-soft: var(--dd-soft);
+ --d-accent: var(--dd-accent); --d-accent-ink: var(--dd-accent-ink); --d-on-accent: var(--dd-on-accent);
+ --d-mark: var(--dd-mark);
+ --d-tile: var(--dd-tile); --d-tile-ink: var(--dd-tile-ink);
+ --d-cell1: var(--dd-cell1); --d-cell2: var(--dd-cell2); --d-cell3: var(--dd-cell3);
+ --d-cell1-ink: var(--dd-cell1-ink); --d-cell2-ink: var(--dd-cell2-ink); --d-cell3-ink: var(--dd-cell3-ink);
+ --d-tone-note: var(--dd-tone-note); --d-tone-tip: var(--dd-tone-tip); --d-tone-important: var(--dd-tone-important);
+ --d-tone-warning: var(--dd-tone-warning); --d-tone-caution: var(--dd-tone-caution);
+ }
+}
+@media screen {
+ :root[data-theme="dark"] [data-sp-design] {
+ --d-paper: var(--dd-paper); --d-ink: var(--dd-ink); --d-muted: var(--dd-muted);
+ --d-rule-c: var(--dd-rule); --d-soft: var(--dd-soft);
+ --d-accent: var(--dd-accent); --d-accent-ink: var(--dd-accent-ink); --d-on-accent: var(--dd-on-accent);
+ --d-mark: var(--dd-mark);
+ --d-tile: var(--dd-tile); --d-tile-ink: var(--dd-tile-ink);
+ --d-cell1: var(--dd-cell1); --d-cell2: var(--dd-cell2); --d-cell3: var(--dd-cell3);
+ --d-cell1-ink: var(--dd-cell1-ink); --d-cell2-ink: var(--dd-cell2-ink); --d-cell3-ink: var(--dd-cell3-ink);
+ --d-tone-note: var(--dd-tone-note); --d-tone-tip: var(--dd-tone-tip); --d-tone-important: var(--dd-tone-important);
+ --d-tone-warning: var(--dd-tone-warning); --d-tone-caution: var(--dd-tone-caution);
+ }
+}
+
+/* ————— type ————— */
+[data-sp-design] .sp-page-inner { font-family: var(--d-body); font-size: calc(var(--sp-read) * var(--d-size)); }
+.sp-app.sp-reading [data-sp-design] .sp-page-inner { font-size: calc(17px * var(--d-size)); }
+[data-sp-design] .sp-b { line-height: var(--d-leading); }
+[data-sp-design] :is(.sp-title, .sp-b-h1, .sp-b-h2) { font-family: var(--d-display); }
+[data-sp-design] .sp-title {
+ font-size: var(--d-title-size); font-weight: var(--d-title-weight);
+ letter-spacing: var(--d-title-tracking); line-height: var(--d-title-leading);
+ text-wrap: balance;
+}
+[data-sp-design] :is(.sp-b-h1, .sp-b-h2, .sp-b-h3) { font-weight: var(--d-head-weight); }
+[data-sd-headstyle="italic"] :is(.sp-b-h1, .sp-b-h2) { font-style: italic; }
+[data-sd-headcase="upper"] :is(.sp-title, .sp-b-h1, .sp-b-h2) { text-transform: uppercase; }
+[data-sp-design] :is(p, li, h1, h2, h3, blockquote, td, th, figcaption) code,
+[data-sp-design] .sp-b-code code { font-family: var(--d-mono); }
+
+/* LABELS — the small type that names things: a third-level head, a table
+ header, a callout's name, the breadcrumb that reads as the page's kicker. */
+[data-sp-design] :is(.sp-b-h3, .sp-tb th.sp-tb-cell, .sp-view-table th, .sp-callout-chip, .sp-crumb,
+ .sp-backlinks-h, .sp-col-head, .sp-view-title, .sp-canvas-title) { font-family: var(--d-label); }
+[data-sd-label="caps"] :is(.sp-b-h3, .sp-tb th.sp-tb-cell, .sp-view-table th, .sp-callout-chip, .sp-crumb,
+ .sp-col-head, .sp-view-title, .sp-canvas-title) { text-transform: uppercase; letter-spacing: .08em; }
+[data-sd-label="caps"] .sp-b-h3 { font-size: .84em; }
+[data-sd-label="smallcaps"] :is(.sp-b-h3, .sp-tb th.sp-tb-cell, .sp-view-table th, .sp-callout-chip, .sp-crumb,
+ .sp-col-head, .sp-view-title, .sp-canvas-title) { font-variant-caps: all-small-caps; letter-spacing: .05em; }
+[data-sd-label="italic"] :is(.sp-b-h3, .sp-tb th.sp-tb-cell, .sp-view-table th, .sp-crumb, .sp-view-title) { font-style: italic; }
+[data-sd-labelink="accent"] :is(.sp-b-h3, .sp-crumb, .sp-crumb a) { color: var(--d-accent-ink); }
+
+/* SECOND-LEVEL HEADS carry the section structure */
+[data-sd-h2="above"] .sp-b-h2 { border-top: var(--d-rule) solid var(--d-ink); padding-top: .5em; margin-top: 1.5em; }
+[data-sd-h2="double"] .sp-b-h2 { border-top: calc(var(--d-rule) * 3 + 1px) double var(--d-ink); padding-top: .45em; margin-top: 1.5em; }
+[data-sd-h2="bar"] .sp-b-h2::after { content: ''; display: block; width: 48px; height: 2px; margin-top: .4em; background: var(--d-mark); }
+[data-sd-h2="under"] .sp-b-h2 > .sp-text { text-decoration: underline; text-decoration-thickness: var(--d-rule); text-underline-offset: .22em; }
+
+/* THE OPENING PARAGRAPH — the first paragraph at the top level of the page */
+[data-sd-dropcap="on"] .sp-page-inner > .sp-b-p:not(.sp-b-p ~ .sp-b-p) > .sp-text::first-letter {
+ float: left; font-family: var(--d-display); font-size: 3.3em; line-height: .82;
+ padding: .07em .1em 0 0; font-weight: 600; font-style: normal; color: var(--d-mark);
+}
+[data-sd-justify="on"] :is(.sp-b-p, .sp-b-bullet, .sp-b-number) > .sp-text { text-align: justify; hyphens: auto; }
+[data-sd-numerals="oldstyle"] .sp-page-inner { font-variant-numeric: oldstyle-nums; }
+[data-sd-numerals="oldstyle"] :is(.sp-tb, .sp-view-table) { font-variant-numeric: lining-nums tabular-nums; }
+[data-sd-numerals="mono"] :is(.sp-tb, .sp-view-table) { font-variant-numeric: tabular-nums; }
+/* a right-aligned column is how a table says "these are figures" */
+[data-sd-numerals="mono"] .sp-tb td[style*="right"] { font-family: var(--d-mono); font-size: .92em; }
+
+/* ————— lists and tasks ————— */
+[data-sd-bullet="dash"] ul.sp-list > .sp-b-bullet { list-style-type: '– '; }
+[data-sd-bullet="square"] ul.sp-list > .sp-b-bullet { list-style-type: square; }
+[data-sd-check="square"] .sp-check, [data-sd-check="round"] .sp-check {
+ appearance: none; -webkit-appearance: none;
+ width: .95em; height: .95em; margin: .42em 0 0; flex: 0 0 auto;
+ display: inline-grid; place-content: center; cursor: pointer;
+ border: 1.5px solid var(--d-muted); border-radius: 0; background: transparent;
+}
+[data-sd-check="round"] .sp-check { border-radius: 50%; }
+[data-sd-check="square"] .sp-check:checked, [data-sd-check="round"] .sp-check:checked { background: var(--d-mark); border-color: var(--d-mark); }
+[data-sd-check="square"] .sp-check:checked::before, [data-sd-check="round"] .sp-check:checked::before {
+ content: ''; width: .46em; height: .24em; border: solid var(--d-paper); border-width: 0 0 2px 2px;
+ transform: translateY(-.05em) rotate(-45deg);
+}
+
+/* ————— callouts —————
+ The tone's icon and NAME always travel with the box (styles.css), so a
+ design restyles the box — but never collapses the tones: each design names
+ five hues of its own (the --d-tone-* roles on the surface), and the
+ validator holds them pairwise apart. */
+[data-sd-callout="outline"] .sp-b-callout {
+ background: transparent; border: max(1px, calc(var(--d-rule) * .75)) solid var(--d-ink); border-radius: var(--d-radius);
+ /* the box is ink; the TONE is the start bar */
+ border-inline-start: 5px solid var(--tone-h);
+}
+[data-sd-callout="rules"] .sp-b-callout {
+ background: transparent; border: 0; border-block: 1px solid var(--tone-line); border-radius: 0; padding-inline: 0;
+}
+[data-sd-callout="fill"] .sp-b-callout {
+ /* 40% = designs.ts FILL_MIX, where its legibility is checked */
+ --tone-bg: color-mix(in srgb, var(--tone-h) 40%, var(--bg)); --tone-ink: var(--d-ink);
+ border: 0; border-radius: calc(var(--d-radius) + 4px); padding: 14px 18px;
+}
+[data-sd-callout="shadow"] .sp-b-callout {
+ background: var(--d-paper); border: 2px solid var(--d-ink); border-radius: var(--d-radius);
+ box-shadow: 5px 5px 0 var(--tone-h);
+}
+
+/* ————— quotes ————— */
+[data-sd-quote="bar"] .sp-b-quote {
+ border-inline-start: calc(var(--d-rule) + 2px) solid var(--d-mark); padding-inline-start: 18px;
+ color: var(--d-ink); font-size: 1.16em; font-weight: 600; letter-spacing: -.01em;
+}
+[data-sd-quote="display"] .sp-b-quote {
+ border: 0; padding: 0; margin: 18px 0; color: var(--d-ink);
+ font-family: var(--d-display); font-style: italic; font-size: 1.5em; line-height: 1.28;
+}
+[data-sd-quote="pull"] .sp-b-quote {
+ border: 0; border-block: var(--d-rule) solid var(--d-ink); padding: 14px 6%; margin: 22px 0;
+ text-align: center; color: var(--d-ink);
+ font-family: var(--d-display); font-weight: var(--d-head-weight); font-size: 1.32em; line-height: 1.3;
+}
+[data-sd-quote="tile"] .sp-b-quote {
+ /* the roles a chip or a link inside the quote reads, re-pointed at the
+ tile, or inline code is a pale chip with pale text on it */
+ --ink: var(--d-tile-ink);
+ --chrome-2: color-mix(in srgb, var(--d-tile-ink) 16%, var(--d-tile));
+ --line: color-mix(in srgb, var(--d-tile-ink) 28%, var(--d-tile));
+ border: 0; background: var(--d-tile); color: var(--d-tile-ink);
+ border-radius: calc(var(--d-radius) + 8px); padding: 20px 24px; margin: 14px 0;
+ font-family: var(--d-display); font-weight: 700; font-size: 1.28em; line-height: 1.25; letter-spacing: -.015em;
+}
+[data-sd-quote="indent"] .sp-b-quote { border: 0; padding-inline: 2.5em 1.5em; color: var(--d-ink); }
+
+/* ————— tables ————— */
+[data-sp-design] .sp-tb th.sp-tb-cell { background: var(--d-soft); }
+[data-sd-table="rules"] .sp-tb-cell { border-inline-width: 0; border-top-width: 0; }
+[data-sd-table="rules"] .sp-tb th.sp-tb-cell { background: transparent; border-bottom: var(--d-rule) solid var(--d-ink); }
+[data-sd-table="rules"] .sp-view-table th { border-bottom: var(--d-rule) solid var(--d-ink); }
+[data-sd-table="bands"] .sp-tb { border-collapse: separate; border-spacing: 0 6px; }
+[data-sd-table="bands"] .sp-tb-cell { border: 0; background: var(--d-soft); }
+[data-sd-table="bands"] .sp-tb th.sp-tb-cell { background: transparent; }
+[data-sd-table="bands"] .sp-tb td.sp-tb-cell:first-child {
+ border-start-start-radius: var(--d-radius); border-end-start-radius: var(--d-radius); font-weight: 600;
+}
+[data-sd-table="bands"] .sp-tb td.sp-tb-cell:last-child { border-start-end-radius: var(--d-radius); border-end-end-radius: var(--d-radius); }
+[data-sp-design] .sp-view-table th { color: var(--d-muted); }
+
+/* ————— rules between sections ————— */
+[data-sd-divider="ink"] .sp-b-divider hr { border-top: var(--d-rule) solid var(--d-ink); }
+[data-sd-divider="double"] .sp-b-divider hr { border-top: calc(var(--d-rule) * 3 + 1px) double var(--d-ink); }
+[data-sd-divider="short"] .sp-b-divider hr { width: 64px; margin-inline: auto; border-top: 2px solid var(--d-mark); }
+[data-sd-divider="asterism"] .sp-b-divider hr { border: 0; height: auto; overflow: visible; text-align: center; }
+[data-sd-divider="asterism"] .sp-b-divider hr::after { content: '*\2003*\2003*'; color: var(--d-muted); font-family: var(--d-body); }
+
+/* ————— cards, boards, canvases —————
+ Corners follow the design; so does the hard offset shadow a riso print
+ gets when the second drum does not quite register. */
+[data-sp-design] :is(.sp-issue, .sp-gcard, .sp-col, .sp-pagecard, .sp-linkcard, .sp-canvas-body,
+ .sp-canvas-body > .sp-cv-card, .sp-prop-val, .sp-b-image img, .sp-b-media video) { border-radius: var(--d-radius); }
+[data-sd-shadow="hard"] :is(.sp-issue, .sp-gcard, .sp-pagecard, .sp-linkcard, .sp-canvas-body > .sp-cv-card, .sp-b-code pre) {
+ border: 2px solid var(--d-ink); box-shadow: 4px 4px 0 var(--d-accent);
+}
+
+/* THE TILE — the Bento mark as layout grammar. A canvas and a gallery sit on
+ the design's tile colour and their cards take the three cell colours in
+ turn, each with an ink chosen for contrast (designs.ts), and the card's own
+ roles re-pointed so chips, dates and links inside it read on the cell. */
+[data-sd-tile="on"] :is(.sp-canvas-body, .sp-gallery) {
+ background-color: var(--d-tile); background-image: none; border-color: transparent;
+ border-radius: calc(var(--d-radius) + 10px);
+}
+[data-sd-tile="on"] .sp-gallery { padding: 14px; }
+[data-sd-tile="on"] :is(.sp-canvas-body > .sp-cv-card, .sp-gcard) {
+ --cell: var(--d-cell1); --cell-ink: var(--d-cell1-ink);
+ --ink: var(--cell-ink); --ink-2: var(--cell-ink);
+ --muted: color-mix(in srgb, var(--cell-ink) 80%, var(--cell));
+ --line: color-mix(in srgb, var(--cell-ink) 22%, var(--cell));
+ --chrome: color-mix(in srgb, var(--cell-ink) 12%, var(--cell));
+ --chrome-2: color-mix(in srgb, var(--cell-ink) 16%, var(--cell));
+ --surface: var(--cell);
+ background: var(--cell); color: var(--cell-ink); border-color: transparent;
+}
+[data-sd-tile="on"] :is(.sp-canvas-body > .sp-cv-card:nth-child(3n+2 of .sp-cv-card), .sp-gcard:nth-child(3n+2)) {
+ --cell: var(--d-cell2); --cell-ink: var(--d-cell2-ink);
+}
+[data-sd-tile="on"] :is(.sp-canvas-body > .sp-cv-card:nth-child(3n of .sp-cv-card), .sp-gcard:nth-child(3n)) {
+ --cell: var(--d-cell3); --cell-ink: var(--d-cell3-ink);
+}
+
+/* ————— consent stays chrome —————
+ The remote-content gate asks the reader a question ("load this from the
+ web?"), and it sits INSIDE the column. It must never read a design's
+ tokens: a palette could make its text match its ground, or disguise the
+ button as prose. So it takes the CHROME's values, captured at the root
+ before any surface re-points them, and its own type. The same holds for any
+ future consent or security affordance rendered inside a page — add it to
+ this list, and the rig's pixel check covers it. */
+:root {
+ --sp-app-ink: var(--ink); --sp-app-ink-2: var(--ink-2); --sp-app-muted: var(--muted);
+ --sp-app-line: var(--line); --sp-app-edge: var(--edge); --sp-app-bg: var(--bg);
+ --sp-app-surface: var(--surface); --sp-app-chrome: var(--chrome); --sp-app-chrome-2: var(--chrome-2);
+}
+[data-sp-design] :is(.sp-remote, .sp-media-empty) {
+ --ink: var(--sp-app-ink); --ink-2: var(--sp-app-ink-2); --muted: var(--sp-app-muted);
+ --line: var(--sp-app-line); --edge: var(--sp-app-edge); --bg: var(--sp-app-bg);
+ --surface: var(--sp-app-surface); --chrome: var(--sp-app-chrome); --chrome-2: var(--sp-app-chrome-2);
+ --radius: 10px;
+ color: var(--sp-app-ink); background-color: var(--sp-app-chrome-2);
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
+ font-size: 15px; font-style: normal; font-weight: 400; line-height: 1.5;
+ letter-spacing: normal; text-transform: none; text-align: start; font-variant: normal;
+ border-radius: 10px; box-shadow: none;
+}
+
+/* ————— paper —————
+ The light palette applies by construction (the dark mapping is screen-only).
+ The paper's own tint is NOT printed — the sheet of paper is the paper — and
+ a box whose only edge was a fill or a shadow gets the print sheet's
+ hairline, as a tinted callout already does (styles.css). */
+@media print {
+ [data-sp-design] { background: none; }
+ [data-sd-callout="fill"] .sp-b-callout, [data-sd-callout="shadow"] .sp-b-callout { border: 1px solid #767676; box-shadow: none; }
+ [data-sd-quote="tile"] .sp-b-quote { background: none; color: var(--d-ink); border: 1px solid #767676; }
+ [data-sd-shadow="hard"] :is(.sp-issue, .sp-gcard, .sp-pagecard, .sp-linkcard, .sp-canvas-body > .sp-cv-card, .sp-b-code pre) { box-shadow: none; }
+}
diff --git a/spaces/src/designs.ts b/spaces/src/designs.ts
new file mode 100644
index 00000000..c3942aee
--- /dev/null
+++ b/spaces/src/designs.ts
@@ -0,0 +1,1001 @@
+// SPDX-License-Identifier: MIT
+// Copyright (c) 2026 The Bento authors
+//
+// Page designs: the author's choice of how the reading surface looks.
+//
+// THE RULING THIS IMPLEMENTS (docs/DECISIONS.md, 2026-09-26). The author picks
+// the design; the reader's light/dark setting picks between the design's two
+// palettes; the app chrome stays the reader's. That reverses the 2026-08-22
+// entry that made the reading surface chrome, and puts spaces where slides
+// already was — a slide's background has always been document data.
+//
+// A DESIGN IS DATA, NOT A STYLESHEET. Every design, built in or carried by a
+// document, is the same shape: two palettes, four font roles and a closed set
+// of switches. ONE base stylesheet (designs.css) reads the custom properties
+// and data attributes this module writes, so adding a built-in is a data entry
+// here and never new CSS. When a look needs structure the tokens cannot
+// express, the answer is a new SWITCH that every design can use — not a
+// bespoke sheet for one of them.
+//
+// VALIDATED, NOT SANITIZED. A document can carry its own designs
+// (`doc.designs`), and every value in one is checked against a closed rule
+// before it goes anywhere near a style: a colour must be a hex colour, a
+// number must sit in its range, a switch must be one of its words, a font must
+// be a name from FONT_STACKS or an embedded font asset. Anything else is
+// DROPPED to the base design's value and named by validate(). No author text
+// ever becomes CSS — the stacks are this file's own strings, the numbers are
+// numbers, and the words are attribute values the stylesheet matches exactly.
+//
+// RAW AUTHOR CSS DOES NOT SHIP. The security review of 2026-09-26 kept custom
+// designs token-only: a stylesheet in a mailed file can fetch (tracking) and
+// can overlay Save or the password gate. If that is ever revisited it arrives
+// as its own field with its own sanitizer and review — never through this
+// module, whose whole guarantee is that nothing here is free text.
+//
+// PURE AT MODULE LEVEL, DOM ONLY IN FUNCTIONS. scripts/test-spaces-model.ts
+// imports this in node, so nothing here may touch `document` at import time,
+// and imports carry `.ts` extensions.
+
+import type { SpacesDoc } from './model.ts'
+
+// ---- the shape ---------------------------------------------------------------
+
+/** Colour roles. Every palette names all of them. */
+export const PALETTE_KEYS = [
+ 'paper', 'ink', 'muted', 'rule', 'soft',
+ 'accent', 'accentInk', 'onAccent',
+ 'tile', 'tileInk', 'cell1', 'cell2', 'cell3',
+ 'toneNote', 'toneTip', 'toneImportant', 'toneWarning', 'toneCaution',
+] as const
+export type PaletteKey = (typeof PALETTE_KEYS)[number]
+export type Palette = Record<PaletteKey, string>
+
+/**
+ * The five callout tones are PALETTE ROLES, one colour each, per mode.
+ *
+ * TONE IS MEANING: a warning must not look like a tip. The first cut had a
+ * `tones: accent` switch that gave all five the design's one colour — and
+ * Studio, Almanac and Typescript drew five identical boxes, the Note reading
+ * "the blue one" in coral. So each design now names five hues of its own
+ * character, and the validator holds them pairwise apart (TONE_MIN_DISTANCE).
+ */
+export const TONE_KEYS = ['toneNote', 'toneTip', 'toneImportant', 'toneWarning', 'toneCaution'] as const
+type ToneKey = (typeof TONE_KEYS)[number]
+/** styles.css's own tone hues — the default a design inherits unless it names its own */
+const APP_TONES: Record<ToneKey, string> = {
+ toneNote: '#7d9cbd', toneTip: '#4f9e79', toneImportant: '#8a72cc', toneWarning: '#d9a326', toneCaution: '#cd6a63',
+}
+type PaletteIn = Omit<Palette, ToneKey> & Partial<Pick<Palette, ToneKey>>
+const pal = (p: PaletteIn): Palette => ({ ...APP_TONES, ...p })
+
+/** Where a face is used: titles and headings, prose, labels, code/numerals. */
+export const FONT_ROLES = ['display', 'body', 'label', 'mono'] as const
+export type FontRole = (typeof FONT_ROLES)[number]
+
+/**
+ * The font NAME LIST. A design names one of these, or an embedded font asset.
+ *
+ * SYSTEM STACKS ONLY: nothing can be fetched at runtime (PLATFORM §1), and a
+ * real face would travel inside every file. Whether the built-ins ever ship
+ * their intended faces is the maintainer's call (DECISIONS, 2026-09-26); until
+ * then each stack reaches for the closest face a reader's machine already has.
+ */
+export const FONT_STACKS: Readonly<Record<string, string>> = {
+ system: "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif",
+ grotesk: "'Helvetica Neue', Helvetica, Arial, 'Liberation Sans', sans-serif",
+ humanist: "'Avenir Next', Avenir, 'Segoe UI', 'Trebuchet MS', system-ui, sans-serif",
+ condensed: "'Avenir Next Condensed', 'DIN Condensed', 'Arial Narrow', 'Roboto Condensed', sans-serif",
+ transitional: "Charter, 'Bitstream Charter', 'Sitka Text', Cambria, Georgia, serif",
+ oldstyle: "'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif",
+ news: "Georgia, 'Times New Roman', Times, 'Liberation Serif', serif",
+ mono: "ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace",
+ typewriter: "'American Typewriter', 'Courier Prime', 'Courier New', Courier, monospace",
+ rounded: "ui-rounded, 'SF Pro Rounded', 'Arial Rounded MT Bold', system-ui, sans-serif",
+}
+
+type NumRule = { kind: 'num'; min: number; max: number; unit: string }
+type EnumRule = { kind: 'enum'; values: readonly string[] }
+const num = (min: number, max: number, unit = ''): NumRule => ({ kind: 'num', min, max, unit })
+const oneOf = (...values: string[]): EnumRule => ({ kind: 'enum', values })
+
+/**
+ * Every switch and metric a design may set, with the ONLY values it may take.
+ *
+ * Numbers become custom properties (`--d-<name>`); words become data
+ * attributes (`data-sd-<name>`) that designs.css matches exactly. Adding a
+ * switch = a row here + the rules that read it in designs.css + its labels in
+ * designpanel.ts. Nothing else.
+ */
+export const PROPS = {
+ size: num(0.85, 1.25),
+ leading: num(1.3, 2),
+ titleSize: num(1.4, 4, 'em'),
+ titleWeight: num(300, 900),
+ titleTracking: num(-0.06, 0.04, 'em'),
+ titleLeading: num(0.85, 1.4),
+ headWeight: num(300, 900),
+ radius: num(0, 24, 'px'),
+ rule: num(1, 4, 'px'),
+ headStyle: oneOf('normal', 'italic'),
+ headCase: oneOf('none', 'upper'),
+ label: oneOf('plain', 'caps', 'smallcaps', 'italic'),
+ labelInk: oneOf('ink', 'accent'),
+ h2: oneOf('none', 'above', 'double', 'bar', 'under'),
+ dropCap: oneOf('off', 'on'),
+ callout: oneOf('tint', 'outline', 'rules', 'fill', 'shadow'),
+ quote: oneOf('plain', 'bar', 'display', 'pull', 'tile', 'indent'),
+ table: oneOf('grid', 'rules', 'bands'),
+ numerals: oneOf('lining', 'mono', 'oldstyle'),
+ check: oneOf('native', 'square', 'round'),
+ tile: oneOf('off', 'on'),
+ shadow: oneOf('none', 'hard'),
+ justify: oneOf('off', 'on'),
+ divider: oneOf('rule', 'ink', 'double', 'asterism', 'short'),
+ bullet: oneOf('disc', 'dash', 'square'),
+} as const satisfies Record<string, NumRule | EnumRule>
+
+export type PropKey = keyof typeof PROPS
+export const PROP_KEYS = Object.keys(PROPS) as PropKey[]
+type PropValue<K extends PropKey> = (typeof PROPS)[K] extends NumRule ? number
+ : (typeof PROPS)[K] extends { values: readonly (infer V)[] } ? V : never
+export type Props = { [K in PropKey]: PropValue<K> }
+
+/** A fully resolved design: every value present and valid. */
+export interface Design {
+ light: Palette
+ dark: Palette
+ /** a FONT_STACKS name, or `asset:<key>` for a face embedded in the file */
+ fonts: Record<FontRole, string>
+ props: Props
+}
+
+/**
+ * What a document carries in `doc.designs[name]`: overrides on a base.
+ *
+ * Only what differs from the base is stored, so a document stays small and a
+ * built-in's later refinements still reach a fork of it. Unknown keys survive
+ * untouched (format additivity) and are ignored here.
+ */
+export interface DesignData {
+ label?: string
+ /** a built-in name; absent = the default look expressed as a design */
+ base?: string
+ light?: Partial<Palette>
+ dark?: Partial<Palette>
+ fonts?: Partial<Record<FontRole, string>>
+ props?: Partial<Props>
+ [extra: string]: unknown
+}
+
+// ---- the built-ins -----------------------------------------------------------
+
+/**
+ * The default look, expressed as a design.
+ *
+ * NOT SELECTABLE and never written as `design:` — the default is the ABSENCE
+ * of the key, which renders the untouched stylesheet byte for byte. This is
+ * only the base a custom design starts from when it names no built-in, so a
+ * fork of "no design" begins where the reader already was. Its values are
+ * styles.css's own light and dark tokens.
+ */
+export const PLAIN: Design = {
+ light: pal({
+ paper: '#ffffff', ink: '#1e2a3a', muted: '#5b6472', rule: '#e3e8ef', soft: '#f5f7fa',
+ accent: '#f7a600', accentInk: '#7a5200', onAccent: '#1e2a3a',
+ tile: '#1e2a3a', tileInk: '#ffffff', cell1: '#3b6fd4', cell2: '#f7a600', cell3: '#eceff4',
+ }),
+ dark: pal({
+ paper: '#14181e', ink: '#e7eaf0', muted: '#8b95a4', rule: '#2e353f', soft: '#1e232b',
+ accent: '#f7a600', accentInk: '#f0b74e', onAccent: '#1e2a3a',
+ tile: '#0d1015', tileInk: '#e7eaf0', cell1: '#3b6fd4', cell2: '#f7a600', cell3: '#272d36',
+ }),
+ fonts: { display: 'system', body: 'system', label: 'system', mono: 'mono' },
+ props: {
+ size: 1, leading: 1.65, titleSize: 2.06, titleWeight: 700, titleTracking: -0.02, titleLeading: 1.18,
+ headWeight: 700, radius: 10, rule: 1,
+ headStyle: 'normal', headCase: 'none', label: 'plain', labelInk: 'ink', h2: 'none', dropCap: 'off',
+ callout: 'tint', quote: 'plain', table: 'grid', numerals: 'lining', check: 'native', tile: 'off',
+ shadow: 'none', justify: 'off', divider: 'rule', bullet: 'disc',
+ },
+}
+
+const make = (over: { light: PaletteIn; dark: PaletteIn; fonts: Design['fonts']; props: Partial<Props> }): Design =>
+ ({ ...over, light: pal(over.light), dark: pal(over.dark), props: { ...PLAIN.props, ...over.props } })
+
+/**
+ * The built-in designs. Each is defensible from a real publishing tradition,
+ * and each differs in STRUCTURE, not only in palette.
+ *
+ * ORDER IS THE PICKER'S ORDER. Names are permanent once a file says them.
+ */
+export const BUILT_INS: Readonly<Record<string, Design>> = {
+ // LEDGER — the financial report and the Swiss grid: a grotesque, numbers as
+ // first-class citizens in a monospace, heavy rules above sections, cobalt as
+ // the single signal colour, square corners everywhere.
+ ledger: make({
+ light: {
+ paper: '#f7f8fa', ink: '#111418', muted: '#5a616c', rule: '#d5d9e0', soft: '#eceef3',
+ accent: '#2743d6', accentInk: '#2743d6', onAccent: '#ffffff',
+ tile: '#111418', tileInk: '#f7f8fa', cell1: '#2743d6', cell2: '#d5d9e0', cell3: '#eceef3',
+ },
+ dark: {
+ paper: '#0e1116', ink: '#e8eaee', muted: '#9199a6', rule: '#262c36', soft: '#171b22',
+ accent: '#8492ff', accentInk: '#9aa6ff', onAccent: '#0e1116',
+ tile: '#050608', tileInk: '#e8eaee', cell1: '#8492ff', cell2: '#262c36', cell3: '#171b22',
+ },
+ fonts: { display: 'grotesk', body: 'grotesk', label: 'mono', mono: 'mono' },
+ props: {
+ titleSize: 3.1, titleWeight: 800, titleTracking: -0.035, titleLeading: 0.98, headWeight: 750,
+ radius: 0, rule: 2, label: 'caps', labelInk: 'accent', h2: 'above', callout: 'outline',
+ quote: 'bar', table: 'rules', numerals: 'mono', check: 'square', divider: 'ink', bullet: 'square',
+ },
+ }),
+ // ALMANAC — the literary quarterly and the seed catalogue: an old-style
+ // serif set large, italic heads with a short rule under them, a drop cap on
+ // the opening paragraph, and marigold as the one accent. The callout tones
+ // keep five hues of their own, in the same earthy register.
+ almanac: make({
+ light: {
+ paper: '#edf0e7', ink: '#1c2a21', muted: '#56645a', rule: '#cdd4c4', soft: '#e2e7da',
+ // #b07800, not the specimen's #c98a0b: the drop cap and a done box are
+ // marks that carry meaning, and #c98a0b was 2.56:1 on this paper
+ accent: '#b07800', accentInk: '#7f5600', onAccent: '#0f1510',
+ tile: '#1c2a21', tileInk: '#edf0e7', cell1: '#b07800', cell2: '#cdd4c4', cell3: '#e2e7da',
+ // an editorial set around the marigold: slate, sage, plum, marigold, rust
+ toneNote: '#5f7f8c', toneTip: '#6b8f4e', toneImportant: '#8a6a9a', toneWarning: '#b07800', toneCaution: '#b0503a',
+ },
+ dark: {
+ paper: '#141a16', ink: '#e3e8dd', muted: '#a1ad9f', rule: '#2c3730', soft: '#1b231e',
+ accent: '#e4b04a', accentInk: '#edc574', onAccent: '#141a16',
+ tile: '#0b0f0c', tileInk: '#e3e8dd', cell1: '#e4b04a', cell2: '#2c3730', cell3: '#1b231e',
+ toneNote: '#8fb0bc', toneTip: '#9cc07c', toneImportant: '#b89ac8', toneWarning: '#e4b04a', toneCaution: '#e0806a',
+ },
+ fonts: { display: 'oldstyle', body: 'transitional', label: 'transitional', mono: 'mono' },
+ props: {
+ size: 1.09, leading: 1.6, titleSize: 3.2, titleWeight: 500, titleTracking: -0.02, titleLeading: 1,
+ headWeight: 500, radius: 2, headStyle: 'italic', label: 'caps', labelInk: 'accent', h2: 'bar',
+ dropCap: 'on', callout: 'rules', quote: 'display', table: 'rules', numerals: 'oldstyle',
+ check: 'round', divider: 'short',
+ },
+ }),
+ // STUDIO — the Bento mark as layout grammar: a navy tile holding slate,
+ // coral and cream compartments. A canvas and a gallery become that tile;
+ // a quote is a navy card; a callout is a filled compartment.
+ studio: make({
+ light: {
+ paper: '#ffffff', ink: '#16273e', muted: '#566781', rule: '#dde3ec', soft: '#f0ebe0',
+ accent: '#ff9e8a', accentInk: '#b84a34', onAccent: '#16273e',
+ tile: '#16273e', tileInk: '#f0ebe0', cell1: '#5e7699', cell2: '#ff9e8a', cell3: '#f0ebe0',
+ // filled boxes, so the five hues are saturated enough to stay five
+ // things at a 40% fill (closest pair 42 apart)
+ toneNote: '#3f7fd0', toneTip: '#2fae6f', toneImportant: '#a45ee0', toneWarning: '#f5c542', toneCaution: '#ff5f4f',
+ },
+ dark: {
+ paper: '#0b1320', ink: '#eef1f6', muted: '#9aa8be', rule: '#223149', soft: '#16273e',
+ accent: '#ff9e8a', accentInk: '#ffb5a5', onAccent: '#16273e',
+ tile: '#1b3050', tileInk: '#f0ebe0', cell1: '#5e7699', cell2: '#ff9e8a', cell3: '#f0ebe0',
+ toneNote: '#3f7fd0', toneTip: '#2fae6f', toneImportant: '#a45ee0', toneWarning: '#f5c542', toneCaution: '#ff5f4f',
+ },
+ fonts: { display: 'humanist', body: 'humanist', label: 'humanist', mono: 'mono' },
+ props: {
+ size: 1.03, titleSize: 3.4, titleWeight: 800, titleTracking: -0.04, titleLeading: 0.95,
+ headWeight: 780, radius: 14, callout: 'fill', quote: 'tile', table: 'bands', check: 'round',
+ tile: 'on',
+ },
+ }),
+ // BROADSHEET — the newspaper: a bold news serif under thick-and-thin
+ // double rules, justified columns, small-caps section labels in the
+ // masthead red, and a pull quote set between rules.
+ broadsheet: make({
+ light: {
+ paper: '#f7f5ee', ink: '#141414', muted: '#57534b', rule: '#d6d1c4', soft: '#edeade',
+ accent: '#b3261e', accentInk: '#a3231b', onAccent: '#ffffff',
+ tile: '#141414', tileInk: '#f7f5ee', cell1: '#b3261e', cell2: '#d6d1c4', cell3: '#edeade',
+ },
+ dark: {
+ paper: '#161513', ink: '#ece8de', muted: '#a7a196', rule: '#35322c', soft: '#1f1d1a',
+ accent: '#ef6a5f', accentInk: '#f4877d', onAccent: '#161513',
+ tile: '#0b0b0a', tileInk: '#ece8de', cell1: '#ef6a5f', cell2: '#35322c', cell3: '#1f1d1a',
+ },
+ fonts: { display: 'news', body: 'news', label: 'grotesk', mono: 'mono' },
+ props: {
+ size: 1.03, leading: 1.55, titleSize: 2.9, titleWeight: 800, titleTracking: -0.015, titleLeading: 1.04,
+ headWeight: 800, radius: 0, rule: 1, label: 'caps', labelInk: 'accent', h2: 'double',
+ callout: 'outline', quote: 'pull', table: 'rules', check: 'square', justify: 'on',
+ divider: 'double', bullet: 'square',
+ },
+ }),
+ // TYPESCRIPT — the manuscript and the RFC: every face a typewriter, double
+ // spacing, headings in capitals and underlined as a typist would, a
+ // two-colour ribbon (black and red), asterisms between sections.
+ typescript: make({
+ light: {
+ paper: '#faf8f2', ink: '#1c1b19', muted: '#5e5b54', rule: '#cbc6ba', soft: '#f0ece2',
+ accent: '#c0392b', accentInk: '#a5301f', onAccent: '#ffffff',
+ tile: '#1c1b19', tileInk: '#faf8f2', cell1: '#c0392b', cell2: '#cbc6ba', cell3: '#f0ece2',
+ // the ribbon's red for caution; the other four as typed inks
+ toneNote: '#6b6760', toneTip: '#4f7a5c', toneImportant: '#5a5a9e', toneWarning: '#b8862b', toneCaution: '#c0392b',
+ },
+ dark: {
+ paper: '#121212', ink: '#e4e1d8', muted: '#9d998f', rule: '#33312d', soft: '#1c1b19',
+ accent: '#ff7a6b', accentInk: '#ff9285', onAccent: '#121212',
+ tile: '#050505', tileInk: '#e4e1d8', cell1: '#ff7a6b', cell2: '#33312d', cell3: '#1c1b19',
+ toneNote: '#a8a399', toneTip: '#7fb08d', toneImportant: '#9c9ce0', toneWarning: '#e0b25a', toneCaution: '#ff7a6b',
+ },
+ fonts: { display: 'typewriter', body: 'typewriter', label: 'typewriter', mono: 'typewriter' },
+ props: {
+ size: 0.95, leading: 1.85, titleSize: 1.6, titleWeight: 700, titleTracking: 0.02, titleLeading: 1.3,
+ headWeight: 700, radius: 0, rule: 1, headCase: 'upper', h2: 'under', callout: 'outline',
+ quote: 'indent', table: 'grid', check: 'square', divider: 'asterism', bullet: 'dash',
+ },
+ }),
+ // RISO — the risograph zine: two spot inks (federal blue and fluorescent
+ // pink) on cream stock, heavy capital headlines, hard offset shadows where
+ // the second drum mis-registers, and cards that tile in spot colours.
+ riso: make({
+ light: {
+ paper: '#f5f0e6', ink: '#1e2b6e', muted: '#4e5584', rule: '#cec7dc', soft: '#f6e1ea',
+ accent: '#ff48b0', accentInk: '#b8157d', onAccent: '#101848',
+ tile: '#1e2b6e', tileInk: '#f5f0e6', cell1: '#ff48b0', cell2: '#ffe800', cell3: '#00a95c',
+ },
+ dark: {
+ paper: '#15172e', ink: '#f3eee4', muted: '#a7a9cc', rule: '#2e3160', soft: '#1f2244',
+ accent: '#ff6bc1', accentInk: '#ff94d2', onAccent: '#15172e',
+ tile: '#232766', tileInk: '#f3eee4', cell1: '#ff48b0', cell2: '#ffe800', cell3: '#00a95c',
+ },
+ fonts: { display: 'condensed', body: 'grotesk', label: 'grotesk', mono: 'mono' },
+ props: {
+ titleSize: 3.3, titleWeight: 900, titleTracking: -0.01, titleLeading: 0.95, headWeight: 900,
+ radius: 0, rule: 2, headCase: 'upper', label: 'caps', h2: 'none', callout: 'shadow',
+ quote: 'tile', table: 'grid', check: 'square', tile: 'on', shadow: 'hard', bullet: 'square',
+ },
+ }),
+}
+
+export const BUILT_IN_NAMES: readonly string[] = Object.keys(BUILT_INS)
+export const isBuiltIn = (name: unknown): name is string =>
+ typeof name === 'string' && Object.hasOwn(BUILT_INS, name)
+
+/** A doc-local design name: short, lowercase, and safe as an attribute value. */
+export const DESIGN_NAME = /^[a-z0-9][a-z0-9-]{0,31}$/
+
+// ---- validation ---------------------------------------------------------------
+
+const HEX = /^#(?:[0-9a-f]{3}|[0-9a-f]{6})$/i
+const ASSET_FONT = /^asset:[A-Za-z0-9_~.-]{1,80}$/
+
+/** A hex colour, normalised to #rrggbb lowercase, or null. */
+export function parseColour(v: unknown): string | null {
+ if (typeof v !== 'string') return null
+ const s = v.trim()
+ if (!HEX.test(s)) return null
+ const h = s.slice(1).toLowerCase()
+ return `#${h.length === 3 ? h.split('').map((c) => c + c).join('') : h}`
+}
+
+/** The data: URI an `asset:<key>` font resolves to in this document, or null. */
+export function fontAssetUri(doc: SpacesDoc, ref: string): string | null {
+ if (!ASSET_FONT.test(ref)) return null
+ const key = ref.slice(6)
+ const assets = doc.assets
+ if (!assets || !Object.hasOwn(assets, key)) return null
+ const v = assets[key]
+ // a font, and only a font: an image or a clip under a font role is a mistake
+ // the reader would see as a silent fallback, so it is refused here and named
+ return typeof v === 'string' && /^data:(?:font\/|application\/(?:x-)?font-|application\/vnd\.ms-fontobject)/i.test(v) ? v : null
+}
+
+/** Whether `v` is a font value this document can honour. */
+export function validFont(doc: SpacesDoc, v: unknown): v is string {
+ if (typeof v !== 'string') return false
+ if (Object.hasOwn(FONT_STACKS, v)) return true
+ return fontAssetUri(doc, v) !== null
+}
+
+export function validProp(key: PropKey, v: unknown): boolean {
+ const rule: NumRule | EnumRule = PROPS[key]
+ if (rule.kind === 'num') return typeof v === 'number' && Number.isFinite(v) && v >= rule.min && v <= rule.max
+ return typeof v === 'string' && rule.values.includes(v)
+}
+
+/** One thing wrong with a document's design data, for validate(). */
+export interface DesignProblem {
+ code: string
+ path: string
+ message: string
+}
+
+const isObj = (v: unknown): v is Record<string, unknown> =>
+ !!v && typeof v === 'object' && !Array.isArray(v)
+
+/** The doc-local designs, as an object (absent or malformed = none). */
+export function localDesigns(doc: SpacesDoc): Record<string, unknown> {
+ const d = (doc as { designs?: unknown }).designs
+ return isObj(d) ? d : {}
+}
+
+/**
+ * A custom design's data over its base, with every invalid value dropped.
+ *
+ * `problems` collects what was dropped, so validate() can name each one — the
+ * renderer never needs to, because a dropped value simply falls to the base.
+ */
+export function resolveData(doc: SpacesDoc, name: string, data: unknown, problems: DesignProblem[] = []): Design {
+ const at = `designs.${name}`
+ if (!isObj(data)) {
+ problems.push({ code: 'bad-design', path: at, message: `designs.${name} is not an object, so it resolves to the default look.` })
+ return PLAIN
+ }
+ let base = PLAIN
+ if (data.base !== undefined) {
+ if (isBuiltIn(data.base)) base = BUILT_INS[data.base]
+ else problems.push({ code: 'unknown-design-base', path: `${at}.base`,
+ message: `base "${String(data.base)}" is not a built-in design (${BUILT_IN_NAMES.join(', ')}); the default look is used as the base.` })
+ }
+ const out: Design = {
+ light: { ...base.light }, dark: { ...base.dark },
+ fonts: { ...base.fonts }, props: { ...base.props },
+ }
+ for (const mode of ['light', 'dark'] as const) {
+ const pal = data[mode]
+ if (pal === undefined) continue
+ if (!isObj(pal)) { problems.push({ code: 'bad-design-value', path: `${at}.${mode}`, message: `${at}.${mode} is not an object and was ignored.` }); continue }
+ for (const [k, v] of Object.entries(pal)) {
+ if (!(PALETTE_KEYS as readonly string[]).includes(k)) {
+ problems.push({ code: 'unknown-design-key', path: `${at}.${mode}.${k}`, message: `"${k}" is not a colour role (${PALETTE_KEYS.join(', ')}); it is kept in the file and ignored.` })
+ continue
+ }
+ const c = parseColour(v)
+ if (c) out[mode][k as PaletteKey] = c
+ else problems.push({ code: 'bad-design-value', path: `${at}.${mode}.${k}`,
+ message: `${at}.${mode}.${k} = ${JSON.stringify(v)} is not a #rgb or #rrggbb colour; the base design's ${base[mode][k as PaletteKey]} is used.` })
+ }
+ }
+ if (data.fonts !== undefined) {
+ if (!isObj(data.fonts)) problems.push({ code: 'bad-design-value', path: `${at}.fonts`, message: `${at}.fonts is not an object and was ignored.` })
+ else for (const [k, v] of Object.entries(data.fonts)) {
+ if (!(FONT_ROLES as readonly string[]).includes(k)) {
+ problems.push({ code: 'unknown-design-key', path: `${at}.fonts.${k}`, message: `"${k}" is not a font role (${FONT_ROLES.join(', ')}); it is kept in the file and ignored.` })
+ continue
+ }
+ if (validFont(doc, v)) out.fonts[k as FontRole] = v
+ else problems.push({ code: 'bad-design-value', path: `${at}.fonts.${k}`,
+ message: `${at}.fonts.${k} = ${JSON.stringify(v)} is neither a font name (${Object.keys(FONT_STACKS).join(', ')}) nor an embedded font asset; the base design's "${base.fonts[k as FontRole]}" is used.` })
+ }
+ }
+ if (data.props !== undefined) {
+ if (!isObj(data.props)) problems.push({ code: 'bad-design-value', path: `${at}.props`, message: `${at}.props is not an object and was ignored.` })
+ else for (const [k, v] of Object.entries(data.props)) {
+ if (!Object.hasOwn(PROPS, k)) {
+ problems.push({ code: 'unknown-design-key', path: `${at}.props.${k}`, message: `"${k}" is not a design switch this build knows; it is kept in the file and ignored.` })
+ continue
+ }
+ const key = k as PropKey
+ if (validProp(key, v)) (out.props as Record<string, unknown>)[key] = v
+ else {
+ const rule: NumRule | EnumRule = PROPS[key]
+ const allowed = rule.kind === 'num' ? `a number from ${rule.min} to ${rule.max}` : `one of ${rule.values.join(', ')}`
+ problems.push({ code: 'bad-design-value', path: `${at}.props.${k}`,
+ message: `${at}.props.${k} = ${JSON.stringify(v)} is not ${allowed}; the base design's ${JSON.stringify(base.props[key])} is used.` })
+ }
+ }
+ }
+ // A NEW GROUND BRINGS ITS OWN INK. Picking a dark teal accent over a base
+ // whose text-on-accent is near-black would otherwise fail the floor and
+ // throw the accent away — the author's one choice, discarded for the
+ // sake of a value they never touched. So an ink the data did NOT set is
+ // re-chosen for the ground it did.
+ for (const mode of ['light', 'dark'] as const) {
+ const set = isObj(data[mode]) ? data[mode] as Record<string, unknown> : {}
+ const pal = out[mode]
+ const best = (bg: string, ...cands: string[]) => cands.reduce((a, c) => (contrast(bg, c) > contrast(bg, a) ? c : a))
+ if (set.accent !== undefined && set.onAccent === undefined) pal.onAccent = best(pal.accent, base[mode].onAccent, pal.ink, pal.paper, '#ffffff', '#000000')
+ if (set.tile !== undefined && set.tileInk === undefined) pal.tileInk = best(pal.tile, base[mode].tileInk, pal.ink, pal.paper, '#ffffff')
+ }
+ enforceFloors(out, base, at, problems)
+ return out
+}
+
+/**
+ * THE FLOORS: no design may hide text.
+ *
+ * `design`/`designs` are ordinary collaborative registers, so any writer in a
+ * live space can restyle every reader's page as they type. That is accepted —
+ * a writer can already edit the words — but a design must never make words
+ * DISAPPEAR, which a palette can do with nothing but colours (ink = paper).
+ * So every text-on-ground pair a design paints is held to a contrast floor,
+ * and a pair under it falls back to the base design's colours:
+ *
+ * text, secondary text and accent text on paper ......... 4.5:1
+ * text on wells (code, table heads, board columns) ....... 4.5:1
+ * text on the accent fill, text on the tile .............. 4.5:1
+ * each tile cell against the ink chosen for it ........... 4.5:1
+ *
+ * The OTHER floors are in PROPS: text size never under 0.85 of the reading
+ * size (13.6px at the smallest), line spacing never under 1.3, the title
+ * never under 1.4em. And there is deliberately NO switch for display,
+ * visibility, opacity or generated text — the only `content` in designs.css
+ * is decoration on a divider, a checkbox tick and a heading bar, all constant.
+ */
+export const CONTRAST_FLOORS: ReadonlyArray<readonly [fg: PaletteKey, bg: PaletteKey, min: number]> = [
+ ['ink', 'paper', 4.5], ['muted', 'paper', 4.5], ['accentInk', 'paper', 4.5],
+ ['ink', 'soft', 4.5], ['onAccent', 'accent', 4.5], ['tileInk', 'tile', 4.5],
+]
+
+function enforceFloors(out: Design, base: Design, at: string, problems: DesignProblem[]): void {
+ for (const mode of ['light', 'dark'] as const) {
+ const pal = out[mode]
+ const was = { ...pal }
+ const failing = (): Array<readonly [PaletteKey, PaletteKey, number]> =>
+ CONTRAST_FLOORS.filter(([fg, bg, min]) => contrast(pal[fg], pal[bg]) < min)
+ // Fall back the CUSTOM member of a failing pair — foreground first, then
+ // its ground — and re-check everything, because restoring a ground can
+ // break a pair that was passing against the custom one.
+ for (let pass = 0; pass < 4 && failing().length; pass++) {
+ for (const [fg, bg, min] of failing()) {
+ if (contrast(pal[fg], pal[bg]) >= min) continue
+ if (pal[fg] !== base[mode][fg]) pal[fg] = base[mode][fg]
+ if (contrast(pal[fg], pal[bg]) < min && pal[bg] !== base[mode][bg]) pal[bg] = base[mode][bg]
+ }
+ }
+ // the base passes every floor (the model rig asserts it), so this is the
+ // end of the line: a palette that still fails is the base's, whole
+ if (failing().length) Object.assign(pal, base[mode])
+ for (const c of ['cell1', 'cell2', 'cell3'] as const) {
+ if (contrast(pal[c], cellInk(pal[c], out)) < 4.5) pal[c] = base[mode][c]
+ }
+ // A FILLED callout puts the design's ink on a mix of the tone and the
+ // paper (designs.css, FILL_MIX). A custom accent can make that mix too
+ // dark for the ink — measured: 4.27:1 on a teal fork in dark — so the
+ // mix is checked here, where the numbers are, and the accent falls back.
+ if (out.props.callout === 'fill' && !fillReadable(pal)) for (const k of TONE_KEYS) pal[k] = base[mode][k]
+ // TONE IS MEANING: five tones a reader cannot tell apart are one tone
+ if (!tonesDistinct(pal, out.props.callout)) for (const k of TONE_KEYS) pal[k] = base[mode][k]
+ for (const k of PALETTE_KEYS) {
+ if (pal[k] === was[k]) continue
+ problems.push({ code: 'design-contrast', path: `${at}.${mode}.${k}`,
+ message: `${at}.${mode}.${k} = ${was[k]} would leave text under its contrast floor (${CONTRAST_FLOORS.filter(([f, b]) => f === k || b === k).map(([f, b, m]) => `${f} on ${b} ${m}:1`).join(', ') || 'callout fill or tile cell 4.5:1, or five tones a reader must tell apart'}); the base design's ${pal[k]} is used.` })
+ }
+ }
+ // …and if the base's own colours cannot carry a fill either, the SWITCH
+ // falls back instead: a design never gets to put text on a ground it fails.
+ if (out.props.callout === 'fill' && !(fillReadable(out.light) && fillReadable(out.dark))) {
+ const to = base.props.callout === 'fill' ? 'tint' : base.props.callout
+ problems.push({ code: 'design-contrast', path: `${at}.props.callout`,
+ message: `${at}.props.callout = "fill" puts text under 4.5:1 with these colours; "${to}" is used.` })
+ out.props.callout = to
+ }
+}
+
+/** How much of the tone a FILLED callout's ground is. designs.css says the same number. */
+export const FILL_MIX = 0.4
+/**
+ * The app's five callout tone hues (styles.css --tone-*, identical in both
+ * themes). Restated because a fill's legibility is decided HERE; the model rig
+ * asserts the two lists agree.
+ */
+export const TONE_HUES = ['#7d9cbd', '#4f9e79', '#8a72cc', '#d9a326', '#cd6a63'] as const
+
+/** color-mix(in srgb, a p, b) — the same arithmetic the browser does. */
+export function mixHex(a: string, b: string, p: number): string {
+ const [x, y] = [channels(a), channels(b)]
+ return '#' + x.map((c, i) => Math.round((c * p + y[i] * (1 - p)) * 255).toString(16).padStart(2, '0')).join('')
+}
+
+function fillReadable(pal: Palette): boolean {
+ return TONE_KEYS.every((k) => contrast(pal.ink, mixHex(pal[k], pal.paper, FILL_MIX)) >= 4.5)
+}
+
+/**
+ * What tells one tone from another ON THE PAGE, per callout style: a filled
+ * box is told by its fill; every other style draws the tone's own hue as a
+ * rule, a start bar or a shadow, and colours its label from it.
+ */
+export function toneSignature(pal: Palette, callout: Props['callout']): string[] {
+ return TONE_KEYS.map((k) => (callout === 'fill' ? mixHex(pal[k], pal.paper, FILL_MIX) : pal[k]))
+}
+/** Smallest sRGB distance (0–441) two tones' signatures may sit apart. */
+export const TONE_MIN_DISTANCE = 24
+export function rgbDistance(a: string, b: string): number {
+ const [x, y] = [channels(a), channels(b)]
+ return Math.hypot(...x.map((c, i) => (c - y[i]) * 255))
+}
+export function tonesDistinct(pal: Palette, callout: Props['callout']): boolean {
+ const s = toneSignature(pal, callout)
+ for (let i = 0; i < s.length; i++) for (let j = i + 1; j < s.length; j++) if (rgbDistance(s[i], s[j]) < TONE_MIN_DISTANCE) return false
+ return true
+}
+
+export interface Resolved {
+ /** the name as the document says it */
+ name: string
+ design: Design
+ /** carried by this document rather than built in */
+ custom: boolean
+}
+
+/**
+ * The design this document asks for, or null for the default look.
+ *
+ * NULL covers three cases and all three render the untouched stylesheet: no
+ * `design` key, a design name this build does not know (a newer built-in, or a
+ * typo — the key round-trips and validate() names it), and a non-string.
+ *
+ * A doc-local design SHADOWS NOTHING: a `doc.designs.ledger` is ignored because
+ * `ledger` means the built-in in every file, and validate() says so.
+ *
+ * `name` may be passed to resolve something other than `doc.design` — the
+ * picker's hover preview, and (later) a per-page `design`, which is why this
+ * takes a name rather than reading a fixed field.
+ */
+export function resolveDesign(doc: SpacesDoc, name: unknown = (doc as { design?: unknown }).design): Resolved | null {
+ if (typeof name !== 'string' || !name) return null
+ if (isBuiltIn(name)) return { name, design: BUILT_INS[name], custom: false }
+ if (!DESIGN_NAME.test(name)) return null
+ const local = localDesigns(doc)
+ if (!Object.hasOwn(local, name)) return null
+ return { name, design: resolveData(doc, name, local[name]), custom: true }
+}
+
+/** Everything validate() should say about `design` and `designs`. */
+export function designProblems(doc: SpacesDoc): DesignProblem[] {
+ const out: DesignProblem[] = []
+ const raw = doc as { design?: unknown; designs?: unknown }
+ if (raw.designs !== undefined && !isObj(raw.designs)) {
+ out.push({ code: 'bad-design', path: 'designs', message: 'designs is not an object of named designs; it is kept in the file and ignored.' })
+ }
+ const local = localDesigns(doc)
+ for (const [name, data] of Object.entries(local)) {
+ if (isBuiltIn(name)) {
+ out.push({ code: 'design-shadows-builtin', path: `designs.${name}`,
+ message: `designs.${name} has a built-in design's name, so it is never used — "${name}" always means the built-in.` })
+ continue
+ }
+ if (!DESIGN_NAME.test(name)) {
+ out.push({ code: 'bad-design-name', path: `designs.${name}`,
+ message: `"${name}" is not a usable design name (lowercase letters, digits and hyphens, up to 32), so it can never be selected.` })
+ continue
+ }
+ if (isObj(data) && data.label !== undefined && (typeof data.label !== 'string' || !data.label.trim() || data.label.length > 60)) {
+ out.push({ code: 'bad-design-value', path: `designs.${name}.label`, message: `designs.${name}.label must be a short string; the name is shown instead.` })
+ }
+ resolveData(doc, name, data, out)
+ }
+ if (raw.design !== undefined) {
+ if (typeof raw.design !== 'string' || !raw.design) {
+ out.push({ code: 'bad-design', path: 'design', message: `design = ${JSON.stringify(raw.design)} is not a design name, so the default look is shown.` })
+ } else if (!resolveDesign(doc)) {
+ out.push({ code: 'unknown-design', path: 'design',
+ message: `design "${raw.design}" is neither a built-in (${BUILT_IN_NAMES.join(', ')}) nor defined in designs, so the default look is shown. The value is kept.` })
+ }
+ }
+ return out
+}
+
+/** Asset keys the designs reference, so an embedded face never reads as an orphan. */
+export function designAssetKeys(doc: SpacesDoc): string[] {
+ const keys: string[] = []
+ for (const data of Object.values(localDesigns(doc))) {
+ if (!isObj(data) || !isObj(data.fonts)) continue
+ for (const v of Object.values(data.fonts)) if (typeof v === 'string' && ASSET_FONT.test(v)) keys.push(v.slice(6))
+ }
+ return keys
+}
+
+/** What the picker calls a doc-local design. */
+export function localLabel(doc: SpacesDoc, name: string): string {
+ const data = localDesigns(doc)[name]
+ const l = isObj(data) && typeof data.label === 'string' ? data.label.trim() : ''
+ return l && l.length <= 60 ? l : name
+}
+
+/** A fresh doc-local name that collides with nothing. */
+export function freshDesignName(doc: SpacesDoc): string {
+ const local = localDesigns(doc)
+ for (let n = 1; ; n++) {
+ const name = n === 1 ? 'custom' : `custom-${n}`
+ if (!Object.hasOwn(local, name) && !isBuiltIn(name)) return name
+ }
+}
+
+// ---- writing it down ---------------------------------------------------------
+
+/**
+ * Set or clear the document's design.
+ *
+ * RETURNING TO THE DEFAULT DELETES THE KEY — never `design: ''` or `null` —
+ * so a document that tried a design and went back is byte-identical to one
+ * that never did, and an older build sees nothing it has to preserve.
+ */
+export function setDesign(doc: SpacesDoc, name: string | null): void {
+ const d = doc as { design?: unknown }
+ if (name) d.design = name
+ else delete d.design
+}
+
+// ---- Markdown front matter -----------------------------------------------------
+
+/**
+ * The front matter an export opens with, or [] when there is no design.
+ *
+ * THE SMALLEST CORRECT FRONT MATTER: `design:` names it, and when the design
+ * is one this document carries, `designs:` holds that one entry as a single
+ * line of JSON — which is YAML flow syntax, so any YAML reader accepts it and
+ * no YAML parser is needed to read it back. A space with no design exports
+ * with no front matter at all, exactly as before.
+ */
+export function designFrontMatter(doc: SpacesDoc): string[] {
+ const name = (doc as { design?: unknown }).design
+ if (typeof name !== 'string' || !name) return []
+ const lines = ['---', `design: ${/^[A-Za-z0-9_-]+$/.test(name) ? name : JSON.stringify(name)}`]
+ const local = localDesigns(doc)
+ if (!isBuiltIn(name) && Object.hasOwn(local, name)) {
+ lines.push(`designs: ${JSON.stringify({ [name]: local[name] })}`)
+ }
+ lines.push('---', '')
+ return lines
+}
+
+export interface FrontMatterDesign {
+ design?: string
+ designs?: Record<string, unknown>
+ /** every line was ours, so the front matter is consumed rather than kept */
+ onlyOurs: boolean
+}
+
+/** Read `design:` and `designs:` out of front matter text (the lines between the fences). */
+export function readDesignFrontMatter(yaml: string): FrontMatterDesign {
+ const out: FrontMatterDesign = { onlyOurs: true }
+ for (const line of yaml.split('\n')) {
+ if (!line.trim()) continue
+ const d = /^design:\s*(.*?)\s*$/.exec(line)
+ if (d) {
+ let v = d[1]
+ if (v.startsWith('"')) { try { v = String(JSON.parse(v)) } catch { v = '' } }
+ else if (v.startsWith("'") && v.endsWith("'") && v.length > 1) v = v.slice(1, -1)
+ if (v) out.design = v
+ continue
+ }
+ const ds = /^designs:\s*(\{.*\})\s*$/.exec(line)
+ if (ds) {
+ try {
+ const parsed: unknown = JSON.parse(ds[1])
+ if (isObj(parsed)) out.designs = parsed
+ } catch { out.onlyOurs = false }
+ continue
+ }
+ out.onlyOurs = false
+ }
+ return out
+}
+
+/**
+ * Adopt a design that arrived with imported notes. Mutates `doc`; call it
+ * inside the import's one commit.
+ *
+ * CONSERVATIVE BY DESIGN: a doc-local entry is added only under a name this
+ * space does not already use, and `design` is set only when the space has
+ * none and the name resolves — an import adds pages, it does not restyle a
+ * space somebody already designed. Returns the name adopted, if any.
+ */
+export function adoptDesign(doc: SpacesDoc, design: string | undefined, designs: Record<string, unknown> | undefined): string | null {
+ const d = doc as { design?: unknown; designs?: Record<string, unknown> }
+ for (const [name, data] of Object.entries(designs ?? {})) {
+ if (isBuiltIn(name) || !DESIGN_NAME.test(name) || !isObj(data)) continue
+ if (Object.hasOwn(localDesigns(doc), name)) continue
+ d.designs = { ...localDesigns(doc), [name]: data }
+ }
+ if (!design || d.design !== undefined) return null
+ if (!resolveDesign(doc, design)) return null
+ d.design = design
+ return design
+}
+
+// ---- colour arithmetic (for readable ink on tile cells) -----------------------
+
+function channels(hex: string): [number, number, number] {
+ const h = (parseColour(hex) ?? '#000000').slice(1)
+ return [0, 2, 4].map((i) => parseInt(h.slice(i, i + 2), 16) / 255) as [number, number, number]
+}
+export function luminance(hex: string): number {
+ const [r, g, b] = channels(hex).map((c) => (c <= 0.03928 ? c / 12.92 : ((c + 0.055) / 1.055) ** 2.4))
+ return 0.2126 * r + 0.7152 * g + 0.0722 * b
+}
+export function contrast(a: string, b: string): number {
+ const [x, y] = [luminance(a), luminance(b)].sort((p, q) => q - p)
+ return (x + 0.05) / (y + 0.05)
+}
+/**
+ * The ink for a tile cell: whichever of the design's own dark inks, or white,
+ * reads best on it. Chosen, not stored, so a custom palette that darkens a
+ * cell does not need a second edit — and the cells are brand colours that do
+ * not flip with the reader's theme, so the LIGHT inks are the candidates in
+ * both palettes.
+ */
+export function cellInk(bg: string, d: Pick<Design, 'light'>): string {
+ let best = '#ffffff'
+ for (const c of [d.light.ink, d.light.onAccent]) if (contrast(bg, c) > contrast(bg, best)) best = c
+ return best
+}
+
+// ---- to CSS values -------------------------------------------------------------
+
+const kebab = (k: string): string => k.replace(/[A-Z]/g, (c) => `-${c.toLowerCase()}`)
+
+/** A family name for an embedded face: derived from its key, never from author text. */
+export function assetFamily(ref: string): string {
+ let h = 0x811c9dc5
+ for (let i = 0; i < ref.length; i++) { h ^= ref.charCodeAt(i); h = Math.imul(h, 0x01000193) >>> 0 }
+ return `bento-face-${h.toString(36)}`
+}
+
+/** The fallback stack a role falls to when its embedded face is missing. */
+const ROLE_FALLBACK: Record<FontRole, string> = { display: 'system', body: 'system', label: 'system', mono: 'mono' }
+
+export function fontStack(value: string, role: FontRole): string {
+ if (Object.hasOwn(FONT_STACKS, value)) return FONT_STACKS[value]
+ return `'${assetFamily(value)}', ${FONT_STACKS[ROLE_FALLBACK[role]]}`
+}
+
+/**
+ * The attributes and custom properties that put a design on a surface.
+ *
+ * EVERY VALUE HERE IS ONE THIS MODULE CHOSE OR CHECKED: palette values passed
+ * parseColour, numbers passed their range, words are PROPS entries, stacks are
+ * FONT_STACKS strings or a family name derived from an asset key. That is the
+ * whole of the injection argument, and the model rig asserts each part.
+ */
+export function designStyle(r: Resolved): { attrs: Record<string, string>; vars: Record<string, string> } {
+ const d = r.design
+ const attrs: Record<string, string> = { 'data-sp-design': r.name }
+ const vars: Record<string, string> = {}
+ for (const [mode, pre] of [['light', '--dl-'], ['dark', '--dd-']] as const) {
+ const pal = d[mode]
+ for (const k of PALETTE_KEYS) vars[`${pre}${kebab(k)}`] = pal[k]
+ // tile cells get their own ink, chosen for contrast rather than stored:
+ // a custom palette that makes a cell dark should not need a second edit
+ for (const c of ['cell1', 'cell2', 'cell3'] as const) vars[`${pre}${c}-ink`] = cellInk(pal[c], d)
+ // THE MARK: the accent wherever a mark carries meaning (a done box, a
+ // drop cap, a bar), unless the accent is too pale to be read as one on
+ // this paper — then its ink twin. Studio's coral is 2.0:1 on white: fine
+ // as a fill under navy text, not fine as the only sign a task is done.
+ vars[`${pre}mark`] = contrast(pal.accent, pal.paper) >= 3 ? pal.accent : pal.accentInk
+ }
+ for (const role of FONT_ROLES) vars[`--d-${role}`] = fontStack(d.fonts[role], role)
+ for (const k of PROP_KEYS) {
+ const rule: NumRule | EnumRule = PROPS[k]
+ const v = d.props[k]
+ if (rule.kind === 'num') vars[`--d-${kebab(k)}`] = `${v}${rule.unit}`
+ else attrs[`data-sd-${k.toLowerCase()}`] = String(v)
+ }
+ return { attrs, vars }
+}
+
+/** Every attribute a design can put on a surface, so clearing one is complete. */
+const ALL_ATTRS = ['data-sp-design', ...PROP_KEYS.filter((k) => PROPS[k].kind === 'enum').map((k) => `data-sd-${k.toLowerCase()}`)]
+
+// ---- the DOM side -----------------------------------------------------------
+
+/** Faces already handed to document.fonts, by family. */
+const registered = new Set<string>()
+
+/**
+ * Load a design's embedded faces through the FontFace API.
+ *
+ * NO STYLESHEET TEXT: the bytes go to `new FontFace(family, buffer)`, so an
+ * embedded face never produces an @font-face rule that author data could
+ * shape, and nothing is fetched — the bytes are already in the file.
+ */
+function loadFaces(doc: SpacesDoc, d: Design): void {
+ const fonts = (globalThis as { document?: Document }).document?.fonts
+ if (!fonts || typeof FontFace === 'undefined') return
+ for (const role of FONT_ROLES) {
+ const ref = d.fonts[role]
+ if (Object.hasOwn(FONT_STACKS, ref)) continue
+ const family = assetFamily(ref)
+ if (registered.has(family)) continue
+ const uri = fontAssetUri(doc, ref)
+ if (!uri) continue
+ registered.add(family)
+ try {
+ const b64 = uri.slice(uri.indexOf(',') + 1)
+ const bin = atob(b64)
+ const bytes = new Uint8Array(bin.length)
+ for (let i = 0; i < bin.length; i++) bytes[i] = bin.charCodeAt(i)
+ const face = new FontFace(family, bytes)
+ fonts.add(face)
+ void face.load().catch(() => { /* a broken file falls back to the stack */ })
+ } catch { /* not base64 — the stack's fallback is what shows */ }
+ }
+}
+
+/**
+ * Put the document's design on a surface — or take every trace of one off.
+ *
+ * With no design the surface carries NO attribute and NO custom property,
+ * which is what makes "no design" the untouched stylesheet byte for byte:
+ * every rule in designs.css is keyed under `[data-sp-design]`.
+ */
+export function applyDesign(el: HTMLElement, doc: SpacesDoc, override?: Resolved | null): void {
+ const r = override === undefined ? resolveDesign(doc) : override
+ for (const a of ALL_ATTRS) el.removeAttribute(a)
+ for (const p of Array.from(el.style)) if (p.startsWith('--dl-') || p.startsWith('--dd-') || p.startsWith('--d-')) el.style.removeProperty(p)
+ if (!r) return
+ const { attrs, vars } = designStyle(r)
+ for (const [k, v] of Object.entries(attrs)) el.setAttribute(k, v)
+ for (const [k, v] of Object.entries(vars)) el.style.setProperty(k, v)
+ loadFaces(doc, r.design)
+}
+
+// ---- the still preview ---------------------------------------------------------
+
+/** One preview rule: elements under the preview box, and the declarations for them. */
+export type PreviewRule = [selector: string, decls: Record<string, string>]
+
+/**
+ * The design, for preview.ts, in its LIGHT palette — as INLINE STYLES, never
+ * as a <style> element.
+ *
+ * The preview is written into every saved shell, and a design's values in a
+ * <style> block there would be author data inside raw text that the HTML
+ * parser ends at the first `</style>`. Validation already makes that string
+ * impossible (a hex colour, a number, a word from PROPS, a stack from
+ * FONT_STACKS) — and this does not lean on it: preview.ts writes each
+ * declaration through `style.setProperty`, so the CSSOM parses the value,
+ * drops anything that is not one value of that property, and the serializer
+ * escapes what is left as an attribute. Two independent guards.
+ *
+ * Light, because a thumbnail has no reader to ask and is the document's face.
+ * No custom properties or color-mix(): QuickLook's conservative WebKit is who
+ * reads this. Embedded faces are not drawn (their bytes would blow the
+ * preview's budget); the role's fallback stack stands in.
+ */
+export function previewRules(r: Resolved): PreviewRule[] {
+ const d = r.design
+ const p = d.light
+ const P = d.props
+ const f = (role: FontRole) => fontStack(d.fonts[role], role)
+ const label: Record<string, string> = P.label === 'caps' ? { 'text-transform': 'uppercase', 'letter-spacing': '.08em' }
+ : P.label === 'smallcaps' ? { 'font-variant-caps': 'all-small-caps', 'letter-spacing': '.05em' }
+ : P.label === 'italic' ? { 'font-style': 'italic' } : {}
+ const rules: PreviewRule[] = [
+ ['', { background: p.paper, color: p.ink, 'font-family': f('body') }],
+ ['.bp-col', { 'font-size': `${16 * P.size}px`, 'line-height': String(P.leading) }],
+ ['h1, h2, h3', { 'font-family': f('display'), 'font-weight': String(P.headWeight),
+ ...(P.headStyle === 'italic' ? { 'font-style': 'italic' } : {}),
+ ...(P.headCase === 'upper' ? { 'text-transform': 'uppercase' } : {}) }],
+ ['h1.sp-title', { 'font-size': `${((33 * P.titleSize) / 2.06).toFixed(1)}px`, 'font-weight': String(P.titleWeight),
+ 'letter-spacing': `${P.titleTracking}em`, 'line-height': String(P.titleLeading), 'font-style': 'normal' }],
+ ['h3, th', { 'font-family': f('label'), color: P.labelInk === 'accent' ? p.accentInk : p.ink, ...label }],
+ ['pre, code', { 'font-family': f('mono') }],
+ ['blockquote', { 'border-inline-start-color': p.accent, color: p.ink }],
+ ['aside', { background: p.soft, 'border-color': p.rule, 'border-inline-start-color': p.accent, 'border-radius': `${P.radius}px` }],
+ ['pre', { background: p.soft, 'border-radius': `${P.radius}px` }],
+ ['hr', { 'border-top': `${P.rule}px solid ${P.divider === 'rule' ? p.rule : p.ink}` }],
+ ['th', { background: p.soft }],
+ ['th, td', { 'border-color': p.rule }],
+ ['a', { 'border-bottom-color': p.accent }],
+ ['li.sp-done, figcaption, .sp-media-badge', { color: p.muted }],
+ ]
+ if (P.h2 === 'above' || P.h2 === 'double') {
+ rules.push(['h2', { 'border-top': `${P.h2 === 'double' ? `${P.rule * 3 + 1}px double` : `${P.rule}px solid`} ${p.ink}`, 'padding-top': '8px' }])
+ } else if (P.h2 === 'under') {
+ rules.push(['h2', { 'text-decoration': 'underline' }])
+ }
+ if (P.callout === 'outline') rules.push(['aside', { background: 'none', border: `${Math.max(1, P.rule)}px solid ${p.ink}` }])
+ else if (P.callout === 'rules') rules.push(['aside', { background: 'none', border: '0', 'border-top': `1px solid ${p.accent}`, 'border-bottom': `1px solid ${p.accent}`, 'border-radius': '0', 'padding-left': '0', 'padding-right': '0' }])
+ else if (P.callout === 'fill') rules.push(['aside', { background: p.accent, color: p.onAccent, border: '0' }])
+ else if (P.callout === 'shadow') rules.push(['aside', { background: p.paper, border: `2px solid ${p.ink}`, 'box-shadow': `5px 5px 0 ${p.accent}` }])
+ if (P.quote === 'tile') rules.push(['blockquote', { background: p.tile, color: p.tileInk, border: '0', padding: '16px 20px', 'border-radius': `${P.radius + 6}px` }])
+ else if (P.quote === 'display' || P.quote === 'pull') rules.push(['blockquote', { border: '0', padding: '0', 'font-family': f('display'), 'font-style': 'italic', 'font-size': '1.3em' }])
+ if (P.justify === 'on') rules.push(['p', { 'text-align': 'justify' }])
+ return rules
+}
+
+/** Apply previewRules under `box` (a selector of '' means the box itself). */
+export function applyPreviewRules(box: HTMLElement, rules: PreviewRule[]): void {
+ for (const [sel, decls] of rules) {
+ const els = sel ? Array.from(box.querySelectorAll<HTMLElement>(sel)) : [box]
+ for (const el of els) for (const [k, v] of Object.entries(decls)) el.style.setProperty(k, v)
+ }
+}
diff --git a/spaces/src/editor.ts b/spaces/src/editor.ts
index 57745a36..a99757e0 100644
--- a/spaces/src/editor.ts
+++ b/spaces/src/editor.ts
@@ -44,6 +44,8 @@ import { countOutsideTags, replaceOutsideTags } from './findreplace'
import { asksForAnswer, evaluate, format, pageContext } from './calc'
import { t, locale, localeChoices, setLocale, applyDirection } from './i18n'
import { openAbout } from './about'
+import { applyDesign, adoptDesign, type Resolved } from './designs.ts'
+import { openDesignPanel } from './designpanel'
import { saveRows, type DocHost } from './doccmds.ts'
import { openGraphView } from './graph.ts'
import { pageToDeck, type DeckNote, type DeckNoteCode } from './todeck.ts'
@@ -303,7 +305,7 @@ export class Editor {
})
this.store.on('tree', () => this.paintTree())
this.store.on('page', () => { this.paintPage(); this.paintTree() })
- this.store.on('doc', () => { this.status(t('Edited')); this.syncHistoryButtons(); this.syncDirty() })
+ this.store.on('doc', () => { this.status(t('Edited')); this.syncHistoryButtons(); this.syncDirty(); this.syncDesign() })
// A REMOTE change moves the unsaved dot without claiming you made it —
// 'doc' paints "Edited", 'dirty' paints only the dot. See store.setDirty.
this.store.on('dirty', () => this.syncDirty())
@@ -1162,9 +1164,31 @@ export class Editor {
private fnSig = ''
// ---- the page -----------------------------------------------------------
+ /**
+ * The design the picker is showing on hover, or undefined for none.
+ * A preview is never document data: it is painted, never committed.
+ */
+ private designPreview: Resolved | null | undefined = undefined
+
+ /**
+ * Put the document's design (or the one being previewed) on the reading
+ * surface. The surface is `.sp-main` and nothing else — the bar, both panels
+ * and every popover stay the reader's (DECISIONS, 2026-09-26).
+ */
+ syncDesign(): void {
+ applyDesign(this.main, this.store.doc, this.designPreview)
+ }
+
+ /** Show a design on the page without writing it; `undefined` ends the preview. */
+ previewDesign(r: Resolved | null | undefined): void {
+ this.designPreview = r
+ this.syncDesign()
+ }
+
private paintPage(): void {
const s = this.store
const page = s.page
+ this.syncDesign()
// the baseline `syncFootnotes` compares against — set here so switching
// pages can never leave the previous page's signature behind
this.fnSig = page ? notesOnPage(s.doc, page).order.join('\u001F') : ''
@@ -5604,6 +5628,8 @@ export class Editor {
for (const page of plan.pages) if (!page.parent || !arrived.has(page.parent)) page.parent = under
}
+ // ONE commit, so ⌘Z takes the pages, their footnotes AND any design they brought
+ let adopted: string | null = null
s.commit(() => {
s.doc.pages.push(...plan.pages)
// `plan.footnotes` STARTED from this document's own table and had the
@@ -5612,6 +5638,7 @@ export class Editor {
// when nothing has footnotes, so importing plain notes does not add an
// empty key to the file.
if (Object.keys(plan.footnotes).length) s.doc.footnotes = plan.footnotes
+ adopted = adoptDesign(s.doc, plan.design, plan.designs)
})
if (plan.pages[0]) s.goToPage(plan.pages[0].id)
this.repaint()
@@ -5635,6 +5662,7 @@ export class Editor {
lines.push(t('{n} note name(s) appear more than once, so links naming them all went to the first.',
{ n: plan.stats.duplicateNames }))
}
+ if (adopted) lines.push(t('The notes named a design, so this space now uses it.'))
if (plan.stats.frontmatter) {
lines.push(t('{n} page(s) had frontmatter, kept verbatim in a folded block.', { n: plan.stats.frontmatter }))
}
@@ -5904,6 +5932,9 @@ export class Editor {
const s = this.store
const host = el('div', 'sp-printroot')
host.style.direction = 'ltr'
+ // the document's design, in its LIGHT palette: the dark mapping is
+ // @media screen, so paper never matches it
+ applyDesign(host, s.doc)
const pages = opts.whole
? s.tree().map((n) => n.page).filter((p) => opts.archived || !p.archived)
@@ -6013,6 +6044,8 @@ export class Editor {
onUpdateInPlace: (rel) => this.onUpdateInPlace?.(rel) ?? Promise.resolve(null),
// both self-update writes carry this space's CRDT state, as ⌘S does
onBeforeWrite: () => shareModule.stampSync(this.store, this.session),
+ previewDesign: (r) => this.previewDesign(r),
+ openDesignPanel: () => openDesignPanel(this.store, (r) => this.previewDesign(r)),
})
}
diff --git a/spaces/src/i18n/de.ts b/spaces/src/i18n/de.ts
index 186ac46a..9359d07a 100644
--- a/spaces/src/i18n/de.ts
+++ b/spaces/src/i18n/de.ts
@@ -668,6 +668,123 @@ export const de: Catalog = {
"{pages} page(s) and {blocks} block(s) will travel.": "{pages} Seite(n) und {blocks} Block/Blöcke kommen mit.",
"{pages} pages · {links} links": "{pages} Seiten · {links} Verknüpfungen",
"⌘Z removes the imported pages again.": "Mit ⌘Z verschwinden die importierten Seiten wieder.",
+ "A news serif under double rules, justified, with pull quotes.": "Eine Zeitungs-Serifenschrift unter Doppellinien, im Blocksatz, mit herausgestellten Zitaten.",
+ "A precise grid, figures in a monospace, cobalt rules.": "Ein präzises Raster, Zahlen in Festbreitenschrift, kobaltblaue Linien.",
+ "A risograph zine: two spot inks, heavy capitals, offset shadows.": "Ein Risograph-Zine: zwei Schmuckfarben, fette Versalien, versetzte Schatten.",
+ "A typewritten manuscript: one face, capitals, a two-colour ribbon.": "Ein maschinengeschriebenes Manuskript: eine Schrift, Versalien, ein zweifarbiges Farbband.",
+ "Accent": "Akzent",
+ "Accent bar": "Akzentbalken",
+ "Accent text": "Akzenttext",
+ "Add a font file…": "Schriftdatei hinzufügen…",
+ "Almanac": "Almanach",
+ "An editorial serif, a drop cap, and marigold for its accent.": "Eine redaktionelle Serifenschrift, eine Initiale und Ringelblumengelb als Akzent.",
+ "As written": "Wie geschrieben",
+ "Asterism": "Asterismus",
+ "Bands": "Bänder",
+ "Based on {name}. Only what you change here is stored.": "Basiert auf {name}. Gespeichert wird nur, was du hier änderst.",
+ "Body": "Fließtext",
+ "Book serif": "Buch-Serifenschrift",
+ "Broadsheet": "Zeitung",
+ "Bullets": "Aufzählungszeichen",
+ "Callout colours": "Farben der Hinweisblöcke",
+ "Callouts": "Hinweisblöcke",
+ "Capitals": "Versalien",
+ "Carried by this space.": "In diesem Space enthalten.",
+ "Cell 1": "Feld 1",
+ "Cell 2": "Feld 2",
+ "Cell 3": "Feld 3",
+ "Checkboxes": "Kontrollkästchen",
+ "Code and figures": "Code und Zahlen",
+ "Colours": "Farben",
+ "Condensed": "Schmal",
+ "Corner radius": "Eckenradius",
+ "Custom": "Eigene",
+ "Customise design": "Gestaltung anpassen",
+ "Customise…": "Anpassen…",
+ "Dash": "Strich",
+ "Design": "Gestaltung",
+ "Disc": "Punkt",
+ "Display italic": "Display-Kursive",
+ "Dividers": "Trennlinien",
+ "Done": "Fertig",
+ "Double rule": "Doppellinie",
+ "Double rule above": "Doppellinie darüber",
+ "Drop cap": "Initiale",
+ "Figures": "Ziffern",
+ "Filled": "Gefüllt",
+ "Grid": "Raster",
+ "Grotesque": "Grotesk",
+ "Hairline": "Haarlinie",
+ "Hard offset": "Harter Versatz",
+ "Heading case": "Schreibweise der Überschriften",
+ "Heading style": "Stil der Überschriften",
+ "Heading weight": "Stärke der Überschriften",
+ "Headings": "Überschriften",
+ "Heavy rule": "Kräftige Linie",
+ "Humanist": "Humanistisch",
+ "Indented": "Eingerückt",
+ "Justified text": "Blocksatz",
+ "Label colour": "Farbe der Labels",
+ "Layout": "Layout",
+ "Ledger": "Hauptbuch",
+ "Line spacing": "Zeilenabstand",
+ "Lining": "Versalziffern",
+ "Monospace": "Festbreite",
+ "News serif": "Zeitungs-Serifenschrift",
+ "None": "Keine",
+ "Off": "Aus",
+ "Offset shadow": "Versetzter Schatten",
+ "Old-style": "Mediävalziffern",
+ "Old-style serif": "Renaissance-Antiqua",
+ "On": "An",
+ "One hue per tone": "Ein Farbton je Art",
+ "Outlined": "Umrandet",
+ "Paper": "Papier",
+ "Plain": "Schlicht",
+ "Pull quote": "Herausgestelltes Zitat",
+ "Quotes": "Zitate",
+ "Remove this design": "Diese Gestaltung entfernen",
+ "Riso": "Riso",
+ "Round": "Rund",
+ "Rounded": "Gerundet",
+ "Rule above": "Linie darüber",
+ "Rule weight": "Linienstärke",
+ "Rules": "Linien",
+ "Rules above and below": "Linien oben und unten",
+ "Secondary text": "Nebentext",
+ "Section heads": "Abschnittsüberschriften",
+ "Shadows": "Schatten",
+ "Short bar": "Kurzer Balken",
+ "Short bar below": "Kurzer Balken darunter",
+ "Small capitals": "Kapitälchen",
+ "Studio": "Studio",
+ "System": "System",
+ "Tables": "Tabellen",
+ "Text colour": "Textfarbe",
+ "Text on accent": "Text auf dem Akzent",
+ "Text on tile": "Text auf der Kachel",
+ "Text size": "Textgröße",
+ "That is not a font file (.woff2, .woff, .ttf or .otf).": "Das ist keine Schriftdatei (.woff2, .woff, .ttf oder .otf).",
+ "The Bento tile: navy, slate, coral and cream compartments.": "Die Bento-Kachel: Fächer in Marine, Schiefer, Koralle und Creme.",
+ "The design travels with the file. Each reader’s light or dark setting picks between its two palettes.": "Die Gestaltung reist mit der Datei. Die Hell- oder Dunkel-Einstellung jeder lesenden Person wählt zwischen ihren zwei Paletten.",
+ "The look every space starts with.": "Das Aussehen, mit dem jeder Space beginnt.",
+ "The notes named a design, so this space now uses it.": "Die Notizen nannten eine Gestaltung, deshalb verwendet dieser Space sie jetzt.",
+ "This font is {size}, and it travels inside the file. Embed it anyway?": "Diese Schrift ist {size} groß und reist in der Datei mit. Trotzdem einbetten?",
+ "This space no longer uses a design of its own.": "Dieser Space verwendet keine eigene Gestaltung mehr.",
+ "Tile": "Kachel",
+ "Tiles": "Kacheln",
+ "Tinted": "Getönt",
+ "Title letter spacing": "Laufweite des Titels",
+ "Title line spacing": "Zeilenabstand des Titels",
+ "Title size": "Titelgröße",
+ "Title weight": "Stärke des Titels",
+ "Type": "Schrift",
+ "Typescript": "Typoskript",
+ "Typewriter": "Schreibmaschine",
+ "Underlined": "Unterstrichen",
+ "Upright": "Aufrecht",
+ "Wells": "Flächen",
+ "{name}, customised": "{name}, angepasst",
"Export page as slides…": "Seite als Folien exportieren…",
"The page as a bento/slides deck, ready to paste into Bento Slides": "Die Seite als bento/slides-Präsentation, bereit zum Einfügen in Bento Slides",
"Export a page as slides": "Eine Seite als Folien exportieren",
diff --git a/spaces/src/i18n/es.ts b/spaces/src/i18n/es.ts
index a4ff0082..5c62062c 100644
--- a/spaces/src/i18n/es.ts
+++ b/spaces/src/i18n/es.ts
@@ -668,6 +668,123 @@ export const es: Catalog = {
"{pages} page(s) and {blocks} block(s) will travel.": "Viajarán {pages} página(s) y {blocks} bloque(s).",
"{pages} pages · {links} links": "{pages} páginas · {links} enlaces",
"⌘Z removes the imported pages again.": "⌘Z vuelve a quitar las páginas importadas.",
+ "A news serif under double rules, justified, with pull quotes.": "Una serifa de periódico bajo filetes dobles, justificada y con citas destacadas.",
+ "A precise grid, figures in a monospace, cobalt rules.": "Una retícula precisa, cifras en monoespaciada y filetes cobalto.",
+ "A risograph zine: two spot inks, heavy capitals, offset shadows.": "Un fanzine en risografía: dos tintas planas, mayúsculas gruesas y sombras desplazadas.",
+ "A typewritten manuscript: one face, capitals, a two-colour ribbon.": "Un manuscrito mecanografiado: un solo tipo, mayúsculas y cinta de dos colores.",
+ "Accent": "Acento",
+ "Accent bar": "Barra de acento",
+ "Accent text": "Texto de acento",
+ "Add a font file…": "Añadir un archivo de fuente…",
+ "Almanac": "Almanaque",
+ "An editorial serif, a drop cap, and marigold for its accent.": "Una serifa editorial, una capitular y el amarillo caléndula como acento.",
+ "As written": "Tal como se escribió",
+ "Asterism": "Asterismo",
+ "Bands": "Bandas",
+ "Based on {name}. Only what you change here is stored.": "Basado en {name}. Solo se guarda lo que cambies aquí.",
+ "Body": "Cuerpo",
+ "Book serif": "Serifa de libro",
+ "Broadsheet": "Diario",
+ "Bullets": "Viñetas",
+ "Callout colours": "Colores de los avisos",
+ "Callouts": "Avisos",
+ "Capitals": "Mayúsculas",
+ "Carried by this space.": "Incluido en este espacio.",
+ "Cell 1": "Celda 1",
+ "Cell 2": "Celda 2",
+ "Cell 3": "Celda 3",
+ "Checkboxes": "Casillas",
+ "Code and figures": "Código y cifras",
+ "Colours": "Colores",
+ "Condensed": "Condensada",
+ "Corner radius": "Radio de las esquinas",
+ "Custom": "Personalizado",
+ "Customise design": "Personalizar el diseño",
+ "Customise…": "Personalizar…",
+ "Dash": "Guion",
+ "Design": "Diseño",
+ "Disc": "Disco",
+ "Display italic": "Cursiva de titular",
+ "Dividers": "Separadores",
+ "Done": "Listo",
+ "Double rule": "Filete doble",
+ "Double rule above": "Filete doble encima",
+ "Drop cap": "Capitular",
+ "Figures": "Cifras",
+ "Filled": "Relleno",
+ "Grid": "Cuadrícula",
+ "Grotesque": "Grotesca",
+ "Hairline": "Filete fino",
+ "Hard offset": "Desplazada nítida",
+ "Heading case": "Mayúsculas en los títulos",
+ "Heading style": "Estilo de los títulos",
+ "Heading weight": "Peso de los títulos",
+ "Headings": "Títulos",
+ "Heavy rule": "Filete grueso",
+ "Humanist": "Humanista",
+ "Indented": "Sangrado",
+ "Justified text": "Texto justificado",
+ "Label colour": "Color de las etiquetas",
+ "Layout": "Composición",
+ "Ledger": "Libro mayor",
+ "Line spacing": "Interlineado",
+ "Lining": "Alineadas",
+ "Monospace": "Monoespaciada",
+ "News serif": "Serifa de periódico",
+ "None": "Ninguno",
+ "Off": "Desactivado",
+ "Offset shadow": "Sombra desplazada",
+ "Old-style": "Elzevirianas",
+ "Old-style serif": "Serifa antigua",
+ "On": "Activado",
+ "One hue per tone": "Un tono por tipo",
+ "Outlined": "Con contorno",
+ "Paper": "Papel",
+ "Plain": "Sencillo",
+ "Pull quote": "Cita destacada",
+ "Quotes": "Citas",
+ "Remove this design": "Quitar este diseño",
+ "Riso": "Riso",
+ "Round": "Redondo",
+ "Rounded": "Redondeada",
+ "Rule above": "Filete encima",
+ "Rule weight": "Grosor de los filetes",
+ "Rules": "Filetes",
+ "Rules above and below": "Filetes arriba y abajo",
+ "Secondary text": "Texto secundario",
+ "Section heads": "Títulos de sección",
+ "Shadows": "Sombras",
+ "Short bar": "Barra corta",
+ "Short bar below": "Barra corta debajo",
+ "Small capitals": "Versalitas",
+ "Studio": "Estudio",
+ "System": "Sistema",
+ "Tables": "Tablas",
+ "Text colour": "Color del texto",
+ "Text on accent": "Texto sobre el acento",
+ "Text on tile": "Texto sobre el mosaico",
+ "Text size": "Tamaño del texto",
+ "That is not a font file (.woff2, .woff, .ttf or .otf).": "Eso no es un archivo de fuente (.woff2, .woff, .ttf u .otf).",
+ "The Bento tile: navy, slate, coral and cream compartments.": "El mosaico Bento: compartimentos azul marino, pizarra, coral y crema.",
+ "The design travels with the file. Each reader’s light or dark setting picks between its two palettes.": "El diseño viaja con el archivo. El ajuste claro u oscuro de cada lector elige entre sus dos paletas.",
+ "The look every space starts with.": "El aspecto con el que empieza todo espacio.",
+ "The notes named a design, so this space now uses it.": "Las notas indicaban un diseño, así que este espacio ahora lo usa.",
+ "This font is {size}, and it travels inside the file. Embed it anyway?": "Esta fuente ocupa {size} y viaja dentro del archivo. ¿Incrustarla de todos modos?",
+ "This space no longer uses a design of its own.": "Este espacio ya no usa un diseño propio.",
+ "Tile": "Mosaico",
+ "Tiles": "Mosaicos",
+ "Tinted": "Tintado",
+ "Title letter spacing": "Espaciado del título",
+ "Title line spacing": "Interlineado del título",
+ "Title size": "Tamaño del título",
+ "Title weight": "Peso del título",
+ "Type": "Tipografía",
+ "Typescript": "Mecanoscrito",
+ "Typewriter": "Máquina de escribir",
+ "Underlined": "Subrayado",
+ "Upright": "Redonda",
+ "Wells": "Fondos",
+ "{name}, customised": "{name}, personalizado",
"Export page as slides…": "Exportar la página como diapositivas…",
"The page as a bento/slides deck, ready to paste into Bento Slides": "La página como una presentación bento/slides, lista para pegar en Bento Slides",
"Export a page as slides": "Exportar una página como diapositivas",
diff --git a/spaces/src/i18n/fr.ts b/spaces/src/i18n/fr.ts
index 711b8e1c..62ea6e4b 100644
--- a/spaces/src/i18n/fr.ts
+++ b/spaces/src/i18n/fr.ts
@@ -668,6 +668,123 @@ export const fr: Catalog = {
"{pages} page(s) and {blocks} block(s) will travel.": "{pages} page(s) et {blocks} bloc(s) feront le voyage.",
"{pages} pages · {links} links": "{pages} pages · {links} liens",
"⌘Z removes the imported pages again.": "⌘Z supprime à nouveau les pages importées.",
+ "A news serif under double rules, justified, with pull quotes.": "Un caractère de journal sous des filets doubles, justifié, avec des citations en exergue.",
+ "A precise grid, figures in a monospace, cobalt rules.": "Une grille précise, des chiffres en chasse fixe, des filets cobalt.",
+ "A risograph zine: two spot inks, heavy capitals, offset shadows.": "Un fanzine en risographie : deux encres d’accompagnement, des capitales grasses, des ombres décalées.",
+ "A typewritten manuscript: one face, capitals, a two-colour ribbon.": "Un manuscrit dactylographié : un seul caractère, des capitales, un ruban bicolore.",
+ "Accent": "Accent",
+ "Accent bar": "Barre d’accent",
+ "Accent text": "Texte d’accent",
+ "Add a font file…": "Ajouter un fichier de police…",
+ "Almanac": "Almanach",
+ "An editorial serif, a drop cap, and marigold for its accent.": "Un caractère éditorial, une lettrine, et le jaune souci pour accent.",
+ "As written": "Tel qu’écrit",
+ "Asterism": "Astérisme",
+ "Bands": "Bandes",
+ "Based on {name}. Only what you change here is stored.": "Basé sur {name}. Seul ce que vous changez ici est enregistré.",
+ "Body": "Corps de texte",
+ "Book serif": "Caractère de labeur",
+ "Broadsheet": "Grand format",
+ "Bullets": "Puces",
+ "Callout colours": "Couleurs des encadrés",
+ "Callouts": "Encadrés",
+ "Capitals": "Capitales",
+ "Carried by this space.": "Fourni par cet espace.",
+ "Cell 1": "Case 1",
+ "Cell 2": "Case 2",
+ "Cell 3": "Case 3",
+ "Checkboxes": "Cases à cocher",
+ "Code and figures": "Code et chiffres",
+ "Colours": "Couleurs",
+ "Condensed": "Condensée",
+ "Corner radius": "Rayon des angles",
+ "Custom": "Personnalisé",
+ "Customise design": "Personnaliser le design",
+ "Customise…": "Personnaliser…",
+ "Dash": "Tiret",
+ "Design": "Design",
+ "Disc": "Disque",
+ "Display italic": "Italique de titrage",
+ "Dividers": "Séparateurs",
+ "Done": "Terminé",
+ "Double rule": "Filet double",
+ "Double rule above": "Filet double au-dessus",
+ "Drop cap": "Lettrine",
+ "Figures": "Chiffres",
+ "Filled": "Plein",
+ "Grid": "Grille",
+ "Grotesque": "Grotesque",
+ "Hairline": "Filet fin",
+ "Hard offset": "Décalage net",
+ "Heading case": "Casse des titres",
+ "Heading style": "Style des titres",
+ "Heading weight": "Graisse des titres",
+ "Headings": "Titres",
+ "Heavy rule": "Filet épais",
+ "Humanist": "Humane",
+ "Indented": "En retrait",
+ "Justified text": "Texte justifié",
+ "Label colour": "Couleur des étiquettes",
+ "Layout": "Mise en page",
+ "Ledger": "Grand livre",
+ "Line spacing": "Interligne",
+ "Lining": "Alignés",
+ "Monospace": "Chasse fixe",
+ "News serif": "Caractère de journal",
+ "None": "Aucun",
+ "Off": "Désactivé",
+ "Offset shadow": "Ombre décalée",
+ "Old-style": "Elzéviriens",
+ "Old-style serif": "Garalde",
+ "On": "Activé",
+ "One hue per tone": "Une teinte par type",
+ "Outlined": "Contour",
+ "Paper": "Papier",
+ "Plain": "Simple",
+ "Pull quote": "Exergue",
+ "Quotes": "Citations",
+ "Remove this design": "Supprimer ce design",
+ "Riso": "Riso",
+ "Round": "Rond",
+ "Rounded": "Arrondie",
+ "Rule above": "Filet au-dessus",
+ "Rule weight": "Épaisseur des filets",
+ "Rules": "Filets",
+ "Rules above and below": "Filets dessus et dessous",
+ "Secondary text": "Texte secondaire",
+ "Section heads": "Intertitres",
+ "Shadows": "Ombres",
+ "Short bar": "Barre courte",
+ "Short bar below": "Barre courte dessous",
+ "Small capitals": "Petites capitales",
+ "Studio": "Atelier",
+ "System": "Système",
+ "Tables": "Tableaux",
+ "Text colour": "Couleur du texte",
+ "Text on accent": "Texte sur l’accent",
+ "Text on tile": "Texte sur la tuile",
+ "Text size": "Taille du texte",
+ "That is not a font file (.woff2, .woff, .ttf or .otf).": "Ce n’est pas un fichier de police (.woff2, .woff, .ttf ou .otf).",
+ "The Bento tile: navy, slate, coral and cream compartments.": "La tuile Bento : des compartiments marine, ardoise, corail et crème.",
+ "The design travels with the file. Each reader’s light or dark setting picks between its two palettes.": "Le design voyage avec le fichier. Le réglage clair ou sombre de chaque lecteur choisit entre ses deux palettes.",
+ "The look every space starts with.": "L’apparence de départ de tout espace.",
+ "The notes named a design, so this space now uses it.": "Les notes nommaient un design : cet espace l’utilise désormais.",
+ "This font is {size}, and it travels inside the file. Embed it anyway?": "Cette police pèse {size} et voyage dans le fichier. L’intégrer quand même ?",
+ "This space no longer uses a design of its own.": "Cet espace n’utilise plus de design qui lui soit propre.",
+ "Tile": "Tuile",
+ "Tiles": "Tuiles",
+ "Tinted": "Teinté",
+ "Title letter spacing": "Approche du titre",
+ "Title line spacing": "Interligne du titre",
+ "Title size": "Taille du titre",
+ "Title weight": "Graisse du titre",
+ "Type": "Typographie",
+ "Typescript": "Tapuscrit",
+ "Typewriter": "Machine à écrire",
+ "Underlined": "Souligné",
+ "Upright": "Romain",
+ "Wells": "Fonds",
+ "{name}, customised": "{name}, personnalisé",
"Export page as slides…": "Exporter la page en diapositives…",
"The page as a bento/slides deck, ready to paste into Bento Slides": "La page sous forme de présentation bento/slides, prête à coller dans Bento Slides",
"Export a page as slides": "Exporter une page en diapositives",
diff --git a/spaces/src/i18n/it.ts b/spaces/src/i18n/it.ts
index 2333757d..2ddb5127 100644
--- a/spaces/src/i18n/it.ts
+++ b/spaces/src/i18n/it.ts
@@ -668,6 +668,123 @@ export const it: Catalog = {
"{pages} page(s) and {blocks} block(s) will travel.": "Viaggeranno {pages} pagina/e e {blocks} blocco/blocchi.",
"{pages} pages · {links} links": "{pages} pagine · {links} collegamenti",
"⌘Z removes the imported pages again.": "⌘Z rimuove di nuovo le pagine importate.",
+ "A news serif under double rules, justified, with pull quotes.": "Un graziato da quotidiano sotto filetti doppi, giustificato, con citazioni in evidenza.",
+ "A precise grid, figures in a monospace, cobalt rules.": "Una griglia precisa, cifre a spaziatura fissa, filetti cobalto.",
+ "A risograph zine: two spot inks, heavy capitals, offset shadows.": "Una fanzine in risografia: due inchiostri spot, maiuscole pesanti, ombre sfalsate.",
+ "A typewritten manuscript: one face, capitals, a two-colour ribbon.": "Un dattiloscritto: un solo carattere, maiuscole, un nastro bicolore.",
+ "Accent": "Accento",
+ "Accent bar": "Barra d’accento",
+ "Accent text": "Testo d’accento",
+ "Add a font file…": "Aggiungi un file di font…",
+ "Almanac": "Almanacco",
+ "An editorial serif, a drop cap, and marigold for its accent.": "Un graziato editoriale, un capolettera e il giallo calendula come accento.",
+ "As written": "Come scritto",
+ "Asterism": "Asterismo",
+ "Bands": "Bande",
+ "Based on {name}. Only what you change here is stored.": "Basato su {name}. Si salva solo ciò che cambi qui.",
+ "Body": "Corpo del testo",
+ "Book serif": "Graziato da libro",
+ "Broadsheet": "Quotidiano",
+ "Bullets": "Punti elenco",
+ "Callout colours": "Colori dei riquadri",
+ "Callouts": "Riquadri",
+ "Capitals": "Maiuscole",
+ "Carried by this space.": "Incluso in questo spazio.",
+ "Cell 1": "Cella 1",
+ "Cell 2": "Cella 2",
+ "Cell 3": "Cella 3",
+ "Checkboxes": "Caselle di spunta",
+ "Code and figures": "Codice e cifre",
+ "Colours": "Colori",
+ "Condensed": "Condensato",
+ "Corner radius": "Raggio degli angoli",
+ "Custom": "Personalizzato",
+ "Customise design": "Personalizza il design",
+ "Customise…": "Personalizza…",
+ "Dash": "Trattino",
+ "Design": "Design",
+ "Disc": "Disco",
+ "Display italic": "Corsivo da titolo",
+ "Dividers": "Separatori",
+ "Done": "Fine",
+ "Double rule": "Filetto doppio",
+ "Double rule above": "Filetto doppio sopra",
+ "Drop cap": "Capolettera",
+ "Figures": "Cifre",
+ "Filled": "Pieno",
+ "Grid": "Griglia",
+ "Grotesque": "Grottesco",
+ "Hairline": "Filetto sottile",
+ "Hard offset": "Sfalsata netta",
+ "Heading case": "Maiuscole nei titoli",
+ "Heading style": "Stile dei titoli",
+ "Heading weight": "Peso dei titoli",
+ "Headings": "Titoli",
+ "Heavy rule": "Filetto spesso",
+ "Humanist": "Umanista",
+ "Indented": "Rientrato",
+ "Justified text": "Testo giustificato",
+ "Label colour": "Colore delle etichette",
+ "Layout": "Impaginazione",
+ "Ledger": "Libro mastro",
+ "Line spacing": "Interlinea",
+ "Lining": "Allineate",
+ "Monospace": "Spaziatura fissa",
+ "News serif": "Graziato da quotidiano",
+ "None": "Nessuno",
+ "Off": "Disattivato",
+ "Offset shadow": "Ombra sfalsata",
+ "Old-style": "Cifre minuscole",
+ "Old-style serif": "Graziato antico",
+ "On": "Attivato",
+ "One hue per tone": "Una tinta per tipo",
+ "Outlined": "Contornato",
+ "Paper": "Carta",
+ "Plain": "Semplice",
+ "Pull quote": "Citazione in evidenza",
+ "Quotes": "Citazioni",
+ "Remove this design": "Rimuovi questo design",
+ "Riso": "Riso",
+ "Round": "Tondo",
+ "Rounded": "Arrotondato",
+ "Rule above": "Filetto sopra",
+ "Rule weight": "Spessore dei filetti",
+ "Rules": "Filetti",
+ "Rules above and below": "Filetti sopra e sotto",
+ "Secondary text": "Testo secondario",
+ "Section heads": "Titoli di sezione",
+ "Shadows": "Ombre",
+ "Short bar": "Barra corta",
+ "Short bar below": "Barra corta sotto",
+ "Small capitals": "Maiuscoletto",
+ "Studio": "Studio",
+ "System": "Sistema",
+ "Tables": "Tabelle",
+ "Text colour": "Colore del testo",
+ "Text on accent": "Testo sull’accento",
+ "Text on tile": "Testo sulla tessera",
+ "Text size": "Dimensione del testo",
+ "That is not a font file (.woff2, .woff, .ttf or .otf).": "Non è un file di font (.woff2, .woff, .ttf o .otf).",
+ "The Bento tile: navy, slate, coral and cream compartments.": "La tessera Bento: scomparti blu notte, ardesia, corallo e crema.",
+ "The design travels with the file. Each reader’s light or dark setting picks between its two palettes.": "Il design viaggia con il file. L’impostazione chiara o scura di ogni lettore sceglie tra le sue due tavolozze.",
+ "The look every space starts with.": "L’aspetto con cui parte ogni spazio.",
+ "The notes named a design, so this space now uses it.": "Le note indicavano un design, quindi ora questo spazio lo usa.",
+ "This font is {size}, and it travels inside the file. Embed it anyway?": "Questo font pesa {size} e viaggia dentro il file. Incorporarlo comunque?",
+ "This space no longer uses a design of its own.": "Questo spazio non usa più un design proprio.",
+ "Tile": "Tessera",
+ "Tiles": "Tessere",
+ "Tinted": "Tinto",
+ "Title letter spacing": "Spaziatura del titolo",
+ "Title line spacing": "Interlinea del titolo",
+ "Title size": "Dimensione del titolo",
+ "Title weight": "Peso del titolo",
+ "Type": "Tipografia",
+ "Typescript": "Dattiloscritto",
+ "Typewriter": "Macchina da scrivere",
+ "Underlined": "Sottolineato",
+ "Upright": "Tondo",
+ "Wells": "Fondi",
+ "{name}, customised": "{name}, personalizzato",
"Export page as slides…": "Esporta la pagina come diapositive…",
"The page as a bento/slides deck, ready to paste into Bento Slides": "La pagina come presentazione bento/slides, pronta da incollare in Bento Slides",
"Export a page as slides": "Esporta una pagina come diapositive",
diff --git a/spaces/src/i18n/ja.ts b/spaces/src/i18n/ja.ts
index 3f1773a1..38900c53 100644
--- a/spaces/src/i18n/ja.ts
+++ b/spaces/src/i18n/ja.ts
@@ -668,6 +668,123 @@ export const ja: Catalog = {
"{pages} page(s) and {blocks} block(s) will travel.": "{pages} ページ、{blocks} ブロックが移動します。",
"{pages} pages · {links} links": "{pages} ページ · {links} リンク",
"⌘Z removes the imported pages again.": "⌘Z で、読み込んだページを取り消せます。",
+ "A news serif under double rules, justified, with pull quotes.": "二重罫線の下にニュース用セリフ体、両端揃え、プルクオート付き。",
+ "A precise grid, figures in a monospace, cobalt rules.": "精密なグリッド、等幅の数字、コバルトの罫線。",
+ "A risograph zine: two spot inks, heavy capitals, offset shadows.": "リソグラフのZINE:2色の特色インク、太い大文字、ずれた影。",
+ "A typewritten manuscript: one face, capitals, a two-colour ribbon.": "タイプ原稿:書体はひとつ、大文字、2色のリボン。",
+ "Accent": "アクセント",
+ "Accent bar": "アクセントバー",
+ "Accent text": "アクセントの文字",
+ "Add a font file…": "フォントファイルを追加…",
+ "Almanac": "アルマナック",
+ "An editorial serif, a drop cap, and marigold for its accent.": "編集的なセリフ体、ドロップキャップ、アクセントはマリーゴールド。",
+ "As written": "入力どおり",
+ "Asterism": "アステリズム",
+ "Bands": "帯",
+ "Based on {name}. Only what you change here is stored.": "{name} をもとにしています。ここで変更した内容だけが保存されます。",
+ "Body": "本文",
+ "Book serif": "本文用セリフ",
+ "Broadsheet": "ブロードシート",
+ "Bullets": "箇条書き記号",
+ "Callout colours": "コールアウトの色",
+ "Callouts": "コールアウト",
+ "Capitals": "大文字",
+ "Carried by this space.": "このスペースに含まれるデザイン。",
+ "Cell 1": "セル 1",
+ "Cell 2": "セル 2",
+ "Cell 3": "セル 3",
+ "Checkboxes": "チェックボックス",
+ "Code and figures": "コードと数字",
+ "Colours": "色",
+ "Condensed": "コンデンス",
+ "Corner radius": "角の丸み",
+ "Custom": "カスタム",
+ "Customise design": "デザインをカスタマイズ",
+ "Customise…": "カスタマイズ…",
+ "Dash": "ダッシュ",
+ "Design": "デザイン",
+ "Disc": "丸",
+ "Display italic": "見出し用イタリック",
+ "Dividers": "区切り線",
+ "Done": "完了",
+ "Double rule": "二重線",
+ "Double rule above": "上に二重線",
+ "Drop cap": "ドロップキャップ",
+ "Figures": "数字",
+ "Filled": "塗りつぶし",
+ "Grid": "グリッド",
+ "Grotesque": "グロテスク",
+ "Hairline": "細線",
+ "Hard offset": "くっきりずらす",
+ "Heading case": "見出しの大文字・小文字",
+ "Heading style": "見出しのスタイル",
+ "Heading weight": "見出しの太さ",
+ "Headings": "見出し",
+ "Heavy rule": "太い線",
+ "Humanist": "ヒューマニスト",
+ "Indented": "字下げ",
+ "Justified text": "両端揃え",
+ "Label colour": "ラベルの色",
+ "Layout": "レイアウト",
+ "Ledger": "台帳",
+ "Line spacing": "行間",
+ "Lining": "ライニング数字",
+ "Monospace": "等幅",
+ "News serif": "ニュース用セリフ",
+ "None": "なし",
+ "Off": "オフ",
+ "Offset shadow": "ずれた影",
+ "Old-style": "オールドスタイル数字",
+ "Old-style serif": "オールドスタイル・セリフ",
+ "On": "オン",
+ "One hue per tone": "種類ごとに1色",
+ "Outlined": "枠線",
+ "Paper": "紙",
+ "Plain": "シンプル",
+ "Pull quote": "プルクオート",
+ "Quotes": "引用",
+ "Remove this design": "このデザインを削除",
+ "Riso": "リソ",
+ "Round": "丸",
+ "Rounded": "丸ゴシック",
+ "Rule above": "上に線",
+ "Rule weight": "線の太さ",
+ "Rules": "罫線",
+ "Rules above and below": "上下に線",
+ "Secondary text": "補助テキスト",
+ "Section heads": "節見出し",
+ "Shadows": "影",
+ "Short bar": "短い線",
+ "Short bar below": "下に短い線",
+ "Small capitals": "スモールキャップ",
+ "Studio": "スタジオ",
+ "System": "システム",
+ "Tables": "表",
+ "Text colour": "文字色",
+ "Text on accent": "アクセント上の文字",
+ "Text on tile": "タイル上の文字",
+ "Text size": "文字サイズ",
+ "That is not a font file (.woff2, .woff, .ttf or .otf).": "フォントファイル(.woff2、.woff、.ttf、.otf)ではありません。",
+ "The Bento tile: navy, slate, coral and cream compartments.": "Bento のタイル:紺、スレート、コーラル、クリームの仕切り。",
+ "The design travels with the file. Each reader’s light or dark setting picks between its two palettes.": "デザインはファイルと一緒に届きます。読む人のライト/ダーク設定が、2つのパレットのどちらを使うかを選びます。",
+ "The look every space starts with.": "すべてのスペースの最初の見た目。",
+ "The notes named a design, so this space now uses it.": "ノートがデザインを指定していたため、このスペースはそのデザインを使います。",
+ "This font is {size}, and it travels inside the file. Embed it anyway?": "このフォントは {size} あり、ファイルの中に入って届きます。それでも埋め込みますか?",
+ "This space no longer uses a design of its own.": "このスペースは独自のデザインを使わなくなりました。",
+ "Tile": "タイル",
+ "Tiles": "タイル",
+ "Tinted": "色付き",
+ "Title letter spacing": "タイトルの字間",
+ "Title line spacing": "タイトルの行間",
+ "Title size": "タイトルのサイズ",
+ "Title weight": "タイトルの太さ",
+ "Type": "書体",
+ "Typescript": "タイプ原稿",
+ "Typewriter": "タイプライター",
+ "Underlined": "下線",
+ "Upright": "正体",
+ "Wells": "背景面",
+ "{name}, customised": "{name}(カスタマイズ)",
"Export page as slides…": "ページをスライドとして書き出す…",
"The page as a bento/slides deck, ready to paste into Bento Slides": "ページを bento/slides のデッキにして、Bento Slides に貼り付けられる形にします",
"Export a page as slides": "ページをスライドとして書き出す",
diff --git a/spaces/src/i18n/packed.ts b/spaces/src/i18n/packed.ts
index 792d3e29..ab389e4e 100644
--- a/spaces/src/i18n/packed.ts
+++ b/spaces/src/i18n/packed.ts
@@ -33,18 +33,25 @@ export const PACKED: Record<string, ReadonlyArray<string | 0>> = {
"A live view of another page": ["別のページのライブ表示","另一个页面的实时视图","另一個頁面的即時檢視","Una vista en vivo de otra página","Une vue en direct d’une autre page","Eine Live-Ansicht einer anderen Seite","Una vista dal vivo di un’altra pagina","Uma vista ao vivo de outra página"],
"A live viewer: follows every edit as it happens but can never change this space — the relay enforces it.": ["ライブビューア:編集をリアルタイムで追いますが、この Space を変更することはできません — リレーが強制します。","实时查看副本:实时跟随每次编辑,但永远无法修改此 Space — 由中继强制执行。","即時檢視副本:即時跟隨每次編輯,但永遠無法修改此 Space — 由中繼強制執行。","Un visor en vivo: sigue cada edición al instante pero nunca puede modificar este Space — el relé lo garantiza.","Un visualiseur en direct : suit chaque modification mais ne peut jamais changer cet espace — le relais l’applique.","Ein Live-Viewer: folgt jeder Änderung, kann diesen Space aber nie verändern — vom Relay erzwungen.","Un visualizzatore live: segue ogni modifica ma non può mai cambiare questo Space — imposto dal relay.","Um visualizador ao vivo: acompanha cada edição conforme acontece, mas nunca pode alterar este Space — o retransmissor garante isso."],
"A new block": ["新しいブロック","新建一个块","新增一個區塊","Un bloque nuevo","Un nouveau bloc","Ein neuer Block","Un nuovo blocco","Um bloco novo"],
+ "A news serif under double rules, justified, with pull quotes.": ["二重罫線の下にニュース用セリフ体、両端揃え、プルクオート付き。","双线下的新闻衬线体,两端对齐,带引文摘录。","雙線下的新聞襯線體,左右對齊,附引文摘錄。","Una serifa de periódico bajo filetes dobles, justificada y con citas destacadas.","Un caractère de journal sous des filets doubles, justifié, avec des citations en exergue.","Eine Zeitungs-Serifenschrift unter Doppellinien, im Blocksatz, mit herausgestellten Zitaten.","Un graziato da quotidiano sotto filetti doppi, giustificato, con citazioni in evidenza.","Uma serifa de jornal sob fios duplos, justificada, com citações em destaque."],
"A note, tip or warning": ["メモ・ヒント・注意","注释、提示或警告","註記、提示或警告","Una nota, un consejo o una advertencia","Une note, un conseil ou un avertissement","Eine Notiz, ein Tipp oder eine Warnung","Una nota, un consiglio o un avviso","Uma nota, dica ou aviso"],
"A page cannot contain itself": ["ページを自分自身に入れることはできません","页面不能包含自身","頁面不能包含自己","Una página no puede contenerse a sí misma","Une page ne peut pas se contenir elle-même","Eine Seite kann sich nicht selbst enthalten","Una pagina non può contenere sé stessa","Uma página não pode conter-se a si própria"],
"A picture across the top of this page": ["このページ上部に表示する画像","显示在此页面顶部的图片","顯示在此頁面頂部的圖片","Una imagen en la parte superior de esta página","Une image en haut de cette page","Ein Bild am oberen Rand dieser Seite","Un'immagine in cima a questa pagina","Uma imagem no topo desta página"],
"A picture that lives on the web was left out — a deck never fetches.": ["ウェブ上にある画像は除きました — デッキは決して取得しません。","一张存放在网上的图片被略去了——演示文稿从不联网获取。","一張放在網路上的圖片被略過了——簡報從不連網取得。","Se dejó fuera una imagen alojada en la web: una presentación nunca descarga nada.","Une image hébergée sur le web a été laissée de côté — une présentation ne télécharge jamais rien.","Ein Bild aus dem Web wurde weggelassen – eine Präsentation lädt nie etwas nach.","Un’immagine che vive sul web è stata esclusa: una presentazione non scarica mai nulla.","Uma imagem que vive na web ficou de fora — uma apresentação nunca vai buscar nada."],
+ "A precise grid, figures in a monospace, cobalt rules.": ["精密なグリッド、等幅の数字、コバルトの罫線。","精确的网格,等宽数字,钴蓝色分隔线。","精確的網格,等寬數字,鈷藍色分隔線。","Una retícula precisa, cifras en monoespaciada y filetes cobalto.","Une grille précise, des chiffres en chasse fixe, des filets cobalt.","Ein präzises Raster, Zahlen in Festbreitenschrift, kobaltblaue Linien.","Una griglia precisa, cifre a spaziatura fissa, filetti cobalto.","Uma grelha precisa, algarismos em monoespaçada, fios cobalto."],
+ "A risograph zine: two spot inks, heavy capitals, offset shadows.": ["リソグラフのZINE:2色の特色インク、太い大文字、ずれた影。","孔版印刷小志:两种专色油墨、粗重大写、错位阴影。","孔版印刷小誌:兩種專色油墨、粗重大寫、錯位陰影。","Un fanzine en risografía: dos tintas planas, mayúsculas gruesas y sombras desplazadas.","Un fanzine en risographie : deux encres d’accompagnement, des capitales grasses, des ombres décalées.","Ein Risograph-Zine: zwei Schmuckfarben, fette Versalien, versetzte Schatten.","Una fanzine in risografia: due inchiostri spot, maiuscole pesanti, ombre sfalsate.","Um fanzine em risografia: duas tintas especiais, maiúsculas pesadas, sombras desfasadas."],
"A second file — the original is left alone": ["2 つ目のファイル — 元のファイルはそのまま","另存一个新文件 — 原文件不动","第二個檔案 — 原檔案不受影響","Un segundo archivo — el original queda intacto","Un second fichier — l’original reste intact","Eine zweite Datei — das Original bleibt unberührt","Un secondo file — l’originale resta intatto","Um segundo ficheiro — o original fica intacto"],
"A sort here is newer than this build and was not applied.": ["このビューには、このバージョンより新しい並び順があり、適用されていません。","此视图中有比当前版本更新的排序方式,未被应用。","此檢視中有比目前版本更新的排序方式,未被套用。","Un orden de esta vista es más reciente que esta versión y no se ha aplicado.","Un tri de cette vue est plus récent que cette version et n’a pas été appliqué.","Eine Sortierung dieser Ansicht ist neuer als diese Version und wurde nicht angewendet.","Un ordinamento di questa vista è più recente di questa versione e non è stato applicato.","Uma ordenação desta vista é mais recente do que esta versão e não foi aplicada."],
"A space needs at least one page": ["スペースには少なくとも 1 ページが必要です","空间至少要有一个页面","空間至少要有一個頁面","Un espacio necesita al menos una página","Un espace doit contenir au moins une page","Ein Space braucht mindestens eine Seite","Uno spazio deve avere almeno una pagina","Um espaço precisa de pelo menos uma página"],
"A still frame, shown before play — and what a printout or a file preview shows": ["再生前に表示される静止画 — 印刷やファイルのプレビューで表示されるのもこれです","播放前显示的静帧 — 打印和文件预览中显示的也是它","播放前顯示的靜態畫面 — 列印和檔案預覽顯示的也是它","Un fotograma fijo, que se muestra antes de reproducir — y es lo que aparece al imprimir o en la vista previa del archivo","Une image fixe, affichée avant la lecture — et c’est elle qui apparaît à l’impression et dans l’aperçu du fichier","Ein Standbild, das vor dem Abspielen zu sehen ist — und das, was im Ausdruck und in der Dateivorschau erscheint","Un fotogramma fisso, mostrato prima della riproduzione — ed è quello che compare in stampa e nell’anteprima del file","Uma imagem fixa, mostrada antes da reprodução — e é o que aparece na impressão e na pré-visualização do ficheiro"],
"A table was too tall for one slide and continues on the next.": ["表が 1 枚に収まらず、次のスライドへ続いています。","表格一张幻灯片放不下,接续到了下一张。","表格一張投影片放不下,接續到了下一張。","Una tabla no cabía en una diapositiva y continúa en la siguiente.","Un tableau était trop haut pour une diapositive et se poursuit sur la suivante.","Eine Tabelle war zu hoch für eine Folie und läuft auf der nächsten weiter.","Una tabella era troppo alta per una diapositiva e prosegue in quella successiva.","Uma tabela era alta demais para um slide e continua no seguinte."],
"A typed value on this page": ["このページの型付きの値","此页面上的类型化值","此頁面上的型別值","Un valor con tipo en esta página","Une valeur typée sur cette page","Ein typisierter Wert auf dieser Seite","Un valore tipizzato su questa pagina","Um valor tipado nesta página"],
+ "A typewritten manuscript: one face, capitals, a two-colour ribbon.": ["タイプ原稿:書体はひとつ、大文字、2色のリボン。","打字机手稿:单一字体、大写、双色色带。","打字機手稿:單一字體、大寫、雙色色帶。","Un manuscrito mecanografiado: un solo tipo, mayúsculas y cinta de dos colores.","Un manuscrit dactylographié : un seul caractère, des capitales, un ruban bicolore.","Ein maschinengeschriebenes Manuskript: eine Schrift, Versalien, ein zweifarbiges Farbband.","Un dattiloscritto: un solo carattere, maiuscole, un nastro bicolore.","Um manuscrito datilografado: um só tipo, maiúsculas, fita de duas cores."],
"About bento/spaces — version, updates, licenses": ["bento/spaces について — バージョン・更新・ライセンス","关于 bento/spaces — 版本、更新、许可证","關於 bento/spaces — 版本、更新、授權","Acerca de bento/spaces — versión, actualizaciones, licencias","À propos de bento/spaces — version, mises à jour, licences","Über bento/spaces — Version, Updates, Lizenzen","Informazioni su bento/spaces — versione, aggiornamenti, licenze","Acerca do bento/spaces — versão, atualizações, licenças"],
"About this space": ["このスペースについて","关于此空间","關於此空間","Acerca de este espacio","À propos de cet espace","Über diesen Space","Informazioni su questo spazio","Sobre este espaço"],
+ "Accent": ["アクセント","强调色","強調色","Acento","Accent","Akzent","Accento","Realce"],
+ "Accent bar": ["アクセントバー","强调竖条","強調豎條","Barra de acento","Barre d’accent","Akzentbalken","Barra d’accento","Barra de realce"],
+ "Accent text": ["アクセントの文字","强调色文字","強調色文字","Texto de acento","Texte d’accent","Akzenttext","Testo d’accento","Texto de realce"],
"Access reset — only copies saved from now on can join": ["アクセスをリセットしました — 今後保存したコピーだけが参加できます","访问已重置 — 只有此后保存的副本才能加入","存取已重設 — 只有此後儲存的副本才能加入","Acceso restablecido — solo las copias guardadas a partir de ahora podrán unirse","Accès réinitialisé — seules les copies enregistrées désormais pourront rejoindre","Zugriff zurückgesetzt — nur ab jetzt gespeicherte Kopien können beitreten","Accesso reimpostato — solo le copie salvate d’ora in poi potranno unirsi","Acesso redefinido — apenas cópias salvas de agora em diante podem entrar"],
"Add": ["追加","添加","新增","Añadir","Ajouter","Hinzufügen","Aggiungi","Adicionar"],
"Add a block below": ["下にブロックを追加","在下方添加块","在下方新增區塊","Añadir un bloque debajo","Ajouter un bloc en dessous","Block darunter hinzufügen","Aggiungi un blocco sotto","Adicionar um bloco abaixo"],
@@ -54,6 +61,7 @@ export const PACKED: Record<string, ReadonlyArray<string | 0>> = {
"Add a code block": ["コードブロックを追加","添加代码块","新增程式碼區塊","Añadir un bloque de código","Ajouter un bloc de code","Einen Codeblock hinzufügen","Aggiungi un blocco di codice","Adicionar um bloco de código"],
"Add a column after": ["右に列を追加","在右侧添加一列","在右側新增一欄","Añadir una columna después","Ajouter une colonne après","Spalte danach einfügen","Aggiungi una colonna dopo","Adicionar uma coluna depois"],
"Add a condition": ["条件を追加","添加条件","新增條件","Añadir una condición","Ajouter une condition","Bedingung hinzufügen","Aggiungi una condizione","Adicionar uma condição"],
+ "Add a font file…": ["フォントファイルを追加…","添加字体文件…","新增字型檔案…","Añadir un archivo de fuente…","Ajouter un fichier de police…","Schriftdatei hinzufügen…","Aggiungi un file di font…","Adicionar um ficheiro de tipo de letra…"],
"Add a link": ["リンクを追加","添加链接","新增連結","Añadir un enlace","Ajouter un lien","Link hinzufügen","Aggiungi un collegamento","Adicionar um link"],
"Add a page": ["ページを追加","添加页面","新增頁面","Añadir una página","Ajouter une page","Seite hinzufügen","Aggiungi una pagina","Adicionar uma página"],
"Add a picture": ["画像を追加","添加图片","新增圖片","Añadir una imagen","Ajouter une image","Bild hinzufügen","Aggiungi un'immagine","Adicionar uma imagem"],
@@ -71,10 +79,12 @@ export const PACKED: Record<string, ReadonlyArray<string | 0>> = {
"Address of a video or audio file": ["動画または音声ファイルのアドレス","视频或音频文件的地址","影片或音訊檔案的位址","Dirección de un archivo de vídeo o audio","Adresse d’un fichier vidéo ou audio","Adresse einer Video- oder Audiodatei","Indirizzo di un file video o audio","Endereço de um ficheiro de vídeo ou áudio"],
"Adds status, priority, assignee, estimate": ["ステータス・優先度・担当者・見積もりを追加します","添加状态、优先级、负责人和估算","新增狀態、優先順序、負責人與估算","Añade estado, prioridad, responsable y estimación","Ajoute statut, priorité, responsable et estimation","Fügt Status, Priorität, Bearbeiter:in und Schätzung hinzu","Aggiunge stato, priorità, assegnatario e stima","Adiciona estado, prioridade, responsável e estimativa"],
"All text. Nothing is embedded, so this file is as small as a space gets.": ["すべてテキストです。埋め込みはないので、このファイルはスペースとして最小の大きさです。","全是文字。没有嵌入任何内容,所以这个文件已是空间能达到的最小体积。","全是文字。沒有嵌入任何內容,所以這個檔案已是空間能達到的最小體積。","Todo es texto. No hay nada incrustado, así que este archivo es lo más pequeño que puede ser un espacio.","Que du texte. Rien n’est intégré, donc ce fichier est aussi léger qu’un espace peut l’être.","Nur Text. Nichts ist eingebettet, also ist diese Datei so klein, wie ein Space nur sein kann.","Solo testo. Non c’è nulla di incorporato, quindi questo file è il più piccolo possibile per uno spazio.","Só texto. Nada está incorporado, por isso este ficheiro é o mais pequeno que um espaço pode ser."],
+ "Almanac": ["アルマナック","年鉴","年鑑","Almanaque","Almanach","Almanach","Almanacco","Almanaque"],
"Already an issue": ["すでにイシューです","已经是事项","已經是項目","Ya es una incidencia","Déjà un ticket","Ist bereits ein Issue","È già una issue","Já é uma tarefa"],
"Also known as": ["別名","又名","又名","También conocida como","Aussi appelée","Auch bekannt als","Detta anche","Também conhecida como"],
"Also open in another window on this computer — not shared online": ["このパソコンの別のウィンドウでも開いています — オンライン共有はしていません","本机的另一个窗口中也已打开 — 未在线共享","本機的另一個視窗中也已開啟 — 未線上分享","También abierto en otra ventana de este ordenador — no compartido en línea","Également ouvert dans une autre fenêtre de cet ordinateur — pas partagé en ligne","Auch in einem anderen Fenster auf diesem Computer geöffnet — nicht online geteilt","Aperto anche in un’altra finestra di questo computer — non condiviso online","Também aberto noutra janela deste computador — não partilhado online"],
"Alt text": ["代替テキスト","替代文本","替代文字","Texto alternativo","Texte alternatif","Alternativtext","Testo alternativo","Texto alternativo"],
+ "An editorial serif, a drop cap, and marigold for its accent.": ["編集的なセリフ体、ドロップキャップ、アクセントはマリーゴールド。","编辑风格的衬线体,首字下沉,以万寿菊黄为强调色。","編輯風格的襯線體,首字放大,以萬壽菊黃為強調色。","Una serifa editorial, una capitular y el amarillo caléndula como acento.","Un caractère éditorial, une lettrine, et le jaune souci pour accent.","Eine redaktionelle Serifenschrift, eine Initiale und Ringelblumengelb als Akzent.","Un graziato editoriale, un capolettera e il giallo calendula come accento.","Uma serifa editorial, uma capitular e o amarelo-calêndula como realce."],
"An update check is the only network this app makes on its own. It asks the release server for a signed manifest and sends nothing about you or this document — no ids, no telemetry.": ["更新の確認は、このアプリが自分から行う唯一の通信です。リリースサーバーに署名済みのマニフェストを求めるだけで、あなたやこの文書に関する情報は何も送りません。ID もテレメトリもありません。","检查更新是这个应用唯一会自行发起的网络请求。它只向发布服务器索取一份已签名的清单,不发送任何关于你或这份文档的信息——没有标识符,没有遥测。","檢查更新是這個應用程式唯一會自行發起的網路請求。它只向發布伺服器索取一份已簽署的清單,不傳送任何關於你或這份文件的資訊——沒有識別碼,沒有遙測。","La comprobación de actualizaciones es la única conexión de red que esta aplicación hace por su cuenta. Pide al servidor de versiones un manifiesto firmado y no envía nada sobre ti ni sobre este documento: sin identificadores, sin telemetría.","La vérification des mises à jour est la seule connexion réseau que cette application établit d’elle-même. Elle demande au serveur de versions un manifeste signé et n’envoie rien sur vous ni sur ce document — aucun identifiant, aucune télémétrie.","Die Update-Prüfung ist die einzige Netzverbindung, die diese App von sich aus herstellt. Sie holt vom Release-Server ein signiertes Manifest und sendet nichts über Sie oder dieses Dokument — keine Kennungen, keine Telemetrie.","Il controllo degli aggiornamenti è l’unica connessione di rete che questa app apre da sola. Chiede al server delle versioni un manifesto firmato e non invia nulla su di te o su questo documento: nessun identificativo, nessuna telemetria.","A verificação de atualizações é a única ligação de rede que esta aplicação faz por iniciativa própria. Pede ao servidor de versões um manifesto assinado e não envia nada sobre si nem sobre este documento — sem identificadores, sem telemetria."],
"Another bento/spaces file arrives as pages under the one you choose — its images come too, and the links inside it keep working.": ["別の bento/spaces ファイルは、選んだページの下にページとして取り込まれます。画像も一緒に入り、その中のリンクもそのまま使えます。","另一个 bento/spaces 文件会作为页面加入到你选择的页面之下——图片一并带入,其内部的链接照常可用。","另一個 bento/spaces 檔案會作為頁面加入到你選擇的頁面之下——圖片一併帶入,其內部的連結照常可用。","Otro archivo bento/spaces llega como páginas debajo de la que elijas: sus imágenes vienen también y los enlaces internos siguen funcionando.","Un autre fichier bento/spaces arrive sous la page que vous choisissez : ses images viennent aussi, et les liens qu’il contient continuent de fonctionner.","Eine andere bento/spaces-Datei kommt als Seiten unter der von Ihnen gewählten Seite an — ihre Bilder kommen mit, und die Links darin funktionieren weiter.","Un altro file bento/spaces arriva come pagine sotto quella che scegli: arrivano anche le sue immagini e i collegamenti al suo interno continuano a funzionare.","Outro ficheiro bento/spaces chega como páginas por baixo da que escolher — as imagens vêm também e as ligações lá dentro continuam a funcionar."],
"Appearance": ["外観","外观","外觀","Apariencia","Apparence","Darstellung","Aspetto","Aspeto"],
@@ -82,12 +92,16 @@ export const PACKED: Record<string, ReadonlyArray<string | 0>> = {
"Archive": ["アーカイブ","归档","封存","Archivar","Archiver","Archivieren","Archivia","Arquivar"],
"Archived": ["アーカイブ済み","已归档","已封存","Archivada","Archivée","Archiviert","Archiviata","Arquivada"],
"Archived ({n})": ["アーカイブ済み({n})","已归档 ({n})","已封存 ({n})","Archivadas ({n})","Archivées ({n})","Archiviert ({n})","Archiviate ({n})","Arquivadas ({n})"],
+ "As written": ["入力どおり","按原样","按原樣","Tal como se escribió","Tel qu’écrit","Wie geschrieben","Come scritto","Como escrito"],
"Ascending": ["昇順","升序","遞增","Ascendente","Croissant","Aufsteigend","Crescente","Crescente"],
+ "Asterism": ["アステリズム","星号分隔","星號分隔","Asterismo","Astérisme","Asterismus","Asterismo","Asterismo"],
"Audio": ["音声","音频","音訊","Audio","Audio","Audio","Audio","Áudio"],
"Audio from {host}": ["{host} の音声","来自 {host} 的音频","來自 {host} 的音訊","Audio de {host}","Audio provenant de {host}","Audio von {host}","Audio da {host}","Áudio de {host}"],
"Back": ["戻る","返回","返回","Atrás","Retour","Zurück","Indietro","Voltar"],
"Back to the text": ["本文に戻る","返回正文","回到內文","Volver al texto","Revenir au texte","Zurück zum Text","Torna al testo","Voltar ao texto"],
"Background": ["背景","背景","背景","Fondo","Arrière-plan","Hintergrund","Sfondo","Plano de fundo"],
+ "Bands": ["帯","条带","條帶","Bandas","Bandes","Bänder","Bande","Faixas"],
+ "Based on {name}. Only what you change here is stored.": ["{name} をもとにしています。ここで変更した内容だけが保存されます。","基于 {name}。只保存你在这里更改的内容。","以 {name} 為基礎。只會儲存你在這裡變更的內容。","Basado en {name}. Solo se guarda lo que cambies aquí.","Basé sur {name}. Seul ce que vous changez ici est enregistré.","Basiert auf {name}. Gespeichert wird nur, was du hier änderst.","Basato su {name}. Si salva solo ciò che cambi qui.","Baseado em {name}. Só é guardado o que alterar aqui."],
"Between blocks, and between the lines of one": ["ブロック間、および一つのブロック内の行間","在块之间移动,也在一个块的各行之间移动","在區塊之間移動,也在一個區塊的各行之間移動","Entre bloques, y entre las líneas de uno","Entre les blocs, et entre les lignes d’un bloc","Zwischen Blöcken, und zwischen den Zeilen eines Blocks","Tra i blocchi, e tra le righe di uno","Entre blocos, e entre as linhas de um"],
"Blank page": ["空白のページ","空白页面","空白頁面","Página en blanco","Page vierge","Leere Seite","Pagina vuota","Página em branco"],
"Block": ["ブロック","块","區塊","Bloque","Bloc","Block","Blocco","Bloco"],
@@ -98,19 +112,29 @@ export const PACKED: Record<string, ReadonlyArray<string | 0>> = {
"Blue": ["青","蓝色","藍色","Azul","Bleu","Blau","Blu","Azul"],
"Board": ["ボード","看板","看板","Tablero","Tableau","Board","Bacheca","Quadro"],
"Board or list": ["ボードまたはリスト","看板或列表","看板或清單","Tablero o lista","Tableau ou liste","Board oder Liste","Bacheca o elenco","Quadro ou lista"],
+ "Body": ["本文","正文","內文","Cuerpo","Corps de texte","Fließtext","Corpo del testo","Corpo do texto"],
"Bold": ["ボールド","粗体","粗體","Negrita","Gras","Fett","Grassetto","Negrito"],
"Bold — ⌘B": ["ボールド — ⌘B","粗体 — ⌘B","粗體 — ⌘B","Negrita — ⌘B","Gras — ⌘B","Fett — ⌘B","Grassetto — ⌘B","Negrito — ⌘B"],
+ "Book serif": ["本文用セリフ","书籍衬线体","書籍襯線體","Serifa de libro","Caractère de labeur","Buch-Serifenschrift","Graziato da libro","Serifa de livro"],
"Breadcrumb": ["パンくずリスト","面包屑导航","階層路徑","Ruta de navegación","Fil d’Ariane","Pfadnavigation","Percorso di navigazione","Trilho de navegação"],
"Bring notes in": ["ノートを取り込む","把笔记带进来","把筆記帶進來","Traer notas","Faire entrer des notes","Notizen hereinholen","Portare dentro le note","Trazer notas para cá"],
+ "Broadsheet": ["ブロードシート","大报","大報","Diario","Grand format","Zeitung","Quotidiano","Jornal"],
"Brown": ["茶","棕色","棕色","Marrón","Marron","Braun","Marrone","Marrom"],
"Bulleted list": ["箇条書き","项目符号列表","項目符號清單","Lista con viñetas","Liste à puces","Aufzählung","Elenco puntato","Lista com marcadores"],
+ "Bullets": ["箇条書き記号","项目符号","項目符號","Viñetas","Puces","Aufzählungszeichen","Punti elenco","Marcadores"],
"Calendar": ["カレンダー","日历","日曆","Calendario","Calendrier","Kalender","Calendario","Calendário"],
"Callout": ["コールアウト","标注","標註","Aviso","Encadré","Hinweisblock","Riquadro","Destaque"],
"Callout icon": ["囲みのアイコン","标注图标","標註圖示","Icono del aviso","Icône de l'encadré","Symbol des Hinweisfelds","Icona del riquadro","Ícone do destaque"],
+ "Callouts": ["コールアウト","标注","標註","Avisos","Encadrés","Hinweisblöcke","Riquadri","Destaques"],
"Cancel": ["キャンセル","取消","取消","Cancelar","Annuler","Abbrechen","Annulla","Cancelar"],
"Canvas": ["キャンバス","画布","畫布","Lienzo","Canevas","Leinwand","Tela","Tela"],
+ "Capitals": ["大文字","大写","大寫","Mayúsculas","Capitales","Versalien","Maiuscole","Maiúsculas"],
"Cards you place by hand": ["自由に配置できるカード","由你手动摆放的卡片","由你手動擺放的卡片","Tarjetas que colocas a mano","Des cartes que vous placez à la main","Karten, die du selbst platzierst","Schede che disponi a mano","Cartões que você posiciona à mão"],
+ "Carried by this space.": ["このスペースに含まれるデザイン。","随此空间携带。","隨此空間攜帶。","Incluido en este espacio.","Fourni par cet espace.","In diesem Space enthalten.","Incluso in questo spazio.","Incluído neste espaço."],
"Caution": ["注意","当心","當心","Precaución","Attention","Achtung","Attenzione","Cuidado"],
+ "Cell 1": ["セル 1","单元 1","單元 1","Celda 1","Case 1","Feld 1","Cella 1","Célula 1"],
+ "Cell 2": ["セル 2","单元 2","單元 2","Celda 2","Case 2","Feld 2","Cella 2","Célula 2"],
+ "Cell 3": ["セル 3","单元 3","單元 3","Celda 3","Case 3","Feld 3","Cella 3","Célula 3"],
"Change password…": ["パスワードを変更…","更改密码…","變更密碼…","Cambiar contraseña…","Changer le mot de passe…","Passwort ändern…","Cambia password…","Alterar senha…"],
"Change the kind of callout": ["囲みの種類を変更","更改标注类型","變更標註類型","Cambiar el tipo de aviso","Changer le type d'encadré","Art des Hinweisfelds ändern","Cambia il tipo di riquadro","Alterar o tipo de destaque"],
"Change the name used for your new comments and replies": ["新しいコメントと返信に使う名前を変更","更改新评论和回复所用的名字","變更新註解與回覆所用的名字","Cambiar el nombre para tus nuevos comentarios y respuestas","Changer le nom utilisé pour vos nouveaux commentaires et réponses","Namen für neue Kommentare und Antworten ändern","Cambia il nome usato per i tuoi nuovi commenti e risposte","Altere o nome usado nos seus novos comentários e respostas"],
@@ -120,6 +144,7 @@ export const PACKED: Record<string, ReadonlyArray<string | 0>> = {
"Chart": ["グラフ","图表","圖表","Gráfico","Graphique","Diagramm","Grafico","Gráfico"],
"Check for updates": ["更新を確認","检查更新","檢查更新","Buscar actualizaciones","Rechercher des mises à jour","Nach Updates suchen","Cerca aggiornamenti","Verificar atualizações"],
"Check for updates automatically at launch": ["起動時に自動で更新を確認","启动时自动检查更新","啟動時自動檢查更新","Buscar actualizaciones automáticamente al iniciar","Rechercher automatiquement les mises à jour au démarrage","Beim Start automatisch nach Updates suchen","Cerca aggiornamenti automaticamente all'avvio","Verificar atualizações automaticamente ao abrir"],
+ "Checkboxes": ["チェックボックス","复选框","核取方塊","Casillas","Cases à cocher","Kontrollkästchen","Caselle di spunta","Caixas de verificação"],
"Checked automatically at launch — you're on the latest version (v{v}).": ["起動時に自動確認済み — 最新バージョンです (v{v})。","已在启动时自动检查 — 您已是最新版本 (v{v})。","已於啟動時自動檢查 — 您已是最新版本 (v{v})。","Comprobado automáticamente al iniciar — tienes la última versión (v{v}).","Vérifié automatiquement au démarrage — vous avez la dernière version (v{v}).","Beim Start automatisch geprüft — Sie haben die neueste Version (v{v}).","Verificato automaticamente all'avvio — hai l'ultima versione (v{v}).","Verificado automaticamente ao abrir — você está na versão mais recente (v{v})."],
"Checking…": ["確認中…","检查中…","檢查中…","Comprobando…","Vérification…","Prüfe…","Verifica in corso…","A verificar…"],
"Choose .md files…": [".md ファイルを選ぶ…","选择 .md 文件…","選擇 .md 檔案…","Elegir archivos .md…","Choisir des fichiers .md…",".md-Dateien wählen…","Scegli file .md…","Escolher ficheiros .md…"],
@@ -137,9 +162,11 @@ export const PACKED: Record<string, ReadonlyArray<string | 0>> = {
"Clip added ({size})": ["クリップを追加しました({size})","已添加片段 ({size})","已新增片段 ({size})","Clip añadido ({size})","Clip ajouté ({size})","Clip hinzugefügt ({size})","Clip aggiunta ({size})","Clipe adicionado ({size})"],
"Close": ["閉じる","关闭","關閉","Cerrar","Fermer","Schließen","Chiudi","Fechar"],
"Code": ["コード","代码","程式碼","Código","Code","Code","Codice","Código"],
+ "Code and figures": ["コードと数字","代码与数字","程式碼與數字","Código y cifras","Code et chiffres","Code und Zahlen","Codice e cifre","Código e algarismos"],
"Collapsed toggles always print open. Your browser's print dialog has the \"Save as PDF\" option.": ["折りたたんだトグルも印刷では必ず開いた状態になります。「PDF として保存」はブラウザの印刷ダイアログにあります。","折叠起来的折叠块打印时一律展开。浏览器的打印对话框里有“存为 PDF”选项。","收合的摺疊區塊列印時一律展開。「另存為 PDF」的選項在瀏覽器的列印對話方塊中。","Los desplegables plegados siempre se imprimen abiertos. El diálogo de impresión de tu navegador tiene la opción «Guardar como PDF».","Les bascules repliées s’impriment toujours dépliées. La boîte d’impression de votre navigateur propose « Enregistrer au format PDF ».","Zugeklappte Toggle-Blöcke werden immer offen gedruckt. Im Druckdialog deines Browsers gibt es die Option „Als PDF speichern“.","I blocchi comprimibili chiusi vengono sempre stampati aperti. La finestra di stampa del browser offre l’opzione «Salva come PDF».","Os blocos recolhidos são sempre impressos abertos. A janela de impressão do navegador tem a opção \"Guardar como PDF\"."],
"Collapsible section": ["折りたためるセクション","可折叠的部分","可摺疊的區段","Sección que se pliega","Section repliable","Ausklappbarer Abschnitt","Sezione richiudibile","Secção que se recolhe"],
"Color": ["色","颜色","顏色","Color","Couleur","Farbe","Colore","Cor"],
+ "Colours": ["色","颜色","顏色","Colores","Couleurs","Farben","Colori","Cores"],
"Column": ["1カラム","单栏","單欄","Columna","Colonne","Spalte","Colonna","Coluna"],
"Columns": ["列","列","欄","Columnas","Colonnes","Spalten","Colonne","Colunas"],
"Comfortable for reading": ["読みやすい幅","适合阅读的宽度","適合閱讀的寬度","Cómodo para leer","Confortable à lire","Angenehm zu lesen","Comodo da leggere","Confortável para ler"],
@@ -149,6 +176,7 @@ export const PACKED: Record<string, ReadonlyArray<string | 0>> = {
"Comment · page": ["コメント · ページ","评论 · 页面","註解 · 頁面","Comentario · página","Commentaire · page","Kommentar · Seite","Commento · pagina","Comentário · página"],
"Comment — on the block with the caret, or on this page": ["コメント — カーソルのあるブロック、またはこのページに","评论 — 针对光标所在的块,或此页面","註解 — 針對游標所在的區塊,或此頁面","Comentar — en el bloque donde está el cursor, o en esta página","Commenter — le bloc où se trouve le curseur, ou cette page","Kommentieren — den Block mit dem Cursor oder diese Seite","Commenta — il blocco con il cursore, o questa pagina","Comentar — o bloco onde está o cursor, ou esta página"],
"Comment:": ["コメント:","评论:","註解:","Comentario:","Commentaire :","Kommentar:","Commento:","Comentário:"],
+ "Condensed": ["コンデンス","窄体","窄體","Condensada","Condensée","Schmal","Condensato","Condensada"],
"Condition": ["条件","条件","條件","Condición","Condition","Bedingung","Condizione","Condição"],
"Conditions": ["条件","条件","條件","Condiciones","Conditions","Bedingungen","Condizioni","Condições"],
"Confirm password": ["パスワードを確認","确认密码","確認密碼","Confirmar contraseña","Confirmer le mot de passe","Passwort bestätigen","Conferma password","Confirmar senha"],
@@ -162,14 +190,19 @@ export const PACKED: Record<string, ReadonlyArray<string | 0>> = {
"Copy saved — you are still editing the original": ["コピーを保存しました — 編集中なのは引き続き元のファイルです","副本已保存 — 你仍在编辑原文件","副本已儲存 — 你仍在編輯原始檔案","Copia guardada: sigues editando el original","Copie enregistrée — vous modifiez toujours l'original","Kopie gespeichert — du bearbeitest weiterhin das Original","Copia salvata: stai ancora modificando l'originale","Cópia guardada — continuas a editar o original"],
"Copy the deck JSON": ["デッキの JSON をコピー","复制演示文稿 JSON","複製簡報 JSON","Copiar el JSON de la presentación","Copier le JSON de la présentation","Präsentations-JSON kopieren","Copia il JSON della presentazione","Copiar o JSON da apresentação"],
"Copy the document JSON": ["ドキュメント JSON をコピー","复制此文档的 JSON","複製文件 JSON","Copiar el JSON del documento","Copier le JSON du document","Dokument-JSON kopieren","Copia il JSON del documento","Copiar o JSON do documento"],
+ "Corner radius": ["角の丸み","圆角","圓角","Radio de las esquinas","Rayon des angles","Eckenradius","Raggio degli angoli","Raio dos cantos"],
"Could not copy": ["コピーできませんでした","无法复制","無法複製","No se pudo copiar","Copie impossible","Kopieren nicht möglich","Copia non riuscita","Não foi possível copiar"],
"Could not reach the update channel.": ["更新チャンネルに接続できませんでした。","无法连接更新通道。","無法連線到更新來源。","No se pudo contactar con el canal de actualizaciones.","Impossible de joindre le canal de mise à jour.","Der Update-Kanal war nicht erreichbar.","Impossibile raggiungere il canale degli aggiornamenti.","Não foi possível contactar o canal de atualizações."],
"Couldn’t access the clipboard": ["クリップボードにアクセスできませんでした","无法访问剪贴板","無法存取剪貼簿","No se pudo acceder al portapapeles","Impossible d'accéder au presse-papiers","Zugriff auf die Zwischenablage nicht möglich","Impossibile accedere agli appunti","Não foi possível acessar a área de transferência"],
"Couldn’t reach the live session": ["ライブセッションに接続できませんでした","无法连接实时会话","無法連線即時會話","No se pudo contactar la sesión en vivo","Impossible de joindre la session live","Live-Sitzung nicht erreichbar","Impossibile raggiungere la sessione live","Não foi possível alcançar a sessão ao vivo"],
"Cover": ["カバー","封面","封面","Portada","Couverture","Titelbild","Copertina","Capa"],
"Create “{name}”": ["「{name}」を作成","创建“{name}”","建立「{name}」","Crear «{name}»","Créer « {name} »","„{name}“ erstellen","Crea «{name}»","Criar “{name}”"],
+ "Custom": ["カスタム","自定义","自訂","Personalizado","Personnalisé","Eigene","Personalizzato","Personalizado"],
+ "Customise design": ["デザインをカスタマイズ","自定义设计","自訂設計","Personalizar el diseño","Personnaliser le design","Gestaltung anpassen","Personalizza il design","Personalizar o design"],
+ "Customise…": ["カスタマイズ…","自定义…","自訂…","Personalizar…","Personnaliser…","Anpassen…","Personalizza…","Personalizar…"],
"Daily note ✓": ["デイリーノート ✓","每日笔记 ✓","每日筆記 ✓","Nota diaria ✓","Note quotidienne ✓","Tagesnotiz ✓","Nota giornaliera ✓","Nota diária ✓"],
"Dark": ["ダーク","深色","深色","Oscuro","Sombre","Dunkel","Scuro","Escuro"],
+ "Dash": ["ダッシュ","短横","短橫","Guion","Tiret","Strich","Trattino","Travessão"],
"Date": ["日付","日期","日期","Fecha","Date","Datum","Data","Data"],
"Default": ["デフォルト","默认","預設","Predeterminado","Par défaut","Standard","Predefinito","Padrão"],
"Delete": ["削除","删除","刪除","Eliminar","Supprimer","Löschen","Elimina","Eliminar"],
@@ -178,14 +211,21 @@ export const PACKED: Record<string, ReadonlyArray<string | 0>> = {
"Delete…": ["削除…","删除…","刪除…","Eliminar…","Supprimer…","Löschen…","Elimina…","Eliminar…"],
"Descending": ["降順","降序","遞減","Descendente","Décroissant","Absteigend","Decrescente","Decrescente"],
"Description": ["説明","描述","描述","Descripción","Description","Beschreibung","Descrizione","Descrição"],
+ "Design": ["デザイン","设计","設計","Diseño","Design","Gestaltung","Design","Design"],
+ "Disc": ["丸","圆点","圓點","Disco","Disque","Punkt","Disco","Disco"],
"Discard": ["破棄","放弃","捨棄","Descartar","Ignorer","Verwerfen","Ignora","Descartar"],
"Dismiss": ["閉じる","关闭","關閉","Descartar","Ignorer","Schließen","Chiudi","Dispensar"],
+ "Display italic": ["見出し用イタリック","标题斜体","標題斜體","Cursiva de titular","Italique de titrage","Display-Kursive","Corsivo da titolo","Itálico de título"],
"Divider": ["区切り線","分隔线","分隔線","Separador","Séparateur","Trennlinie","Separatore","Separador"],
+ "Dividers": ["区切り線","分隔线","分隔線","Separadores","Séparateurs","Trennlinien","Separatori","Separadores"],
"Document": ["文書","文档","文件","Documento","Document","Dokument","Documento","Documento"],
"Document JSON copied": ["ドキュメント JSON をコピーしました","已复制文档 JSON","已複製文件 JSON","JSON del documento copiado","JSON du document copié","Dokument-JSON kopiert","JSON del documento copiato","JSON do documento copiado"],
"Document id": ["文書 ID","文档 ID","文件 ID","ID del documento","Identifiant du document","Dokument-ID","ID del documento","ID do documento"],
"Document properties": ["ドキュメントのプロパティ","文档属性","文件屬性","Propiedades del documento","Propriétés du document","Dokumenteigenschaften","Proprietà del documento","Propriedades do documento"],
"Document replaced — ⌘Z undoes": ["ドキュメントを置き換えました — ⌘Z で元に戻せます","文档已替换 — ⌘Z 可撤销","文件已取代 — ⌘Z 可還原","Documento reemplazado — ⌘Z deshace","Document remplacé — ⌘Z annule","Dokument ersetzt — ⌘Z macht rückgängig","Documento sostituito — ⌘Z annulla","Documento substituído — ⌘Z desfaz"],
+ "Done": ["完了","完成","完成","Listo","Terminé","Fertig","Fine","Concluído"],
+ "Double rule": ["二重線","双线","雙線","Filete doble","Filet double","Doppellinie","Filetto doppio","Fio duplo"],
+ "Double rule above": ["上に二重線","上方双线","上方雙線","Filete doble encima","Filet double au-dessus","Doppellinie darüber","Filetto doppio sopra","Fio duplo por cima"],
"Download the deck JSON": ["デッキの JSON をダウンロード","下载演示文稿 JSON","下載簡報 JSON","Descargar el JSON de la presentación","Télécharger le JSON de la présentation","Präsentations-JSON herunterladen","Scarica il JSON della presentazione","Descarregar o JSON da apresentação"],
"Download updated copy": ["更新版をダウンロード","下载更新副本","下載更新副本","Descargar copia actualizada","Télécharger la copie à jour","Aktualisierte Kopie herunterladen","Scarica copia aggiornata","Baixar cópia atualizada"],
"Downloaded ✓": ["ダウンロード完了 ✓","已下载 ✓","已下載 ✓","Descargado ✓","Téléchargé ✓","Heruntergeladen ✓","Scaricato ✓","Baixado ✓"],
@@ -195,6 +235,7 @@ export const PACKED: Record<string, ReadonlyArray<string | 0>> = {
"Drag to resize this column": ["ドラッグして列の幅を変更","拖动以调整此列宽度","拖曳以調整此欄寬度","Arrastra para cambiar el ancho de esta columna","Faites glisser pour redimensionner cette colonne","Ziehen, um die Spaltenbreite zu ändern","Trascina per ridimensionare questa colonna","Arraste para redimensionar esta coluna"],
"Drag to resize · double-click to reset": ["ドラッグで幅を変更 · ダブルクリックで既定に戻す","拖动可调整宽度 · 双击恢复默认","拖曳可調整寬度 · 雙擊還原預設","Arrastra para redimensionar · doble clic para restablecer","Glisser pour redimensionner · double-clic pour réinitialiser","Ziehen zum Anpassen · Doppelklick setzt zurück","Trascina per ridimensionare · doppio clic per reimpostare","Arrasta para redimensionar · duplo clique para repor"],
"Drop .md files or a folder here": [".md ファイルかフォルダーをここにドロップ","把 .md 文件或文件夹拖到这里","把 .md 檔案或資料夾拖到這裡","Suelta aquí archivos .md o una carpeta","Déposez ici des fichiers .md ou un dossier",".md-Dateien oder einen Ordner hierher ziehen","Trascina qui file .md o una cartella","Largue aqui ficheiros .md ou uma pasta"],
+ "Drop cap": ["ドロップキャップ","首字下沉","首字放大","Capitular","Lettrine","Initiale","Capolettera","Capitular"],
"Duplicate": ["複製","创建副本","建立副本","Duplicar","Dupliquer","Duplizieren","Duplica","Duplicar"],
"Duplicate as new space…": ["新しいスペースとして複製…","复制为新空间…","複製為新空間…","Duplicar como espacio nuevo…","Dupliquer comme nouvel espace…","Als neuen Space duplizieren…","Duplica come nuovo spazio…","Duplicar como novo espaço…"],
"Each .md file becomes a page, folders become the page tree, and [[wikilinks]] become real links. Pages are added — nothing here is replaced.": [".md ファイルは 1 つずつページになり、フォルダーはページのツリーに、[[ウィキリンク]] は本物のリンクになります。ページは追加されるだけで、今あるものは置き換わりません。","每个 .md 文件变成一个页面,文件夹变成页面树,[[wiki 链接]] 变成真正的链接。页面是新增的——已有内容不会被替换。","每個 .md 檔案變成一個頁面,資料夾變成頁面樹,[[wiki 連結]] 變成真正的連結。頁面是新增的——既有內容不會被取代。","Cada archivo .md se convierte en una página, las carpetas forman el árbol de páginas y los [[wikilinks]] se vuelven enlaces reales. Las páginas se añaden: aquí no se reemplaza nada.","Chaque fichier .md devient une page, les dossiers deviennent l’arborescence des pages, et les [[wikilinks]] deviennent de vrais liens. Les pages s’ajoutent — rien n’est remplacé.","Jede .md-Datei wird eine Seite, Ordner werden zum Seitenbaum, [[Wikilinks]] werden echte Links. Seiten kommen hinzu — nichts hier wird ersetzt.","Ogni file .md diventa una pagina, le cartelle diventano l’albero delle pagine e i [[wikilink]] diventano link veri. Le pagine si aggiungono: qui non viene sostituito nulla.","Cada ficheiro .md passa a ser uma página, as pastas passam a ser a árvore de páginas e os [[wikilinks]] passam a ser ligações verdadeiras. As páginas são acrescentadas — nada aqui é substituído."],
@@ -224,7 +265,9 @@ export const PACKED: Record<string, ReadonlyArray<string | 0>> = {
"Exported {n} page(s) as a new space": ["{n} ページを新しいスペースとして書き出しました","已将 {n} 个页面导出为新的空间","已將 {n} 個頁面匯出為新的空間","Se exportaron {n} página(s) como un espacio nuevo","{n} page(s) exportée(s) comme nouvel espace","{n} Seite(n) als neuen Space exportiert","{n} pagina/e esportata/e come nuovo spazio","{n} página(s) exportada(s) como um novo espaço"],
"Exported {n} slide(s) as a deck": ["スライド {n} 枚のデッキとして書き出しました","已导出为 {n} 张幻灯片的演示文稿","已匯出為 {n} 張投影片的簡報","Exportada como una presentación de {n} diapositiva(s)","Exportée en une présentation de {n} diapositive(s)","Als Präsentation mit {n} Folie(n) exportiert","Esportata come presentazione di {n} diapositiva/e","Exportada como uma apresentação de {n} slide(s)"],
"Field": ["フィールド","字段","欄位","Campo","Champ","Feld","Campo","Campo"],
+ "Figures": ["数字","数字","數字","Cifras","Chiffres","Ziffern","Cifre","Algarismos"],
"File": ["ファイル","文件","檔案","Archivo","Fichier","Datei","File","Ficheiro"],
+ "Filled": ["塗りつぶし","填充","填滿","Relleno","Plein","Gefüllt","Pieno","Preenchido"],
"Fills the window": ["ウィンドウいっぱいに広げます","铺满整个窗口","鋪滿整個視窗","Ocupa toda la ventana","Occupe toute la fenêtre","Füllt das Fenster","Riempie la finestra","Preenche a janela"],
"Filter": ["フィルター","筛选","篩選","Filtrar","Filtrer","Filtern","Filtra","Filtrar"],
"Filter blocks…": ["ブロックを絞り込む…","筛选块…","篩選區塊…","Filtrar bloques…","Filtrer les blocs…","Blöcke filtern…","Filtra i blocchi…","Filtrar blocos…"],
@@ -245,16 +288,26 @@ export const PACKED: Record<string, ReadonlyArray<string | 0>> = {
"Graph": ["グラフ","关系图","關係圖","Grafo","Graphe","Graph","Grafo","Grafo"],
"Gray": ["グレー","灰色","灰色","Gris","Gris","Grau","Grigio","Cinza"],
"Green": ["緑","绿色","綠色","Verde","Vert","Grün","Verde","Verde"],
+ "Grid": ["グリッド","网格","網格","Cuadrícula","Grille","Raster","Griglia","Grelha"],
+ "Grotesque": ["グロテスク","怪诞无衬线","怪誕無襯線","Grotesca","Grotesque","Grotesk","Grottesco","Grotesca"],
"Group": ["グループ","分组","分組","Agrupar","Grouper","Gruppieren","Raggruppa","Agrupar"],
"Guest": ["ゲスト","访客","訪客","Invitado","Invité","Gast","Ospite","Convidado"],
+ "Hairline": ["細線","细线","細線","Filete fino","Filet fin","Haarlinie","Filetto sottile","Fio fino"],
+ "Hard offset": ["くっきりずらす","硬边错位","硬邊錯位","Desplazada nítida","Décalage net","Harter Versatz","Sfalsata netta","Desvio nítido"],
"Header row": ["見出し行","表头行","標題列","Fila de encabezado","Ligne d’en-tête","Kopfzeile","Riga di intestazione","Linha de cabeçalho"],
"Heading 1": ["見出し1","标题 1","標題 1","Título 1","Titre 1","Überschrift 1","Titolo 1","Título 1"],
"Heading 2": ["見出し2","标题 2","標題 2","Título 2","Titre 2","Überschrift 2","Titolo 2","Título 2"],
"Heading 3": ["見出し3","标题 3","標題 3","Título 3","Titre 3","Überschrift 3","Titolo 3","Título 3"],
+ "Heading case": ["見出しの大文字・小文字","标题大小写","標題大小寫","Mayúsculas en los títulos","Casse des titres","Schreibweise der Überschriften","Maiuscole nei titoli","Maiúsculas nos títulos"],
+ "Heading style": ["見出しのスタイル","标题样式","標題樣式","Estilo de los títulos","Style des titres","Stil der Überschriften","Stile dei titoli","Estilo dos títulos"],
+ "Heading weight": ["見出しの太さ","标题字重","標題字重","Peso de los títulos","Graisse des titres","Stärke der Überschriften","Peso dei titoli","Peso dos títulos"],
+ "Headings": ["見出し","标题","標題","Títulos","Titres","Überschriften","Titoli","Títulos"],
+ "Heavy rule": ["太い線","粗线","粗線","Filete grueso","Filet épais","Kräftige Linie","Filetto spesso","Fio grosso"],
"Hide properties (])": ["プロパティを隠す(])","隐藏属性面板(])","隱藏屬性面板(])","Ocultar propiedades (])","Masquer les propriétés (])","Eigenschaften ausblenden (])","Nascondi proprietà (])","Ocultar propriedades (])"],
"Hide the page list ([)": ["ページ一覧を隠す([)","隐藏页面列表([)","隱藏頁面清單([)","Ocultar la lista de páginas ([)","Masquer la liste des pages ([)","Seitenliste ausblenden ([)","Nascondi l'elenco delle pagine ([)","Ocultar a lista de páginas ([)"],
"Highlight": ["ハイライト","高亮","螢光標示","Resaltado","Surlignage","Hervorhebung","Evidenziazione","Destaque"],
"Highlight — ⇧⌘H": ["ハイライト — ⇧⌘H","高亮 — ⇧⌘H","螢光標示 — ⇧⌘H","Resaltado — ⇧⌘H","Surlignage — ⇧⌘H","Hervorhebung — ⇧⌘H","Evidenziazione — ⇧⌘H","Destaque — ⇧⌘H"],
+ "Humanist": ["ヒューマニスト","人文主义","人文主義","Humanista","Humane","Humanistisch","Umanista","Humanista"],
"Icon": ["アイコン","图标","圖示","Icono","Icône","Symbol","Icona","Ícone"],
"Image": ["画像","图片","影像","Imagen","Image","Bild","Immagine","Imagem"],
"Image added ({size})": ["画像を追加しました({size})","已添加图片 ({size})","已新增圖片 ({size})","Imagen añadida ({size})","Image ajoutée ({size})","Bild hinzugefügt ({size})","Immagine aggiunta ({size})","Imagem adicionada ({size})"],
@@ -273,6 +326,7 @@ export const PACKED: Record<string, ReadonlyArray<string | 0>> = {
"Include the pages nested under it": ["その下にあるページも含める","包含其下级页面","包含其下層頁面","Incluir las páginas anidadas debajo","Inclure les pages imbriquées en dessous","Die darunter verschachtelten Seiten einschließen","Includi le pagine annidate sotto di essa","Incluir as páginas aninhadas por baixo"],
"Indent": ["字下げ","缩进","縮排","Sangrar","Indenter","Einrücken","Rientra","Avançar"],
"Indent, or move back out": ["字下げ、または戻す","缩进,或退回一级","縮排,或退回一層","Sangrar, o volver a salir","Indenter, ou revenir en arrière","Einrücken, oder wieder heraus","Rientra, o torna indietro","Avançar, ou recuar de novo"],
+ "Indented": ["字下げ","缩进","縮排","Sangrado","En retrait","Eingerückt","Rientrato","Recuado"],
"Inline code — ⌘E": ["インラインコード — ⌘E","行内代码 — ⌘E","行內程式碼 — ⌘E","Código en línea — ⌘E","Code en ligne — ⌘E","Inline-Code — ⌘E","Codice in linea — ⌘E","Código em linha — ⌘E"],
"Interface language": ["表示言語","界面语言","介面語言","Idioma de la interfaz","Langue de l’interface","Sprache der Oberfläche","Lingua dell’interfaccia","Idioma da interface"],
"Interface theme": ["表示テーマ","界面主题","介面主題","Tema de la interfaz","Thème de l’interface","Design der Oberfläche","Tema dell’interfaccia","Tema da interface"],
@@ -289,16 +343,22 @@ export const PACKED: Record<string, ReadonlyArray<string | 0>> = {
"Italic": ["イタリック","斜体","斜體","Cursiva","Italique","Kursiv","Corsivo","Itálico"],
"Italic — ⌘I": ["イタリック — ⌘I","斜体 — ⌘I","斜體 — ⌘I","Cursiva — ⌘I","Italique — ⌘I","Kursiv — ⌘I","Corsivo — ⌘I","Itálico — ⌘I"],
"Journal date": ["ジャーナルの日付","日志日期","日誌日期","Fecha del diario","Date du journal","Journaldatum","Data del diario","Data do diário"],
+ "Justified text": ["両端揃え","两端对齐","左右對齊","Texto justificado","Texte justifié","Blocksatz","Testo giustificato","Texto justificado"],
"Key-verified identity": ["鍵で検証済みのアイデンティティ","密钥验证的身份","金鑰驗證的身份","Identidad verificada por clave","Identité vérifiée par clé","Schlüssel-verifizierte Identität","Identità verificata da chiave","Identidade verificada por chave"],
+ "Label colour": ["ラベルの色","标签颜色","標籤顏色","Color de las etiquetas","Couleur des étiquettes","Farbe der Labels","Colore delle etichette","Cor das etiquetas"],
"Labels": ["ラベル","标签","標籤","Etiquetas","Étiquettes","Labels","Etichette","Etiquetas"],
"Language": ["言語","语言","語言","Idioma","Langue","Sprache","Lingua","Idioma"],
"Language follows whoever opens the file. It is never written into the document.": ["言語はファイルを開いた人に従います。ドキュメントには書き込まれません。","语言跟随打开文件的人,绝不会写入文档。","語言取決於開啟檔案的人,永遠不會寫入文件中。","El idioma sigue a quien abre el archivo. Nunca se escribe en el documento.","La langue suit la personne qui ouvre le fichier. Elle n’est jamais écrite dans le document.","Die Sprache richtet sich danach, wer die Datei öffnet. Sie wird nie ins Dokument geschrieben.","La lingua segue chi apre il file. Non viene mai scritta nel documento.","O idioma segue quem abre o ficheiro. Nunca é escrito no documento."],
"Language — what this block is highlighted as": ["言語 — このブロックを何として色分けするか","语言 — 这个块按什么语言着色","語言 — 這個區塊以什麼語言上色","Lenguaje — cómo se colorea este bloque","Langage — la coloration de ce bloc","Sprache — wie dieser Block hervorgehoben wird","Linguaggio — come viene evidenziato questo blocco","Linguagem — como este bloco é realçado"],
"Last saved": ["最終保存","上次保存","上次儲存","Última vez guardado","Dernier enregistrement","Zuletzt gespeichert","Ultimo salvataggio","Última gravação"],
"Launch check couldn't reach the release server ({m}). Check manually below.": ["起動時の確認でリリースサーバーに接続できませんでした ({m})。下から手動で確認してください。","启动检查无法连接发布服务器 ({m})。请在下方手动检查。","啟動檢查無法連線發佈伺服器 ({m})。請在下方手動檢查。","La comprobación inicial no alcanzó el servidor ({m}). Comprueba manualmente abajo.","La vérification au démarrage n'a pas atteint le serveur ({m}). Vérifiez manuellement ci-dessous.","Startprüfung konnte den Release-Server nicht erreichen ({m}). Unten manuell prüfen.","La verifica all'avvio non ha raggiunto il server ({m}). Verifica manualmente qui sotto.","A verificação ao abrir não alcançou o servidor de versões ({m}). Verifique manualmente abaixo."],
+ "Layout": ["レイアウト","版式","版式","Composición","Mise en page","Layout","Impaginazione","Paginação"],
"Leave it empty to use the tone mark": ["空のままにすると種類の記号を使います","留空则使用该类型的标记","留空則使用該類型的標記","Déjalo vacío para usar el símbolo del tipo","Laissez vide pour utiliser le symbole du type","Leer lassen, um das Symbol der Art zu verwenden","Lascia vuoto per usare il simbolo del tipo","Deixe vazio para usar o símbolo do tipo"],
"Leave the reading view": ["読書ビューを終了","退出阅读视图","離開閱讀檢視","Salir de la vista de lectura","Quitter la vue lecture","Leseansicht verlassen","Esci dalla vista di lettura","Sair da vista de leitura"],
+ "Ledger": ["台帳","账簿","帳簿","Libro mayor","Grand livre","Hauptbuch","Libro mastro","Livro-razão"],
"Light": ["ライト","浅色","淺色","Claro","Clair","Hell","Chiaro","Claro"],
+ "Line spacing": ["行間","行距","行距","Interlineado","Interligne","Zeilenabstand","Interlinea","Entrelinha"],
+ "Lining": ["ライニング数字","等高数字","等高數字","Alineadas","Alignés","Versalziffern","Allineate","Alinhados"],
"Link": ["リンク","链接","連結","Enlace","Lien","Link","Collegamento","Link"],
"Link address": ["リンク先の URL","链接地址","連結網址","Dirección del enlace","Adresse du lien","Linkadresse","Indirizzo del collegamento","Endereço do link"],
"Link card": ["リンクカード","链接卡片","連結卡片","Tarjeta de enlace","Carte de lien","Link-Karte","Scheda di collegamento","Cartão de link"],
@@ -325,6 +385,7 @@ export const PACKED: Record<string, ReadonlyArray<string | 0>> = {
"Match any condition": ["いずれかの条件に一致","满足任一条件","符合任一條件","Cumple cualquier condición","Correspond à n’importe quelle condition","Beliebige Bedingung erfüllen","Soddisfa una condizione qualsiasi","Corresponde a qualquer condição"],
"Match my system": ["システムに合わせる","跟随系统","跟隨系統","Según el sistema","Comme le système","Systemeinstellung folgen","Come il sistema","Acompanhar o sistema"],
"Mints brand-new keys. Every previously sent copy stops syncing for good; share fresh copies afterwards.": ["まったく新しい鍵を発行します。これまでに送ったコピーは永久に同期しなくなります。以後は新しいコピーを共有してください。","铸造全新密钥。之前发送的所有副本将永久停止同步;此后请分享新副本。","鑄造全新金鑰。之前傳送的所有副本將永久停止同步;此後請分享新副本。","Genera claves totalmente nuevas. Todas las copias enviadas dejan de sincronizarse para siempre; comparte copias nuevas después.","Génère des clés toutes neuves. Chaque copie déjà envoyée cesse définitivement de se synchroniser ; partagez ensuite de nouvelles copies.","Erzeugt brandneue Schlüssel. Jede bereits gesendete Kopie synchronisiert endgültig nicht mehr; teile danach frische Kopien.","Genera chiavi nuove di zecca. Ogni copia già inviata smette per sempre di sincronizzarsi; condividi poi copie nuove.","Gera chaves novas em folha. Toda cópia enviada antes para de sincronizar de vez; compartilhe cópias novas depois."],
+ "Monospace": ["等幅","等宽","等寬","Monoespaciada","Chasse fixe","Festbreite","Spaziatura fissa","Monoespaçada"],
"More actions": ["その他の操作","更多操作","更多操作","Más acciones","Plus d’actions","Weitere Aktionen","Altre azioni","Mais ações"],
"Move back out": ["戻す","退回一级","退回一層","Volver a salir","Revenir en arrière","Wieder heraus","Torna indietro","Recuar de novo"],
"Move down": ["下へ移動","下移","下移","Bajar","Descendre","Nach unten","Sposta giù","Mover para baixo"],
@@ -343,6 +404,7 @@ export const PACKED: Record<string, ReadonlyArray<string | 0>> = {
"New pages can start as a copy of this one. The page itself is not changed.": ["新しいページをこのページの複製から始められます。このページ自体は変わりません。","新页面可以从这一页的副本开始。这一页本身不会被改动。","新頁面可以從這一頁的副本開始。這一頁本身不會被改動。","Las páginas nuevas pueden empezar como una copia de esta. La página en sí no cambia.","Les nouvelles pages peuvent commencer comme une copie de celle-ci. La page elle-même n’est pas modifiée.","Neue Seiten können als Kopie dieser Seite beginnen. Die Seite selbst bleibt unverändert.","Le nuove pagine possono partire da una copia di questa. La pagina stessa non viene modificata.","As páginas novas podem começar como uma cópia desta. A página em si não é alterada."],
"New property": ["新しいプロパティ","新建属性","新增屬性","Nueva propiedad","Nouvelle propriété","Neue Eigenschaft","Nuova proprietà","Nova propriedade"],
"New to Bento? Find templates, the gallery and the AI editing guide at {home} — or ⭐ it on {gh}.": ["Bento は初めてですか?テンプレート、ギャラリー、AI編集ガイドは {home} でどうぞ — {gh} で ⭐ もぜひ。","第一次用 Bento?在 {home} 查看模板、图库和 AI 编辑指南 — 也欢迎到 {gh} 点 ⭐。","第一次用 Bento?在 {home} 查看範本、圖庫和 AI 編輯指南 — 也歡迎到 {gh} 按 ⭐。","¿Nuevo en Bento? Encuentra plantillas, la galería y la guía de edición con IA en {home} — o dale ⭐ en {gh}.","Nouveau sur Bento ? Trouvez des modèles, la galerie et le guide d’édition par IA sur {home} — ou mettez une ⭐ sur {gh}.","Neu bei Bento? Vorlagen, die Galerie und den KI-Bearbeitungsleitfaden findest du auf {home} — oder gib ⭐ auf {gh}.","Nuovo su Bento? Trovi modelli, la galleria e la guida all’editing con IA su {home} — o metti una ⭐ su {gh}.","Novo no Bento? Encontre modelos, a galeria e o guia de edição com IA em {home} — ou dê uma ⭐ no {gh}."],
+ "News serif": ["ニュース用セリフ","新闻衬线体","新聞襯線體","Serifa de periódico","Caractère de journal","Zeitungs-Serifenschrift","Graziato da quotidiano","Serifa de jornal"],
"New… — page, journal, issue": ["新規… — ページ・ジャーナル・イシュー","新建… — 页面、日志、事项","新增… — 頁面、日誌、項目","Nuevo… — página, diario, incidencia","Nouveau… — page, journal, ticket","Neu… — Seite, Journal, Issue","Nuovo… — pagina, diario, issue","Novo… — página, diário, tarefa"],
"Next (⏎)": ["次へ (⏎)","下一个 (⏎)","下一個 (⏎)","Siguiente (⏎)","Suivant (⏎)","Weiter (⏎)","Successivo (⏎)","Seguinte (⏎)"],
"No Markdown files in that selection": ["選択に Markdown ファイルがありません","所选内容里没有 Markdown 文件","所選項目中沒有 Markdown 檔案","No hay archivos Markdown en esa selección","Aucun fichier Markdown dans cette sélection","Keine Markdown-Dateien in dieser Auswahl","Nessun file Markdown in questa selezione","Não há ficheiros Markdown nessa seleção"],
@@ -356,6 +418,7 @@ export const PACKED: Record<string, ReadonlyArray<string | 0>> = {
"No section named {name} on this page.": ["このページに「{name}」という見出しはありません。","本页没有名为“{name}”的标题。","本頁沒有名為「{name}」的標題。","No hay ninguna sección llamada {name} en esta página.","Aucune section nommée {name} sur cette page.","Kein Abschnitt namens {name} auf dieser Seite.","Nessuna sezione chiamata {name} in questa pagina.","Não há nenhuma secção chamada {name} nesta página."],
"No templates yet. Open a page you would like to reuse and choose “Save as template”.": ["まだテンプレートはありません。再利用したいページを開いて「テンプレートとして保存」を選んでください。","还没有模板。打开一个想重复使用的页面,选择“保存为模板”。","還沒有範本。開啟一個想重複使用的頁面,選擇「儲存為範本」。","Todavía no hay plantillas. Abre una página que quieras reutilizar y elige «Guardar como plantilla».","Aucun modèle pour l’instant. Ouvrez une page que vous voulez réutiliser et choisissez « Enregistrer comme modèle ».","Noch keine Vorlagen. Öffne eine Seite, die du wiederverwenden möchtest, und wähle „Als Vorlage sichern“.","Ancora nessun modello. Apri una pagina che vuoi riutilizzare e scegli «Salva come modello».","Ainda não há modelos. Abre uma página que queiras reutilizar e escolhe «Guardar como modelo»."],
"No versions yet — they build up as you write and save.": ["まだバージョンはありません。書いて保存するたびに増えていきます。","暂无版本。随着你的书写和保存,版本会逐渐累积。","尚無版本。隨著你的書寫與儲存,版本會逐漸累積。","Aún no hay versiones: se acumulan a medida que escribes y guardas.","Pas encore de versions — elles s’accumulent à mesure que vous écrivez et enregistrez.","Noch keine Versionen — sie sammeln sich beim Schreiben und Speichern an.","Ancora nessuna versione: si accumulano mentre scrivi e salvi.","Ainda sem versões — vão-se acumulando à medida que escreves e guardas."],
+ "None": ["なし","无","無","Ninguno","Aucun","Keine","Nessuno","Nenhum"],
"Not in this file: it needs the network, and the site is told when someone opens the page": ["このファイルの中にはありません。再生にはネットワークが必要で、誰かがこのページを開いたことがそのサイトに伝わります","不在此文件内:播放需要联网,而且该网站会知道有人打开了这个页面","不在這個檔案裡:播放需要網路,而且該網站會知道有人開啟了這個頁面","No está en este archivo: necesita la red, y ese sitio sabrá que alguien ha abierto esta página","N’est pas dans ce fichier : la lecture nécessite le réseau, et ce site saura que quelqu’un a ouvert cette page","Nicht in dieser Datei: das Abspielen braucht das Netz, und die Website erfährt, dass jemand diese Seite geöffnet hat","Non è dentro questo file: per riprodurla serve la rete, e quel sito saprà che qualcuno ha aperto questa pagina","Não está neste ficheiro: precisa da rede, e esse site fica a saber que alguém abriu esta página"],
"Not live — turns on when you share": ["未接続 — 共有すると自動的にライブになります","未上线 — 分享时自动开启","未上線 — 分享時自動開啟","Sin conexión — se activa al compartir","Hors ligne — s’active quand vous partagez","Nicht live — startet beim Teilen","Non live — si attiva quando condividi","Fora do ar — ativa quando você compartilha"],
"Not loaded — opening it would tell that site you opened this space.": ["未読み込み — 読み込むと、このスペースを開いたことがそのサイトに伝わります。","未加载 — 加载会让该网站知道你打开了这个空间。","未載入 — 載入會讓該網站知道你開啟了這個空間。","No cargada: al cargarla, ese sitio sabría que has abierto este espacio.","Non chargée : la charger indiquerait à ce site que vous avez ouvert cet espace.","Nicht geladen — beim Laden erfährt diese Website, dass du diesen Space geöffnet hast.","Non caricata: caricarla direbbe a quel sito che hai aperto questo spazio.","Não carregada — carregá-la diria a esse site que você abriu este espaço."],
@@ -369,9 +432,14 @@ export const PACKED: Record<string, ReadonlyArray<string | 0>> = {
"Now an issue": ["イシューになりました","现在是事项了","現在是項目了","Ahora es una incidencia","C’est désormais un ticket","Jetzt ein Issue","Ora è una issue","Agora é uma tarefa"],
"Number": ["数値","数字","數字","Número","Nombre","Zahl","Numero","Número"],
"Numbered list": ["番号付きリスト","编号列表","編號清單","Lista numerada","Liste numérotée","Nummerierte Liste","Elenco numerato","Lista numerada"],
+ "Off": ["オフ","关","關","Desactivado","Désactivé","Aus","Disattivato","Desligado"],
"Off by default — they were archived for a reason": ["既定ではオフ — アーカイブしたのには理由があります","默认关闭 — 当初归档总是有原因的","預設關閉 — 它們被封存是有原因的","Desactivado por defecto — por algo se archivaron","Désactivé par défaut — elles ont été archivées pour une raison","Standardmäßig aus — sie wurden aus einem Grund archiviert","Disattivo per impostazione predefinita — sono state archiviate per un motivo","Desativado por predefinição — foram arquivadas por alguma razão"],
"Off the edge of a block, into the next": ["ブロックの端を越えて次のブロックへ","越过块的边缘,进入下一个块","越過區塊的邊緣,進入下一個區塊","Desde el borde de un bloque al siguiente","Du bord d’un bloc vers le suivant","Über den Rand eines Blocks in den nächsten","Dal bordo di un blocco al successivo","Da borda de um bloco para o seguinte"],
"Offline mode is on — nothing leaves this computer.": ["オフラインモードがオンです — このコンピュータから何も送信されません。","离线模式已开启 — 任何数据都不会离开这台电脑。","離線模式已開啟 — 任何資料都不會離開這台電腦。","El modo sin conexión está activo: nada sale de este equipo.","Le mode hors ligne est activé — rien ne quitte cet ordinateur.","Der Offline-Modus ist aktiv — nichts verlässt diesen Computer.","La modalità offline è attiva: nulla lascia questo computer.","O modo offline está ativado — nada sai deste computador."],
+ "Offset shadow": ["ずれた影","错位阴影","錯位陰影","Sombra desplazada","Ombre décalée","Versetzter Schatten","Ombra sfalsata","Sombra desfasada"],
+ "Old-style": ["オールドスタイル数字","旧式数字","舊式數字","Elzevirianas","Elzéviriens","Mediävalziffern","Cifre minuscole","Elzevirianos"],
+ "Old-style serif": ["オールドスタイル・セリフ","旧式衬线体","舊式襯線體","Serifa antigua","Garalde","Renaissance-Antiqua","Graziato antico","Serifa antiga"],
+ "On": ["オン","开","開","Activado","Activé","An","Attivato","Ligado"],
"On this screen only — it is not saved in the file": ["この画面でのみ有効です。ファイルには保存されません","仅在此屏幕上生效,不会保存到文件中","僅在此螢幕上生效,不會儲存到檔案中","Solo en esta pantalla: no se guarda en el archivo","Sur cet écran seulement — ce n’est pas enregistré dans le fichier","Nur auf diesem Bildschirm — es wird nicht in der Datei gespeichert","Solo su questo schermo: non viene salvato nel file","Apenas neste ecrã — não é guardado no ficheiro"],
"One emoji": ["絵文字ひとつ","一个表情符号","一個表情符號","Un emoji","Un emoji","Ein Emoji","Un'emoji","Um emoji"],
"One fewer": ["1つ減らす","减少一个","減少一個","Uno menos","Un de moins","Eins weniger","Uno in meno","Menos um"],
@@ -384,6 +452,7 @@ export const PACKED: Record<string, ReadonlyArray<string | 0>> = {
"Orange": ["オレンジ","橙色","橘色","Naranja","Orange","Orange","Arancione","Laranja"],
"Other": ["その他","其他","其他","Otras","Autres","Sonstige","Altre","Outras"],
"Out of the sidebar, still searchable and linkable": ["サイドバーから外れますが、検索もリンクもできます","移出侧边栏,仍可搜索和链接","移出側邊欄,仍可搜尋與連結","Fuera de la barra lateral, pero aún se puede buscar y enlazar","Hors de la barre latérale, toujours dans la recherche et les liens","Weg aus der Seitenleiste, weiterhin auffindbar und verlinkbar","Fuori dalla barra laterale, ma sempre ricercabile e collegabile","Fora da barra lateral, mas continua pesquisável e ligável"],
+ "Outlined": ["枠線","描边","描邊","Con contorno","Contour","Umrandet","Contornato","Contornado"],
"Owner": ["オーナー","所有者","擁有者","Propietario","Propriétaire","Eigentümer","Proprietario","Dono"],
"Page": ["ページ","页面","頁面","Página","Page","Seite","Pagina","Página"],
"Page options": ["ページのオプション","页面选项","頁面選項","Opciones de la página","Options de la page","Seiten-Optionen","Opzioni della pagina","Opções da página"],
@@ -392,6 +461,7 @@ export const PACKED: Record<string, ReadonlyArray<string | 0>> = {
"Pages open at their normal width again": ["ページは通常の幅に戻りました","页面已恢复为正常宽度","頁面已恢復為正常寬度","Las páginas vuelven a su anchura normal","Les pages retrouvent leur largeur normale","Seiten öffnen wieder in normaler Breite","Le pagine tornano alla larghezza normale","As páginas voltam à largura normal"],
"Pages that have this property": ["このプロパティを持つページ","具有此属性的页面","具有此屬性的頁面","Páginas que tienen esta propiedad","Pages qui ont cette propriété","Seiten mit dieser Eigenschaft","Pagine che hanno questa proprietà","Páginas que têm esta propriedade"],
"Pages — show or hide the page list": ["ページ — ページ一覧の表示/非表示","页面 — 显示或隐藏页面列表","頁面 — 顯示或隱藏頁面清單","Páginas — mostrar u ocultar la lista de páginas","Pages — afficher ou masquer la liste","Seiten — Seitenliste ein- oder ausblenden","Pagine — mostra o nascondi l’elenco delle pagine","Páginas — mostrar ou ocultar a lista de páginas"],
+ "Paper": ["紙","纸张","紙張","Papel","Papier","Papier","Carta","Papel"],
"Password": ["パスワード","密码","密碼","Contraseña","Mot de passe","Passwort","Password","Palavra-passe"],
"Password removed. Save to write the space unencrypted.": ["パスワードを削除しました。保存すると、このスペースは暗号化なしで書き込まれます。","已移除密码。保存后空间将以未加密方式写入。","已移除密碼。儲存後空間將以未加密方式寫入。","Contraseña eliminada. Guarda para escribir el espacio sin cifrar.","Mot de passe supprimé. Enregistrez pour écrire l’espace non chiffré.","Passwort entfernt. Speichere, um den Space unverschlüsselt zu schreiben.","Password rimossa. Salva per scrivere lo spazio non cifrato.","Palavra-passe removida. Guarde para escrever o espaço sem encriptação."],
"Password set. Save to write the space encrypted.": ["パスワードを設定しました。保存すると、このスペースは暗号化して書き込まれます。","已设置密码。保存后空间将以加密方式写入。","已設定密碼。儲存後空間將以加密方式寫入。","Contraseña establecida. Guarda para escribir el espacio cifrado.","Mot de passe défini. Enregistrez pour écrire l’espace chiffré.","Passwort gesetzt. Speichere, um den Space verschlüsselt zu schreiben.","Password impostata. Salva per scrivere lo spazio cifrato.","Palavra-passe definida. Guarde para escrever o espaço encriptado."],
@@ -403,6 +473,7 @@ export const PACKED: Record<string, ReadonlyArray<string | 0>> = {
"Picture": ["画像","图片","圖片","Imagen","Image","Bild","Immagine","Imagem"],
"Picture…": ["画像…","图片…","圖片…","Imagen…","Image…","Bild…","Immagine…","Imagem…"],
"Pink": ["ピンク","粉色","粉紅色","Rosa","Rose","Rosa","Rosa","Rosa"],
+ "Plain": ["シンプル","朴素","樸素","Sencillo","Simple","Schlicht","Semplice","Simples"],
"Plain JSON of every page — no live-session keys": ["全ページのプレーンな JSON — ライブセッションの鍵は含みません","所有页面的纯 JSON — 不含实时会话密钥","所有頁面的純 JSON — 不含即時工作階段金鑰","JSON plano de todas las páginas — sin claves de la sesión en vivo","Le JSON brut de toutes les pages — sans les clés de la session en direct","Reines JSON aller Seiten — ohne Schlüssel der Live-Sitzung","JSON semplice di tutte le pagine — senza chiavi della sessione live","JSON simples de todas as páginas — sem chaves da sessão ao vivo"],
"Plain paragraph": ["通常の段落","普通段落","一般段落","Párrafo normal","Paragraphe simple","Einfacher Absatz","Paragrafo semplice","Parágrafo simples"],
"Plain text": ["プレーンテキスト","纯文本","純文字","Texto sin formato","Texte brut","Nur Text","Testo semplice","Texto simples"],
@@ -414,9 +485,11 @@ export const PACKED: Record<string, ReadonlyArray<string | 0>> = {
"Print…": ["印刷…","打印…","列印…","Imprimir…","Imprimer…","Drucken…","Stampa…","Imprimir…"],
"Properties": ["プロパティ","属性","屬性","Propiedades","Propriétés","Eigenschaften","Proprietà","Propriedades"],
"Properties — show or hide this block’s settings": ["プロパティ — このブロックの設定を表示または非表示にする","属性 — 显示或隐藏这个块的设置","屬性 — 顯示或隱藏這個區塊的設定","Propiedades — mostrar u ocultar los ajustes de este bloque","Propriétés — afficher ou masquer les réglages de ce bloc","Eigenschaften — Einstellungen dieses Blocks ein- oder ausblenden","Proprietà — mostra o nascondi le impostazioni di questo blocco","Propriedades — mostrar ou ocultar as definições deste bloco"],
+ "Pull quote": ["プルクオート","引文摘录","引文摘錄","Cita destacada","Exergue","Herausgestelltes Zitat","Citazione in evidenza","Citação em destaque"],
"Purple": ["紫","紫色","紫色","Morado","Violet","Lila","Viola","Roxo"],
"Put the caret in a block to see what it can be.": ["ブロックにカーソルを置くと、そのブロックで変えられるものが出ます。","把光标放进一个块,就能看到它能改什么。","把游標放進一個區塊,就能看到它能改什麼。","Coloca el cursor en un bloque para ver qué puede cambiarse.","Placez le curseur dans un bloc pour voir ce qui s’y règle.","Setz den Cursor in einen Block, um zu sehen, was sich daran ändern lässt.","Metti il cursore in un blocco per vedere che cosa si può cambiare.","Coloque o cursor num bloco para ver o que se pode mudar nele."],
"Quote": ["引用","引用","引言","Cita","Citation","Zitat","Citazione","Citação"],
+ "Quotes": ["引用","引用","引用","Citas","Citations","Zitate","Citazioni","Citações"],
"Read the release notes for v{v} (opens in a new tab)": ["v{v} のリリースノートを読む(新しいタブで開きます)","查看 v{v} 的发行说明(在新标签页中打开)","查看 v{v} 的發行說明(在新分頁中開啟)","Leer las notas de la versión v{v} (se abre en una pestaña nueva)","Lire les notes de version de la v{v} (s’ouvre dans un nouvel onglet)","Versionshinweise für v{v} lesen (öffnet einen neuen Tab)","Leggi le note di rilascio della v{v} (si apre in una nuova scheda)","Ler as notas de versão da v{v} (abre em uma nova aba)"],
"Read-only copy saved — it follows the live session, view only": ["読み取り専用コピーを保存しました — ライブセッションに追従し、閲覧のみです","只读副本已保存——它跟随实时会话,仅供查看","唯讀副本已儲存——它跟隨即時工作階段,僅供檢視","Copia de solo lectura guardada — sigue la sesión en vivo, solo para ver","Copie en lecture seule enregistrée — elle suit la session en direct, en lecture seule","Nur-Lese-Kopie gespeichert — sie folgt der Live-Sitzung, nur zum Ansehen","Copia in sola lettura salvata — segue la sessione live, solo visualizzazione","Cópia somente leitura salva — ela acompanha a sessão ao vivo, apenas para visualizar"],
"Reading file…": ["ファイルを読み込み中…","正在读取文件…","正在讀取檔案…","Leyendo el archivo…","Lecture du fichier…","Lese Datei…","Lettura del file…","A ler o ficheiro…"],
@@ -434,6 +507,7 @@ export const PACKED: Record<string, ReadonlyArray<string | 0>> = {
"Remove the password?": ["パスワードを削除しますか?","要移除密码吗?","要移除密碼嗎?","¿Quitar la contraseña?","Supprimer le mot de passe ?","Passwort entfernen?","Rimuovere la password?","Remover a palavra-passe?"],
"Remove the picture": ["画像を削除","移除图片","移除圖片","Quitar la imagen","Retirer l’image","Bild entfernen","Rimuovi l'immagine","Remover a imagem"],
"Remove this column": ["この列を削除","删除此列","刪除此欄","Eliminar esta columna","Supprimer cette colonne","Diese Spalte entfernen","Rimuovi questa colonna","Remover esta coluna"],
+ "Remove this design": ["このデザインを削除","删除此设计","移除此設計","Quitar este diseño","Supprimer ce design","Diese Gestaltung entfernen","Rimuovi questo design","Remover este design"],
"Remove this row": ["この行を削除","删除此行","刪除此列","Eliminar esta fila","Supprimer cette ligne","Diese Zeile entfernen","Rimuovi questa riga","Remover esta linha"],
"Remove {name} from this space? Their copy drops to read-only.": ["{name} をこの Space から削除しますか?相手のコピーは読み取り専用になります。","要将 {name} 从此 Space 移除吗?对方的副本将变为只读。","要將 {name} 從此 Space 移除嗎?對方的副本將變為唯讀。","¿Quitar a {name} de este Space? Su copia pasará a solo lectura.","Retirer {name} de cet espace ? Sa copie passera en lecture seule.","{name} aus diesem Space entfernen? Die Kopie wird schreibgeschützt.","Rimuovere {name} da questo Space? La sua copia diventerà di sola lettura.","Remover {name} deste Space? A cópia dessa pessoa passa a ser somente leitura."],
"Remove {name} — revokes this device’s access; everyone else is unaffected": ["{name} を削除 — このデバイスのアクセスを取り消します。他の人には影響しません","移除 {name} — 撤销该设备的访问权限;其他人不受影响","移除 {name} — 撤銷該裝置的存取權限;其他人不受影響","Quitar a {name} — revoca el acceso de este dispositivo; nadie más se ve afectado","Retirer {name} — révoque l’accès de cet appareil ; personne d’autre n’est affecté","{name} entfernen — widerruft den Zugriff dieses Geräts; alle anderen bleiben unberührt","Rimuovi {name} — revoca l’accesso di questo dispositivo; nessun altro è toccato","Remover {name} — revoga o acesso deste dispositivo; ninguém mais é afetado"],
@@ -461,9 +535,16 @@ export const PACKED: Record<string, ReadonlyArray<string | 0>> = {
"Restore to the page list": ["ページ一覧に戻す","恢复到页面列表","還原到頁面清單","Restaurar a la lista de páginas","Restaurer dans la liste des pages","Zurück in die Seitenliste","Ripristina nell’elenco delle pagine","Restaurar para a lista de páginas"],
"Restored the version from {when} — ⌘Z undoes it": ["{when} のバージョンを復元しました。⌘Z で取り消せます。","已恢复 {when} 的版本,按 ⌘Z 可撤销。","已還原 {when} 的版本,按 ⌘Z 可復原。","Se restauró la versión del {when}: ⌘Z lo deshace.","Version du {when} restaurée — ⌘Z annule.","Version vom {when} wiederhergestellt — ⌘Z macht das rückgängig.","Ripristinata la versione del {when} — ⌘Z annulla.","Versão de {when} restaurada — ⌘Z desfaz."],
"Review comments stayed behind, on purpose.": ["レビューのコメントは、意図的に持ち出していません。","审阅评论有意留在了原处。","審閱註解刻意留在了原處。","Los comentarios de revisión se quedaron atrás, a propósito.","Les commentaires de relecture sont restés en arrière, volontairement.","Review-Kommentare sind absichtlich zurückgeblieben.","I commenti di revisione sono rimasti indietro, di proposito.","Os comentários de revisão ficaram para trás, de propósito."],
+ "Riso": ["リソ","孔版","孔版","Riso","Riso","Riso","Riso","Riso"],
"Room for a board or a table": ["ボードや表にちょうどよい幅","给看板或表格留出空间","給看板或表格留出空間","Espacio para un tablero o una tabla","De la place pour un tableau","Platz für ein Board oder eine Tabelle","Spazio per una bacheca o una tabella","Espaço para um quadro ou uma tabela"],
+ "Round": ["丸","圆形","圓形","Redondo","Rond","Rund","Tondo","Redondo"],
+ "Rounded": ["丸ゴシック","圆体","圓體","Redondeada","Arrondie","Gerundet","Arrotondato","Arredondada"],
"Rows": ["行","行","列","Filas","Lignes","Zeilen","Righe","Linhas"],
"Rows and columns": ["行と列","行和列","列與欄","Filas y columnas","Lignes et colonnes","Zeilen und Spalten","Righe e colonne","Linhas e colunas"],
+ "Rule above": ["上に線","上方线","上方線","Filete encima","Filet au-dessus","Linie darüber","Filetto sopra","Fio por cima"],
+ "Rule weight": ["線の太さ","线条粗细","線條粗細","Grosor de los filetes","Épaisseur des filets","Linienstärke","Spessore dei filetti","Espessura dos fios"],
+ "Rules": ["罫線","分隔线","分隔線","Filetes","Filets","Linien","Filetti","Fios"],
+ "Rules above and below": ["上下に線","上下分隔线","上下分隔線","Filetes arriba y abajo","Filets dessus et dessous","Linien oben und unten","Filetti sopra e sotto","Fios em cima e em baixo"],
"Same pages, new identity — it never syncs with this one": ["同じページ、新しい ID — このスペースとは同期しません","页面相同,身份全新 — 永不与此空间同步","頁面相同,身分全新 — 永不與此空間同步","Las mismas páginas, una identidad nueva — nunca se sincroniza con este","Les mêmes pages, une nouvelle identité — il ne se synchronise jamais avec celui-ci","Dieselben Seiten, neue Identität — synchronisiert nie mit diesem Space","Le stesse pagine, una nuova identità — non si sincronizza mai con questo","As mesmas páginas, uma nova identidade — nunca sincroniza com este"],
"Save": ["保存","保存","儲存","Guardar","Enregistrer","Speichern","Salva","Guardar"],
"Save (⌘S)": ["保存 (⌘S)","保存 (⌘S)","儲存 (⌘S)","Guardar (⌘S)","Enregistrer (⌘S)","Speichern (⌘S)","Salva (⌘S)","Guardar (⌘S)"],
@@ -484,10 +565,15 @@ export const PACKED: Record<string, ReadonlyArray<string | 0>> = {
"Search all pages, with nothing selected": ["何も選択せずに全ページを検索","未选中内容时,搜索所有页面","未選取內容時,搜尋所有頁面","Buscar en todas las páginas, sin nada seleccionado","Rechercher dans toutes les pages, sans sélection","Alle Seiten durchsuchen, wenn nichts markiert ist","Cerca in tutte le pagine, senza nulla selezionato","Pesquisar todas as páginas, sem nada selecionado"],
"Search all pages…": ["全ページを検索…","搜索所有页面…","搜尋所有頁面…","Buscar en todas las páginas…","Rechercher dans toutes les pages…","Alle Seiten durchsuchen…","Cerca in tutte le pagine…","Pesquisar em todas as páginas…"],
"Search this space": ["このスペースを検索","搜索此空间","搜尋此空間","Buscar en este espacio","Rechercher dans cet espace","Diesen Space durchsuchen","Cerca in questo spazio","Pesquisar neste espaço"],
+ "Secondary text": ["補助テキスト","次要文字","次要文字","Texto secundario","Texte secondaire","Nebentext","Testo secondario","Texto secundário"],
+ "Section heads": ["節見出し","节标题","節標題","Títulos de sección","Intertitres","Abschnittsüberschriften","Titoli di sezione","Títulos de secção"],
"Select": ["選択","单选","單選","Selección","Sélection","Auswahl","Selezione","Seleção"],
"Set password": ["パスワードを設定","设置密码","設定密碼","Establecer contraseña","Définir le mot de passe","Passwort festlegen","Imposta password","Definir senha"],
+ "Shadows": ["影","阴影","陰影","Sombras","Ombres","Schatten","Ombre","Sombras"],
"Share": ["共有","共享","共用","Compartir","Partager","Teilen","Condividi","Compartilhar"],
"Share a copy": ["コピーを共有","分享副本","分享副本","Compartir una copia","Partager une copie","Kopie teilen","Condividi una copia","Compartilhar uma cópia"],
+ "Short bar": ["短い線","短横线","短橫線","Barra corta","Barre courte","Kurzer Balken","Barra corta","Barra curta"],
+ "Short bar below": ["下に短い線","下方短横线","下方短橫線","Barra corta debajo","Barre courte dessous","Kurzer Balken darunter","Barra corta sotto","Barra curta por baixo"],
"Shortcuts & tips": ["ショートカットとヒント","快捷键与提示","快速鍵與提示","Atajos y consejos","Raccourcis et astuces","Tastenkürzel & Tipps","Scorciatoie e suggerimenti","Atalhos e dicas"],
"Shortcuts & tips (?)": ["ショートカットとヒント(?)","快捷键与提示(?)","快速鍵與提示(?)","Atajos y consejos (?)","Raccourcis et astuces (?)","Tastenkürzel & Tipps (?)","Scorciatoie e suggerimenti (?)","Atalhos e dicas (?)"],
"Show as a board": ["ボードで表示","以看板显示","以看板顯示","Mostrar como tablero","Afficher en tableau","Als Board anzeigen","Mostra come bacheca","Mostrar como quadro"],
@@ -501,6 +587,7 @@ export const PACKED: Record<string, ReadonlyArray<string | 0>> = {
"Show the page list ([)": ["ページ一覧を表示([)","显示页面列表([)","顯示頁面清單([)","Mostrar la lista de páginas ([)","Afficher la liste des pages ([)","Seitenliste einblenden ([)","Mostra l'elenco delle pagine ([)","Mostrar a lista de páginas ([)"],
"Shown next to your cursor and in the People list — stored only in this browser.": ["カーソルの横とメンバーリストに表示されます — このブラウザにのみ保存されます。","显示在你的光标旁和成员列表中 — 仅保存在此浏览器。","顯示在你的游標旁和成員列表中 — 僅儲存在此瀏覽器。","Aparece junto a tu cursor y en la lista de Personas — se guarda solo en este navegador.","Affiché près de votre curseur et dans la liste Personnes — stocké uniquement dans ce navigateur.","Erscheint neben deinem Cursor und in der Personenliste — nur in diesem Browser gespeichert.","Appare accanto al tuo cursore e nell’elenco Persone — salvato solo in questo browser.","Exibido ao lado do seu cursor e na lista de Pessoas — guardado apenas neste navegador."],
"Site name": ["サイト名","网站名称","網站名稱","Nombre del sitio","Nom du site","Name der Website","Nome del sito","Nome do site"],
+ "Small capitals": ["スモールキャップ","小型大写","小型大寫","Versalitas","Petites capitales","Kapitälchen","Maiuscoletto","Versaletes"],
"Sort": ["並べ替え","排序","排序","Ordenar","Trier","Sortieren","Ordina","Ordenar"],
"Sort by {field}": ["{field}で並べ替え","按{field}排序","依{field}排序","Ordenar por {field}","Trier par {field}","Nach {field} sortieren","Ordina per {field}","Ordenar por {field}"],
"Space name": ["スペース名","空间名称","空間名稱","Nombre del espacio","Nom de l’espace","Space-Name","Nome dello spazio","Nome do espaço"],
@@ -511,9 +598,12 @@ export const PACKED: Record<string, ReadonlyArray<string | 0>> = {
"Stopped sharing": ["共有を停止しました","已停止共享","已停止分享","Has dejado de compartir","Partage arrêté","Teilen beendet","Condivisione interrotta","Partilha terminada"],
"Strikethrough": ["取り消し線","删除线","刪除線","Tachado","Barré","Durchgestrichen","Barrato","Tachado"],
"Strikethrough — ⇧⌘S": ["取り消し線 — ⇧⌘S","删除线 — ⇧⌘S","刪除線 — ⇧⌘S","Tachado — ⇧⌘S","Barré — ⇧⌘S","Durchgestrichen — ⇧⌘S","Barrato — ⇧⌘S","Tachado — ⇧⌘S"],
+ "Studio": ["スタジオ","工作室","工作室","Estudio","Atelier","Studio","Studio","Estúdio"],
"Switch between all and any": ["「すべて」と「いずれか」を切り替える","在“全部”和“任一”之间切换","在「全部」與「任一」之間切換","Alternar entre todas y cualquiera","Basculer entre toutes et n’importe laquelle","Zwischen alle und beliebig wechseln","Alterna tra tutte e una qualsiasi","Alternar entre todas e qualquer"],
+ "System": ["システム","系统","系統","Sistema","Système","System","Sistema","Sistema"],
"Table": ["表","表格","表格","Tabla","Tableau","Tabelle","Tabella","Tabela"],
"Table view": ["表ビュー","表格视图","表格檢視","Vista de tabla","Vue tableau","Tabellenansicht","Vista tabella","Vista de tabela"],
+ "Tables": ["表","表格","表格","Tablas","Tableaux","Tabellen","Tabelle","Tabelas"],
"Taken from the address if blank": ["空欄ならアドレスから取り込みます","留空则取自网址","留空則取自網址","Si se deja vacío, se toma de la dirección","Si vide, repris de l’adresse","Bleibt das Feld leer, wird er aus der Adresse übernommen","Se vuoto, viene preso dall'indirizzo","Se ficar vazio, é retirado do endereço"],
"Takes effect on the next save": ["次の保存から有効になります","下次保存时生效","下次儲存時生效","Se aplica en el próximo guardado","Prend effet au prochain enregistrement","Gilt ab der nächsten Speicherung","Ha effetto dal prossimo salvataggio","Vale a partir do próximo salvamento"],
"Tall": ["縦長","竖向","直式","Alto","Haut","Hoch","Alto","Alto"],
@@ -523,13 +613,18 @@ export const PACKED: Record<string, ReadonlyArray<string | 0>> = {
"Templates…": ["テンプレート…","模板…","範本…","Plantillas…","Modèles…","Vorlagen…","Modelli…","Modelos…"],
"Text": ["テキスト","文本","文字","Texto","Texte","Text","Testo","Texto"],
"Text and background color": ["文字色と背景色","文字与背景颜色","文字與背景顏色","Color de texto y de fondo","Couleur du texte et du fond","Text- und Hintergrundfarbe","Colore del testo e dello sfondo","Cor do texto e do plano de fundo"],
+ "Text colour": ["文字色","文字颜色","文字顏色","Color del texto","Couleur du texte","Textfarbe","Colore del testo","Cor do texto"],
"Text formatting": ["文字の書式","文字格式","文字格式","Formato de texto","Mise en forme du texte","Textformatierung","Formattazione del testo","Formatação de texto"],
+ "Text on accent": ["アクセント上の文字","强调色上的文字","強調色上的文字","Texto sobre el acento","Texte sur l’accent","Text auf dem Akzent","Testo sull’accento","Texto sobre o realce"],
+ "Text on tile": ["タイル上の文字","方块上的文字","方塊上的文字","Texto sobre el mosaico","Texte sur la tuile","Text auf der Kachel","Testo sulla tessera","Texto sobre o mosaico"],
+ "Text size": ["文字サイズ","文字大小","文字大小","Tamaño del texto","Taille du texte","Textgröße","Dimensione del testo","Tamanho do texto"],
"That change is too large to share live (about 1 MB max). It’s saved in your copy, but collaborators won’t see it.": ["この変更はライブ共有には大きすぎます(上限は約 1 MB)。自分のコピーには保存されますが、共同編集者には表示されません。","该更改过大,无法实时共享(上限约 1 MB)。它已保存在你的副本中,但协作者不会看到。","此變更太大,無法即時共用(上限約 1 MB)。它已儲存在你的副本中,但協作者不會看到。","Ese cambio es demasiado grande para compartirlo en vivo (máx. 1 MB aprox.). Se guarda en tu copia, pero los colaboradores no lo verán.","Cette modification est trop volumineuse pour le partage en direct (environ 1 Mo max). Elle est enregistrée dans votre copie, mais les collaborateurs ne la verront pas.","Diese Änderung ist zu groß für die Live-Freigabe (max. etwa 1 MB). Sie ist in deiner Kopie gespeichert, aber Mitarbeitende sehen sie nicht.","Questa modifica è troppo grande per la condivisione dal vivo (circa 1 MB max). È salvata nella tua copia, ma i collaboratori non la vedranno.","Essa alteração é grande demais para compartilhar ao vivo (máx. cerca de 1 MB). Ela fica salva na sua cópia, mas os colaboradores não a verão."],
"That file could not be read": ["そのファイルは読み取れませんでした","无法读取该文件","無法讀取該檔案","Ese archivo no se pudo leer","Ce fichier n’a pas pu être lu","Diese Datei konnte nicht gelesen werden","Non è stato possibile leggere quel file","Não foi possível ler esse ficheiro"],
"That file could not be read as an image": ["そのファイルは画像として読み込めませんでした","无法将该文件作为图片读取","無法將該檔案讀取為圖片","No se pudo leer ese archivo como imagen","Ce fichier n’a pas pu être lu comme une image","Diese Datei konnte nicht als Bild gelesen werden","Impossibile leggere quel file come immagine","Não foi possível ler esse ficheiro como imagem"],
"That file is not a bento/spaces document": ["そのファイルは bento/spaces ドキュメントではありません","该文件不是 bento/spaces 文档","該檔案不是 bento/spaces 文件","Ese archivo no es un documento bento/spaces","Ce fichier n’est pas un document bento/spaces","Diese Datei ist kein bento/spaces-Dokument","Quel file non è un documento bento/spaces","Esse ficheiro não é um documento bento/spaces"],
"That image is too large to share live (about 1 MB max). It’s saved in your copy, but collaborators won’t see it.": ["この画像はライブ共有には大きすぎます(上限は約 1 MB)。自分のコピーには保存されますが、共同編集者には表示されません。","该图片过大,无法实时共享(上限约 1 MB)。它已保存在你的副本中,但协作者不会看到。","此圖片太大,無法即時共用(上限約 1 MB)。它已儲存在你的副本中,但協作者不會看到。","Esa imagen es demasiado grande para compartirla en vivo (máx. 1 MB aprox.). Se guarda en tu copia, pero los colaboradores no la verán.","Cette image est trop volumineuse pour le partage en direct (environ 1 Mo max). Elle est enregistrée dans votre copie, mais les collaborateurs ne la verront pas.","Dieses Bild ist zu groß für die Live-Freigabe (max. etwa 1 MB). Es ist in deiner Kopie gespeichert, aber Mitarbeitende sehen es nicht.","Questa immagine è troppo grande per la condivisione dal vivo (circa 1 MB max). È salvata nella tua copia, ma i collaboratori non la vedranno.","Essa imagem é grande demais para compartilhar ao vivo (máx. cerca de 1 MB). Ela fica salva na sua cópia, mas os colaboradores não a verão."],
"That is not a bento/spaces document": ["これは bento/spaces の文書ではありません","这不是 bento/spaces 文档","這不是 bento/spaces 文件","Eso no es un documento de bento/spaces","Ce n’est pas un document bento/spaces","Das ist kein bento/spaces-Dokument","Questo non è un documento bento/spaces","Isto não é um documento bento/spaces"],
+ "That is not a font file (.woff2, .woff, .ttf or .otf).": ["フォントファイル(.woff2、.woff、.ttf、.otf)ではありません。","这不是字体文件(.woff2、.woff、.ttf 或 .otf)。","這不是字型檔案(.woff2、.woff、.ttf 或 .otf)。","Eso no es un archivo de fuente (.woff2, .woff, .ttf u .otf).","Ce n’est pas un fichier de police (.woff2, .woff, .ttf ou .otf).","Das ist keine Schriftdatei (.woff2, .woff, .ttf oder .otf).","Non è un file di font (.woff2, .woff, .ttf o .otf).","Isto não é um ficheiro de tipo de letra (.woff2, .woff, .ttf ou .otf)."],
"That is {n} files — importing them all may take a moment. Continue?": ["{n} 個のファイルがあります。すべて読み込むには少し時間がかかります。続けますか?","一共 {n} 个文件,全部导入需要一点时间。继续吗?","共 {n} 個檔案,全部匯入需要一點時間。要繼續嗎?","Son {n} archivos: importarlos todos puede tardar un momento. ¿Continuar?","Cela fait {n} fichiers — tout importer peut prendre un moment. Continuer ?","Das sind {n} Dateien — der Import kann einen Moment dauern. Fortfahren?","Sono {n} file — importarli tutti può richiedere un momento. Continuare?","São {n} ficheiros — importar todos pode demorar um momento. Continuar?"],
"That needs to be an http or https address": ["http または https のアドレスを入力してください","这里需要填写 http 或 https 地址","這裡需要填 http 或 https 位址","Tiene que ser una dirección http o https","Il faut une adresse http ou https","Das muss eine http- oder https-Adresse sein","Serve un indirizzo http o https","Tem de ser um endereço http ou https"],
"That section only": ["そのセクションのみ","仅该章节","僅該章節","Solo esa sección","Cette section uniquement","Nur dieser Abschnitt","Solo quella sezione","Apenas essa secção"],
@@ -537,16 +632,20 @@ export const PACKED: Record<string, ReadonlyArray<string | 0>> = {
"That template is no longer in this space": ["そのテンプレートはこのスペースにもうありません","该模板已不在这个空间里","該範本已不在這個空間裡","Esa plantilla ya no está en este espacio","Ce modèle n’est plus dans cet espace","Diese Vorlage ist nicht mehr in diesem Space","Quel modello non è più in questo spazio","Esse modelo já não está neste espaço"],
"That text has changed — nothing was linked": ["その箇所は変更されています。リンクは作成されませんでした","该文字已更改,未创建链接","該文字已變更,未建立連結","Ese texto ha cambiado: no se enlazó nada","Ce texte a changé — rien n’a été lié","Dieser Text hat sich geändert – es wurde nichts verlinkt","Quel testo è cambiato: non è stato collegato nulla","Esse texto mudou — nada foi ligado"],
"That version could not be read": ["そのバージョンを読み込めませんでした","无法读取该版本","無法讀取該版本","No se pudo leer esa versión","Cette version n’a pas pu être lue","Diese Version konnte nicht gelesen werden","Non è stato possibile leggere quella versione","Não foi possível ler essa versão"],
+ "The Bento tile: navy, slate, coral and cream compartments.": ["Bento のタイル:紺、スレート、コーラル、クリームの仕切り。","Bento 方块:藏青、石板蓝、珊瑚色与奶油色的隔格。","Bento 方塊:藏青、石板藍、珊瑚色與奶油色的隔格。","El mosaico Bento: compartimentos azul marino, pizarra, coral y crema.","La tuile Bento : des compartiments marine, ardoise, corail et crème.","Die Bento-Kachel: Fächer in Marine, Schiefer, Koralle und Creme.","La tessera Bento: scomparti blu notte, ardesia, corallo e crema.","O mosaico Bento: compartimentos azul-marinho, ardósia, coral e creme."],
"The block menu, on an empty line": ["空行でブロックメニュー","在空行上打开块菜单","在空行上開啟區塊選單","El menú de bloques, en una línea vacía","Le menu de blocs, sur une ligne vide","Das Blockmenü, in einer leeren Zeile","Il menu dei blocchi, su una riga vuota","O menu de blocos, numa linha vazia"],
"The day after": ["翌日","后一天","後一天","El día siguiente","Le lendemain","Der Tag danach","Il giorno dopo","O dia seguinte"],
"The day before": ["前日","前一天","前一天","El día anterior","La veille","Der Tag davor","Il giorno prima","O dia anterior"],
+ "The design travels with the file. Each reader’s light or dark setting picks between its two palettes.": ["デザインはファイルと一緒に届きます。読む人のライト/ダーク設定が、2つのパレットのどちらを使うかを選びます。","设计随文件一起传递。每位读者的浅色或深色设置会在它的两套配色中选择一套。","設計隨檔案一起傳遞。每位讀者的淺色或深色設定會在它的兩套配色中選擇一套。","El diseño viaja con el archivo. El ajuste claro u oscuro de cada lector elige entre sus dos paletas.","Le design voyage avec le fichier. Le réglage clair ou sombre de chaque lecteur choisit entre ses deux palettes.","Die Gestaltung reist mit der Datei. Die Hell- oder Dunkel-Einstellung jeder lesenden Person wählt zwischen ihren zwei Paletten.","Il design viaggia con il file. L’impostazione chiara o scura di ogni lettore sceglie tra le sue due tavolozze.","O design viaja com o ficheiro. A definição clara ou escura de cada leitor escolhe entre as suas duas paletas."],
"The document block is not shaped like a space — {detail}.": ["ドキュメントブロックがスペースの形をしていません — {detail}。","文档数据块的结构不像一个空间 — {detail}。","檔案中的文件資料結構不像一個空間 — {detail}。","El bloque del documento no tiene la forma de un espacio — {detail}.","Le bloc de document n’a pas la forme d’un espace — {detail}.","Der Dokumentblock ist nicht wie ein Space aufgebaut — {detail}.","Il blocco del documento non ha la forma di uno spazio — {detail}.","O bloco do documento não tem a forma de um espaço — {detail}."],
"The document block is not valid JSON — {detail}.": ["ドキュメントブロックが正しい JSON ではありません — {detail}。","文档数据块不是有效的 JSON — {detail}。","檔案中的文件資料不是有效的 JSON — {detail}。","El bloque del documento no es JSON válido — {detail}.","Le bloc de document n’est pas du JSON valide — {detail}.","Der Dokumentblock ist kein gültiges JSON — {detail}.","Il blocco del documento non è JSON valido — {detail}.","O bloco do documento não é JSON válido — {detail}."],
"The document, the editor and the search are all in this one file. Opening it needs nothing else — no server, no account, no install.": ["文書もエディタも検索も、すべてこの 1 つのファイルに入っています。開くのに他は何も要りません。サーバーもアカウントもインストールも不要です。","文档、编辑器和搜索都在这一个文件里。打开它不需要别的东西——不需要服务器、账号或安装。","文件、編輯器和搜尋都在這一個檔案裡。開啟它不需要別的東西——不需要伺服器、帳號或安裝。","El documento, el editor y la búsqueda están todos en este único archivo. Abrirlo no necesita nada más: ni servidor, ni cuenta, ni instalación.","Le document, l’éditeur et la recherche tiennent tous dans ce seul fichier. L’ouvrir ne demande rien d’autre : ni serveur, ni compte, ni installation.","Das Dokument, der Editor und die Suche stecken alle in dieser einen Datei. Zum Öffnen braucht es sonst nichts — keinen Server, kein Konto, keine Installation.","Il documento, l’editor e la ricerca stanno tutti in questo unico file. Per aprirlo non serve altro: nessun server, nessun account, nessuna installazione.","O documento, o editor e a pesquisa estão todos neste único ficheiro. Abri-lo não precisa de mais nada — nem servidor, nem conta, nem instalação."],
"The images in these notes come to {size} so far, and they all travel inside the file. Keep embedding them?": ["これらのノートの画像はすでに {size} あり、すべてファイルの中を一緒に運ばれます。埋め込みを続けますか?","这些笔记里的图片已经有 {size},而且都会随文件一起走。继续嵌入吗?","這些筆記裡的圖片已經有 {size},而且都會隨檔案一起走。要繼續嵌入嗎?","Las imágenes de estas notas suman ya {size} y todas viajan dentro del archivo. ¿Seguir incrustándolas?","Les images de ces notes font déjà {size}, et elles voyagent toutes dans le fichier. Continuer à les intégrer ?","Die Bilder in diesen Notizen ergeben bisher {size}, und sie reisen alle in der Datei mit. Weiter einbetten?","Le immagini di queste note sono già {size} e viaggiano tutte dentro il file. Continuare a incorporarle?","As imagens destas notas já somam {size} e viajam todas dentro do ficheiro. Continuar a incorporá-las?"],
"The live session couldn’t store that change. It’s saved in your copy, but collaborators won’t see it.": ["ライブセッションがこの変更を保存できませんでした。自分のコピーには保存されますが、共同編集者には表示されません。","实时会话无法保存该更改。它已保存在你的副本中,但协作者不会看到。","即時工作階段無法儲存此變更。它已儲存在你的副本中,但協作者不會看到。","La sesión en vivo no pudo guardar ese cambio. Se guarda en tu copia, pero los colaboradores no lo verán.","La session en direct n’a pas pu enregistrer cette modification. Elle est enregistrée dans votre copie, mais les collaborateurs ne la verront pas.","Die Live-Sitzung konnte diese Änderung nicht speichern. Sie ist in deiner Kopie gespeichert, aber Mitarbeitende sehen sie nicht.","La sessione dal vivo non è riuscita a salvare questa modifica. È salvata nella tua copia, ma i collaboratori non la vedranno.","A sessão ao vivo não conseguiu armazenar essa alteração. Ela fica salva na sua cópia, mas os colaboradores não a verão."],
+ "The look every space starts with.": ["すべてのスペースの最初の見た目。","每个空间一开始的样子。","每個空間一開始的樣子。","El aspecto con el que empieza todo espacio.","L’apparence de départ de tout espace.","Das Aussehen, mit dem jeder Space beginnt.","L’aspetto con cui parte ogni spazio.","O aspeto com que todos os espaços começam."],
"The next save writes plain, readable JSON": ["次の保存では、誰でも読めるプレーンな JSON で書き出します","下次保存将写入可直接阅读的纯 JSON","下次儲存將寫入可直接閱讀的純 JSON","El próximo guardado escribe JSON plano y legible","Le prochain enregistrement écrit du JSON en clair, lisible","Die nächste Speicherung schreibt einfaches, lesbares JSON","Il prossimo salvataggio scrive JSON in chiaro, leggibile","O próximo salvamento grava JSON simples e legível"],
"The next save writes this space as plain, readable JSON — anybody who opens the file can read every page.": ["次の保存で、このスペースはそのまま読める JSON として書き出されます。ファイルを開いた人は誰でも全ページを読めます。","下一次保存会把这个空间写成可直接阅读的 JSON——任何打开这个文件的人都能读到每一页。","下一次儲存會把這個空間寫成可直接閱讀的 JSON——任何開啟這個檔案的人都能讀到每一頁。","El próximo guardado escribe este espacio como JSON legible: cualquiera que abra el archivo podrá leer todas las páginas.","Le prochain enregistrement écrira cet espace en JSON lisible : quiconque ouvre le fichier pourra lire toutes les pages.","Beim nächsten Speichern wird dieser Space als lesbares JSON geschrieben — wer die Datei öffnet, kann jede Seite lesen.","Il prossimo salvataggio scrive questo spazio come JSON leggibile: chiunque apra il file potrà leggere ogni pagina.","A próxima gravação escreve este espaço como JSON legível — quem abrir o ficheiro consegue ler todas as páginas."],
+ "The notes named a design, so this space now uses it.": ["ノートがデザインを指定していたため、このスペースはそのデザインを使います。","这些笔记指定了一个设计,所以此空间现在使用它。","這些筆記指定了一個設計,所以此空間現在使用它。","Las notas indicaban un diseño, así que este espacio ahora lo usa.","Les notes nommaient un design : cet espace l’utilise désormais.","Die Notizen nannten eine Gestaltung, deshalb verwendet dieser Space sie jetzt.","Le note indicavano un design, quindi ora questo spazio lo usa.","As notas indicavam um design, por isso este espaço passa a usá-lo."],
"The page as a bento/slides deck, ready to paste into Bento Slides": ["ページを bento/slides のデッキにして、Bento Slides に貼り付けられる形にします","把页面做成 bento/slides 演示文稿,可直接粘贴进 Bento Slides","把頁面做成 bento/slides 簡報,可直接貼進 Bento Slides","La página como una presentación bento/slides, lista para pegar en Bento Slides","La page sous forme de présentation bento/slides, prête à coller dans Bento Slides","Die Seite als bento/slides-Präsentation, bereit zum Einfügen in Bento Slides","La pagina come presentazione bento/slides, pronta da incollare in Bento Slides","A página como uma apresentação bento/slides, pronta para colar no Bento Slides"],
"The page becomes a deck’s document. Open Bento Slides and use “Replace from JSON…” in its About dialog — or window.bento.loadDoc() from a script.": ["ページがデッキのドキュメントになります。Bento Slides を開き、情報ダイアログの「JSON から置き換え…」を使ってください。スクリプトからは window.bento.loadDoc() です。","页面会变成一份演示文稿文档。打开 Bento Slides,在“关于”对话框中使用“从 JSON 替换…”,脚本中则用 window.bento.loadDoc()。","頁面會變成一份簡報文件。開啟 Bento Slides,在「關於」對話方塊中使用「從 JSON 取代…」,指令碼中則用 window.bento.loadDoc()。","La página se convierte en el documento de una presentación. Abre Bento Slides y usa «Reemplazar desde JSON…» en su diálogo Acerca de, o window.bento.loadDoc() desde un script.","La page devient le document d’une présentation. Ouvrez Bento Slides et utilisez « Remplacer depuis JSON… » dans sa boîte À propos, ou window.bento.loadDoc() depuis un script.","Die Seite wird zum Dokument einer Präsentation. Öffnen Sie Bento Slides und verwenden Sie „Aus JSON ersetzen…“ im Info-Dialog – oder window.bento.loadDoc() aus einem Skript.","La pagina diventa il documento di una presentazione. Apri Bento Slides e usa «Sostituisci da JSON…» nella finestra Informazioni, oppure window.bento.loadDoc() da uno script.","A página vira o documento de uma apresentação. Abra o Bento Slides e use «Substituir a partir de JSON…» na caixa Sobre — ou window.bento.loadDoc() a partir de um script."],
"The page becomes a new file of its own: a whole space, with a new document id and none of this one’s sharing keys.": ["そのページが独立した新しいファイルになります。ひとつの完全なスペースで、新しいドキュメント ID を持ち、このスペースの共有キーは一切引き継ぎません。","该页面会成为一个独立的新文件:一个完整的空间,拥有新的文档 ID,且不带本空间的任何共享密钥。","該頁面會成為獨立的新檔案:一個完整的空間,擁有新的文件 ID,且不帶本空間的任何共用金鑰。","La página se convierte en un archivo propio: un espacio completo, con un nuevo id de documento y sin ninguna de las claves de uso compartido de este.","La page devient un fichier à part entière : un espace complet, avec un nouvel identifiant de document et aucune des clés de partage de celui-ci.","Die Seite wird zu einer eigenen Datei: ein vollständiger Space mit einer neuen Dokument-ID und ohne die Freigabeschlüssel dieses Space.","La pagina diventa un file a sé: uno spazio completo, con un nuovo id di documento e senza nessuna delle chiavi di condivisione di questo.","A página passa a ser um ficheiro próprio: um espaço completo, com um novo id de documento e sem nenhuma das chaves de partilha deste."],
@@ -571,6 +670,7 @@ export const PACKED: Record<string, ReadonlyArray<string | 0>> = {
"This file declares rules this build does not know. It is open read-only so nothing is lost.": ["このファイルには、このビルドが知らないルールが宣言されています。何も失わないよう読み取り専用で開いています。","此文件声明了此版本不认识的规则。已以只读方式打开,以免丢失任何内容。","此檔案宣告了這個版本不認識的規則。已以唯讀方式開啟,以免遺失任何內容。","Este archivo declara reglas que esta versión no conoce. Está abierto en solo lectura para no perder nada.","Ce fichier déclare des règles que cette version ne connaît pas. Il est ouvert en lecture seule pour ne rien perdre.","Diese Datei nennt Regeln, die dieser Build nicht kennt. Sie ist schreibgeschützt geöffnet, damit nichts verloren geht.","Questo file dichiara regole che questa versione non conosce. È aperto in sola lettura per non perdere nulla.","Este ficheiro declara regras que esta versão não conhece. Está aberto apenas para leitura para que nada se perca."],
"This file is open read-only": ["このファイルは読み取り専用で開いています","这个文件以只读方式打开","這個檔案以唯讀方式開啟","Este archivo está abierto en solo lectura","Ce fichier est ouvert en lecture seule","Diese Datei ist schreibgeschützt geöffnet","Questo file è aperto in sola lettura","Este ficheiro está aberto apenas para leitura"],
"This file was written by a newer version of bento/spaces. It is open read-only so nothing is lost.": ["このファイルは新しいバージョンの bento/spaces で書かれています。何も失わないよう読み取り専用で開いています。","此文件由更新版本的 bento/spaces 写入。已以只读方式打开,以免丢失任何内容。","此檔案是由較新版本的 bento/spaces 寫入的。已以唯讀方式開啟,以免遺失任何內容。","Este archivo lo escribió una versión más reciente de bento/spaces. Está abierto en solo lectura para no perder nada.","Ce fichier a été écrit par une version plus récente de bento/spaces. Il est ouvert en lecture seule pour ne rien perdre.","Diese Datei wurde von einer neueren Version von bento/spaces geschrieben. Sie ist schreibgeschützt geöffnet, damit nichts verloren geht.","Questo file è stato scritto da una versione più recente di bento/spaces. È aperto in sola lettura per non perdere nulla.","Este ficheiro foi escrito por uma versão mais recente do bento/spaces. Está aberto apenas para leitura para que nada se perca."],
+ "This font is {size}, and it travels inside the file. Embed it anyway?": ["このフォントは {size} あり、ファイルの中に入って届きます。それでも埋め込みますか?","此字体大小为 {size},会随文件一起携带。仍要嵌入吗?","此字型大小為 {size},會隨檔案一起攜帶。仍要嵌入嗎?","Esta fuente ocupa {size} y viaja dentro del archivo. ¿Incrustarla de todos modos?","Cette police pèse {size} et voyage dans le fichier. L’intégrer quand même ?","Diese Schrift ist {size} groß und reist in der Datei mit. Trotzdem einbetten?","Questo font pesa {size} e viaggia dentro il file. Incorporarlo comunque?","Este tipo de letra tem {size} e viaja dentro do ficheiro. Incorporá-lo mesmo assim?"],
"This image is {size} and travels inside the file, making it that much bigger for everyone you send it to. Embed it anyway?": ["この画像は {size} あり、ファイルの中に一緒に入ります。その分、送る相手全員にとってファイルが大きくなります。それでも埋め込みますか?","这张图片有 {size},会嵌在文件内部,你发给谁,文件对谁就大出这么多。仍要嵌入吗?","這張圖片有 {size},而且會跟著檔案一起走,你傳給的每個人拿到的檔案都會大這麼多。仍要嵌入嗎?","Esta imagen pesa {size} y viaja dentro del archivo, que crecerá otro tanto para todos a quienes se lo envíes. ¿Incrustarla de todos modos?","Cette image fait {size} et voyage dans le fichier, ce qui l’alourdit d’autant pour toutes les personnes à qui vous l’envoyez. L’intégrer quand même ?","Dieses Bild ist {size} groß und reist in der Datei mit — die Datei wird für jeden, dem du sie schickst, entsprechend größer. Trotzdem einbetten?","Questa immagine è di {size} e viaggia dentro il file, rendendolo altrettanto più grande per chiunque la riceva. Incorporarla comunque?","Esta imagem tem {size} e viaja dentro do ficheiro, tornando-o maior para todas as pessoas a quem o enviar. Incorporar mesmo assim?"],
"This image was resized to keep the file small. Click to replace it with the original.": ["ファイルを小さく保つため、この画像は縮小されました。クリックすると元の画像に差し替えます。","为了让文件保持小巧,这张图片已被缩放。点击可换回原图。","這張圖片已縮小尺寸以保持檔案小巧。點按可換回原始圖片。","Esta imagen se redimensionó para mantener el archivo pequeño. Haz clic para reemplazarla por la original.","Cette image a été redimensionnée pour garder le fichier léger. Cliquez pour la remplacer par l’originale.","Dieses Bild wurde verkleinert, damit die Datei klein bleibt. Klicken, um es durch das Original zu ersetzen.","Questa immagine è stata ridimensionata per mantenere il file leggero. Clicca per sostituirla con l’originale.","Esta imagem foi redimensionada para manter o ficheiro pequeno. Clique para a substituir pela original."],
"This is a reading copy. It opens for reading; nothing you do here changes the file.": ["これは閲覧用のコピーです。読むために開きます。ここでの操作はファイルを変更しません。","这是一份阅读副本。它以阅读方式打开;你在此处的操作不会更改文件。","這是一份閱讀副本。它以閱讀方式開啟;你在此處的操作不會變更檔案。","Esta es una copia de lectura. Se abre para leer; nada de lo que hagas aquí cambia el archivo.","Ceci est une copie de lecture. Elle s'ouvre en lecture ; rien de ce que vous faites ici ne modifie le fichier.","Dies ist eine Lesekopie. Sie öffnet sich zum Lesen; nichts, was du hier tust, ändert die Datei.","Questa è una copia di lettura. Si apre in lettura; nulla di ciò che fai qui modifica il file.","Esta é uma cópia de leitura. Abre para leitura; nada do que fizeres aqui altera o ficheiro."],
@@ -584,6 +684,7 @@ export const PACKED: Record<string, ReadonlyArray<string | 0>> = {
"This space has no pages.": ["このスペースにはページがありません。","此空间没有页面。","此空間沒有任何頁面。","Este espacio no tiene páginas.","Cet espace n’a aucune page.","Dieser Space hat keine Seiten.","Questo spazio non ha pagine.","Este espaço não tem páginas."],
"This space is encrypted, so no versions are kept.": ["このスペースは暗号化されているため、バージョンは保存されません。","此空间已加密,因此不保存任何版本。","此空間已加密,因此不保存任何版本。","Este espacio está cifrado, así que no se guarda ninguna versión.","Cet espace est chiffré : aucune version n’est conservée.","Dieser Space ist verschlüsselt, deshalb werden keine Versionen aufbewahrt.","Questo spazio è cifrato, quindi non viene conservata alcuna versione.","Este espaço está cifrado, por isso não são guardadas versões."],
"This space is locked": ["このスペースはロックされています","此空间已锁定","此空間已鎖定","Este espacio está bloqueado","Cet espace est verrouillé","Dieser Space ist gesperrt","Questo spazio è bloccato","Este espaço está bloqueado"],
+ "This space no longer uses a design of its own.": ["このスペースは独自のデザインを使わなくなりました。","此空间不再使用自己的设计。","此空間不再使用自己的設計。","Este espacio ya no usa un diseño propio.","Cet espace n’utilise plus de design qui lui soit propre.","Dieser Space verwendet keine eigene Gestaltung mehr.","Questo spazio non usa più un design proprio.","Este espaço já não usa um design próprio."],
"This space reads right-to-left; a deck has no such setting.": ["このスペースは右から左へ読みます。デッキにはその設定がありません。","这个空间从右向左阅读;演示文稿没有这项设置。","這個空間由右至左閱讀;簡報沒有這項設定。","Este espacio se lee de derecha a izquierda; una presentación no tiene ese ajuste.","Cet espace se lit de droite à gauche ; une présentation n’a pas ce réglage.","Dieser Raum wird von rechts nach links gelesen; eine Präsentation hat diese Einstellung nicht.","Questo spazio si legge da destra a sinistra; una presentazione non ha questa impostazione.","Este espaço lê-se da direita para a esquerda; uma apresentação não tem essa definição."],
"This week": ["今週","本周","本週","Esta semana","Cette semaine","Diese Woche","Questa settimana","Esta semana"],
"This window is still running v{v} — reload to finish. A v{v} backup was downloaded.": ["このウィンドウはまだ v{v} で動作中 — 再読込で完了します。v{v} のバックアップをダウンロード済み。","此窗口仍在运行 v{v} — 重新加载以完成。已下载 v{v} 备份。","此視窗仍在執行 v{v} — 重新載入以完成。已下載 v{v} 備份。","Esta ventana sigue en v{v} — recarga para terminar. Se descargó una copia de seguridad v{v}.","Cette fenêtre tourne encore en v{v} — rechargez pour terminer. Une sauvegarde v{v} a été téléchargée.","Dieses Fenster läuft noch mit v{v} — zum Abschließen neu laden. Ein v{v}-Backup wurde heruntergeladen.","Questa finestra esegue ancora la v{v} — ricarica per completare. È stato scaricato un backup v{v}.","Esta janela ainda está executando a v{v} — recarregue para concluir. Um backup da v{v} foi baixado."],
@@ -591,9 +692,16 @@ export const PACKED: Record<string, ReadonlyArray<string | 0>> = {
"This window is still running v{v}. If you overwrote the file that's open here, reload; otherwise open the file you saved.": ["このウィンドウはまだ v{v} で動作中。開いているファイルを上書きした場合は再読込を。別に保存した場合はそのファイルを開いてください。","此窗口仍在运行 v{v}。若覆盖了当前打开的文件请重新加载;否则请打开您保存的文件。","此視窗仍在執行 v{v}。若已覆寫目前開啟的檔案請重新載入;否則請開啟您儲存的檔案。","Esta ventana sigue en v{v}. Si sobrescribiste el archivo abierto aquí, recarga; si no, abre el archivo que guardaste.","Cette fenêtre tourne encore en v{v}. Si vous avez écrasé le fichier ouvert ici, rechargez ; sinon ouvrez le fichier enregistré.","Dieses Fenster läuft noch mit v{v}. Wenn Sie die geöffnete Datei überschrieben haben, neu laden; andernfalls die gespeicherte Datei öffnen.","Questa finestra esegue ancora la v{v}. Se hai sovrascritto il file aperto qui, ricarica; altrimenti apri il file salvato.","Esta janela ainda está executando a v{v}. Se você sobrescreveu o arquivo aberto aqui, recarregue; caso contrário, abra o arquivo que salvou."],
"This window keeps running v{v} until you open the downloaded file.": ["ダウンロードしたファイルを開くまで、このウィンドウは v{v} のままです。","在打开下载的文件之前,此窗口将继续运行 v{v}。","在開啟下載的檔案之前,此視窗會維持在 v{v}。","Esta ventana seguirá en v{v} hasta que abras el archivo descargado.","Cette fenêtre reste en v{v} jusqu'à l'ouverture du fichier téléchargé.","Dieses Fenster bleibt bei v{v}, bis Sie die heruntergeladene Datei öffnen.","Questa finestra resta alla v{v} finché non apri il file scaricato.","Esta janela continua executando a v{v} até você abrir o arquivo baixado."],
"Those files could not be read": ["それらのファイルは読み込めませんでした","这些文件无法读取","這些檔案無法讀取","No se pudieron leer esos archivos","Ces fichiers n’ont pas pu être lus","Diese Dateien konnten nicht gelesen werden","Non è stato possibile leggere quei file","Não foi possível ler esses ficheiros"],
+ "Tile": ["タイル","方块","方塊","Mosaico","Tuile","Kachel","Tessera","Mosaico"],
+ "Tiles": ["タイル","方块拼贴","方塊拼貼","Mosaicos","Tuiles","Kacheln","Tessere","Mosaicos"],
"Timeline": ["タイムライン","时间线","時間軸","Línea de tiempo","Chronologie","Zeitleiste","Timeline","Linha do tempo"],
+ "Tinted": ["色付き","着色","著色","Tintado","Teinté","Getönt","Tinto","Tingido"],
"Tip": ["ヒント","提示","提示","Consejo","Astuce","Tipp","Suggerimento","Dica"],
"Title": ["タイトル","标题","標題","Título","Titre","Titel","Titolo","Título"],
+ "Title letter spacing": ["タイトルの字間","标题字距","標題字距","Espaciado del título","Approche du titre","Laufweite des Titels","Spaziatura del titolo","Espaçamento do título"],
+ "Title line spacing": ["タイトルの行間","标题行距","標題行距","Interlineado del título","Interligne du titre","Zeilenabstand des Titels","Interlinea del titolo","Entrelinha do título"],
+ "Title size": ["タイトルのサイズ","标题大小","標題大小","Tamaño del título","Taille du titre","Titelgröße","Dimensione del titolo","Tamanho do título"],
+ "Title weight": ["タイトルの太さ","标题字重","標題字重","Peso del título","Graisse du titre","Stärke des Titels","Peso del titolo","Peso do título"],
"To-do": ["チェックリスト","待办事项","待辦事項","Tarea","Tâche","Aufgabe","Attività","Tarefa"],
"Today": ["今日","今天","今天","Hoy","Aujourd’hui","Heute","Oggi","Hoje"],
"Today's journal": ["今日のジャーナル","今天的日志","今天的日誌","Diario de hoy","Journal du jour","Heutiges Journal","Diario di oggi","Diário de hoje"],
@@ -604,9 +712,13 @@ export const PACKED: Record<string, ReadonlyArray<string | 0>> = {
"Top level": ["最上位","顶层","最上層","Nivel superior","Premier niveau","Oberste Ebene","Primo livello","Nível superior"],
"Turn into…": ["種類を変更…","转换为…","轉換為…","Convertir en…","Convertir en…","Umwandeln in…","Converti in…","Converter em…"],
"Turn these words into a link to this page": ["この語句をこのページへのリンクにします","把这些文字变成指向本页的链接","把這些文字變成指向本頁的連結","Convertir estas palabras en un enlace a esta página","Transformer ces mots en lien vers cette page","Diese Wörter in einen Link auf diese Seite verwandeln","Trasforma queste parole in un collegamento a questa pagina","Transformar estas palavras numa ligação para esta página"],
+ "Type": ["書体","字体","字體","Tipografía","Typographie","Schrift","Tipografia","Tipografia"],
"Type / for blocks, [[ to link a page": ["/ でブロック、[[ でページにリンク","输入 / 插入块,[[ 链接页面","輸入 / 插入區塊,輸入 [[ 連結頁面","Escribe / para bloques, [[ para enlazar una página","Tapez / pour les blocs, [[ pour lier une page","Tippe / für Blöcke, [[ für einen Seitenlink","Digita / per i blocchi, [[ per collegare una pagina","Escreva / para blocos, [[ para ligar uma página"],
+ "Typescript": ["タイプ原稿","打字稿","打字稿","Mecanoscrito","Tapuscrit","Typoskript","Dattiloscritto","Datiloscrito"],
+ "Typewriter": ["タイプライター","打字机","打字機","Máquina de escribir","Machine à écrire","Schreibmaschine","Macchina da scrivere","Máquina de escrever"],
"Underline": ["下線","下划线","底線","Subrayado","Souligné","Unterstrichen","Sottolineato","Sublinhado"],
"Underline — ⌘U": ["下線 — ⌘U","下划线 — ⌘U","底線 — ⌘U","Subrayado — ⌘U","Souligné — ⌘U","Unterstrichen — ⌘U","Sottolineato — ⌘U","Sublinhado — ⌘U"],
+ "Underlined": ["下線","下划线","底線","Subrayado","Souligné","Unterstrichen","Sottolineato","Sublinhado"],
"Undo": ["元に戻す","撤销","還原","Deshacer","Annuler","Rückgängig","Annulla","Desfazer"],
"Undo (⌘Z)": ["元に戻す (⌘Z)","撤销 (⌘Z)","還原 (⌘Z)","Deshacer (⌘Z)","Annuler (⌘Z)","Rückgängig (⌘Z)","Annulla (⌘Z)","Desfazer (⌘Z)"],
"Undo, redo": ["取り消し・やり直し","撤销、重做","復原、重做","Deshacer, rehacer","Annuler, rétablir","Rückgängig, wiederherstellen","Annulla, ripeti","Anular, refazer"],
@@ -623,6 +735,7 @@ export const PACKED: Record<string, ReadonlyArray<string | 0>> = {
"Update this file…": ["このファイルを更新…","更新此文件…","更新此檔案…","Actualizar este archivo…","Mettre à jour ce fichier…","Diese Datei aktualisieren…","Aggiorna questo file…","Atualizar este arquivo…"],
"Updated to v{v} on disk.": ["ディスク上で v{v} に更新しました。","已在磁盘上更新到 v{v}。","已在磁碟上更新至 v{v}。","Actualizado a v{v} en disco.","Mis à jour en v{v} sur le disque.","Auf v{v} auf der Festplatte aktualisiert.","Aggiornato alla v{v} su disco.","Atualizado para a v{v} no disco."],
"Updates": ["更新","更新","更新","Actualizaciones","Mises à jour","Updates","Aggiornamenti","Atualizações"],
+ "Upright": ["正体","正体","正體","Redonda","Romain","Aufrecht","Tondo","Redondo"],
"Use a link…": ["リンクを使う…","使用链接…","使用連結…","Usar un enlace…","Utiliser un lien…","Einen Link verwenden…","Usa un link…","Usar uma ligação…"],
"Use for daily notes": ["デイリーノートに使う","用于每日笔记","用於每日筆記","Usar para las notas diarias","Utiliser pour les notes quotidiennes","Für Tagesnotizen verwenden","Usa per le note giornaliere","Usar para as notas diárias"],
"Use this width for every page": ["この幅をすべてのページに使う","将此宽度用于所有页面","將此寬度用於所有頁面","Usar esta anchura en todas las páginas","Utiliser cette largeur pour toutes les pages","Diese Breite für alle Seiten verwenden","Usa questa larghezza per tutte le pagine","Usar esta largura em todas as páginas"],
@@ -645,6 +758,7 @@ export const PACKED: Record<string, ReadonlyArray<string | 0>> = {
"Visit bento.page (opens in a new tab)": ["bento.page を開く(新しいタブ)","访问 bento.page(在新标签页打开)","造訪 bento.page(在新分頁開啟)","Visitar bento.page (se abre en una pestaña nueva)","Aller sur bento.page (nouvel onglet)","bento.page besuchen (öffnet in neuem Tab)","Vai su bento.page (si apre in una nuova scheda)","Visitar bento.page (abre num novo separador)"],
"Warning": ["警告","警告","警告","Advertencia","Avertissement","Warnung","Avviso","Aviso"],
"Web address": ["ウェブアドレス","网址","網址","Dirección web","Adresse web","Webadresse","Indirizzo web","Endereço web"],
+ "Wells": ["背景面","底色区","底色區","Fondos","Fonds","Flächen","Fondi","Fundos"],
"What did not come across as it stands:": ["そのままの形では移らなかったもの:","以下内容未能原样带过来:","以下內容未能原樣帶過來:","Lo que no pasó tal cual:","Ce qui n’est pas passé tel quel :","Was nicht unverändert mitgekommen ist:","Ciò che non è passato così com’era:","O que não passou tal como estava:"],
"What is in the picture": ["画像に写っているもの","图片里是什么","圖片裡是什麼","Qué hay en la imagen","Ce que montre l’image","Was auf dem Bild zu sehen ist","Che cosa mostra l’immagine","O que está na imagem"],
"What this is": ["これが何か","这是什么","這是什麼","Qué es esto","Ce que c’est","Worum es sich handelt","Di che cosa si tratta","O que é isto"],
@@ -698,6 +812,7 @@ export const PACKED: Record<string, ReadonlyArray<string | 0>> = {
"{name} joined": ["{name} が参加しました","{name} 已加入","{name} 已加入","{name} se ha unido","{name} a rejoint","{name} ist beigetreten","{name} si è unito","{name} entrou"],
"{name} left": ["{name} が退出しました","{name} 已离开","{name} 已離開","{name} se ha ido","{name} est parti","{name} hat verlassen","{name} se n'è andato","{name} saiu"],
"{name} was removed": ["{name} を削除しました","已移除 {name}","已移除 {name}","{name} fue eliminado","{name} a été retiré","{name} wurde entfernt","{name} è stato rimosso","{name} foi removido"],
+ "{name}, customised": ["{name}(カスタマイズ)","{name}(自定义)","{name}(自訂)","{name}, personalizado","{name}, personnalisé","{name}, angepasst","{name}, personalizzato","{name}, personalizado"],
"{n} block": ["{n} ブロック","{n} 个块","{n} 個區塊","{n} bloque","{n} bloc","{n} Block","{n} blocco","{n} bloco"],
"{n} blocks": ["{n} ブロック","{n} 个块","{n} 個區塊","{n} bloques","{n} blocs","{n} Blöcke","{n} blocchi","{n} blocos"],
"{n} connected": ["{n} 人が接続中","{n} 人已连接","{n} 人已連線","{n} conectados","{n} connectés","{n} verbunden","{n} connessi","{n} conectados"],
diff --git a/spaces/src/i18n/pt.ts b/spaces/src/i18n/pt.ts
index aa444d56..99ed05b0 100644
--- a/spaces/src/i18n/pt.ts
+++ b/spaces/src/i18n/pt.ts
@@ -668,6 +668,123 @@ export const pt: Catalog = {
"{pages} page(s) and {blocks} block(s) will travel.": "Vão viajar {pages} página(s) e {blocks} bloco(s).",
"{pages} pages · {links} links": "{pages} páginas · {links} ligações",
"⌘Z removes the imported pages again.": "⌘Z remove novamente as páginas importadas.",
+ "A news serif under double rules, justified, with pull quotes.": "Uma serifa de jornal sob fios duplos, justificada, com citações em destaque.",
+ "A precise grid, figures in a monospace, cobalt rules.": "Uma grelha precisa, algarismos em monoespaçada, fios cobalto.",
+ "A risograph zine: two spot inks, heavy capitals, offset shadows.": "Um fanzine em risografia: duas tintas especiais, maiúsculas pesadas, sombras desfasadas.",
+ "A typewritten manuscript: one face, capitals, a two-colour ribbon.": "Um manuscrito datilografado: um só tipo, maiúsculas, fita de duas cores.",
+ "Accent": "Realce",
+ "Accent bar": "Barra de realce",
+ "Accent text": "Texto de realce",
+ "Add a font file…": "Adicionar um ficheiro de tipo de letra…",
+ "Almanac": "Almanaque",
+ "An editorial serif, a drop cap, and marigold for its accent.": "Uma serifa editorial, uma capitular e o amarelo-calêndula como realce.",
+ "As written": "Como escrito",
+ "Asterism": "Asterismo",
+ "Bands": "Faixas",
+ "Based on {name}. Only what you change here is stored.": "Baseado em {name}. Só é guardado o que alterar aqui.",
+ "Body": "Corpo do texto",
+ "Book serif": "Serifa de livro",
+ "Broadsheet": "Jornal",
+ "Bullets": "Marcadores",
+ "Callout colours": "Cores dos destaques",
+ "Callouts": "Destaques",
+ "Capitals": "Maiúsculas",
+ "Carried by this space.": "Incluído neste espaço.",
+ "Cell 1": "Célula 1",
+ "Cell 2": "Célula 2",
+ "Cell 3": "Célula 3",
+ "Checkboxes": "Caixas de verificação",
+ "Code and figures": "Código e algarismos",
+ "Colours": "Cores",
+ "Condensed": "Condensada",
+ "Corner radius": "Raio dos cantos",
+ "Custom": "Personalizado",
+ "Customise design": "Personalizar o design",
+ "Customise…": "Personalizar…",
+ "Dash": "Travessão",
+ "Design": "Design",
+ "Disc": "Disco",
+ "Display italic": "Itálico de título",
+ "Dividers": "Separadores",
+ "Done": "Concluído",
+ "Double rule": "Fio duplo",
+ "Double rule above": "Fio duplo por cima",
+ "Drop cap": "Capitular",
+ "Figures": "Algarismos",
+ "Filled": "Preenchido",
+ "Grid": "Grelha",
+ "Grotesque": "Grotesca",
+ "Hairline": "Fio fino",
+ "Hard offset": "Desvio nítido",
+ "Heading case": "Maiúsculas nos títulos",
+ "Heading style": "Estilo dos títulos",
+ "Heading weight": "Peso dos títulos",
+ "Headings": "Títulos",
+ "Heavy rule": "Fio grosso",
+ "Humanist": "Humanista",
+ "Indented": "Recuado",
+ "Justified text": "Texto justificado",
+ "Label colour": "Cor das etiquetas",
+ "Layout": "Paginação",
+ "Ledger": "Livro-razão",
+ "Line spacing": "Entrelinha",
+ "Lining": "Alinhados",
+ "Monospace": "Monoespaçada",
+ "News serif": "Serifa de jornal",
+ "None": "Nenhum",
+ "Off": "Desligado",
+ "Offset shadow": "Sombra desfasada",
+ "Old-style": "Elzevirianos",
+ "Old-style serif": "Serifa antiga",
+ "On": "Ligado",
+ "One hue per tone": "Uma cor por tipo",
+ "Outlined": "Contornado",
+ "Paper": "Papel",
+ "Plain": "Simples",
+ "Pull quote": "Citação em destaque",
+ "Quotes": "Citações",
+ "Remove this design": "Remover este design",
+ "Riso": "Riso",
+ "Round": "Redondo",
+ "Rounded": "Arredondada",
+ "Rule above": "Fio por cima",
+ "Rule weight": "Espessura dos fios",
+ "Rules": "Fios",
+ "Rules above and below": "Fios em cima e em baixo",
+ "Secondary text": "Texto secundário",
+ "Section heads": "Títulos de secção",
+ "Shadows": "Sombras",
+ "Short bar": "Barra curta",
+ "Short bar below": "Barra curta por baixo",
+ "Small capitals": "Versaletes",
+ "Studio": "Estúdio",
+ "System": "Sistema",
+ "Tables": "Tabelas",
+ "Text colour": "Cor do texto",
+ "Text on accent": "Texto sobre o realce",
+ "Text on tile": "Texto sobre o mosaico",
+ "Text size": "Tamanho do texto",
+ "That is not a font file (.woff2, .woff, .ttf or .otf).": "Isto não é um ficheiro de tipo de letra (.woff2, .woff, .ttf ou .otf).",
+ "The Bento tile: navy, slate, coral and cream compartments.": "O mosaico Bento: compartimentos azul-marinho, ardósia, coral e creme.",
+ "The design travels with the file. Each reader’s light or dark setting picks between its two palettes.": "O design viaja com o ficheiro. A definição clara ou escura de cada leitor escolhe entre as suas duas paletas.",
+ "The look every space starts with.": "O aspeto com que todos os espaços começam.",
+ "The notes named a design, so this space now uses it.": "As notas indicavam um design, por isso este espaço passa a usá-lo.",
+ "This font is {size}, and it travels inside the file. Embed it anyway?": "Este tipo de letra tem {size} e viaja dentro do ficheiro. Incorporá-lo mesmo assim?",
+ "This space no longer uses a design of its own.": "Este espaço já não usa um design próprio.",
+ "Tile": "Mosaico",
+ "Tiles": "Mosaicos",
+ "Tinted": "Tingido",
+ "Title letter spacing": "Espaçamento do título",
+ "Title line spacing": "Entrelinha do título",
+ "Title size": "Tamanho do título",
+ "Title weight": "Peso do título",
+ "Type": "Tipografia",
+ "Typescript": "Datiloscrito",
+ "Typewriter": "Máquina de escrever",
+ "Underlined": "Sublinhado",
+ "Upright": "Redondo",
+ "Wells": "Fundos",
+ "{name}, customised": "{name}, personalizado",
"Export page as slides…": "Exportar a página como slides…",
"The page as a bento/slides deck, ready to paste into Bento Slides": "A página como uma apresentação bento/slides, pronta para colar no Bento Slides",
"Export a page as slides": "Exportar uma página como slides",
diff --git a/spaces/src/i18n/zh-Hans.ts b/spaces/src/i18n/zh-Hans.ts
index 2d936235..feae1ddb 100644
--- a/spaces/src/i18n/zh-Hans.ts
+++ b/spaces/src/i18n/zh-Hans.ts
@@ -668,6 +668,123 @@ export const zh_Hans: Catalog = {
"{pages} page(s) and {blocks} block(s) will travel.": "将带走 {pages} 个页面、{blocks} 个块。",
"{pages} pages · {links} links": "{pages} 个页面 · {links} 条链接",
"⌘Z removes the imported pages again.": "按 ⌘Z 可以把导入的页面再撤销掉。",
+ "A news serif under double rules, justified, with pull quotes.": "双线下的新闻衬线体,两端对齐,带引文摘录。",
+ "A precise grid, figures in a monospace, cobalt rules.": "精确的网格,等宽数字,钴蓝色分隔线。",
+ "A risograph zine: two spot inks, heavy capitals, offset shadows.": "孔版印刷小志:两种专色油墨、粗重大写、错位阴影。",
+ "A typewritten manuscript: one face, capitals, a two-colour ribbon.": "打字机手稿:单一字体、大写、双色色带。",
+ "Accent": "强调色",
+ "Accent bar": "强调竖条",
+ "Accent text": "强调色文字",
+ "Add a font file…": "添加字体文件…",
+ "Almanac": "年鉴",
+ "An editorial serif, a drop cap, and marigold for its accent.": "编辑风格的衬线体,首字下沉,以万寿菊黄为强调色。",
+ "As written": "按原样",
+ "Asterism": "星号分隔",
+ "Bands": "条带",
+ "Based on {name}. Only what you change here is stored.": "基于 {name}。只保存你在这里更改的内容。",
+ "Body": "正文",
+ "Book serif": "书籍衬线体",
+ "Broadsheet": "大报",
+ "Bullets": "项目符号",
+ "Callout colours": "标注颜色",
+ "Callouts": "标注",
+ "Capitals": "大写",
+ "Carried by this space.": "随此空间携带。",
+ "Cell 1": "单元 1",
+ "Cell 2": "单元 2",
+ "Cell 3": "单元 3",
+ "Checkboxes": "复选框",
+ "Code and figures": "代码与数字",
+ "Colours": "颜色",
+ "Condensed": "窄体",
+ "Corner radius": "圆角",
+ "Custom": "自定义",
+ "Customise design": "自定义设计",
+ "Customise…": "自定义…",
+ "Dash": "短横",
+ "Design": "设计",
+ "Disc": "圆点",
+ "Display italic": "标题斜体",
+ "Dividers": "分隔线",
+ "Done": "完成",
+ "Double rule": "双线",
+ "Double rule above": "上方双线",
+ "Drop cap": "首字下沉",
+ "Figures": "数字",
+ "Filled": "填充",
+ "Grid": "网格",
+ "Grotesque": "怪诞无衬线",
+ "Hairline": "细线",
+ "Hard offset": "硬边错位",
+ "Heading case": "标题大小写",
+ "Heading style": "标题样式",
+ "Heading weight": "标题字重",
+ "Headings": "标题",
+ "Heavy rule": "粗线",
+ "Humanist": "人文主义",
+ "Indented": "缩进",
+ "Justified text": "两端对齐",
+ "Label colour": "标签颜色",
+ "Layout": "版式",
+ "Ledger": "账簿",
+ "Line spacing": "行距",
+ "Lining": "等高数字",
+ "Monospace": "等宽",
+ "News serif": "新闻衬线体",
+ "None": "无",
+ "Off": "关",
+ "Offset shadow": "错位阴影",
+ "Old-style": "旧式数字",
+ "Old-style serif": "旧式衬线体",
+ "On": "开",
+ "One hue per tone": "每种类型一个色相",
+ "Outlined": "描边",
+ "Paper": "纸张",
+ "Plain": "朴素",
+ "Pull quote": "引文摘录",
+ "Quotes": "引用",
+ "Remove this design": "删除此设计",
+ "Riso": "孔版",
+ "Round": "圆形",
+ "Rounded": "圆体",
+ "Rule above": "上方线",
+ "Rule weight": "线条粗细",
+ "Rules": "分隔线",
+ "Rules above and below": "上下分隔线",
+ "Secondary text": "次要文字",
+ "Section heads": "节标题",
+ "Shadows": "阴影",
+ "Short bar": "短横线",
+ "Short bar below": "下方短横线",
+ "Small capitals": "小型大写",
+ "Studio": "工作室",
+ "System": "系统",
+ "Tables": "表格",
+ "Text colour": "文字颜色",
+ "Text on accent": "强调色上的文字",
+ "Text on tile": "方块上的文字",
+ "Text size": "文字大小",
+ "That is not a font file (.woff2, .woff, .ttf or .otf).": "这不是字体文件(.woff2、.woff、.ttf 或 .otf)。",
+ "The Bento tile: navy, slate, coral and cream compartments.": "Bento 方块:藏青、石板蓝、珊瑚色与奶油色的隔格。",
+ "The design travels with the file. Each reader’s light or dark setting picks between its two palettes.": "设计随文件一起传递。每位读者的浅色或深色设置会在它的两套配色中选择一套。",
+ "The look every space starts with.": "每个空间一开始的样子。",
+ "The notes named a design, so this space now uses it.": "这些笔记指定了一个设计,所以此空间现在使用它。",
+ "This font is {size}, and it travels inside the file. Embed it anyway?": "此字体大小为 {size},会随文件一起携带。仍要嵌入吗?",
+ "This space no longer uses a design of its own.": "此空间不再使用自己的设计。",
+ "Tile": "方块",
+ "Tiles": "方块拼贴",
+ "Tinted": "着色",
+ "Title letter spacing": "标题字距",
+ "Title line spacing": "标题行距",
+ "Title size": "标题大小",
+ "Title weight": "标题字重",
+ "Type": "字体",
+ "Typescript": "打字稿",
+ "Typewriter": "打字机",
+ "Underlined": "下划线",
+ "Upright": "正体",
+ "Wells": "底色区",
+ "{name}, customised": "{name}(自定义)",
"Export page as slides…": "将页面导出为幻灯片…",
"The page as a bento/slides deck, ready to paste into Bento Slides": "把页面做成 bento/slides 演示文稿,可直接粘贴进 Bento Slides",
"Export a page as slides": "将页面导出为幻灯片",
diff --git a/spaces/src/i18n/zh-Hant.ts b/spaces/src/i18n/zh-Hant.ts
index ce39fcc3..2f331ab9 100644
--- a/spaces/src/i18n/zh-Hant.ts
+++ b/spaces/src/i18n/zh-Hant.ts
@@ -668,6 +668,123 @@ export const zh_Hant: Catalog = {
"{pages} page(s) and {blocks} block(s) will travel.": "將帶走 {pages} 個頁面、{blocks} 個區塊。",
"{pages} pages · {links} links": "{pages} 個頁面 · {links} 條連結",
"⌘Z removes the imported pages again.": "按 ⌘Z 可以把匯入的頁面再撤銷掉。",
+ "A news serif under double rules, justified, with pull quotes.": "雙線下的新聞襯線體,左右對齊,附引文摘錄。",
+ "A precise grid, figures in a monospace, cobalt rules.": "精確的網格,等寬數字,鈷藍色分隔線。",
+ "A risograph zine: two spot inks, heavy capitals, offset shadows.": "孔版印刷小誌:兩種專色油墨、粗重大寫、錯位陰影。",
+ "A typewritten manuscript: one face, capitals, a two-colour ribbon.": "打字機手稿:單一字體、大寫、雙色色帶。",
+ "Accent": "強調色",
+ "Accent bar": "強調豎條",
+ "Accent text": "強調色文字",
+ "Add a font file…": "新增字型檔案…",
+ "Almanac": "年鑑",
+ "An editorial serif, a drop cap, and marigold for its accent.": "編輯風格的襯線體,首字放大,以萬壽菊黃為強調色。",
+ "As written": "按原樣",
+ "Asterism": "星號分隔",
+ "Bands": "條帶",
+ "Based on {name}. Only what you change here is stored.": "以 {name} 為基礎。只會儲存你在這裡變更的內容。",
+ "Body": "內文",
+ "Book serif": "書籍襯線體",
+ "Broadsheet": "大報",
+ "Bullets": "項目符號",
+ "Callout colours": "標註顏色",
+ "Callouts": "標註",
+ "Capitals": "大寫",
+ "Carried by this space.": "隨此空間攜帶。",
+ "Cell 1": "單元 1",
+ "Cell 2": "單元 2",
+ "Cell 3": "單元 3",
+ "Checkboxes": "核取方塊",
+ "Code and figures": "程式碼與數字",
+ "Colours": "顏色",
+ "Condensed": "窄體",
+ "Corner radius": "圓角",
+ "Custom": "自訂",
+ "Customise design": "自訂設計",
+ "Customise…": "自訂…",
+ "Dash": "短橫",
+ "Design": "設計",
+ "Disc": "圓點",
+ "Display italic": "標題斜體",
+ "Dividers": "分隔線",
+ "Done": "完成",
+ "Double rule": "雙線",
+ "Double rule above": "上方雙線",
+ "Drop cap": "首字放大",
+ "Figures": "數字",
+ "Filled": "填滿",
+ "Grid": "網格",
+ "Grotesque": "怪誕無襯線",
+ "Hairline": "細線",
+ "Hard offset": "硬邊錯位",
+ "Heading case": "標題大小寫",
+ "Heading style": "標題樣式",
+ "Heading weight": "標題字重",
+ "Headings": "標題",
+ "Heavy rule": "粗線",
+ "Humanist": "人文主義",
+ "Indented": "縮排",
+ "Justified text": "左右對齊",
+ "Label colour": "標籤顏色",
+ "Layout": "版式",
+ "Ledger": "帳簿",
+ "Line spacing": "行距",
+ "Lining": "等高數字",
+ "Monospace": "等寬",
+ "News serif": "新聞襯線體",
+ "None": "無",
+ "Off": "關",
+ "Offset shadow": "錯位陰影",
+ "Old-style": "舊式數字",
+ "Old-style serif": "舊式襯線體",
+ "On": "開",
+ "One hue per tone": "每種類型一個色相",
+ "Outlined": "描邊",
+ "Paper": "紙張",
+ "Plain": "樸素",
+ "Pull quote": "引文摘錄",
+ "Quotes": "引用",
+ "Remove this design": "移除此設計",
+ "Riso": "孔版",
+ "Round": "圓形",
+ "Rounded": "圓體",
+ "Rule above": "上方線",
+ "Rule weight": "線條粗細",
+ "Rules": "分隔線",
+ "Rules above and below": "上下分隔線",
+ "Secondary text": "次要文字",
+ "Section heads": "節標題",
+ "Shadows": "陰影",
+ "Short bar": "短橫線",
+ "Short bar below": "下方短橫線",
+ "Small capitals": "小型大寫",
+ "Studio": "工作室",
+ "System": "系統",
+ "Tables": "表格",
+ "Text colour": "文字顏色",
+ "Text on accent": "強調色上的文字",
+ "Text on tile": "方塊上的文字",
+ "Text size": "文字大小",
+ "That is not a font file (.woff2, .woff, .ttf or .otf).": "這不是字型檔案(.woff2、.woff、.ttf 或 .otf)。",
+ "The Bento tile: navy, slate, coral and cream compartments.": "Bento 方塊:藏青、石板藍、珊瑚色與奶油色的隔格。",
+ "The design travels with the file. Each reader’s light or dark setting picks between its two palettes.": "設計隨檔案一起傳遞。每位讀者的淺色或深色設定會在它的兩套配色中選擇一套。",
+ "The look every space starts with.": "每個空間一開始的樣子。",
+ "The notes named a design, so this space now uses it.": "這些筆記指定了一個設計,所以此空間現在使用它。",
+ "This font is {size}, and it travels inside the file. Embed it anyway?": "此字型大小為 {size},會隨檔案一起攜帶。仍要嵌入嗎?",
+ "This space no longer uses a design of its own.": "此空間不再使用自己的設計。",
+ "Tile": "方塊",
+ "Tiles": "方塊拼貼",
+ "Tinted": "著色",
+ "Title letter spacing": "標題字距",
+ "Title line spacing": "標題行距",
+ "Title size": "標題大小",
+ "Title weight": "標題字重",
+ "Type": "字體",
+ "Typescript": "打字稿",
+ "Typewriter": "打字機",
+ "Underlined": "底線",
+ "Upright": "正體",
+ "Wells": "底色區",
+ "{name}, customised": "{name}(自訂)",
"Export page as slides…": "將頁面匯出為投影片…",
"The page as a bento/slides deck, ready to paste into Bento Slides": "把頁面做成 bento/slides 簡報,可直接貼進 Bento Slides",
"Export a page as slides": "將頁面匯出為投影片",
diff --git a/spaces/src/main.ts b/spaces/src/main.ts
index 8d227b88..1c15f97f 100644
--- a/spaces/src/main.ts
+++ b/spaces/src/main.ts
@@ -7,6 +7,9 @@
import { SaveQueue } from '../../kernel/src/savequeue.ts'
import { saveRevision } from './saving'
import './styles.css'
+// AFTER styles.css: a design rule and the base rule it restyles often tie on
+// specificity, and the tie goes to the later sheet.
+import './designs.css'
import { configureApp, appConfig } from '../../kernel/src/app.ts'
import { startTheme } from '../../kernel/src/theme.ts'
import {
diff --git a/spaces/src/markdown.ts b/spaces/src/markdown.ts
index 09e6bbe5..ab6098c1 100644
--- a/spaces/src/markdown.ts
+++ b/spaces/src/markdown.ts
@@ -21,6 +21,7 @@ import { esc, externalHref } from './sanitize.ts'
import { takeDefinitions, mergeNotes, renameRefs } from './footnotes.ts'
import { parseEmbedLine, linkEmbeds } from './embed.ts'
import { keepClasses, PALETTE } from './marks.ts'
+import { readDesignFrontMatter } from './designs.ts'
/** A tab indents four columns. Nothing here depends on the exact number; it
* only has to be the same everywhere so nesting is consistent. */
@@ -223,6 +224,10 @@ export interface ParsedNote {
blocks: Block[]
/** the YAML between the leading `---` fences, verbatim */
frontmatter?: string
+ /** `design:` from the front matter — what this app's own export writes */
+ design?: string
+ /** `designs:` from the front matter: a design the file carried with it */
+ designs?: Record<string, unknown>
images: PendingImage[]
/** images pointing at the web: kept, but not loaded until a reader asks */
remoteImages: number
@@ -554,6 +559,20 @@ export function parseNote(text: string, fileTitle: string): ParsedNote {
}
}
+ // A DESIGN RIDES IN THE FRONT MATTER (designs.ts designFrontMatter). When
+ // design keys are ALL it holds — which is exactly what this app's export
+ // writes — it is consumed, not kept as a folded yaml block: a space that
+ // goes out and comes back must not grow a "Frontmatter" toggle each trip.
+ // Anything else keeps the old rule and is kept verbatim.
+ let design: string | undefined
+ let designs: Record<string, unknown> | undefined
+ if (frontmatter !== undefined) {
+ const fm = readDesignFrontMatter(frontmatter)
+ design = fm.design
+ designs = fm.designs
+ if (fm.onlyOurs && (design !== undefined || designs !== undefined)) frontmatter = undefined
+ }
+
let title = ''
{
let j = i
@@ -959,6 +978,8 @@ export function parseNote(text: string, fileTitle: string): ParsedNote {
title: title || fileTitle,
blocks,
...(frontmatter !== undefined ? { frontmatter } : {}),
+ ...(design !== undefined ? { design } : {}),
+ ...(designs !== undefined ? { designs } : {}),
images,
remoteImages,
tables,
@@ -1033,6 +1054,10 @@ export interface ImportStats {
export interface ImportPlan {
pages: Page[]
+ /** the first design a note named in its front matter (path order) */
+ design?: string
+ /** designs the notes carried, first writer wins per name */
+ designs?: Record<string, unknown>
/** local image references, still to be resolved against picked files */
images: PendingImage[]
stats: ImportStats
@@ -1175,6 +1200,8 @@ export function planImport(
}
// ---- fill the pages ------------------------------------------------------
+ let design: string | undefined
+ const designs: Record<string, unknown> = {}
for (const f of src) {
const note = parsed.get(f.path)!
const page = filePage.get(f.path)!
@@ -1185,6 +1212,8 @@ export function planImport(
page.blocks.push(...frontmatterBlocks(note.frontmatter))
}
page.blocks.push(...note.blocks)
+ if (note.design !== undefined && design === undefined) design = note.design
+ for (const [k, v] of Object.entries(note.designs ?? {})) if (!Object.hasOwn(designs, k)) designs[k] = v
if (note.footnotes) {
// PER FILE, while it is still known which blocks are this file's — after
// the loop every page is just a page and a rename could not be aimed.
@@ -1258,7 +1287,11 @@ export function planImport(
for (const p of pages) stats.blocks += p.blocks.length
stats.duplicateNames = collisions
stats.pages = pages.length
- return { pages, images, stats, footnotes }
+ return {
+ pages, images, stats, footnotes,
+ ...(design !== undefined ? { design } : {}),
+ ...(Object.keys(designs).length ? { designs } : {}),
+ }
}
/**
diff --git a/spaces/src/model.ts b/spaces/src/model.ts
index 865b2303..08e54739 100644
--- a/spaces/src/model.ts
+++ b/spaces/src/model.ts
@@ -395,6 +395,20 @@ export interface SpacesDoc {
/** the page shown on open; absent ⇒ pages[0] */
home?: string
theme: Theme
+ /**
+ * The page design the AUTHOR chose (DECISIONS 2026-09-26): a built-in name
+ * (designs.ts BUILT_INS) or a key of `designs`. ABSENT = the default look,
+ * and returning to the default DELETES the key. An unknown name renders the
+ * default and round-trips untouched. Document-wide today; a per-page
+ * `Page.design` would resolve through the same function and override it.
+ */
+ design?: string
+ /**
+ * Designs this document carries itself, by name: overrides on a built-in
+ * base, every value validated before use (designs.ts resolveData). A name
+ * that is also a built-in's is never used.
+ */
+ designs?: Record<string, unknown>
assets?: Record<string, string>
/**
* FOOTNOTES, by label → inline html. See src/footnotes.ts for the whole
@@ -637,10 +651,16 @@ export function docContentKey(doc: SpacesDoc): string {
// crash, and without them here a session whose only change was "save this
// page as a template" would compare equal and lose it.
//
+ // The design is content as well: a crash right after choosing one must still
+ // offer the recovery. It is appended ONLY when present, so a document with
+ // no design keys exactly as it did before designs existed.
+ //
// ONE return. Each field arrived on its own branch with its own `return`
// line, and a merge that kept both left the second one dead — footnotes
// silently dropped out of recovery. New content fields are APPENDED here.
- return JSON.stringify([doc.title, doc.home, doc.pages, doc.footnotes, doc.templates, doc.journalTemplate])
+ const key: unknown[] = [doc.title, doc.home, doc.pages, doc.footnotes, doc.templates, doc.journalTemplate]
+ if (doc.design !== undefined || doc.designs !== undefined) key.push(doc.design ?? null, doc.designs ?? null)
+ return JSON.stringify(key)
}
// ---- derived, NEVER stored -------------------------------------------------
diff --git a/spaces/src/portable.ts b/spaces/src/portable.ts
index a049c73d..ed5e3cd9 100644
--- a/spaces/src/portable.ts
+++ b/spaces/src/portable.ts
@@ -18,6 +18,7 @@
// `.ts` extensions ON PURPOSE: node resolves this module directly for the rig.
import { type SpacesDoc, type Page, type Block, repairId, pageAssetKeys } from './model.ts'
+import { designAssetKeys } from './designs.ts'
import { esc } from './sanitize.ts'
import { isPageRef } from './embed.ts'
import { allNotes, mergeNotes, renameRefs } from './footnotes.ts'
@@ -217,6 +218,9 @@ export function extractSpace(
// Dropping it changes how the extract LOOKS, which an export must not do.
const fonts = (doc.fonts ?? []).filter((f) => (doc.assets ?? {})[f.asset] !== undefined)
for (const f of fonts) used.add(f.asset)
+ // …and so is a face the space's DESIGN embeds: `design`/`designs` travel
+ // with the clone below, so the bytes they name must travel too
+ for (const k of designAssetKeys(doc)) used.add(k)
const assets: Record<string, string> = {}
for (const k of used) {
const v = (doc.assets ?? {})[k]
diff --git a/spaces/src/preview.ts b/spaces/src/preview.ts
index 2543ec90..86ef3743 100644
--- a/spaces/src/preview.ts
+++ b/spaces/src/preview.ts
@@ -42,10 +42,19 @@
// So the preview is the one surface in this app that stays the author's in
// both themes, exactly as a thumbnail of a document should. If that ever
// changes it has to change with the FORMAT, not with a media query.
+//
+// AND IT DRAWS THE DOCUMENT'S DESIGN (2026-09-26). A thumbnail is the
+// document's face, and a space set in Almanac that thumbnails as the default
+// look is lying about itself. The design is the AUTHOR's, so it belongs here
+// for the same reason `doc.theme` does — and it is drawn in its LIGHT palette,
+// because there is still no reader to ask. designs.ts `previewRules` supplies
+// it as flat values — no custom properties, no color-mix() — and they go on as
+// INLINE styles through the CSSOM, never into the <style> block below.
import type { SpacesDoc, Page } from './model'
import { renderPage } from './render'
import { homePage } from './model'
+import { resolveDesign, previewRules, applyPreviewRules } from './designs.ts'
/** Above this the preview is trimmed, then dropped to a title card. A preview
* is a courtesy; it must never be why a file is large. */
@@ -211,6 +220,11 @@ function wrap(inner: HTMLElement, doc: SpacesDoc): HTMLElement {
style.textContent = SHEET(doc)
box.appendChild(style)
box.appendChild(inner)
+ // THE DESIGN GOES ON AS INLINE STYLES, NEVER INTO THE <style> ABOVE: this
+ // node is written into the saved shell, and author-chosen values must not
+ // become raw text inside a style element there (designs.ts previewRules).
+ const design = resolveDesign(doc)
+ if (design) applyPreviewRules(box, previewRules(design))
return box
}
diff --git a/spaces/src/styles.css b/spaces/src/styles.css
index 3df856ab..e4682338 100644
--- a/spaces/src/styles.css
+++ b/spaces/src/styles.css
@@ -25,7 +25,10 @@
most of the window: not a dark interface, and a re-introduction of the
floating-card look that was deliberately removed.
- So in spaces the reading surface IS chrome, and it follows the reader.
+ So in spaces the reading surface IS chrome, and it follows the reader —
+ UNTIL THE DOCUMENT HAS A DESIGN (DECISIONS, 2026-09-26). Then the author's
+ design owns the surface and the reader's theme picks between its two
+ palettes; designs.css does that, and nothing in this file changes for it.
`doc.theme.background/color/accent` still exist in the format and are still
the DOCUMENT's own colours — but the only thing that paints them is the
static file-manager preview (preview.ts), which renders with scripting off,
@@ -2866,3 +2869,32 @@ body.sp-canvas-dragging { user-select: none; cursor: grabbing; }
flex PARENT; dropped into a plain span each became a block of its own. */
.sp-tpl-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sp-tpl-name svg { width: 15px; height: 15px; display: block; color: var(--muted); }
+
+/* ————— the design picker and the customise panel —————
+ CHROME: the app's controls for choosing a design, drawn in the app's
+ tokens. The designs themselves live in designs.css and never reach here —
+ the panel sits on <body>, outside the reading surface. */
+.sp-dsg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; margin: 2px 4px 8px; }
+.sp-dsg-choice strong { display: flex; align-items: center; gap: 7px; }
+.sp-dsg-sw { display: inline-flex; flex: 0 0 auto; border-radius: 4px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
+.sp-dsg-sw b { width: 9px; height: 14px; display: block; }
+.sp-dsg-panel {
+ position: fixed; z-index: 55; top: 58px; bottom: 12px; inset-inline-end: 12px;
+ width: min(340px, calc(100vw - 24px)); overflow: auto;
+ background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
+ box-shadow: 0 12px 34px rgb(var(--shade) / .2); padding: 10px 12px 12px;
+}
+.sp-dsg-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
+.sp-dsg-sub { font-size: 12px; font-weight: 600; color: var(--muted); margin: 14px 0 6px; }
+.sp-dsg-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 3px 0; font-size: 13px; }
+.sp-dsg-row > span { color: var(--ink-2); }
+.sp-dsg-row .sp-select, .sp-dsg-row .sp-input { max-width: 58%; }
+.sp-dsg-range { display: inline-flex; align-items: center; gap: 6px; }
+.sp-dsg-range input { width: 120px; }
+.sp-dsg-range output { min-width: 38px; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--muted); }
+.sp-dsg-cols { display: grid; grid-template-columns: 1fr 48px 48px; gap: 4px 8px; align-items: center; font-size: 13px; }
+.sp-dsg-cols > span { color: var(--ink-2); }
+.sp-dsg-cols > span:nth-child(2), .sp-dsg-cols > span:nth-child(3) { font-size: 11.5px; color: var(--muted); text-align: center; }
+.sp-dsg-cols input[type='color'] { width: 44px; height: 26px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--field); }
+@media (max-width: 720px) { .sp-dsg-panel { top: auto; height: 62vh; inset-inline: 8px; width: auto; } }
+@media print { .sp-dsg-panel { display: none !important; } }