AI-native design editor. Open-source Figma alternative.
refactor: size the interface in rem (#1693)
Danila Poyarkov72c3a9ea0d49
diff --git a/oxlint.json b/oxlint.jsonindex dafc009c5..c61516487 100644--- a/oxlint.json+++ b/oxlint.json@@ -182,6 +182,7 @@"open-pencil/no-math-random": "error","open-pencil/no-hardcoded-color-constants": "error","open-pencil/no-unknown-tailwind-classes": "error",+ "open-pencil/no-px-tailwind-values": "error","open-pencil/no-hand-rolled-color": "error","open-pencil/no-raw-console-format": "off","open-pencil/no-silent-catch": "error",diff --git a/packages/vue/src/canvas/examples/CanvasRootExample.vue b/packages/vue/src/canvas/examples/CanvasRootExample.vueindex d62425d2a..ab7164eb9 100644--- a/packages/vue/src/canvas/examples/CanvasRootExample.vue+++ b/packages/vue/src/canvas/examples/CanvasRootExample.vue@@ -20,6 +20,6 @@ provideEditor(editor)<template><CanvasRoot v-slot="{ ready }" :show-rulers="false">- <CanvasSurface class="block h-[400px] w-[600px]" :data-ready="ready || undefined" />+ <CanvasSurface class="block h-100 w-150" :data-ready="ready || undefined" /></CanvasRoot></template>diff --git a/packages/vue/src/canvas/examples/PresenceCursors.vue b/packages/vue/src/canvas/examples/PresenceCursors.vueindex f90a84077..b3e13c62b 100644--- a/packages/vue/src/canvas/examples/PresenceCursors.vue+++ b/packages/vue/src/canvas/examples/PresenceCursors.vue@@ -48,6 +48,6 @@ watchEffect(() => {<template><CanvasRoot :show-rulers="false">- <CanvasSurface class="block h-[400px] w-[600px]" />+ <CanvasSurface class="block h-100 w-150" /></CanvasRoot></template>diff --git a/packages/vue/src/primitives/BindableValue/examples/States.vue b/packages/vue/src/primitives/BindableValue/examples/States.vueindex 6f53854eb..519671247 100644--- a/packages/vue/src/primitives/BindableValue/examples/States.vue+++ b/packages/vue/src/primitives/BindableValue/examples/States.vue@@ -122,11 +122,11 @@ const pickerTarget: BindingTarget[] = [{ nodeId: 'picker', path: 'width' }]<template><div- class="w-full max-w-[560px] space-y-5 rounded-lg border border-[var(--vp-c-divider)] bg-[var(--vp-c-bg-soft)] p-5 text-[var(--vp-c-text-1)]"+ class="w-full max-w-140 space-y-5 rounded-lg border border-[var(--vp-c-divider)] bg-[var(--vp-c-bg-soft)] p-5 text-[var(--vp-c-text-1)]"><div class="grid grid-cols-1 gap-3 sm:grid-cols-2"><div>- <p class="mb-1 text-[11px] text-[var(--vp-c-text-2)]">Detach on edit</p>+ <p class="mb-1 text-2xs text-[var(--vp-c-text-2)]">Detach on edit</p><BindableValueRootv-slot="{ stateAttrs }":provider="provider"@@ -140,7 +140,7 @@ const pickerTarget: BindingTarget[] = [{ nodeId: 'picker', path: 'width' }]><divv-bind="{ ...attrs, ...stateAttrs }"- class="flex h-[26px] items-center rounded bg-[var(--vp-c-bg-alt)] px-2 text-xs data-[bound]:text-[var(--vp-c-brand-1)]"+ class="flex h-6.5 items-center rounded bg-[var(--vp-c-bg-alt)] px-2 text-xs data-[bound]:text-[var(--vp-c-brand-1)]"@pointerdown="!editing && actions.startScrub($event)"><NumberFieldInput class="min-w-0 flex-1 bg-transparent outline-none" />@@ -151,7 +151,7 @@ const pickerTarget: BindingTarget[] = [{ nodeId: 'picker', path: 'width' }]</div><div>- <p class="mb-1 text-[11px] text-[var(--vp-c-text-2)]">Read-only bound</p>+ <p class="mb-1 text-2xs text-[var(--vp-c-text-2)]">Read-only bound</p><BindableValueRootv-slot="{ stateAttrs }":provider="provider"@@ -166,7 +166,7 @@ const pickerTarget: BindingTarget[] = [{ nodeId: 'picker', path: 'width' }]><divv-bind="{ ...attrs, ...stateAttrs }"- class="flex h-[26px] items-center rounded bg-[var(--vp-c-bg-alt)] px-2 text-xs data-[bound]:text-[var(--vp-c-brand-1)]"+ class="flex h-6.5 items-center rounded bg-[var(--vp-c-bg-alt)] px-2 text-xs data-[bound]:text-[var(--vp-c-brand-1)]"@pointerdown="!editing && actions.startScrub($event)"><NumberFieldInput class="min-w-0 flex-1 bg-transparent outline-none" />@@ -177,7 +177,7 @@ const pickerTarget: BindingTarget[] = [{ nodeId: 'picker', path: 'width' }]</div><div>- <p class="mb-1 text-[11px] text-[var(--vp-c-text-2)]">Edit variable</p>+ <p class="mb-1 text-2xs text-[var(--vp-c-text-2)]">Edit variable</p><BindableValueRootv-slot="{ stateAttrs }":provider="provider"@@ -192,7 +192,7 @@ const pickerTarget: BindingTarget[] = [{ nodeId: 'picker', path: 'width' }]><divv-bind="{ ...attrs, ...stateAttrs }"- class="flex h-[26px] items-center rounded bg-[var(--vp-c-bg-alt)] px-2 text-xs data-[bound]:text-[var(--vp-c-brand-1)]"+ class="flex h-6.5 items-center rounded bg-[var(--vp-c-bg-alt)] px-2 text-xs data-[bound]:text-[var(--vp-c-brand-1)]"@pointerdown="!editing && actions.startScrub($event)"><NumberFieldInput class="min-w-0 flex-1 bg-transparent outline-none" />@@ -203,7 +203,7 @@ const pickerTarget: BindingTarget[] = [{ nodeId: 'picker', path: 'width' }]</div><div>- <p class="mb-1 text-[11px] text-[var(--vp-c-text-2)]">Mixed bindings</p>+ <p class="mb-1 text-2xs text-[var(--vp-c-text-2)]">Mixed bindings</p><BindableValueRootv-slot="{ state, stateAttrs }":provider="provider"@@ -212,7 +212,7 @@ const pickerTarget: BindingTarget[] = [{ nodeId: 'picker', path: 'width' }]><divv-bind="stateAttrs"- class="flex h-[26px] items-center rounded bg-[var(--vp-c-bg-alt)] px-2 text-xs text-[var(--vp-c-text-2)]"+ class="flex h-6.5 items-center rounded bg-[var(--vp-c-bg-alt)] px-2 text-xs text-[var(--vp-c-text-2)]"aria-label="Mixed binding value">{{ state }}diff --git a/packages/vue/src/primitives/CommandPalette/examples/States.vue b/packages/vue/src/primitives/CommandPalette/examples/States.vueindex 6f195953b..fe3de63c0 100644--- a/packages/vue/src/primitives/CommandPalette/examples/States.vue+++ b/packages/vue/src/primitives/CommandPalette/examples/States.vue@@ -48,8 +48,8 @@ const groups: CommandPaletteGroup[] = [root: 'w-[min(40rem,100%)] overflow-hidden rounded-xl border border-border bg-panel text-surface shadow-xl',search: 'h-12 w-full border-b border-border bg-transparent px-4 text-sm outline-none',content: 'max-h-96 overflow-y-auto p-2',- label: 'px-2 py-1 text-[11px] text-muted',- item: 'flex h-8 cursor-pointer items-center gap-2 rounded-md p-1 text-[13px] data-[highlighted]:bg-hover',+ label: 'px-2 py-1 text-2xs text-muted',+ item: 'flex h-8 cursor-pointer items-center gap-2 rounded-md p-1 text-[0.8125rem] data-[highlighted]:bg-hover',itemIcon: 'flex size-6 shrink-0 items-center justify-center text-muted',itemLabel: 'min-w-0 flex-1 truncate',shortcut: 'flex items-center gap-1 text-xs text-muted',diff --git a/packages/vue/src/primitives/Fill/examples/States.vue b/packages/vue/src/primitives/Fill/examples/States.vueindex 3e0bf5e90..d355edeeb 100644--- a/packages/vue/src/primitives/Fill/examples/States.vue+++ b/packages/vue/src/primitives/Fill/examples/States.vue@@ -57,7 +57,7 @@ const provider: BindingProvider<Color> = {<template><div- class="w-full max-w-[560px] space-y-5 rounded-lg border border-[var(--vp-c-divider)] bg-[var(--vp-c-bg-soft)] p-5 text-[var(--vp-c-text-1)]"+ class="w-full max-w-140 space-y-5 rounded-lg border border-[var(--vp-c-divider)] bg-[var(--vp-c-bg-soft)] p-5 text-[var(--vp-c-text-1)]"><section><h3 class="mb-2 text-sm font-semibold">Fill swatches</h3>@@ -68,7 +68,7 @@ const provider: BindingProvider<Color> = {v-slot="swatch":fill="item":label="`${name} fill`"- class="relative size-10 overflow-hidden rounded-md border border-[var(--vp-c-divider)] bg-[conic-gradient(#ddd_25%,#fff_0_50%,#ddd_0_75%,#fff_0)] bg-[size:10px_10px]"+ class="relative size-10 overflow-hidden rounded-md border border-[var(--vp-c-divider)] bg-[conic-gradient(#ddd_25%,#fff_0_50%,#ddd_0_75%,#fff_0)] bg-[size:0.625rem_0.625rem]"><span class="absolute inset-0" :style="{ background: swatch.background }" /></FillSwatch>diff --git a/packages/vue/src/primitives/NumberField/examples/States.vue b/packages/vue/src/primitives/NumberField/examples/States.vueindex 17e89c5ec..e41e62937 100644--- a/packages/vue/src/primitives/NumberField/examples/States.vue+++ b/packages/vue/src/primitives/NumberField/examples/States.vue@@ -20,11 +20,11 @@ const bound = ref<number | symbol>(8)<template><div- class="w-full max-w-[520px] rounded-lg border border-[var(--vp-c-divider)] bg-[var(--vp-c-bg-soft)] p-5 text-[var(--vp-c-text-1)]"+ class="w-full max-w-130 rounded-lg border border-[var(--vp-c-divider)] bg-[var(--vp-c-bg-soft)] p-5 text-[var(--vp-c-text-1)]"><div><p class="mb-1 text-xs font-semibold">Interactive anatomy</p>- <p class="mb-2 text-[11px] text-[var(--vp-c-text-2)]">Try +10, *2, 50%, or 12*8+4</p>+ <p class="mb-2 text-2xs text-[var(--vp-c-text-2)]">Try +10, *2, 50%, or 12*8+4</p><NumberFieldRootv-slot="{ attrs, editing, actions }"v-model="value"@@ -35,7 +35,7 @@ const bound = ref<number | symbol>(8)><divv-bind="attrs"- class="flex h-[26px] w-56 items-center overflow-hidden rounded border border-transparent bg-[var(--vp-c-bg-alt)] text-xs outline-none focus-within:border-[var(--vp-c-brand-1)]"+ class="flex h-6.5 w-56 items-center overflow-hidden rounded border border-transparent bg-[var(--vp-c-bg-alt)] text-xs outline-none focus-within:border-[var(--vp-c-brand-1)]"@pointerdown="!editing && actions.startScrub($event)"><NumberFieldLeading class="px-2 text-[var(--vp-c-text-2)]">W</NumberFieldLeading>@@ -43,12 +43,12 @@ const bound = ref<number | symbol>(8)<NumberFieldValue class="min-w-0 flex-1 truncate" /><NumberFieldUnit class="pr-1 text-[var(--vp-c-text-2)]">px</NumberFieldUnit><NumberFieldTrailing- class="flex size-[26px] items-center justify-center text-[var(--vp-c-text-2)]"+ class="flex size-6.5 items-center justify-center text-[var(--vp-c-text-2)]">R</NumberFieldTrailing><NumberFieldMenu- class="flex size-[26px] items-center justify-center text-[var(--vp-c-text-2)]"+ class="flex size-6.5 items-center justify-center text-[var(--vp-c-text-2)]">M</NumberFieldMenu>@@ -58,7 +58,7 @@ const bound = ref<number | symbol>(8)<div class="mt-5 grid grid-cols-1 gap-1.5 sm:grid-cols-3"><div>- <p class="mb-1 text-[11px] text-[var(--vp-c-text-2)]">Mixed</p>+ <p class="mb-1 text-2xs text-[var(--vp-c-text-2)]">Mixed</p><NumberFieldRootv-slot="{ attrs, editing, actions }"v-model="mixed"@@ -66,7 +66,7 @@ const bound = ref<number | symbol>(8)><divv-bind="attrs"- class="flex h-[26px] min-w-0 items-center overflow-hidden rounded border border-transparent bg-[var(--vp-c-bg-alt)] px-2 text-xs outline-none focus-within:border-[var(--vp-c-brand-1)]"+ class="flex h-6.5 min-w-0 items-center overflow-hidden rounded border border-transparent bg-[var(--vp-c-bg-alt)] px-2 text-xs outline-none focus-within:border-[var(--vp-c-brand-1)]"@pointerdown="!editing && actions.startScrub($event)"><NumberFieldInput class="min-w-0 flex-1 border-0 bg-transparent outline-none" />@@ -76,7 +76,7 @@ const bound = ref<number | symbol>(8)</div><div>- <p class="mb-1 text-[11px] text-[var(--vp-c-text-2)]">Disabled</p>+ <p class="mb-1 text-2xs text-[var(--vp-c-text-2)]">Disabled</p><NumberFieldRootv-slot="{ attrs }"v-model="disabled"@@ -85,7 +85,7 @@ const bound = ref<number | symbol>(8)><divv-bind="attrs"- class="flex h-[26px] min-w-0 items-center overflow-hidden rounded border border-transparent bg-[var(--vp-c-bg-alt)] px-2 text-xs text-[var(--vp-c-text-2)] opacity-60"+ class="flex h-6.5 min-w-0 items-center overflow-hidden rounded border border-transparent bg-[var(--vp-c-bg-alt)] px-2 text-xs text-[var(--vp-c-text-2)] opacity-60"><NumberFieldValue /></div>@@ -93,7 +93,7 @@ const bound = ref<number | symbol>(8)</div><div>- <p class="mb-1 text-[11px] text-[var(--vp-c-text-2)]">Bound</p>+ <p class="mb-1 text-2xs text-[var(--vp-c-text-2)]">Bound</p><NumberFieldRootv-slot="{ attrs, editing, actions }"v-model="bound"@@ -102,7 +102,7 @@ const bound = ref<number | symbol>(8)><divv-bind="attrs"- class="flex h-[26px] min-w-0 items-center overflow-hidden rounded border border-transparent bg-[var(--vp-c-bg-alt)] px-2 text-xs text-[var(--vp-c-brand-1)] outline-none focus-within:border-[var(--vp-c-brand-1)]"+ class="flex h-6.5 min-w-0 items-center overflow-hidden rounded border border-transparent bg-[var(--vp-c-bg-alt)] px-2 text-xs text-[var(--vp-c-brand-1)] outline-none focus-within:border-[var(--vp-c-brand-1)]"@pointerdown="!editing && actions.startScrub($event)"><NumberFieldInput class="min-w-0 flex-1 border-0 bg-transparent outline-none" />diff --git a/packages/vue/src/primitives/PropertySection/examples/States.vue b/packages/vue/src/primitives/PropertySection/examples/States.vueindex c83f62660..dace1a2b1 100644--- a/packages/vue/src/primitives/PropertySection/examples/States.vue+++ b/packages/vue/src/primitives/PropertySection/examples/States.vue@@ -48,7 +48,7 @@ function toggleFill(index: number) {<template><div- class="grid w-full max-w-[620px] gap-4 rounded-lg border border-[var(--vp-c-divider)] bg-[var(--vp-c-bg-soft)] p-5 text-xs text-[var(--vp-c-text-1)] sm:grid-cols-2"+ class="grid w-full max-w-155 gap-4 rounded-lg border border-[var(--vp-c-divider)] bg-[var(--vp-c-bg-soft)] p-5 text-xs text-[var(--vp-c-text-1)] sm:grid-cols-2"><div class="space-y-3"><PropertySectionRootdiff --git a/src/AGENTS.md b/src/AGENTS.mdindex 96dfc9fc4..49b227ccc 100644--- a/src/AGENTS.md+++ b/src/AGENTS.md@@ -71,6 +71,7 @@ The supported browser baseline lives in `src/app/shell/support/baseline.ts` and- Use Reka UI primitives and typed Tailwind Variants themes under `src/theme/**`; merge per-instance `ui` slot overrides, expose `class` for single-root components, and do not add one-off class props. Use `UI` casing in type names. App wrappers around SDK primitives use shared UI helpers rather than scattered raw classes.- Design tokens, custom variants, and custom utilities live in `src/theme/tokens.css`, which the docs site also imports; `src/app.css` keeps only the app's document-level rules.- Tailwind 4 and `tw-animate-css`; no static inline styling or component `<style>` blocks. Dynamic `:style` bindings are allowed for runtime geometry and CSS variables.+- Size the interface in rem so it follows the root font size: Tailwind's scale, the `text-2xs`…`text-5xs` tokens, or a rem arbitrary value, never `[Npx]`; script geometry such as virtualized rows multiplies rem by `remToPx` (`open-pencil/no-px-tailwind-values`; `src/components/LayerTree/geometry.ts`). A field that stands in for something the canvas draws in screen pixels takes the canvas's pixel constants through `:style` instead (`src/components/canvas/labels/CanvasLabelEditor.vue`).- Colors are the `--color-*` tokens in `src/theme/tokens.css`, each defined for both themes; statuses use one family each: `error` and `warning` have a text color, a `-bg` tint, and a `-border`, `success` a text color; `error-fill` and `success-fill` are solid, and `warning-action` colors buttons on the warning tint. Name the token's utility (`text-warning`), not `[var(--color-warning)]` or a default palette color (`open-pencil/no-unknown-tailwind-classes`).- Bind visual state through semantic `data-*` attributes. Steiger rejects template-time `use*UI()`, visual-state utility branches, and raw SVG app icons.- `Tip`, not native `title`; Lucide/Iconify components, not raw SVG or Unicode icons; `e.code`, not `e.key`, for modified shortcuts.diff --git a/src/app.css b/src/app.cssindex d04071912..53d32b963 100644--- a/src/app.css+++ b/src/app.css@@ -15,7 +15,7 @@ body,body {font-family: Inter, system-ui, -apple-system, sans-serif;- font-size: 13px;+ font-size: 0.8125rem;color: var(--color-surface);background: var(--color-canvas);user-select: none;diff --git a/src/app/shell/layout-storage.ts b/src/app/shell/layout-storage.tsindex 91b86c84c..c2caff5c9 100644--- a/src/app/shell/layout-storage.ts+++ b/src/app/shell/layout-storage.ts@@ -3,14 +3,16 @@ import * as v from 'valibot'import { IS_BROWSER } from '@open-pencil/core/constants'+import { remToPx } from './root-font-size'+const EDITOR_LAYOUT_KEY = 'open-pencil:editor-layout'/** The left panel's share of the window, in percent, when the editor first opens. */const DEFAULT_LEFT_PANEL = 18/**- * How wide the right panel opens, in pixels, whatever the window's width: wide enough for its- * fields and the AI chat, without growing on a large screen as a share of the window would.+ * How wide the right panel opens, in rem, whatever the window's width: wide enough for its fields+ * and the AI chat at the interface size, without growing on a large screen as a share would.*/-const DEFAULT_RIGHT_PANEL_WIDTH = 256+const DEFAULT_RIGHT_PANEL_REM = 16/** The window width a layout is made for before there is a window, as in tests. */const NOMINAL_WINDOW_WIDTH = 1280@@ -18,7 +20,7 @@ const NOMINAL_WINDOW_WIDTH = 1280function defaultEditorLayout(): number[] {const width = IS_BROWSER && window.innerWidth > 0 ? window.innerWidth : NOMINAL_WINDOW_WIDTH// Within the right panel's own limits in EditorWorkspace.vue.- const right = clamp((DEFAULT_RIGHT_PANEL_WIDTH / width) * 100, 10, 30)+ const right = clamp((remToPx(DEFAULT_RIGHT_PANEL_REM) / width) * 100, 10, 30)return [DEFAULT_LEFT_PANEL, 100 - DEFAULT_LEFT_PANEL - right, right]}diff --git a/src/app/shell/root-font-size.ts b/src/app/shell/root-font-size.tsnew file mode 100644index 000000000..4bd50ea14--- /dev/null+++ b/src/app/shell/root-font-size.ts@@ -0,0 +1,31 @@+import { useMutationObserver } from '@vueuse/core'+import { shallowRef } from 'vue'++const DEFAULT_ROOT_FONT_SIZE = 16++function readRootFontSize(): number {+ if (typeof document === 'undefined') return DEFAULT_ROOT_FONT_SIZE+ const size = Number.parseFloat(getComputedStyle(document.documentElement).fontSize)+ return Number.isFinite(size) && size > 0 ? size : DEFAULT_ROOT_FONT_SIZE+}++/**+ * What 1rem is, in CSS pixels. Interface sizes are in rem so the whole interface follows the root+ * font size; this tracks it for the geometry script has to compute in pixels.+ */+export const rootFontSize = shallowRef(readRootFontSize())++if (typeof document !== 'undefined') {+ useMutationObserver(+ document.documentElement,+ () => {+ rootFontSize.value = readRootFontSize()+ },+ { attributes: true }+ )+}++/** `rem` in CSS pixels at the current root font size. */+export function remToPx(rem: number): number {+ return rem * rootFontSize.value+}diff --git a/src/components/CodePanel.vue b/src/components/CodePanel.vueindex f19b527e1..c49db4f8a 100644--- a/src/components/CodePanel.vue+++ b/src/components/CodePanel.vue@@ -402,7 +402,7 @@ watch(:options="sourceOptions":label="code.source"data-test-id="code-panel-source"- :ui="{ trigger: 'h-7 min-w-0 flex-1 text-[11px]' }"+ :ui="{ trigger: 'h-7 min-w-0 flex-1 text-2xs' }"@update:model-value="changeSource"/><SegmentedControl@@ -469,7 +469,7 @@ watch(v-if="error"role="alert"data-test-id="code-panel-error"- class="shrink-0 border-t border-error-border bg-error-bg px-3 py-2 text-[11px] leading-snug text-error"+ class="shrink-0 border-t border-error-border bg-error-bg px-3 py-2 text-2xs leading-snug text-error">{{ error }}</div>diff --git a/src/components/LayerTree/LayerTree.vue b/src/components/LayerTree/LayerTree.vueindex 9dc60f159..ee0173793 100644--- a/src/components/LayerTree/LayerTree.vue+++ b/src/components/LayerTree/LayerTree.vue@@ -28,7 +28,7 @@ import { appPreferences } from '@/app/settings/preferences/store'import layerTreeTheme from '@/theme/layer-tree'import CanvasMenu from '../canvas/CanvasMenu.vue'-import { LAYER_TREE_ROW_HEIGHT } from './geometry'+import { useLayerTreeGeometry } from './geometry'import LayerTreeNodeRow from './LayerTreeNodeRow.vue'import LayerTreeRenameRow from './LayerTreeRenameRow.vue'import LayerTreeStickyRow from './LayerTreeStickyRow.vue'@@ -54,7 +54,7 @@ defineOptions({ inheritAttrs: false })const { ui } = defineProps<{ ui?: LayerTreeUI }>()-const INDENT = 16+const { rowHeight, indent } = useLayerTreeGeometry()const attrs = useAttrs()const styles = tv(layerTreeTheme)()provideLayerTreeUI(() => ui)@@ -90,7 +90,7 @@ watch(/** Rename the pinned layer on its own row: scroll the list back to it, then start. */async function renamePinned(id: string, name: string, index: number) {- if (viewport.value) viewport.value.scrollTop = index * LAYER_TREE_ROW_HEIGHT+ if (viewport.value) viewport.value.scrollTop = index * rowHeight.valueawait nextTick()rename.start(id, name)}@@ -152,7 +152,7 @@ function chrome(scope: Omit<LayerTreeSlotScope, 'actions'>) {instruction: scope.instruction,instructionTargetId: scope.instructionTargetId,focused: scope.focused,- indent: INDENT+ indent: indent.value}}@@ -165,13 +165,13 @@ function revealRow(rows: readonly LayerRow[], index: number) {const row = rows.at(index)if (!el || !row) return// A layer showing as the pinned row is in view already, so selecting it keeps the list still.- if (stickyTopLevelRow(rows, el.scrollTop, LAYER_TREE_ROW_HEIGHT)?.index === index) return- const top = index * LAYER_TREE_ROW_HEIGHT- const pinned = row.level > 1 ? LAYER_TREE_ROW_HEIGHT : 0+ if (stickyTopLevelRow(rows, el.scrollTop, rowHeight.value)?.index === index) return+ const top = index * rowHeight.value+ const pinned = row.level > 1 ? rowHeight.value : 0if (top - pinned < el.scrollTop) {el.scrollTop = Math.max(0, top - pinned)- } else if (top + LAYER_TREE_ROW_HEIGHT > el.scrollTop + el.clientHeight) {- el.scrollTop = top + LAYER_TREE_ROW_HEIGHT - el.clientHeight+ } else if (top + rowHeight.value > el.scrollTop + el.clientHeight) {+ el.scrollTop = top + rowHeight.value - el.clientHeight}}@@ -203,7 +203,7 @@ function onFocusOut(event: FocusEvent, actions: LayerTreeRootActions) {</script><template>- <LayerTreeRoot v-slot="scope" :indent-per-level="INDENT">+ <LayerTreeRoot v-slot="scope" :indent-per-level="indent"><ContextMenuRoot :modal="false"><!-- The trigger covers the pinned row too, so right-clicking it opens the layer menu. --><ContextMenuTrigger as-child @contextmenu="onLayerRightClick">@@ -221,7 +221,8 @@ function onFocusOut(event: FocusEvent, actions: LayerTreeRootActions) {><TreeVirtualizerv-slot="{ item, virtualizer }"- :estimate-size="LAYER_TREE_ROW_HEIGHT"+ :key="rowHeight"+ :estimate-size="rowHeight":text-content="layerTextContent"><templatediff --git a/src/components/LayerTree/LayerTreeNodeRow.vue b/src/components/LayerTree/LayerTreeNodeRow.vueindex fc8f2fb02..d621db83b 100644--- a/src/components/LayerTree/LayerTreeNodeRow.vue+++ b/src/components/LayerTree/LayerTreeNodeRow.vue@@ -99,7 +99,7 @@ const styles = computed(() =>v-for="name in modeNames":key="name"data-slot="variable-mode"- class="shrink-0 rounded-full border border-current/40 px-1.5 text-[10px] leading-3.5"+ class="shrink-0 rounded-full border border-current/40 px-1.5 text-3xs leading-3.5">{{ name }}</span>diff --git a/src/components/LayerTree/LayerTreeRowShell.vue b/src/components/LayerTree/LayerTreeRowShell.vueindex 478b6fec4..e5261ef32 100644--- a/src/components/LayerTree/LayerTreeRowShell.vue+++ b/src/components/LayerTree/LayerTreeRowShell.vue@@ -1,11 +1,12 @@<script setup lang="ts">-import { LAYER_TREE_ROW_HEIGHT } from './geometry'+import { useLayerTreeGeometry } from './geometry'const { padLeft } = defineProps<{ padLeft: string }>()+const { rowHeight } = useLayerTreeGeometry()</script><template>- <div :style="{ height: `${LAYER_TREE_ROW_HEIGHT}px`, paddingLeft: padLeft }">+ <div :style="{ height: `${rowHeight}px`, paddingLeft: padLeft }"><slot /></div></template>diff --git a/src/components/LayerTree/LayerTreeStickyRow.vue b/src/components/LayerTree/LayerTreeStickyRow.vueindex f9570c69f..73ef868d5 100644--- a/src/components/LayerTree/LayerTreeStickyRow.vue+++ b/src/components/LayerTree/LayerTreeStickyRow.vue@@ -5,7 +5,7 @@ import { stickyTopLevelRow, useLayerTree } from '@open-pencil/vue/primitives/Layimport type { LayerIssueMark } from '@/app/editor/design-check/layers'-import { LAYER_TREE_ROW_HEIGHT } from './geometry'+import { useLayerTreeGeometry } from './geometry'import LayerTreeNodeRow from './LayerTreeNodeRow.vue'import type { LayerTreeChrome, LayerTreeItemActions } from './types'@@ -27,10 +27,11 @@ const emit = defineEmits<{}>()const tree = useLayerTree()+const { rowHeight } = useLayerTreeGeometry()const pinned = computed(() => {const rows = tree.visibleRows.value- const sticky = stickyTopLevelRow(rows, scrollTop, LAYER_TREE_ROW_HEIGHT)+ const sticky = stickyTopLevelRow(rows, scrollTop, rowHeight.value)if (!sticky) return nullreturn { row: rows[sticky.index], index: sticky.index, offset: sticky.offset }})diff --git a/src/components/LayerTree/examples/States.vue b/src/components/LayerTree/examples/States.vueindex 1e6803bec..715f04637 100644--- a/src/components/LayerTree/examples/States.vue+++ b/src/components/LayerTree/examples/States.vue@@ -255,7 +255,7 @@ const states: Array<{<template><div class="w-72 rounded-lg border border-border bg-panel p-2 shadow-lg">- <div class="mb-2 text-[11px] font-semibold tracking-wider text-muted uppercase">+ <div class="mb-2 text-2xs font-semibold tracking-wider text-muted uppercase">Layer Tree states</div><div :class="adjacent ? 'space-y-0' : 'space-y-1'">diff --git a/src/components/LayerTree/examples/Virtualized.vue b/src/components/LayerTree/examples/Virtualized.vueindex 7499e8fa4..5bbef7f84 100644--- a/src/components/LayerTree/examples/Virtualized.vue+++ b/src/components/LayerTree/examples/Virtualized.vue@@ -5,7 +5,7 @@ import { reactive, ref } from 'vue'import { useInlineRename } from '@open-pencil/vue/editor/inline-rename'import type { LayerNode } from '@open-pencil/vue/primitives/LayerTree'-import { LAYER_TREE_ROW_HEIGHT } from '@/components/LayerTree/geometry'+import { useLayerTreeGeometry } from '@/components/LayerTree/geometry'import LayerTreeNodeRow from '@/components/LayerTree/LayerTreeNodeRow.vue'import LayerTreeRenameRow from '@/components/LayerTree/LayerTreeRenameRow.vue'import { provideLayerTreeUI } from '@/components/LayerTree/ui'@@ -43,6 +43,7 @@ function resolveNode(id: unknown): DemoNode {}const selected = ref<DemoNode[]>(items.slice(0, 1))+const { rowHeight, indent } = useLayerTreeGeometry()const focused = ref(true)const rename = useInlineRename((id, name) => {resolveNode(id).name = name@@ -77,7 +78,7 @@ provideLayerTreeUI(() => undefined)><TreeVirtualizerv-slot="{ item }"- :estimate-size="LAYER_TREE_ROW_HEIGHT"+ :estimate-size="rowHeight":text-content="(node) => node.name"><TreeItem@@ -94,7 +95,7 @@ provideLayerTreeUI(() => undefined)v-if="rename.editingId.value === item.value.id":node="resolveNode(item.value.id)":has-children="item.hasChildren"- :pad-left="`${(item.level - 1) * 16}px`"+ :pad-left="`${(item.level - 1) * indent}px`":expanded="isExpanded":actions="{select: () => {},@@ -113,13 +114,13 @@ provideLayerTreeUI(() => undefined):has-children="item.hasChildren":selected="isSelected":expanded="isExpanded"- :pad-left="`${(item.level - 1) * 16}px`"+ :pad-left="`${(item.level - 1) * indent}px`":chrome="{focused,draggingId: null,instruction: null,instructionTargetId: null,- indent: 16+ indent}":actions="{select: () => {},diff --git a/src/components/LayerTree/geometry.ts b/src/components/LayerTree/geometry.tsindex 2461d7a4a..23ef091de 100644--- a/src/components/LayerTree/geometry.ts+++ b/src/components/LayerTree/geometry.ts@@ -1,2 +1,16 @@-// Virtualized offsets and both display/rename rows must use the same geometry.-export const LAYER_TREE_ROW_HEIGHT = 24+import { computed } from 'vue'++import { remToPx } from '@/app/shell/root-font-size'++// Virtualized offsets, both display/rename rows and the drop indicator must use the same geometry.+// It is in rem so the rows follow the interface size; scroll math and the virtualizer take pixels.+const ROW_HEIGHT_REM = 1.5+const INDENT_REM = 1++/** The layer tree's row height and per-level indent in pixels at the current interface size. */+export function useLayerTreeGeometry() {+ return {+ rowHeight: computed(() => remToPx(ROW_HEIGHT_REM)),+ indent: computed(() => remToPx(INDENT_REM))+ }+}diff --git a/src/components/LayersPanel.vue b/src/components/LayersPanel.vueindex 5607f7e60..9e946e9ff 100644--- a/src/components/LayersPanel.vue+++ b/src/components/LayersPanel.vue@@ -75,7 +75,7 @@ const splitterStyles = tv(splitterTheme)({ direction: 'vertical' })<SplitterPanel :default-size="70" :min-size="20" class="flex flex-col overflow-hidden"><headerdata-test-id="layers-header"- class="shrink-0 px-3 py-2 text-[11px] font-semibold text-surface"+ class="shrink-0 px-3 py-2 text-2xs font-semibold text-surface">{{ panels.layers }}</header>diff --git a/src/components/MobileDrawer.vue b/src/components/MobileDrawer.vueindex e09cc228d..f58a781a1 100644--- a/src/components/MobileDrawer.vue+++ b/src/components/MobileDrawer.vue@@ -179,7 +179,7 @@ const drawerTransition = useMotionTransition({<div data-test-id="mobile-drawer-layers" class="flex h-full flex-col"><PagesPanel /><div class="border-t border-border" />- <header class="shrink-0 px-3 py-2 text-[11px] font-semibold text-muted">Layers</header>+ <header class="shrink-0 px-3 py-2 text-2xs font-semibold text-muted">Layers</header><LayerTree class="min-h-0 flex-1" /></div></TabsContent>diff --git a/src/components/assets-panel/AssetsPanel.vue b/src/components/assets-panel/AssetsPanel.vueindex 554dc010c..b34219417 100644--- a/src/components/assets-panel/AssetsPanel.vue+++ b/src/components/assets-panel/AssetsPanel.vue@@ -362,7 +362,7 @@ async function insertSelectedAsset() {<icon-lucide-library class="size-3.5" /><spanv-if="libraryUpdateCount > 0"- class="absolute top-0.5 right-0.5 min-w-2.5 rounded-full bg-accent px-0.5 text-center text-[8px] leading-2.5 text-on-accent"+ class="absolute top-0.5 right-0.5 min-w-2.5 rounded-full bg-accent px-0.5 text-center text-5xs leading-2.5 text-on-accent">{{ libraryUpdateCount }}</span>@@ -383,7 +383,7 @@ async function insertSelectedAsset() {<div class="scrollbar-thin flex min-h-0 flex-1 flex-col overflow-y-auto px-2 pb-2"><section v-for="group in assetGroups" :key="group.pageId" class="mb-3">- <h2 class="mb-1 px-1 text-[11px] font-semibold text-muted">+ <h2 class="mb-1 px-1 text-2xs font-semibold text-muted">{{ group.pageName }}</h2><div :class="assetView === 'grid' ? 'grid grid-cols-2 gap-2' : 'flex flex-col gap-0.5'">@@ -426,7 +426,7 @@ async function insertSelectedAsset() {<spanv-if="asset.sourceLibraryKey"data-test-id="asset-library-badge"- class="shrink-0 rounded bg-component/15 px-1 py-px text-[9px] font-medium text-component uppercase"+ class="shrink-0 rounded bg-component/15 px-1 py-px text-4xs font-medium text-component uppercase">{{ panels.assetLibraryBadge }}</span>@@ -434,7 +434,7 @@ async function insertSelectedAsset() {<spanv-if="assetView === 'list' && asset.variants.length > 0"data-test-id="asset-variant-summary"- class="mt-0.5 block truncate text-[10px] text-muted"+ class="mt-0.5 block truncate text-3xs text-muted">{{panels.assetVariantSummary({@@ -446,14 +446,14 @@ async function insertSelectedAsset() {<spanv-if="assetView === 'list' && asset.description"data-test-id="asset-description"- class="mt-0.5 block truncate text-[10px] text-muted"+ class="mt-0.5 block truncate text-3xs text-muted">{{ asset.description }}</span><spanv-if="assetView === 'list' && asset.hasConflicts"data-test-id="asset-variant-conflict"- class="mt-0.5 block truncate text-[10px] text-warning"+ class="mt-0.5 block truncate text-3xs text-warning">{{ panels.duplicateVariantValues }}</span>@@ -533,7 +533,7 @@ async function insertSelectedAsset() {<component :is="nodeIcon(shownAsset.node)" class="size-4 shrink-0 text-component" /><div class="min-w-0"><DialogTitle :class="dialog.title" class="truncate">{{ shownAsset.name }}</DialogTitle>- <p class="mt-0.5 text-[11px] text-muted">+ <p class="mt-0.5 text-2xs text-muted">{{shownAsset.node.type === 'COMPONENT_SET' ? panels.componentSet : panels.component}}@@ -551,7 +551,7 @@ async function insertSelectedAsset() {</DialogClose></div>- <div class="grid min-h-0 grid-cols-[260px_1fr] gap-0">+ <div class="grid min-h-0 grid-cols-[16.25rem_1fr] gap-0"><div class="border-r border-border p-4"><divdata-test-id="asset-details-preview"@@ -562,7 +562,7 @@ async function insertSelectedAsset() {data-test-id="asset-details-preview-image":src="previewURL":alt="`${shownAsset.name} preview`"- class="max-h-[120px] max-w-[210px] object-contain"+ class="max-h-30 max-w-52.5 object-contain"/><div v-else class="text-center"><icon-lucide-loader-2@@ -591,7 +591,7 @@ async function insertSelectedAsset() {<div class="min-w-0 p-4"><section v-if="shownAsset.description" class="mb-4">- <h3 class="text-[11px] font-semibold text-muted">+ <h3 class="text-2xs font-semibold text-muted">{{ panels.description }}</h3><p data-test-id="asset-details-description" class="mt-1 text-xs leading-5 text-surface">@@ -600,7 +600,7 @@ async function insertSelectedAsset() {</section><section v-if="shownAsset.sourceLibraryKey" class="mb-4">- <h3 class="text-[11px] font-semibold text-muted">+ <h3 class="text-2xs font-semibold text-muted">{{ panels.assetLibraryBadge }}</h3><p data-test-id="asset-details-library" class="mt-1 break-all text-xs text-muted">@@ -609,7 +609,7 @@ async function insertSelectedAsset() {</section><section v-if="shownAsset.docsURL" class="mb-4">- <h3 class="text-[11px] font-semibold text-muted">+ <h3 class="text-2xs font-semibold text-muted">{{ panels.documentation }}</h3><AppButton@@ -626,7 +626,7 @@ async function insertSelectedAsset() {</section><section v-if="shownAsset.variants.length > 0">- <h3 class="text-[11px] font-semibold text-muted">+ <h3 class="text-2xs font-semibold text-muted">{{ panels.properties }}</h3><div class="mt-2 flex flex-col gap-2">@@ -637,7 +637,7 @@ async function insertSelectedAsset() {class="rounded border border-border bg-input/40 px-2 py-1.5"><div class="text-xs font-medium text-surface">{{ variant.name }}</div>- <div class="mt-1 text-[11px] text-muted">{{ variant.values.join(', ') }}</div>+ <div class="mt-1 text-2xs text-muted">{{ variant.values.join(', ') }}</div></div></div></section>diff --git a/src/components/canvas/CanvasMenu.vue b/src/components/canvas/CanvasMenu.vueindex e6055e2e9..b8c8ade11 100644--- a/src/components/canvas/CanvasMenu.vue+++ b/src/components/canvas/CanvasMenu.vue@@ -175,7 +175,7 @@ function contextCommandTestId(id: EditorCommandId | undefined): string | undefin<span class="min-w-0 flex-1 truncate">{{ item.label }}</span><spanv-if="item.shortcut"- class="text-[11px]"+ class="text-2xs":class="canvasMenuShortcutClass(item.label)">{{ item.shortcut }}</span>diff --git a/src/components/canvas/labels/CanvasLabelEditor.vue b/src/components/canvas/labels/CanvasLabelEditor.vueindex 3af099eec..915820a05 100644--- a/src/components/canvas/labels/CanvasLabelEditor.vue+++ b/src/components/canvas/labels/CanvasLabelEditor.vue@@ -7,13 +7,19 @@ import {COMPONENT_LABEL_FONT_SIZE,COMPONENT_LABEL_GAP,LABEL_FONT_SIZE,- LABEL_OFFSET_Y+ LABEL_OFFSET_Y,+ SECTION_TITLE_FONT_SIZE,+ SECTION_TITLE_HEIGHT,+ SECTION_TITLE_PADDING_X,+ SECTION_TITLE_RADIUS} from '@open-pencil/core/constants'import { colorToCSS } from '@open-pencil/scene-graph/color'import type { CanvasLabelEdit } from '@open-pencil/vue/canvas/labels'import type { CanvasLabelPresentation } from '@/components/canvas/labels/presentation'-import InlineLabelEditor from '@/components/ui/input/InlineLabelEditor.vue'+import InlineLabelEditor, {+ type InlineLabelMetrics+} from '@/components/ui/input/InlineLabelEditor.vue'const { edit, presentation, reference } = defineProps<{edit: CanvasLabelEdit | null@@ -24,8 +30,12 @@ const { edit, presentation, reference } = defineProps<{// Figma renames a frame or component name in a field the size of the name itself.const compact = computed(() => !!edit && edit.kind !== 'section-title')+// The field stands in for a label the canvas draws in screen pixels, so its geometry is in+// pixels too rather than following the interface size./** The name field's height in screen pixels, as Figma draws it. */const NAME_FIELD_HEIGHT = 18+const NAME_FIELD_PADDING_X = 2+const NAME_FIELD_RADIUS = 2/** Inter's line box, ascent plus descent, as a share of its size, the box the canvas lays out. */const INTER_LINE_BOX = 1.21@@ -34,14 +44,37 @@ const INTER_LINE_BOX = 1.21* name: the canvas puts the name's line box this far above the layer, and the field centers its* line box in its height.*/+const nameFontSize = computed(() =>+ edit?.kind === 'component-label' ? COMPONENT_LABEL_FONT_SIZE : LABEL_FONT_SIZE+)+const sideOffset = computed(() => {if (!compact.value) return 6- const component = edit?.kind === 'component-label'- const fontSize = component ? COMPONENT_LABEL_FONT_SIZE : LABEL_FONT_SIZE- const lineTop = (component ? COMPONENT_LABEL_GAP : LABEL_OFFSET_Y) + fontSize- return lineTop - (NAME_FIELD_HEIGHT + fontSize * INTER_LINE_BOX) / 2+ const gap = edit?.kind === 'component-label' ? COMPONENT_LABEL_GAP : LABEL_OFFSET_Y+ const fontSize = nameFontSize.value+ return gap + fontSize - (NAME_FIELD_HEIGHT + fontSize * INTER_LINE_BOX) / 2})+const metrics = computed<InlineLabelMetrics>(() =>+ compact.value+ ? {+ fontSize: nameFontSize.value,+ lineHeight: NAME_FIELD_HEIGHT,+ paddingX: NAME_FIELD_PADDING_X+ }+ : {+ fontSize: SECTION_TITLE_FONT_SIZE,+ lineHeight: SECTION_TITLE_HEIGHT,+ paddingX: SECTION_TITLE_PADDING_X+ }+)++const box = computed(() => ({+ backgroundColor: colorToCSS(presentation.background),+ height: `${metrics.value.lineHeight}px`,+ borderRadius: `${compact.value ? NAME_FIELD_RADIUS : SECTION_TITLE_RADIUS}px`+}))+const emit = defineEmits<{update: [value: string]commit: []@@ -62,9 +95,8 @@ const emit = defineEmits<{:collision-padding="8":data-label-kind="edit.kind":data-foreground="presentation.foreground"- :style="{ backgroundColor: colorToCSS(presentation.background) }"- class="z-50 text-black ring-1 ring-accent data-[foreground=light]:text-white"- :class="compact ? 'h-[18px] rounded-[2px]' : 'h-6 rounded-[5px] shadow-sm'"+ :style="box"+ class="z-50 text-black ring-1 ring-accent data-[foreground=light]:text-white data-[label-kind=section-title]:shadow-sm"@open-auto-focus.prevent@escape-key-down.prevent="emit('cancel')"@pointer-down-outside="emit('commit')"@@ -72,6 +104,7 @@ const emit = defineEmits<{<InlineLabelEditor:model-value="edit.value"label="Layer name"+ :metrics="metrics":variant="compact ? 'name' : 'section'"@update:model-value="emit('update', $event)"@commit="emit('commit')"diff --git a/src/components/chat/ChatInput.vue b/src/components/chat/ChatInput.vueindex e0d7eb292..a350a625a 100644--- a/src/components/chat/ChatInput.vue+++ b/src/components/chat/ChatInput.vue@@ -160,7 +160,7 @@ const selectedProfileName = computed(height="40"class="size-10 shrink-0 rounded-md border border-border object-cover"/>- <span class="min-w-0 flex-1 truncate text-[10px] text-surface">+ <span class="min-w-0 flex-1 truncate text-3xs text-surface">{{ image.file.name }}</span><IconButton@@ -203,7 +203,7 @@ const selectedProfileName = computed(<template #model><div class="@container flex min-w-0 items-center"><template v-if="isAgentProvider">- <div class="flex min-w-0 items-center gap-1 px-1.5 text-[10px] text-muted">+ <div class="flex min-w-0 items-center gap-1 px-1.5 text-3xs text-muted"><icon-lucide-bot class="size-3 shrink-0" /><span class="truncate">{{ agentName }}</span></div>diff --git a/src/components/chat/ChatPermissionDialog.vue b/src/components/chat/ChatPermissionDialog.vueindex 131f90c90..556487a01 100644--- a/src/components/chat/ChatPermissionDialog.vue+++ b/src/components/chat/ChatPermissionDialog.vue@@ -74,7 +74,7 @@ function handleDismiss() {<prev-if="toolInput"- class="mt-2 max-h-32 overflow-auto rounded bg-input p-2 text-[10px] text-muted"+ class="mt-2 max-h-32 overflow-auto rounded bg-input p-2 text-3xs text-muted">{{ toolInput }}</pre><div class="mt-4 flex flex-col gap-2">diff --git a/src/components/chat/ChatPlayground.stories.ts b/src/components/chat/ChatPlayground.stories.tsindex baa410e26..59e2cde9f 100644--- a/src/components/chat/ChatPlayground.stories.ts+++ b/src/components/chat/ChatPlayground.stories.ts@@ -42,7 +42,7 @@ const meta = {template: `<TooltipProvider><div class="max-w-full space-y-3">- <fieldset class="max-w-[420px] space-y-2 rounded border border-border p-3 text-xs">+ <fieldset class="max-w-105 space-y-2 rounded border border-border p-3 text-xs"><legend class="px-1 text-muted">Story controls — not saved</legend><AppSelect v-model="selectedId" label="Test conversation" :options="options" /><div class="flex gap-2">@@ -53,7 +53,7 @@ const meta = {<input v-model="selected.title" class="min-w-0 flex-1 rounded border border-border bg-input p-1" /></label></fieldset>- <section aria-label="Chat preview" :data-narrow="args.narrow" class="flex h-[620px] w-[420px] max-w-full flex-col overflow-hidden rounded-xl border border-border bg-panel data-[narrow=true]:w-[300px]">+ <section aria-label="Chat preview" :data-narrow="args.narrow" class="flex h-155 w-105 max-w-full flex-col overflow-hidden rounded-xl border border-border bg-panel data-[narrow=true]:w-75"><ChatHistory:saved="hasSavedConversation":conversations="conversationOptions"diff --git a/src/components/chat/ChatReasoning.vue b/src/components/chat/ChatReasoning.vueindex e128e69b2..ee2cffa60 100644--- a/src/components/chat/ChatReasoning.vue+++ b/src/components/chat/ChatReasoning.vue@@ -84,7 +84,7 @@ function updateOpen(value: boolean): void {<CollapsibleTriggerdata-slot="chat-reasoning-trigger":data-streaming="streaming || undefined"- class="flex w-full cursor-pointer items-center gap-2 rounded px-2 py-1.5 text-left text-[11px] text-muted hover:bg-hover hover:text-surface"+ class="flex w-full cursor-pointer items-center gap-2 rounded px-2 py-1.5 text-left text-2xs text-muted hover:bg-hover hover:text-surface"><icon-lucide-brain class="size-3.5 shrink-0 text-primary" aria-hidden="true" /><span class="flex-1">{{ streaming ? thinkingLabel : finishedLabel }}</span>@@ -100,7 +100,7 @@ function updateOpen(value: boolean): void {/></CollapsibleTrigger><CollapsibleContent data-slot="chat-reasoning-content" :class="collapsibleContentMotion">- <div class="border-t border-border px-2 py-1.5 text-[11px] leading-relaxed text-muted">+ <div class="border-t border-border px-2 py-1.5 text-2xs leading-relaxed text-muted"><ChatMarkdown :content="text" :mode="markdownMode" surface="reasoning" /></div></CollapsibleContent>diff --git a/src/components/chat/ChatTranscript.vue b/src/components/chat/ChatTranscript.vueindex 2f9b4ac7f..ef1faf342 100644--- a/src/components/chat/ChatTranscript.vue+++ b/src/components/chat/ChatTranscript.vue@@ -128,7 +128,7 @@ const { arrivedState, resumeFollowing } = useScrollFollowing(<!-- Thinking indicator: shown when AI is working but no visible activity --><div v-if="isThinking" data-test-id="chat-typing-indicator" class="flex gap-2"><div- class="flex size-6 shrink-0 items-center justify-center rounded-full bg-muted/20 text-[10px] font-bold text-muted"+ class="flex size-6 shrink-0 items-center justify-center rounded-full bg-muted/20 text-3xs font-bold text-muted">AI</div>diff --git a/src/components/chat/FloatingChat.vue b/src/components/chat/FloatingChat.vueindex 371d63739..01b4f8fab 100644--- a/src/components/chat/FloatingChat.vue+++ b/src/components/chat/FloatingChat.vue@@ -16,7 +16,7 @@ const { editor, panels } = useI18n()<sectiondata-test-id="floating-chat":aria-label="panels.ai"- class="absolute top-7 right-7 bottom-20 z-10 flex min-h-[min(16rem,calc(100%-1.75rem))] w-[min(360px,calc(100%-3.5rem))] flex-col overflow-hidden rounded-lg border border-border bg-panel shadow-lg"+ class="absolute top-7 right-7 bottom-20 z-10 flex min-h-[min(16rem,calc(100%-1.75rem))] w-[min(22.5rem,calc(100%-3.5rem))] flex-col overflow-hidden rounded-lg border border-border bg-panel shadow-lg"><header class="flex h-9 shrink-0 items-center justify-between border-b border-border px-2"><span class="flex items-center gap-1.5 text-xs font-medium text-surface">diff --git a/src/components/chat/attachment/ChatAttachmentCard.vue b/src/components/chat/attachment/ChatAttachmentCard.vueindex bbd409575..8f610cae6 100644--- a/src/components/chat/attachment/ChatAttachmentCard.vue+++ b/src/components/chat/attachment/ChatAttachmentCard.vue@@ -38,7 +38,7 @@ const dimensions = computed(alt=""class="h-20 w-28 border-b border-border bg-canvas object-contain"/>- <span class="block max-w-28 truncate px-1.5 py-1 text-[9px] leading-tight text-surface">+ <span class="block max-w-28 truncate px-1.5 py-1 text-4xs leading-tight text-surface">{{ attachment.name }}</span></button>diff --git a/src/components/chat/tool/ChatToolChangeView.vue b/src/components/chat/tool/ChatToolChangeView.vueindex 715fc151c..1237d1938 100644--- a/src/components/chat/tool/ChatToolChangeView.vue+++ b/src/components/chat/tool/ChatToolChangeView.vue@@ -41,7 +41,7 @@ const aspectRatio = computed(() =><div class="space-y-2" data-slot="chat-tool-change"><template v-if="hasImages"><div class="flex items-center justify-between gap-2">- <span class="text-[10px] text-muted">+ <span class="text-3xs text-muted">{{ visible ? ai.changedPixels({ percent: changedPercent }) : ai.noVisibleChange }}</span><IconButtondiff --git a/src/components/chat/turn/ChatMessageQueued.vue b/src/components/chat/turn/ChatMessageQueued.vueindex 04777d619..0dd0b9e6e 100644--- a/src/components/chat/turn/ChatMessageQueued.vue+++ b/src/components/chat/turn/ChatMessageQueued.vue@@ -26,7 +26,7 @@ const ai = useAIMessages()><ChatReferenceText :text="message.submission.displayText" /></div>- <div class="flex items-center gap-1 text-[10px] text-muted">+ <div class="flex items-center gap-1 text-3xs text-muted"><span>{{ message.kind === 'steer' && steers ? ai.queuedSteer : ai.queuedFollowUp }}</span><IconButton :label="ai.removeQueuedMessage" size="xs" @click="emit('remove')"><icon-lucide-x class="size-3" />diff --git a/src/components/chat/turn/ChatTurnActions.vue b/src/components/chat/turn/ChatTurnActions.vueindex 935f19181..a9c7d8124 100644--- a/src/components/chat/turn/ChatTurnActions.vue+++ b/src/components/chat/turn/ChatTurnActions.vue@@ -44,7 +44,7 @@ const partlyUndone = computed(() => undone > 0 && undone < edits)><spanv-if="stopped"- class="inline-flex items-center gap-1 px-2 text-[11px] text-muted"+ class="inline-flex items-center gap-1 px-2 text-2xs text-muted"data-slot="chat-turn-stopped"><icon-lucide-circle-stop class="size-3" aria-hidden="true" />@@ -53,7 +53,7 @@ const partlyUndone = computed(() => undone > 0 && undone < edits)<!-- What is undone shows whether or not Redo can still bring it back. --><spanv-if="partlyUndone"- class="inline-flex items-center gap-1 px-2 text-[11px] text-muted"+ class="inline-flex items-center gap-1 px-2 text-2xs text-muted"data-slot="chat-turn-undone"><icon-lucide-undo-2 class="size-3" aria-hidden="true" />@@ -61,7 +61,7 @@ const partlyUndone = computed(() => undone > 0 && undone < edits)</span><spanv-else-if="reverted"- class="inline-flex items-center gap-1 px-2 text-[11px] text-muted"+ class="inline-flex items-center gap-1 px-2 text-2xs text-muted"data-slot="chat-turn-reverted"><icon-lucide-undo-2 class="size-3" aria-hidden="true" />diff --git a/src/components/cloud-portal/account/PortalProfile.vue b/src/components/cloud-portal/account/PortalProfile.vueindex 1cf0bf8b3..6c3018f98 100644--- a/src/components/cloud-portal/account/PortalProfile.vue+++ b/src/components/cloud-portal/account/PortalProfile.vue@@ -56,7 +56,7 @@ onPicture((files) => {<div class="min-w-0 flex-1"><p class="truncate text-sm font-semibold text-surface">{{ profile.name }}</p><p class="truncate text-xs text-muted">{{ profile.email }}</p>- <p class="mt-0.5 text-[11px] text-muted">+ <p class="mt-0.5 text-2xs text-muted">{{ messages.memberSince({ date: profile.memberSince }) }}</p></div>diff --git a/src/components/cloud-portal/account/PortalRecoveryCodes.vue b/src/components/cloud-portal/account/PortalRecoveryCodes.vueindex 751dcb8cc..96bf63d1b 100644--- a/src/components/cloud-portal/account/PortalRecoveryCodes.vue+++ b/src/components/cloud-portal/account/PortalRecoveryCodes.vue@@ -50,7 +50,7 @@ function downloadCodes() {><li v-for="code in codes" :key="code" class="select-all">{{ code }}</li></ul>- <p v-if="!saved" class="mt-2 text-[11px] text-muted">{{ messages.recoveryCodesSaveFirst }}</p>+ <p v-if="!saved" class="mt-2 text-2xs text-muted">{{ messages.recoveryCodesSaveFirst }}</p></AppDialogBody><AppDialogFooter :ui="{ footer: 'justify-between' }"><div class="flex items-center gap-1">diff --git a/src/components/cloud-portal/auth/CloudPortalPublic.stories.ts b/src/components/cloud-portal/auth/CloudPortalPublic.stories.tsindex 0312c727f..9368cde2c 100644--- a/src/components/cloud-portal/auth/CloudPortalPublic.stories.ts+++ b/src/components/cloud-portal/auth/CloudPortalPublic.stories.ts@@ -13,7 +13,7 @@ import PortalSignIn from './PortalSignIn.vue'import PortalTwoFactor from './PortalTwoFactor.vue'const host = 'cloud.studio.example'-const frame = (inner: string) => `<div class="h-[720px]">${inner}</div>`+const frame = (inner: string) => `<div class="h-180">${inner}</div>`const components = {PortalDeviceApproval,PortalNotice,diff --git a/src/components/cloud-portal/console/CloudPortalConsole.stories.ts b/src/components/cloud-portal/console/CloudPortalConsole.stories.tsindex d60af8228..d4b9b29a7 100644--- a/src/components/cloud-portal/console/CloudPortalConsole.stories.ts+++ b/src/components/cloud-portal/console/CloudPortalConsole.stories.ts@@ -321,7 +321,7 @@ const story = (...extra}),template: `- <div class="h-[720px]">+ <div class="h-180"><PortalConsoleLayout host="cloud.studio.example" :account="account" :sections="sections" active="${active}" heading="${heading}" description="${description}">${body}</PortalConsoleLayout>diff --git a/src/components/cloud-portal/console/PortalPerson.vue b/src/components/cloud-portal/console/PortalPerson.vueindex 73e3d88bc..dac233cd6 100644--- a/src/components/cloud-portal/console/PortalPerson.vue+++ b/src/components/cloud-portal/console/PortalPerson.vue@@ -105,7 +105,7 @@ const workspaces = usePortalRows(() => detail.workspaces, {</span></p><p class="truncate text-xs text-muted">{{ person.email }}</p>- <p v-if="person.suspendedReason" class="mt-0.5 text-[11px] text-muted">+ <p v-if="person.suspendedReason" class="mt-0.5 text-2xs text-muted">{{ messages.suspendedReason({ reason: person.suspendedReason }) }}</p></div>diff --git a/src/components/cloud/conflict/CloudConflictDialog.stories.ts b/src/components/cloud/conflict/CloudConflictDialog.stories.tsindex 9ea2b9449..ffdf73511 100644--- a/src/components/cloud/conflict/CloudConflictDialog.stories.ts+++ b/src/components/cloud/conflict/CloudConflictDialog.stories.ts@@ -26,7 +26,7 @@ const meta = {cloud: { previewURL: previewDocuments[0]?.previewURL, by: 'Ben', savedAgo: '5 min ago' }}),template: `- <div class="h-[700px]">+ <div class="h-175"><CloudConflictDialog :open="true" v-model:choice="choice" document-name="Pricing page" :mine="mine" :cloud="cloud" @confirm="args.onConfirm" /></div>`})diff --git a/src/components/cloud/connect/CloudConnectDialog.stories.ts b/src/components/cloud/connect/CloudConnectDialog.stories.tsindex 29ca3f096..c52c023d8 100644--- a/src/components/cloud/connect/CloudConnectDialog.stories.ts+++ b/src/components/cloud/connect/CloudConnectDialog.stories.ts@@ -58,7 +58,7 @@ const meta = {components: { CloudConnectDialog },setup: () => ({ args, kind: ref(args.kind), address: ref(args.address) }),template: `- <div class="h-[640px]">+ <div class="h-160"><CloudConnectDialog:open="true"v-model:kind="kind"diff --git a/src/components/cloud/invitation/CloudInvitationDialog.stories.ts b/src/components/cloud/invitation/CloudInvitationDialog.stories.tsindex 314022742..274e3e1e5 100644--- a/src/components/cloud/invitation/CloudInvitationDialog.stories.ts+++ b/src/components/cloud/invitation/CloudInvitationDialog.stories.ts@@ -40,7 +40,7 @@ const meta = {components: { CloudInvitationDialog },setup: () => ({ args }),template: `- <div class="h-[600px]">+ <div class="h-150"><CloudInvitationDialog :open="true" :state="args.state" :invitation="args.invitation" :account="args.account" :offer-desktop="args.offerDesktop" @accept="args.onAccept" @sign-in="args.onSignIn" @open-in-desktop="args.onOpenInDesktop" /></div>`})diff --git a/src/components/cloud/share/CloudShareDialog.stories.ts b/src/components/cloud/share/CloudShareDialog.stories.tsindex 5ed6581c0..018aed0da 100644--- a/src/components/cloud/share/CloudShareDialog.stories.ts+++ b/src/components/cloud/share/CloudShareDialog.stories.ts@@ -47,7 +47,7 @@ const meta = {components: { CloudShareDialog },setup: () => ({ args }),template: `- <div class="h-[640px]">+ <div class="h-160"><CloudShareDialog:open="true"document-name="Homepage redesign"diff --git a/src/components/cloud/status/CloudDocumentStatus.stories.ts b/src/components/cloud/status/CloudDocumentStatus.stories.tsindex 782752d07..36676ba64 100644--- a/src/components/cloud/status/CloudDocumentStatus.stories.ts+++ b/src/components/cloud/status/CloudDocumentStatus.stories.ts@@ -29,9 +29,9 @@ const meta = {components: { CloudDocumentStatus, IconButton, IconSettings },setup: () => ({ args }),template: `- <div class="h-[320px]">+ <div class="h-80"><div class="flex w-64 items-center gap-1 border-b border-border bg-panel px-2 py-2">- <span class="flex size-6 items-center justify-center rounded bg-accent text-[11px] font-bold text-on-accent">P</span>+ <span class="flex size-6 items-center justify-center rounded bg-accent text-2xs font-bold text-on-accent">P</span><span class="min-w-0 flex-1 truncate px-1 text-xs text-surface">Homepage redesign</span><CloudDocumentStatus :state="args.state" :view-only="args.viewOnly" :not-live="args.notLive" :can-rejoin="args.canRejoin" :saved-ago="args.savedAgo" workspace="Design team" host="cloud.openpencil.dev" /><IconButton label="Settings"><IconSettings class="size-3.5" /></IconButton>diff --git a/src/components/cloud/workspace/CloudWorkspaceMembersDialog.stories.ts b/src/components/cloud/workspace/CloudWorkspaceMembersDialog.stories.tsindex 053b7abcf..fe38cb3f2 100644--- a/src/components/cloud/workspace/CloudWorkspaceMembersDialog.stories.ts+++ b/src/components/cloud/workspace/CloudWorkspaceMembersDialog.stories.ts@@ -59,7 +59,7 @@ const meta = {components: { CloudWorkspaceMembersDialog },setup: () => ({ args }),template: `- <div class="h-[640px]">+ <div class="h-160"><CloudWorkspaceMembersDialog:open="true"workspace-name="Spring campaign"diff --git a/src/components/cloud/workspace/CloudWorkspaceMembersDialog.vue b/src/components/cloud/workspace/CloudWorkspaceMembersDialog.vueindex 7eaf97b4b..7a84aa829 100644--- a/src/components/cloud/workspace/CloudWorkspaceMembersDialog.vue+++ b/src/components/cloud/workspace/CloudWorkspaceMembersDialog.vue@@ -255,9 +255,7 @@ function invite() {<template #option="{ option }"><span class="flex flex-col"><span>{{ option.label }}</span>- <span class="text-[11px] text-muted">{{- roleDescriptions[option.value]- }}</span>+ <span class="text-2xs text-muted">{{ roleDescriptions[option.value] }}</span></span></template></AppSelect>diff --git a/src/components/collab-panel/ConnectedRoom.vue b/src/components/collab-panel/ConnectedRoom.vueindex 57a07a1b3..d4e514b91 100644--- a/src/components/collab-panel/ConnectedRoom.vue+++ b/src/components/collab-panel/ConnectedRoom.vue@@ -67,7 +67,7 @@ const statusText = computed(() =><div class="mt-3 flex items-center justify-between gap-2 border-t border-border pt-3"><pv-if="room.desktopLink.value"- class="flex shrink-0 items-center gap-1.5 text-[11px] whitespace-nowrap text-muted"+ class="flex shrink-0 items-center gap-1.5 text-2xs whitespace-nowrap text-muted"><a:href="room.desktopLink.value"diff --git a/src/components/collab-panel/ShareOrJoinRoom.vue b/src/components/collab-panel/ShareOrJoinRoom.vueindex 989cd6288..fd1afc9fc 100644--- a/src/components/collab-panel/ShareOrJoinRoom.vue+++ b/src/components/collab-panel/ShareOrJoinRoom.vue@@ -35,7 +35,7 @@ const JOIN_ERROR_ID = 'collab-join-error'<div class="mb-2 flex items-center gap-2"><div class="h-px flex-1 bg-border" />- <span class="text-[11px] text-muted">{{ collab.messages.orJoinRoom }}</span>+ <span class="text-2xs text-muted">{{ collab.messages.orJoinRoom }}</span><div class="h-px flex-1 bg-border" /></div>diff --git a/src/components/collab-room/RoomScreen.stories.ts b/src/components/collab-room/RoomScreen.stories.tsindex b665ef82a..3b11fb0e6 100644--- a/src/components/collab-room/RoomScreen.stories.ts+++ b/src/components/collab-room/RoomScreen.stories.ts@@ -37,7 +37,7 @@ const meta = {render: (args) => ({components: { RoomScreen },setup: () => ({ args }),- template: '<div class="relative h-[480px] bg-canvas"><RoomScreen v-bind="args" /></div>'+ template: '<div class="relative h-120 bg-canvas"><RoomScreen v-bind="args" /></div>'})} satisfies Meta<Args>diff --git a/src/components/color-picker-panel/ColorAreaControl.vue b/src/components/color-picker-panel/ColorAreaControl.vueindex cd1a30693..0e6af7c20 100644--- a/src/components/color-picker-panel/ColorAreaControl.vue+++ b/src/components/color-picker-panel/ColorAreaControl.vue@@ -16,7 +16,7 @@ const ctx = useColorPickerPanelContext()@update:color="ctx.onRekaColorUpdate"><ColorAreaArea- class="relative h-[140px] w-full cursor-crosshair overflow-hidden rounded"+ class="relative h-35 w-full cursor-crosshair overflow-hidden rounded":style="style"><ColorAreaThumbdiff --git a/src/components/color-picker-panel/FormatControls.vue b/src/components/color-picker-panel/FormatControls.vueindex f77e0af2d..6673f8174 100644--- a/src/components/color-picker-panel/FormatControls.vue+++ b/src/components/color-picker-panel/FormatControls.vue@@ -12,7 +12,7 @@ const ctx = useColorPickerPanelContext()<template><div class="flex flex-col gap-2"><AppSelect- class="w-[120px]"+ class="w-30"data-test-id="color-format-select":model-value="ctx.fieldFormat":options="ctx.fieldOptions"diff --git a/src/components/color-picker-panel/HsbFields.vue b/src/components/color-picker-panel/HsbFields.vueindex d32f81a4c..609041ee6 100644--- a/src/components/color-picker-panel/HsbFields.vue+++ b/src/components/color-picker-panel/HsbFields.vue@@ -72,5 +72,5 @@ const { panels } = useI18n()@update-number="ctx.updateHSBChannelValue('b', $event)"/>- <p class="text-[10px] leading-4 text-muted">{{ ctx.panels.colorHintHsb }}</p>+ <p class="text-3xs leading-4 text-muted">{{ ctx.panels.colorHintHsb }}</p></template>diff --git a/src/components/color-picker-panel/HslFields.vue b/src/components/color-picker-panel/HslFields.vueindex 9c9b8ee0f..b2016d214 100644--- a/src/components/color-picker-panel/HslFields.vue+++ b/src/components/color-picker-panel/HslFields.vue@@ -72,5 +72,5 @@ const { panels } = useI18n()@update-number="ctx.updateHSLChannelValue('l', $event)"/>- <p class="text-[10px] leading-4 text-muted">{{ ctx.panels.colorHintHsl }}</p>+ <p class="text-3xs leading-4 text-muted">{{ ctx.panels.colorHintHsl }}</p></template>diff --git a/src/components/color-picker-panel/OkhclFields.vue b/src/components/color-picker-panel/OkhclFields.vueindex 4c1e08477..61f3cf15c 100644--- a/src/components/color-picker-panel/OkhclFields.vue+++ b/src/components/color-picker-panel/OkhclFields.vue@@ -84,16 +84,16 @@ const percentText = (value: number) => `${Math.round(toPercent(value))}%`@update-display="ctx.updateOkHCLChannel('a', fromPercent($event))"/>- <div class="flex items-start justify-between gap-2 text-[10px] text-muted">+ <div class="flex items-start justify-between gap-2 text-3xs text-muted"><p class="min-w-0 flex-1 leading-4 break-words">{{ ctx.panels.colorHintOkhcl }}</p><spanv-if="ctx.okhcl.previewColorSpace"- class="shrink-0 rounded border border-border px-1 py-0.5 text-[10px] uppercase"+ class="shrink-0 rounded border border-border px-1 py-0.5 text-3xs uppercase">{{ ctx.okhcl.previewColorSpace }}</span></div>- <p v-if="ctx.okhcl.clipped" class="text-[10px] leading-4 text-warning">+ <p v-if="ctx.okhcl.clipped" class="text-3xs leading-4 text-warning">{{ ctx.panels.colorPreviewClipped({ space: ctx.okhcl.previewColorSpace ?? 'display-p3' }) }}</p></div>diff --git a/src/components/editor/WorkspacePill.vue b/src/components/editor/WorkspacePill.vueindex 4293f325c..ddee2bceb 100644--- a/src/components/editor/WorkspacePill.vue+++ b/src/components/editor/WorkspacePill.vue@@ -55,7 +55,7 @@ const { editor } = useI18n()</IconButton><template v-else><span- class="ml-1 flex h-5 items-center gap-1 rounded bg-accent/15 px-1.5 text-[10px] font-medium text-primary"+ class="ml-1 flex h-5 items-center gap-1 rounded bg-accent/15 px-1.5 text-3xs font-medium text-primary"><icon-lucide-play class="size-3" />{{ editor.previewing }}diff --git a/src/components/editor/ZoomDropdown.vue b/src/components/editor/ZoomDropdown.vueindex 231001446..089a3de37 100644--- a/src/components/editor/ZoomDropdown.vue+++ b/src/components/editor/ZoomDropdown.vue@@ -107,7 +107,7 @@ watch(open, (v) => {<DropdownMenuTrigger as-child><buttondata-test-id="zoom-dropdown-trigger"- class="ml-auto cursor-pointer rounded px-1.5 py-0.5 text-[11px] text-muted hover:bg-hover"+ class="ml-auto cursor-pointer rounded px-1.5 py-0.5 text-2xs text-muted hover:bg-hover">{{ zoomPercent() }}%</button>diff --git a/src/components/editor/examples/Pill.vue b/src/components/editor/examples/Pill.vueindex 517fa82dd..506fac126 100644--- a/src/components/editor/examples/Pill.vue+++ b/src/components/editor/examples/Pill.vue@@ -11,7 +11,7 @@ const record = (entry: string) => {<template><div class="flex flex-col gap-4">- <div class="relative h-20 w-[520px] rounded-lg bg-canvas">+ <div class="relative h-20 w-130 rounded-lg bg-canvas"><WorkspacePillmode="preview"document-name="Settings screen"@@ -20,7 +20,7 @@ const record = (entry: string) => {@leave="record('leave')"/></div>- <div class="relative h-20 w-[520px] rounded-lg bg-canvas">+ <div class="relative h-20 w-130 rounded-lg bg-canvas"><WorkspacePillmode="collapsed"document-name="Settings screen"diff --git a/src/components/figjam/connector/ConnectorControls.stories.ts b/src/components/figjam/connector/ConnectorControls.stories.tsindex 18c031d9e..962cd2cbd 100644--- a/src/components/figjam/connector/ConnectorControls.stories.ts+++ b/src/components/figjam/connector/ConnectorControls.stories.ts@@ -26,7 +26,7 @@ const meta = {return { lineType, startCap, endCap }},template: `- <div class="w-[240px] bg-panel p-4">+ <div class="w-60 bg-panel p-4"><ConnectorControls:line-type="lineType":start-cap="startCap"diff --git a/src/components/figjam/shape-with-text/ShapeWithTextControls.stories.ts b/src/components/figjam/shape-with-text/ShapeWithTextControls.stories.tsindex c090d24c3..8a11a7ef6 100644--- a/src/components/figjam/shape-with-text/ShapeWithTextControls.stories.ts+++ b/src/components/figjam/shape-with-text/ShapeWithTextControls.stories.ts@@ -37,7 +37,7 @@ const meta = {return { kind, color, fillMode, lineStyle, lineColor, textSize, typeface }},template: `- <div class="w-[240px] bg-panel p-4">+ <div class="w-60 bg-panel p-4"><ShapeWithTextControls:kind="kind":color="color"diff --git a/src/components/figjam/sticky/StickyControls.stories.ts b/src/components/figjam/sticky/StickyControls.stories.tsindex a063cc600..4de007e1c 100644--- a/src/components/figjam/sticky/StickyControls.stories.ts+++ b/src/components/figjam/sticky/StickyControls.stories.ts@@ -28,7 +28,7 @@ const meta = {return { color, textSize, authorVisible }},template: `- <div class="w-[240px] bg-panel p-4">+ <div class="w-60 bg-panel p-4"><StickyControls:color="color":text-size="textSize"diff --git a/src/components/fill-picker/GradientEditor.vue b/src/components/fill-picker/GradientEditor.vueindex 828c12524..922eb9d86 100644--- a/src/components/fill-picker/GradientEditor.vue+++ b/src/components/fill-picker/GradientEditor.vue@@ -78,7 +78,7 @@ function listStopClass(active: boolean) {<div class="mb-2"><div class="mb-1 flex items-center justify-between">- <span class="text-[11px] text-muted">{{ panels.stops }}</span>+ <span class="text-2xs text-muted">{{ panels.stops }}</span><IconButton:label="panels.addStop"data-test-id="fill-picker-add-stop"@@ -128,7 +128,7 @@ function listStopClass(active: boolean) {</template><template #value><input- class="min-w-0 flex-1 border-none bg-transparent font-mono text-[11px] text-surface outline-none"+ class="min-w-0 flex-1 border-none bg-transparent font-mono text-2xs text-surface outline-none":value="s.hex"maxlength="6"@change="s.actions.updateColor(inputValue($event))"diff --git a/src/components/fill-picker/shader/ShaderFillPicker.vue b/src/components/fill-picker/shader/ShaderFillPicker.vueindex e5019892d..3eeee865f 100644--- a/src/components/fill-picker/shader/ShaderFillPicker.vue+++ b/src/components/fill-picker/shader/ShaderFillPicker.vue@@ -133,7 +133,7 @@ function applyJSON() {<div><div class="mb-1 flex items-center justify-between">- <span class="text-[11px] text-muted">{{ panels.effects }}</span>+ <span class="text-2xs text-muted">{{ panels.effects }}</span><div class="flex items-center"><IconButton:label="panels.shaderPreset"@@ -150,7 +150,7 @@ function applyJSON() {</div><div v-if="editingJSON" class="flex flex-col gap-1.5">- <AppTextarea v-model="json" :rows="8" class="font-mono text-[11px]" />+ <AppTextarea v-model="json" :rows="8" class="font-mono text-2xs" /><AppAlert v-if="invalid" tone="error" :heading="panels.invalidShaderPreset" /><div class="flex justify-end gap-1.5"><AppButton variant="ghost" size="sm" @click="editingJSON = false">diff --git a/src/components/font-picker/FontPicker.vue b/src/components/font-picker/FontPicker.vueindex 3e8a3a4e0..50e276c81 100644--- a/src/components/font-picker/FontPicker.vue+++ b/src/components/font-picker/FontPicker.vue@@ -94,7 +94,7 @@ function loadPreviewFont(family: string, source: string) {family}}</span><span- class="font-sans ml-auto shrink-0 rounded bg-input px-1.5 py-0.5 text-[9px] uppercase text-muted"+ class="font-sans ml-auto shrink-0 rounded bg-input px-1.5 py-0.5 text-4xs uppercase text-muted">{{ source }}</span>diff --git a/src/components/font-status/FontStatusBanner.vue b/src/components/font-status/FontStatusBanner.vueindex bbe4bf16f..82501a78a 100644--- a/src/components/font-status/FontStatusBanner.vue+++ b/src/components/font-status/FontStatusBanner.vue@@ -71,7 +71,7 @@ const issues = computed(() => status.value.issues)<span class="ms-1 opacity-75">· {{ fonts.unsupportedFormatShort }}</span></Tip></span>- <span class="shrink-0 text-[10px] opacity-75">+ <span class="shrink-0 text-3xs opacity-75">{{issue.nodeIds.length === 1? fonts.affectedLayerdiff --git a/src/components/home/HomeWorkspace.vue b/src/components/home/HomeWorkspace.vueindex 4b952e72a..f341e6db1 100644--- a/src/components/home/HomeWorkspace.vue+++ b/src/components/home/HomeWorkspace.vue@@ -307,7 +307,7 @@ function formattedDate(updatedAt: string): string {<divv-if="storageLoading && storageDocuments.length === 0"- class="grid grid-cols-1 gap-x-5 gap-y-6 sm:grid-cols-[repeat(auto-fill,minmax(200px,1fr))]"+ class="grid grid-cols-1 gap-x-5 gap-y-6 sm:grid-cols-[repeat(auto-fill,minmax(12.5rem,1fr))]":aria-label="storage.loadingWorkspace"><div@@ -348,7 +348,7 @@ function formattedDate(updatedAt: string): string {<divv-else-if="filteredStorageDocuments.length && view === 'grid'"- class="grid grid-cols-1 gap-x-5 gap-y-6 sm:grid-cols-[repeat(auto-fill,minmax(200px,1fr))]"+ class="grid grid-cols-1 gap-x-5 gap-y-6 sm:grid-cols-[repeat(auto-fill,minmax(12.5rem,1fr))]"><DocumentEntryv-for="document in filteredStorageDocuments"diff --git a/src/components/home/cloud/CloudHome.stories.ts b/src/components/home/cloud/CloudHome.stories.tsindex e6b896df1..33c4ee8e9 100644--- a/src/components/home/cloud/CloudHome.stories.ts+++ b/src/components/home/cloud/CloudHome.stories.ts@@ -75,7 +75,7 @@ const meta = {},setup: () => ({ args, workspaces, query: ref(''), view: ref<'grid' | 'list'>('grid') }),template: `- <div :class="['flex h-dvh max-h-[760px] flex-col', args.realActions && '-m-8 max-h-none']">+ <div :class="['flex h-dvh max-h-190 flex-col', args.realActions && '-m-8 max-h-none']"><HomeLayout><template #sidebar><HomeSidebardiff --git a/src/components/home/cloud/CloudWorkspaceView.vue b/src/components/home/cloud/CloudWorkspaceView.vueindex 102728bc8..50b8e0b3f 100644--- a/src/components/home/cloud/CloudWorkspaceView.vue+++ b/src/components/home/cloud/CloudWorkspaceView.vue@@ -161,7 +161,7 @@ const metadata = (document: CloudDocumentRow) =><divv-if="state === 'loading'"- class="grid grid-cols-1 gap-x-5 gap-y-6 sm:grid-cols-[repeat(auto-fill,minmax(200px,1fr))]"+ class="grid grid-cols-1 gap-x-5 gap-y-6 sm:grid-cols-[repeat(auto-fill,minmax(12.5rem,1fr))]":aria-label="t.homeLoadingFiles"><div v-for="index in 4" :key="index" class="min-w-0 animate-pulse motion-reduce:animate-none">@@ -192,7 +192,7 @@ const metadata = (document: CloudDocumentRow) =>v-else:class="view === 'grid'- ? 'grid grid-cols-1 gap-x-5 gap-y-6 sm:grid-cols-[repeat(auto-fill,minmax(200px,1fr))]'+ ? 'grid grid-cols-1 gap-x-5 gap-y-6 sm:grid-cols-[repeat(auto-fill,minmax(12.5rem,1fr))]': 'overflow-hidden rounded-lg border border-border'">diff --git a/src/components/home/recent/RecentFilesSection.vue b/src/components/home/recent/RecentFilesSection.vueindex 2de57afd6..c587a7dc0 100644--- a/src/components/home/recent/RecentFilesSection.vue+++ b/src/components/home/recent/RecentFilesSection.vue@@ -84,7 +84,7 @@ function formattedDate(updatedAt: string): string {<divv-if="documents.length && view === 'grid'"- class="grid grid-cols-1 gap-x-5 gap-y-6 sm:grid-cols-[repeat(auto-fill,minmax(200px,1fr))]"+ class="grid grid-cols-1 gap-x-5 gap-y-6 sm:grid-cols-[repeat(auto-fill,minmax(12.5rem,1fr))]"><DocumentEntryv-for="document in documents"diff --git a/src/components/home/recovery/RecoverySection.vue b/src/components/home/recovery/RecoverySection.vueindex 4d3300e8e..c1c0f1ea8 100644--- a/src/components/home/recovery/RecoverySection.vue+++ b/src/components/home/recovery/RecoverySection.vue@@ -85,7 +85,7 @@ async function discard(snapshot: RecoverableSnapshot): Promise<void> {<div:class="view === 'grid'- ? 'grid grid-cols-1 gap-x-5 gap-y-6 sm:grid-cols-[repeat(auto-fill,minmax(200px,1fr))]'+ ? 'grid grid-cols-1 gap-x-5 gap-y-6 sm:grid-cols-[repeat(auto-fill,minmax(12.5rem,1fr))]': 'overflow-hidden rounded-lg border border-border'">diff --git a/src/components/icon-picker/IconPicker.vue b/src/components/icon-picker/IconPicker.vueindex 8c8eb477e..971d428a2 100644--- a/src/components/icon-picker/IconPicker.vue+++ b/src/components/icon-picker/IconPicker.vue@@ -206,7 +206,7 @@ function pick(name: string) {<IconPreview :svg="previews.get(entry.value)" class="size-5 text-surface" /></template><template v-if="items.length > 0" #footer="{ highlighted }">- <p class="flex h-5 items-center gap-1.5 truncate px-1 text-[11px] text-muted">+ <p class="flex h-5 items-center gap-1.5 truncate px-1 text-2xs text-muted"><template v-if="highlighted"><span class="truncate text-surface">{{ highlighted.label }}</span><span class="truncate">{{ details(highlighted.value) }}</span>diff --git a/src/components/inputs/NumberField.vue b/src/components/inputs/NumberField.vueindex b96922098..87cfee211 100644--- a/src/components/inputs/NumberField.vue+++ b/src/components/inputs/NumberField.vue@@ -137,9 +137,9 @@ defineOptions({ inheritAttrs: false }):class="styles.leading({ class: ui?.leading })"><slot name="icon">- <span v-if="icon" class="text-[11px] leading-none">{{ icon }}</span>+ <span v-if="icon" class="text-2xs leading-none">{{ icon }}</span></slot>- <span v-if="label" class="text-[11px] leading-none">{{ label }}</span>+ <span v-if="label" class="text-2xs leading-none">{{ label }}</span></span><NumberFieldInput :class="styles.field({ class: ui?.field })" /><NumberFieldValue :class="styles.display({ class: ui?.display })">diff --git a/src/components/libraries/LibraryManagerDialog.vue b/src/components/libraries/LibraryManagerDialog.vueindex fb025dd55..1097e7291 100644--- a/src/components/libraries/LibraryManagerDialog.vue+++ b/src/components/libraries/LibraryManagerDialog.vue@@ -95,7 +95,7 @@ function reviewUpdate(group: (typeof visibleUpdateGroups.value)[number]) {<template #leading><icon-lucide-refresh-cw class="size-3.5" /></template>{{ panels.libraryUpdates }}<template v-if="visibleUpdateGroups.length" #trailing>- <span class="rounded-full bg-accent px-1.5 text-[10px] text-on-accent">{{+ <span class="rounded-full bg-accent px-1.5 text-3xs text-on-accent">{{visibleUpdateGroups.length}}</span></template>@@ -122,7 +122,7 @@ function reviewUpdate(group: (typeof visibleUpdateGroups.value)[number]) {<icon-lucide-library class="size-4 text-component" /><div class="min-w-0 flex-1"><p class="truncate text-xs text-surface">{{ library.name }}</p>- <p class="text-[10px] text-muted">+ <p class="text-3xs text-muted">{{ panels.libraryAssetCount({ count: library.assetCount }) }}</p></div>@@ -160,7 +160,7 @@ function reviewUpdate(group: (typeof visibleUpdateGroups.value)[number]) {<div class="min-w-0 flex-1"><button type="button" class="block w-full text-left" @click="reviewUpdate(asset)"><p class="truncate text-xs text-surface">{{ asset.name }}</p>- <p data-test-id="library-update-instance-count" class="text-[10px] text-muted">+ <p data-test-id="library-update-instance-count" class="text-3xs text-muted">{{ panels.libraryInstanceCount({ count: asset.instanceIds.length }) }}</p></button>diff --git a/src/components/libraries/PublishLibraryDialog.vue b/src/components/libraries/PublishLibraryDialog.vueindex 05ab3fd4c..89f7a8d3e 100644--- a/src/components/libraries/PublishLibraryDialog.vue+++ b/src/components/libraries/PublishLibraryDialog.vue@@ -207,7 +207,7 @@ async function publish() {<icon-lucide-component v-else class="size-4" /></div><span class="min-w-0 flex-1 truncate text-xs">{{ change.asset.name }}</span>- <span class="text-[10px] text-muted">{{ changeLabels[change.kind] }}</span>+ <span class="text-3xs text-muted">{{ changeLabels[change.kind] }}</span></label></div></div>diff --git a/src/components/libraries/review/LibraryUpdateReviewDialog.vue b/src/components/libraries/review/LibraryUpdateReviewDialog.vueindex b0deeb9c8..36dba9d85 100644--- a/src/components/libraries/review/LibraryUpdateReviewDialog.vue+++ b/src/components/libraries/review/LibraryUpdateReviewDialog.vue@@ -246,7 +246,7 @@ watch([request, currentInstanceId], () => void loadPreview(), { immediate: trueclass="block size-3.5 rounded-full border border-accent bg-panel shadow outline-none focus-visible:ring-2 focus-visible:ring-panel-focus"/></SliderRoot>- <span v-if="mode === 'overlay'" class="w-8 text-right text-[10px] text-muted">+ <span v-if="mode === 'overlay'" class="w-8 text-right text-3xs text-muted">{{ opacity[0] }}%</span></div>diff --git a/src/components/metrics/DailyChart.vue b/src/components/metrics/DailyChart.vueindex 0e3e9054b..bbf75fce5 100644--- a/src/components/metrics/DailyChart.vue+++ b/src/components/metrics/DailyChart.vue@@ -73,7 +73,7 @@ const radius = (index: number): [number, number, number, number] =>:bar-gap="2":bar-category-gap="stacked ? '10%' : '30%'":is-animation-active="false"- class="text-[11px]"+ class="text-2xs":title="label"><CartesianGrid :vertical="false" />diff --git a/src/components/metrics/DailyLevelChart.vue b/src/components/metrics/DailyLevelChart.vueindex f2296d94d..791fe19b9 100644--- a/src/components/metrics/DailyLevelChart.vue+++ b/src/components/metrics/DailyLevelChart.vue@@ -37,7 +37,7 @@ const formatTick = (value: unknown) =>:height="height":margin="{ top: 8, right: 0, bottom: 0, left: 0 }":is-animation-active="false"- class="text-[11px]"+ class="text-2xs":title="label"><CartesianGrid :vertical="false" />diff --git a/src/components/metrics/MetricsDashboard.stories.ts b/src/components/metrics/MetricsDashboard.stories.tsindex bc9bd8aac..f12fddd4d 100644--- a/src/components/metrics/MetricsDashboard.stories.ts+++ b/src/components/metrics/MetricsDashboard.stories.ts@@ -342,13 +342,13 @@ const story = (frame: string, withUsage = true, withActivity = true): Story => (})})-export const Overview = story('h-[3950px]')+export const Overview = story('h-987.5')/** PostHog did not answer: retention and usage give way to a notice, the rest stays. */-export const WithoutUsage = story('h-[3550px]', false)+export const WithoutUsage = story('h-887.5', false)/** Before the first nightly sync, issues and pull requests give way to a notice. */-export const BeforeIssueSync = story('h-[3400px]', true, false)+export const BeforeIssueSync = story('h-850', true, false)/** The dashboard in a phone-width window. */-export const Narrow = story('h-[6450px] w-[390px]')+export const Narrow = story('h-1612.5 w-97.5')diff --git a/src/components/metrics/PlatformsChart.vue b/src/components/metrics/PlatformsChart.vueindex e466d8db3..c4c85baee 100644--- a/src/components/metrics/PlatformsChart.vue+++ b/src/components/metrics/PlatformsChart.vue@@ -30,7 +30,7 @@ const height = computed(() => rows.value.length * ROW_HEIGHT + LEGEND_HEIGHT):margin="{ top: 0, right: 0, bottom: 0, left: 0 }":bar-category-gap="6":is-animation-active="false"- class="text-[11px]"+ class="text-2xs"title="Daily pings by OS, desktop and web"><XAxis type="number" hide />diff --git a/src/components/metrics/RetentionChart.vue b/src/components/metrics/RetentionChart.vueindex 5e7ad86bb..c32c96dca 100644--- a/src/components/metrics/RetentionChart.vue+++ b/src/components/metrics/RetentionChart.vue@@ -55,7 +55,7 @@ const tooltipValue = (value: unknown, _name: unknown, item: { payload?: unknown:height="180":margin="{ top: 8, right: 8, bottom: 0, left: 0 }":is-animation-active="false"- class="text-[11px]"+ class="text-2xs"title="Share of installs that came back, by days since first seen"><CartesianGrid :vertical="false" />diff --git a/src/components/navigation/examples/States.vue b/src/components/navigation/examples/States.vueindex 19b26b8e9..6123d082e 100644--- a/src/components/navigation/examples/States.vue+++ b/src/components/navigation/examples/States.vue@@ -24,7 +24,7 @@ const pageStates = [<template><div class="grid max-w-3xl grid-cols-2 gap-6"><section class="rounded-lg border border-border bg-panel p-3 shadow-lg">- <h2 class="mb-3 text-[11px] font-semibold tracking-wider text-muted uppercase">+ <h2 class="mb-3 text-2xs font-semibold tracking-wider text-muted uppercase">Page and panel states</h2><SegmentedControl@@ -66,7 +66,7 @@ const pageStates = [</section><section class="rounded-lg border border-border bg-canvas p-3 shadow-lg">- <h2 class="mb-3 text-[11px] font-semibold tracking-wider text-muted uppercase">Tab states</h2>+ <h2 class="mb-3 text-2xs font-semibold tracking-wider text-muted uppercase">Tab states</h2><div :class="tabStyles().root()"><div :class="tabStyles().list()"><buttondiff --git a/src/components/photo-picker/PhotoPicker.vue b/src/components/photo-picker/PhotoPicker.vueindex e29806b54..4e3aca29d 100644--- a/src/components/photo-picker/PhotoPicker.vue+++ b/src/components/photo-picker/PhotoPicker.vue@@ -143,7 +143,7 @@ function pick(id: string) {/></template><template v-if="hasKey" #footer="{ highlighted }">- <p class="flex h-5 items-center gap-1 truncate px-1 text-[11px] text-muted">+ <p class="flex h-5 items-center gap-1 truncate px-1 text-2xs text-muted"><SettingsLink v-if="highlighted" :href="photographerURL(highlighted.value)">{{highlighted.label}}</SettingsLink>diff --git a/src/components/presence/FollowFrame.stories.ts b/src/components/presence/FollowFrame.stories.tsindex 7fc831c0b..f2a64d718 100644--- a/src/components/presence/FollowFrame.stories.ts+++ b/src/components/presence/FollowFrame.stories.ts@@ -16,7 +16,7 @@ const meta = {render: (args) => ({components: { FollowFrame },setup: () => ({ args }),- template: '<div class="relative h-64 w-[480px] bg-canvas"><FollowFrame v-bind="args" /></div>'+ template: '<div class="relative h-64 w-120 bg-canvas"><FollowFrame v-bind="args" /></div>'})} satisfies Meta<Args>diff --git a/src/components/properties/AlignmentActionsMenu.vue b/src/components/properties/AlignmentActionsMenu.vueindex af13c480d..80cad531a 100644--- a/src/components/properties/AlignmentActionsMenu.vue+++ b/src/components/properties/AlignmentActionsMenu.vue@@ -65,7 +65,7 @@ const testId = (id: EditorCommandId) => `alignment-action-${id.replace('selectio@select="runCommand(id)"><span>{{ getCommand(id).label }}</span>- <span class="ml-6 text-[11px] text-muted">{{+ <span class="ml-6 text-2xs text-muted">{{formatShortcut(editorCommandMetadata(id).shortcut)}}</span></DropdownMenuItem>diff --git a/src/components/properties/BooleanOperationsControl.vue b/src/components/properties/BooleanOperationsControl.vueindex 41b42e57d..6f400e64a 100644--- a/src/components/properties/BooleanOperationsControl.vue+++ b/src/components/properties/BooleanOperationsControl.vue@@ -70,7 +70,7 @@ const itemCls = menuItem({ justify: 'between' })<component :is="operation.icon" class="size-3.5 shrink-0 text-muted" /><span>{{ getCommand(operation.id).label }}</span></div>- <span class="ml-6 text-[11px] text-muted">{{+ <span class="ml-6 text-2xs text-muted">{{formatShortcut(editorCommandMetadata(operation.id).shortcut)}}</span></DropdownMenuItem>diff --git a/src/components/properties/EffectsSection.vue b/src/components/properties/EffectsSection.vueindex 0303fe088..d759d0026 100644--- a/src/components/properties/EffectsSection.vue+++ b/src/components/properties/EffectsSection.vue@@ -77,7 +77,7 @@ function effectPreview(effect: Effect): Fill {@update:model-value="updateStyle"/>- <p v-if="isMixed" class="text-[11px] text-muted">{{ panels.mixedEffectsHelp }}</p>+ <p v-if="isMixed" class="text-2xs text-muted">{{ panels.mixedEffectsHelp }}</p><divv-for="(effect, index) in items"diff --git a/src/components/properties/ExportSection.vue b/src/components/properties/ExportSection.vueindex 276716fcb..d358cf330 100644--- a/src/components/properties/ExportSection.vue+++ b/src/components/properties/ExportSection.vue@@ -127,7 +127,7 @@ watch(previewKey, updatePreview, { flush: 'post' })<icon-lucide-plus class="size-3.5" /></IconButton></template>- <p v-if="mixed" class="text-[11px] text-muted">+ <p v-if="mixed" class="text-2xs text-muted">{{ panels.mixed }}</p>@@ -181,7 +181,7 @@ watch(previewKey, updatePreview, { flush: 'post' })<Tip v-if="activeSettings.length > 0" :label="panels.toggleExportPreview"><buttondata-test-id="export-preview-toggle"- class="mt-1 flex w-full cursor-pointer items-center gap-1 rounded border-none bg-transparent px-0 py-1 text-[11px] text-muted hover:text-surface"+ class="mt-1 flex w-full cursor-pointer items-center gap-1 rounded border-none bg-transparent px-0 py-1 text-2xs text-muted hover:text-surface"@click="showPreview = !showPreview"><icon-lucide-chevron-down v-if="showPreview" class="size-3" />@@ -195,7 +195,7 @@ watch(previewKey, updatePreview, { flush: 'post' })</div><divv-else-if="showPreview"- class="mt-1 rounded border border-border px-3 py-2 text-[11px] text-muted"+ class="mt-1 rounded border border-border px-3 py-2 text-2xs text-muted">{{ panels.exportRenderingPreview }}</div>diff --git a/src/components/properties/FillSection.vue b/src/components/properties/FillSection.vueindex f783dbde8..609d7151c 100644--- a/src/components/properties/FillSection.vue+++ b/src/components/properties/FillSection.vue@@ -130,7 +130,7 @@ function updateSolidColor(@update:model-value="updateStyle"/>- <p v-if="isMixed" class="text-[11px] text-muted">{{ panels.mixedFillsHelp }}</p>+ <p v-if="isMixed" class="text-2xs text-muted">{{ panels.mixedFillsHelp }}</p><div v-for="(fill, index) in items" :key="`${index}:${fill.visible ? 'visible' : 'hidden'}`"><PropertyItemRowdiff --git a/src/components/properties/IconSection.vue b/src/components/properties/IconSection.vueindex 5e98ba07d..917a11fdd 100644--- a/src/components/properties/IconSection.vue+++ b/src/components/properties/IconSection.vue@@ -57,7 +57,7 @@ function confirmSwap() {<template><PanelSection v-if="name" :label="panels.icon"><template #actions>- <span v-if="modified" class="mr-1 text-[11px] text-muted" data-property="icon-modified">+ <span v-if="modified" class="mr-1 text-2xs text-muted" data-property="icon-modified">{{ panels.iconModified }}</span><IconButton v-if="modified" :label="panels.resetIcon" @click="reset">diff --git a/src/components/properties/TypographySection.vue b/src/components/properties/TypographySection.vueindex 17f58cdcb..b4ea57792 100644--- a/src/components/properties/TypographySection.vue+++ b/src/components/properties/TypographySection.vue@@ -398,7 +398,7 @@ function picked<T>(value: MixedValue<T>): T | '' {<labelv-for="feature in commonFeatures":key="feature.tag"- class="flex items-center justify-between gap-1.5 text-[11px] text-muted"+ class="flex items-center justify-between gap-1.5 text-2xs text-muted"><span>{{ feature.label }}</span><AppSwitchdiff --git a/src/components/properties/VariablesSection.vue b/src/components/properties/VariablesSection.vueindex c0161ce12..0edf1c1d6 100644--- a/src/components/properties/VariablesSection.vue+++ b/src/components/properties/VariablesSection.vue@@ -30,9 +30,9 @@ const { panels } = useI18n()<icon-lucide-square-arrow-out-up-right class="size-3.5" /></IconButton></template>- <div v-if="hasVariables" class="mt-1 text-[11px] text-muted">+ <div v-if="hasVariables" class="mt-1 text-2xs text-muted">{{ variableCount }} / {{ collectionCount }}</div>- <div v-else class="mt-1 text-[11px] text-muted">{{ panels.noLocalVariables }}</div>+ <div v-else class="mt-1 text-2xs text-muted">{{ panels.noLocalVariables }}</div></PanelSection></template>diff --git a/src/components/properties/binding/examples/States.vue b/src/components/properties/binding/examples/States.vueindex 7fdf9fd0e..5269c3795 100644--- a/src/components/properties/binding/examples/States.vue+++ b/src/components/properties/binding/examples/States.vue@@ -129,15 +129,15 @@ const mixedTargets: BindingTarget[] = [</script><template>- <div class="w-[320px] overflow-hidden rounded-lg border border-border bg-panel shadow-xl">+ <div class="w-80 overflow-hidden rounded-lg border border-border bg-panel shadow-xl"><header class="border-b border-border px-3 py-2"><p class="text-xs font-semibold">Binding field states</p>- <p class="mt-1 text-[11px] text-muted">Pill at rest, resolved value while editing</p>+ <p class="mt-1 text-2xs text-muted">Pill at rest, resolved value while editing</p></header><div class="grid grid-cols-2 gap-1.5 px-3"><label class="space-y-1">- <span class="text-[11px] text-muted">Unbound</span>+ <span class="text-2xs text-muted">Unbound</span><Fieldv-model="values.unbound"label="Unbound field"@@ -146,7 +146,7 @@ const mixedTargets: BindingTarget[] = [/></label><label class="space-y-1">- <span class="text-[11px] text-muted">Detach on edit</span>+ <span class="text-2xs text-muted">Detach on edit</span><Fieldv-model="values.detach"label="Detach bound field"@@ -155,7 +155,7 @@ const mixedTargets: BindingTarget[] = [/></label><label class="space-y-1">- <span class="text-[11px] text-muted">Read only</span>+ <span class="text-2xs text-muted">Read only</span><Fieldv-model="values.readonly"label="Readonly bound field"@@ -165,7 +165,7 @@ const mixedTargets: BindingTarget[] = [/></label><label class="space-y-1">- <span class="text-[11px] text-muted">Edit variable</span>+ <span class="text-2xs text-muted">Edit variable</span><Fieldv-model="values.editVariable"label="Edit variable field"@@ -175,7 +175,7 @@ const mixedTargets: BindingTarget[] = [/></label><label class="space-y-1">- <span class="text-[11px] text-muted">Mixed</span>+ <span class="text-2xs text-muted">Mixed</span><Fieldv-model="values.mixed"label="Mixed binding field"@@ -184,7 +184,7 @@ const mixedTargets: BindingTarget[] = [/></label><label class="space-y-1">- <span class="text-[11px] text-muted">Disabled</span>+ <span class="text-2xs text-muted">Disabled</span><Fieldv-model="values.disabled"label="Disabled bound field"@@ -194,7 +194,7 @@ const mixedTargets: BindingTarget[] = [/></label><label class="col-span-2 space-y-1">- <span class="text-[11px] text-muted">Derived by auto layout</span>+ <span class="text-2xs text-muted">Derived by auto layout</span><Fieldv-model="values.derived"label="Derived bound field"diff --git a/src/components/properties/component-properties/ComponentPropertyListSection.vue b/src/components/properties/component-properties/ComponentPropertyListSection.vueindex 10933a286..1abff8b90 100644--- a/src/components/properties/component-properties/ComponentPropertyListSection.vue+++ b/src/components/properties/component-properties/ComponentPropertyListSection.vue@@ -176,7 +176,7 @@ function valueLabel(type: ComponentPropertyType, value: string) {v-for="conflict in conflicts":key="conflict.label"role="alert"- class="flex items-start gap-1.5 rounded bg-warning/10 px-2 py-1.5 text-[11px] leading-4 text-warning"+ class="flex items-start gap-1.5 rounded bg-warning/10 px-2 py-1.5 text-2xs leading-4 text-warning"><icon-lucide-triangle-alert class="mt-0.5 size-3 shrink-0" aria-hidden="true" /><span class="min-w-0 flex-1">@@ -262,7 +262,7 @@ function valueLabel(type: ComponentPropertyType, value: string) {</div><div v-if="exposed.length" class="flex flex-col gap-0.5">- <span class="text-[11px] text-muted">{{ panels.nestedInstances }}</span>+ <span class="text-2xs text-muted">{{ panels.nestedInstances }}</span><div class="-mx-1.5 flex flex-col"><divv-for="node in exposed"diff --git a/src/components/properties/component-properties/PropertyBindings.vue b/src/components/properties/component-properties/PropertyBindings.vueindex 1cb93d1f8..15b6a4471 100644--- a/src/components/properties/component-properties/PropertyBindings.vue+++ b/src/components/properties/component-properties/PropertyBindings.vue@@ -33,7 +33,7 @@ const panels = usePanelMessages()/><component :is="sceneNodeIcon(group.node)" class="size-3.5 shrink-0" aria-hidden="true" /><span class="min-w-0 truncate">{{ group.name }}</span>- <span class="ml-auto text-[10px] text-muted">{{+ <span class="ml-auto text-3xs text-muted">{{group.bindings.length === totalVariants? panels.allVariants: panels.usedInVariants({ count: group.bindings.length, total: totalVariants })diff --git a/src/components/properties/component-properties/behaviour/BehaviourSection.vue b/src/components/properties/component-properties/behaviour/BehaviourSection.vueindex d86bf7e25..21ef0a234 100644--- a/src/components/properties/component-properties/behaviour/BehaviourSection.vue+++ b/src/components/properties/component-properties/behaviour/BehaviourSection.vue@@ -124,7 +124,7 @@ const nextStep = computed(() => {<span class="min-w-0 flex-1 truncate font-medium">{{ kind.label }}</span><spanv-if="!behaviour.missing.length"- class="flex h-5 shrink-0 items-center gap-1 rounded bg-panel-field px-1.5 text-[10px] text-muted"+ class="flex h-5 shrink-0 items-center gap-1 rounded bg-panel-field px-1.5 text-3xs text-muted"><icon-lucide-check class="size-3 text-success" />{{ panels.behaviourComplete }}@@ -134,7 +134,7 @@ const nextStep = computed(() => {<pv-if="behaviour.missing.length"role="status"- class="flex items-start gap-1.5 rounded bg-warning/10 px-1.5 py-1 text-[11px] leading-4 text-warning"+ class="flex items-start gap-1.5 rounded bg-warning/10 px-1.5 py-1 text-2xs leading-4 text-warning"data-property="behaviour-missing"><SeverityIcon severity="warning" class="mt-0.5 shrink-0" />@@ -163,7 +163,7 @@ const nextStep = computed(() => {v-if="moreRows.length || !statesFirst"v-model:open="moreOpen":label="panels.behaviourMoreOptions"- :ui="{ trigger: 'text-[11px] text-muted hover:text-surface', icon: 'size-3' }"+ :ui="{ trigger: 'text-2xs text-muted hover:text-surface', icon: 'size-3' }"data-property="behaviour-more"><div class="flex flex-col gap-2 pt-2">diff --git a/src/components/properties/component-properties/behaviour/BehaviourStates.vue b/src/components/properties/component-properties/behaviour/BehaviourStates.vueindex 96cddc4ec..794031ec3 100644--- a/src/components/properties/component-properties/behaviour/BehaviourStates.vue+++ b/src/components/properties/component-properties/behaviour/BehaviourStates.vue@@ -47,9 +47,9 @@ function map(state: InteractionState, value: string | number) {<template><div class="flex flex-col gap-1.5" data-property="behaviour-states">- <div class="text-[11px] text-muted">{{ panels.behaviourStates }}</div>+ <div class="text-2xs text-muted">{{ panels.behaviourStates }}</div><template v-if="!states.options.length">- <p class="text-[11px] leading-4 text-muted">{{ panels.behaviourStatesHint }}</p>+ <p class="text-2xs leading-4 text-muted">{{ panels.behaviourStatesHint }}</p><BehaviourBindingField:label="panels.behaviourStates":property-id="null"diff --git a/src/components/properties/component-properties/behaviour/examples/States.vue b/src/components/properties/component-properties/behaviour/examples/States.vueindex 40929cab2..34a403fc3 100644--- a/src/components/properties/component-properties/behaviour/examples/States.vue+++ b/src/components/properties/component-properties/behaviour/examples/States.vue@@ -98,7 +98,7 @@ const record = (entry: string) => {<divv-for="(state, index) in [null, textareaBare, switchComplete, sliderIncomplete]":key="index"- class="w-[240px] overflow-hidden rounded-lg border border-border bg-panel"+ class="w-60 overflow-hidden rounded-lg border border-border bg-panel"><BehaviourSection:behaviour="state"diff --git a/src/components/properties/component-properties/slot/SlotLimitsPopover.vue b/src/components/properties/component-properties/slot/SlotLimitsPopover.vueindex f76d3b185..e6571be00 100644--- a/src/components/properties/component-properties/slot/SlotLimitsPopover.vue+++ b/src/components/properties/component-properties/slot/SlotLimitsPopover.vue@@ -33,7 +33,7 @@ function label(limit: SlotLimit): string {<PopoverTrigger:data-issues="issues > 0 || undefined"data-property="slot-limits"- class="flex h-5 shrink-0 cursor-pointer items-center gap-1 rounded bg-panel-field px-1.5 text-[10px] text-muted outline-none hover:bg-hover hover:text-surface focus-visible:ring-1 focus-visible:ring-panel-focus data-issues:bg-warning/15 data-issues:text-warning"+ class="flex h-5 shrink-0 cursor-pointer items-center gap-1 rounded bg-panel-field px-1.5 text-3xs text-muted outline-none hover:bg-hover hover:text-surface focus-visible:ring-1 focus-visible:ring-panel-focus data-issues:bg-warning/15 data-issues:text-warning"><SeverityIcon v-if="issues" severity="warning" /><icon-lucide-check v-else class="size-3 text-success" />@@ -49,7 +49,7 @@ function label(limit: SlotLimit): string {><div :class="styles.header"><h3 class="text-xs font-semibold text-surface">{{ panels.slotLimits }}</h3>- <span v-if="issues" class="text-[11px] text-muted">+ <span v-if="issues" class="text-2xs text-muted">{{ panels.slotLimitIssueCount(issues) }}</span><PopoverClose as-child>@@ -62,14 +62,14 @@ function label(limit: SlotLimit): string {<liv-for="limit in limits":key="limit.kind"- class="grid grid-cols-[14px_minmax(0,1fr)] gap-x-2 text-xs text-surface"+ class="grid grid-cols-[0.875rem_minmax(0,1fr)] gap-x-2 text-xs text-surface"><icon-lucide-check v-if="limit.met" class="mt-px size-3.5 text-success" /><SeverityIcon v-else severity="warning" class="mt-px size-3.5" /><span>{{ label(limit) }}</span><template v-if="limit.kind === 'preferred' && !limit.met"><span />- <span class="text-[11px] text-muted">+ <span class="text-2xs text-muted">{{ panels.slotNonPreferredFound(limit.offending) }}</span><span />diff --git a/src/components/properties/component-properties/slot/SlotPropertyRow.vue b/src/components/properties/component-properties/slot/SlotPropertyRow.vueindex 3b29c46db..30e87b3e6 100644--- a/src/components/properties/component-properties/slot/SlotPropertyRow.vue+++ b/src/components/properties/component-properties/slot/SlotPropertyRow.vue@@ -59,7 +59,7 @@ const item = menuItem({ justify: 'start' })<span class="truncate" :class="modified ? 'text-surface' : 'text-muted'">{{ modified ? panels.slotModified : panels.slotDefault }}</span>- <span class="ml-auto shrink-0 text-[11px] text-muted">+ <span class="ml-auto shrink-0 text-2xs text-muted">{{ panels.slotItemCount(itemCount) }}</span></div>diff --git a/src/components/properties/component-properties/slot/examples/Settings.vue b/src/components/properties/component-properties/slot/examples/Settings.vueindex 2c4b42a9c..5fe552c8e 100644--- a/src/components/properties/component-properties/slot/examples/Settings.vue+++ b/src/components/properties/component-properties/slot/examples/Settings.vue@@ -37,7 +37,7 @@ function setPreferred(id: string, preferred: boolean) {<template><div class="flex gap-6">- <div class="w-[240px] overflow-hidden rounded-lg border border-border bg-panel">+ <div class="w-60 overflow-hidden rounded-lg border border-border bg-panel"><PanelSection label="Slots"><div class="flex items-center gap-1"><span class="flex-1 truncate text-xs text-surface">{{ slot.name }}</span>diff --git a/src/components/properties/component-properties/slot/examples/States.vue b/src/components/properties/component-properties/slot/examples/States.vueindex 5f349d679..4c1bc2ac4 100644--- a/src/components/properties/component-properties/slot/examples/States.vue+++ b/src/components/properties/component-properties/slot/examples/States.vue@@ -30,7 +30,7 @@ const record = (entry: string) => {<template><div class="flex gap-6">- <div class="w-[240px] overflow-hidden rounded-lg border border-border bg-panel">+ <div class="w-60 overflow-hidden rounded-lg border border-border bg-panel"><PanelSection label="Component properties" :ui="{ title: 'text-component' }"><div class="flex flex-col gap-1.5"><PanelFieldGroup label="Title">@@ -79,7 +79,7 @@ const record = (entry: string) => {</div></PanelSection></div>- <ol aria-label="Events" class="w-48 text-[11px] text-muted">+ <ol aria-label="Events" class="w-48 text-2xs text-muted"><li v-for="(entry, index) in log" :key="index">{{ entry }}</li></ol></div>diff --git a/src/components/properties/component-properties/variant/VariantAuthoringSection.vue b/src/components/properties/component-properties/variant/VariantAuthoringSection.vueindex c29fc7a38..546fb6288 100644--- a/src/components/properties/component-properties/variant/VariantAuthoringSection.vue+++ b/src/components/properties/component-properties/variant/VariantAuthoringSection.vue@@ -75,7 +75,7 @@ function commitSelectedValue(propertyId: string) {<pv-if="selectedHasConflict"role="alert"- class="rounded bg-error/10 px-2 py-1.5 text-[10px] leading-4 text-error"+ class="rounded bg-error/10 px-2 py-1.5 text-3xs leading-4 text-error">{{ panels.duplicateVariantValues }}. {{ panels.variantConflictHelp }}.</p>diff --git a/src/components/properties/component-properties/variant/VariantValueList.vue b/src/components/properties/component-properties/variant/VariantValueList.vueindex 4115e0a4d..c7831146a 100644--- a/src/components/properties/component-properties/variant/VariantValueList.vue+++ b/src/components/properties/component-properties/variant/VariantValueList.vue@@ -117,7 +117,7 @@ function replace(value: string, replacement: string) {</IconButton></div><div v-if="replacing === value" class="flex flex-col gap-1 pl-5">- <span class="text-[11px] text-muted">{{ panels.moveVariantsTo({ value }) }}</span>+ <span class="text-2xs text-muted">{{ panels.moveVariantsTo({ value }) }}</span><AppSelect:label="panels.moveVariantsTo({ value })":model-value="''"@@ -126,7 +126,7 @@ function replace(value: string, replacement: string) {"@update:model-value="replace(value, $event)"/>- <span v-if="conflict" role="alert" class="text-[11px] text-warning">+ <span v-if="conflict" role="alert" class="text-2xs text-warning">{{ panels.duplicateVariantValues }}</span></div>diff --git a/src/components/properties/frame-presets/FramePresetsSection.vue b/src/components/properties/frame-presets/FramePresetsSection.vueindex b99421078..b81eaec51 100644--- a/src/components/properties/frame-presets/FramePresetsSection.vue+++ b/src/components/properties/frame-presets/FramePresetsSection.vue@@ -18,7 +18,7 @@ function createFrame(preset: FramePreset) {<template><section :aria-label="panels.frame"><div class="flex h-10 items-center border-b border-border px-3">- <span role="heading" aria-level="2" class="text-[11px] font-semibold text-surface">+ <span role="heading" aria-level="2" class="text-2xs font-semibold text-surface">{{ panels.frame }}</span></div>@@ -31,7 +31,7 @@ function createFrame(preset: FramePreset) {class="border-b border-border"><CollapsibleTrigger- class="flex h-9 w-full items-center gap-1.5 px-3 text-left text-[11px] text-surface hover:bg-hover"+ class="flex h-9 w-full items-center gap-1.5 px-3 text-left text-2xs text-surface hover:bg-hover"><icon-lucide-chevron-rightclass="size-3 shrink-0 transition-transform data-[open]:rotate-90"@@ -49,7 +49,7 @@ function createFrame(preset: FramePreset) {:key="preset.id"type="button":data-frame-preset="preset.id"- class="flex h-7 w-full items-center gap-2 px-7 text-left text-[11px] text-surface hover:bg-hover"+ class="flex h-7 w-full items-center gap-2 px-7 text-left text-2xs text-surface hover:bg-hover"@click="createFrame(preset)"><span class="min-w-0 flex-1 truncate">{{ preset.name }}</span>diff --git a/src/components/properties/layout/LayoutFlowControl.vue b/src/components/properties/layout/LayoutFlowControl.vueindex 1688c5e21..fa45a318f 100644--- a/src/components/properties/layout/LayoutFlowControl.vue+++ b/src/components/properties/layout/LayoutFlowControl.vue@@ -31,7 +31,7 @@ const mode = computed(() => {<template><div>- <label class="mb-1 block text-[11px] text-muted">{{ panels.flow }}</label>+ <label class="mb-1 block text-2xs text-muted">{{ panels.flow }}</label><div class="flex items-center gap-1.5"><SegmentedControl:model-value="mode"diff --git a/src/components/properties/layout/LayoutSection.vue b/src/components/properties/layout/LayoutSection.vueindex 897954d18..03b13ebe4 100644--- a/src/components/properties/layout/LayoutSection.vue+++ b/src/components/properties/layout/LayoutSection.vue@@ -49,7 +49,7 @@ const { panels } = useI18n()<LayoutFlowControl v-if="LAYOUT_CONTAINER_TYPES.has(ctx.node.type)"><LayoutWrapToggle v-if="ctx.isFlex" /></LayoutFlowControl>- <div v-if="ctx.node.type !== 'TEXT'" class="mt-2 mb-1 text-[11px] text-muted">+ <div v-if="ctx.node.type !== 'TEXT'" class="mt-2 mb-1 text-2xs text-muted">{{ panels.dimensions }}</div><TextResizingControl v-if="ctx.node.type === 'TEXT'" />diff --git a/src/components/properties/layout/flex/FlexControls.vue b/src/components/properties/layout/flex/FlexControls.vueindex 39cb46140..52bf11d56 100644--- a/src/components/properties/layout/flex/FlexControls.vue+++ b/src/components/properties/layout/flex/FlexControls.vue@@ -37,7 +37,7 @@ const alignmentCells = computed(() => {<template><div class="mt-2">- <label class="mb-1 block text-[11px] text-muted">{{ panels.direction }}</label>+ <label class="mb-1 block text-2xs text-muted">{{ panels.direction }}</label><AppSelect:label="panels.direction":model-value="ctx.layoutDirection"@@ -49,7 +49,7 @@ const alignmentCells = computed(() => {@update:model-value="ctx.setLayoutDirection($event as LayoutDirection)"/></div>- <div class="mt-2 grid grid-cols-[78px_minmax(0,1fr)] items-start gap-3">+ <div class="mt-2 grid grid-cols-[4.875rem_minmax(0,1fr)] items-start gap-3"><LayoutAlignmentControldata-test-id="layout-alignment-grid":label="panels.alignment"diff --git a/src/components/properties/layout/flex/FlexGapField.vue b/src/components/properties/layout/flex/FlexGapField.vueindex d8c365042..af99b2f2a 100644--- a/src/components/properties/layout/flex/FlexGapField.vue+++ b/src/components/properties/layout/flex/FlexGapField.vue@@ -37,9 +37,9 @@ function setMode(value: string) {<divv-if="auto"data-test-id="layout-gap-input"- class="flex h-[26px] items-center rounded border border-border bg-input focus-within:border-panel-focus"+ class="flex h-6.5 items-center rounded border border-border bg-input focus-within:border-panel-focus">- <span class="px-[5px] text-muted">+ <span class="px-1.25 text-muted"><icon-lucide-align-horizontal-space-between v-if="horizontal" class="size-3.5" /><icon-lucide-align-vertical-space-between v-else class="size-3.5" /></span>diff --git a/src/components/properties/layout/grid/GridControls.vue b/src/components/properties/layout/grid/GridControls.vueindex 9bed04d28..3ec5176de 100644--- a/src/components/properties/layout/grid/GridControls.vue+++ b/src/components/properties/layout/grid/GridControls.vue@@ -24,7 +24,7 @@ function defaultTrackValue(sizing: GridTrackSizing): number {<template v-for="trackProp in trackProps" :key="trackProp"><div class="mt-2"><div class="mb-1 flex items-center justify-between">- <label class="text-[11px] text-muted">+ <label class="text-2xs text-muted">{{ trackProp === 'gridTemplateColumns' ? panels.columns : panels.rows }}</label><IconButtondiff --git a/src/components/properties/layout/size/SizeAxisField.vue b/src/components/properties/layout/size/SizeAxisField.vueindex 933db4a22..96a6ec980 100644--- a/src/components/properties/layout/size/SizeAxisField.vue+++ b/src/components/properties/layout/size/SizeAxisField.vue@@ -91,7 +91,7 @@ function handleSelect(value: SizeSelectValue) {<SelectTriggerdata-slot="sizing-trigger":aria-label="label"- class="flex shrink-0 cursor-pointer items-center gap-0.5 self-stretch border-none bg-transparent px-1.5 text-[10px] text-muted outline-none data-[state=open]:text-surface"+ class="flex shrink-0 cursor-pointer items-center gap-0.5 self-stretch border-none bg-transparent px-1.5 text-3xs text-muted outline-none data-[state=open]:text-surface"@pointerdown.stop><span v-if="sizingLabel()">{{ sizingLabel() }}</span>diff --git a/src/components/properties/paint/PaintValue.vue b/src/components/properties/paint/PaintValue.vueindex 761b6d773..e72f67862 100644--- a/src/components/properties/paint/PaintValue.vue+++ b/src/components/properties/paint/PaintValue.vue@@ -36,7 +36,7 @@ const tooltip = computed(() => (variableName ? `${variableName} · #${model.hex.v-else:aria-label="label"data-property="color-hex"- class="min-w-0 flex-1 border-none bg-transparent font-mono text-[11px] text-surface outline-none"+ class="min-w-0 flex-1 border-none bg-transparent font-mono text-2xs text-surface outline-none":value="model.hex.value"maxlength="6"@change="model.updateHex(inputValue($event))"diff --git a/src/components/properties/selection/SelectionLayoutSection.vue b/src/components/properties/selection/SelectionLayoutSection.vueindex c5994b795..4990d5fa7 100644--- a/src/components/properties/selection/SelectionLayoutSection.vue+++ b/src/components/properties/selection/SelectionLayoutSection.vue@@ -39,7 +39,7 @@ const { panels } = useI18n()<LayoutFlowControl v-if="layout.layoutMode.value !== undefined" class="mb-2" /><TextResizingControl v-if="layout.textResize.value !== undefined" />- <div class="mt-2 mb-1 text-[11px] text-muted">{{ panels.dimensions }}</div>+ <div class="mt-2 mb-1 text-2xs text-muted">{{ panels.dimensions }}</div><PositionControlsRoot v-slot="{ wValue, hValue, actions }"><PanelGrid :columns="2">@@ -71,7 +71,7 @@ const { panels } = useI18n()</PositionControlsRoot><template v-if="layout.spacingAxis.value">- <div class="mt-2 mb-1 text-[11px] text-muted">{{ panels.spacing }}</div>+ <div class="mt-2 mb-1 text-2xs text-muted">{{ panels.spacing }}</div><PanelGrid :columns="2"><Tip :label="panels.spacing"><NumberFielddiff --git a/src/components/properties/status/StatusSection.vue b/src/components/properties/status/StatusSection.vueindex e093137e3..e1337203f 100644--- a/src/components/properties/status/StatusSection.vue+++ b/src/components/properties/status/StatusSection.vue@@ -96,10 +96,10 @@ const setFor = computed(() =></template></AppSelect></div>- <p v-if="setFor" class="mt-1 text-[11px] text-muted">{{ setFor }}</p>+ <p v-if="setFor" class="mt-1 text-2xs text-muted">{{ setFor }}</p></template>- <p v-else-if="hidden" class="mt-1 text-[11px] text-muted" data-test-id="status-hidden">+ <p v-else-if="hidden" class="mt-1 text-2xs text-muted" data-test-id="status-hidden">{{messages.hiddenInside({state: hidden.state?.name ?? '',@@ -107,7 +107,7 @@ const setFor = computed(() =>})}}<button- class="cursor-pointer border-none bg-transparent p-0 text-[11px] text-accent hover:underline"+ class="cursor-pointer border-none bg-transparent p-0 text-2xs text-accent hover:underline"@click="remove">{{ messages.remove }}diff --git a/src/components/properties/status/StatusesSection.vue b/src/components/properties/status/StatusesSection.vueindex 50ef4bed3..a3ad727e2 100644--- a/src/components/properties/status/StatusesSection.vue+++ b/src/components/properties/status/StatusesSection.vue@@ -21,7 +21,7 @@ const states = useSceneComputed(() => store.statusWorkflow().states)<icon-lucide-square-arrow-out-up-right class="size-3.5" /></IconButton></template>- <ul class="mt-1 flex flex-wrap gap-x-3 gap-y-1 text-[11px] text-muted">+ <ul class="mt-1 flex flex-wrap gap-x-3 gap-y-1 text-2xs text-muted"><li v-for="state in states" :key="state.id" class="flex items-center gap-1.5"><StatusDot :color="state.color" />{{ state.name }}diff --git a/src/components/properties/stroke/StrokeSection.vue b/src/components/properties/stroke/StrokeSection.vueindex 8a9725542..a6775a7e3 100644--- a/src/components/properties/stroke/StrokeSection.vue+++ b/src/components/properties/stroke/StrokeSection.vue@@ -148,7 +148,7 @@ function onToggleSides(nodes: readonly SceneNode[]) {@update:model-value="updateStyle"/>- <p v-if="isMixed" class="text-[11px] text-muted">{{ panels.mixedStrokesHelp }}</p>+ <p v-if="isMixed" class="text-2xs text-muted">{{ panels.mixedStrokesHelp }}</p><PropertyItemRowv-for="(stroke, index) in items"@@ -233,7 +233,7 @@ function onToggleSides(nodes: readonly SceneNode[]) {<div v-if="!isMixed && items.length > 0" class="mt-1 flex items-center gap-1.5"><AppSelect:label="panels.strokeType"- :ui="{ trigger: 'w-[88px] flex-none' }"+ :ui="{ trigger: 'w-22 flex-none' }":model-value="alignValue":placeholder="panels.mixed":options="strokeCtx.alignOptions"@@ -260,7 +260,7 @@ function onToggleSides(nodes: readonly SceneNode[]) {v-if="sidesOffered":label="panels.strokeSides"size="xs"- class="size-[26px] shrink-0"+ class="size-6.5 shrink-0":active="expandedSides"data-property="stroke-sides"@click="onToggleSides(selectedNodes)"diff --git a/src/components/properties/variable-modes/VariableModeRows.vue b/src/components/properties/variable-modes/VariableModeRows.vueindex c7f7b771e..8f472b1b0 100644--- a/src/components/properties/variable-modes/VariableModeRows.vue+++ b/src/components/properties/variable-modes/VariableModeRows.vue@@ -47,7 +47,7 @@ function select(choice: VariableModeChoice, value: string) {class="mt-1.5 grid grid-cols-[minmax(0,1fr)_minmax(0,1fr)_auto] items-center gap-2"data-variable-mode-row>- <span class="truncate text-[11px] text-muted">{{ choice.name }}</span>+ <span class="truncate text-2xs text-muted">{{ choice.name }}</span><AppSelect:model-value="current(choice)"class="w-full"diff --git a/src/components/save-to/SaveToDialog.stories.ts b/src/components/save-to/SaveToDialog.stories.tsindex 8fdf0a46d..11c17900e 100644--- a/src/components/save-to/SaveToDialog.stories.ts+++ b/src/components/save-to/SaveToDialog.stories.ts@@ -58,7 +58,7 @@ const meta = {components: { SaveToDialog },setup: () => ({ args, name: ref('Onboarding flow'), destination: ref(args.destination) }),template: `- <div class="h-[680px]">+ <div class="h-170"><SaveToDialog :open="true" v-model:name="name" v-model:destination="destination" :destinations="args.destinations" :state="args.state" @save="args.onSave" /></div>`})diff --git a/src/components/settings/capability/CapabilityList.vue b/src/components/settings/capability/CapabilityList.vueindex d58c4449c..4056ffad6 100644--- a/src/components/settings/capability/CapabilityList.vue+++ b/src/components/settings/capability/CapabilityList.vue@@ -74,17 +74,17 @@ function isOpen(group: CapabilityGroup) {aria-hidden="true"/><span class="shrink-0 font-semibold text-surface">{{ group.label }}</span>- <code v-if="group.detail" class="min-w-0 truncate text-[11px] text-muted">{{+ <code v-if="group.detail" class="min-w-0 truncate text-2xs text-muted">{{group.detail}}</code></CollapsibleTrigger>- <span v-if="group.count" class="shrink-0 text-[11px] text-muted">{{ group.count }}</span>+ <span v-if="group.count" class="shrink-0 text-2xs text-muted">{{ group.count }}</span><slot name="group-actions" :group="group" /></div><CollapsibleContent :class="collapsibleContentMotion"><pv-if="!group.items.length"- class="border-t border-border py-2 pr-3 pl-13 text-[11px] text-muted"+ class="border-t border-border py-2 pr-3 pl-13 text-2xs text-muted">{{ group.empty }}</p>@@ -127,9 +127,7 @@ function isOpen(group: CapabilityGroup) {>{{ item.description }}</span></Tip>- <span v-if="item.note" class="shrink-0 text-[11px] text-warning">{{- item.note- }}</span>+ <span v-if="item.note" class="shrink-0 text-2xs text-warning">{{ item.note }}</span><icon-lucide-chevron-rightv-if="openLabel"class="size-3.5 shrink-0 text-muted"diff --git a/src/components/settings/cloud/CloudSettingsPanel.stories.ts b/src/components/settings/cloud/CloudSettingsPanel.stories.tsindex cc3c27e52..c40d9f755 100644--- a/src/components/settings/cloud/CloudSettingsPanel.stories.ts+++ b/src/components/settings/cloud/CloudSettingsPanel.stories.ts@@ -39,11 +39,11 @@ const meta = {components: { CloudSettingsPanel, AppConfirmationDialog },setup: () => ({ args }),template: `- <div class="flex h-[560px] bg-panel p-6">+ <div class="flex h-140 bg-panel p-6"><div class="flex w-full max-w-2xl flex-col"><CloudSettingsPanel :servers="args.servers" :listed="args.listed" @connect="args.onConnect"><template #hosted>- <div class="rounded border border-dashed border-border p-3 text-[11px] text-muted">+ <div class="rounded border border-dashed border-border p-3 text-2xs text-muted">The OpenPencil Cloud waitlist</div></template>diff --git a/src/components/settings/diagnostics/DiagnosticsEventList.vue b/src/components/settings/diagnostics/DiagnosticsEventList.vueindex 4132db744..b08d60c09 100644--- a/src/components/settings/diagnostics/DiagnosticsEventList.vue+++ b/src/components/settings/diagnostics/DiagnosticsEventList.vue@@ -75,7 +75,7 @@ const categoryOptions = computed(() => [<SettingsGroup v-if="visible.length"><CollapsibleRoot v-for="event in visible" :key="event.id" data-slot="diagnostics-event"><CollapsibleTrigger- class="flex w-full cursor-pointer items-center justify-between gap-3 px-3 py-2 text-left text-[11px] hover:bg-hover"+ class="flex w-full cursor-pointer items-center justify-between gap-3 px-3 py-2 text-left text-2xs hover:bg-hover"><span class="flex min-w-0 items-center gap-2"><icon-lucide-circle-alert@@ -89,7 +89,7 @@ const categoryOptions = computed(() => [<icon-lucide-info v-else class="size-3.5 shrink-0 text-muted" /><span class="min-w-0"><span class="block truncate text-surface">{{ event.label }}</span>- <span v-if="event.detail" class="block truncate text-[11px] text-muted">{{+ <span v-if="event.detail" class="block truncate text-2xs text-muted">{{event.detail}}</span></span>@@ -97,7 +97,7 @@ const categoryOptions = computed(() => [<span class="shrink-0 text-muted">{{ dates.format(event.timestamp, 'clock') }}</span></CollapsibleTrigger><CollapsibleContent :class="collapsibleContentMotion">- <div class="space-y-1.5 px-3 pb-2.5 pl-8.5 font-mono text-[11px] text-muted">+ <div class="space-y-1.5 px-3 pb-2.5 pl-8.5 font-mono text-2xs text-muted"><dl class="grid grid-cols-[auto_1fr] gap-x-3 gap-y-0.5"><template v-for="[name, value] in event.fields" :key="name"><dt>{{ name }}</dt>@@ -112,8 +112,8 @@ const categoryOptions = computed(() => [</CollapsibleContent></CollapsibleRoot></SettingsGroup>- <p v-else class="px-1 text-[11px] text-muted">{{ messages.noMatchingEvents }}</p>- <div v-if="hasMore" class="flex items-center justify-between text-[11px] text-muted">+ <p v-else class="px-1 text-2xs text-muted">{{ messages.noMatchingEvents }}</p>+ <div v-if="hasMore" class="flex items-center justify-between text-2xs text-muted"><span>{{ messages.showingEvents({ shown: visible.length, total }) }}</span><AppButton size="xs" color="neutral" variant="ghost" @click="showMore">{{messages.showMorediff --git a/src/components/settings/diagnostics/DiagnosticsSettingsPanel.vue b/src/components/settings/diagnostics/DiagnosticsSettingsPanel.vueindex f2a46a644..f93884432 100644--- a/src/components/settings/diagnostics/DiagnosticsSettingsPanel.vue+++ b/src/components/settings/diagnostics/DiagnosticsSettingsPanel.vue@@ -120,7 +120,7 @@ async function saveDiagnostics() {</SettingsGroup><DiagnosticsEventList :refresh-stats="refreshDiagnosticsStats" /><!-- On a narrow page the buttons wrap below the count rather than squeezing it. -->- <div class="flex flex-wrap items-center justify-between gap-x-3 gap-y-1 text-[11px] text-muted">+ <div class="flex flex-wrap items-center justify-between gap-x-3 gap-y-1 text-2xs text-muted"><span class="whitespace-nowrap">{{diagnosticMessages.eventCount({count: diagnosticsCount,diff --git a/src/components/settings/editor/SnappingSettingsSection.vue b/src/components/settings/editor/SnappingSettingsSection.vueindex 61c233204..922597e0d 100644--- a/src/components/settings/editor/SnappingSettingsSection.vue+++ b/src/components/settings/editor/SnappingSettingsSection.vue@@ -76,6 +76,6 @@ const snapToPixelGrid = computed({</SettingsRow></SettingsGroup>- <p class="text-[11px] text-muted">{{ settings.temporaryDisableSnappingHint }}</p>+ <p class="text-2xs text-muted">{{ settings.temporaryDisableSnappingHint }}</p></SettingsSection></template>diff --git a/src/components/settings/fonts/FontSettingsPanel.vue b/src/components/settings/fonts/FontSettingsPanel.vueindex 99397e507..13c438824 100644--- a/src/components/settings/fonts/FontSettingsPanel.vue+++ b/src/components/settings/fonts/FontSettingsPanel.vue@@ -150,7 +150,7 @@ onMounted(() => {</SettingsGroup></SettingsSection>- <p v-if="status" role="status" class="text-[11px] leading-relaxed text-muted">+ <p v-if="status" role="status" class="text-2xs leading-relaxed text-muted">{{ status }}</p></div>diff --git a/src/components/settings/layout/SettingsLink.vue b/src/components/settings/layout/SettingsLink.vueindex 2fc2fee59..d1e2f0186 100644--- a/src/components/settings/layout/SettingsLink.vue+++ b/src/components/settings/layout/SettingsLink.vue@@ -5,5 +5,5 @@ const { href } = defineProps<{ href: string }>()</script><template>- <ExternalLink :href="href" class="text-[11px]"><slot /></ExternalLink>+ <ExternalLink :href="href" class="text-2xs"><slot /></ExternalLink></template>diff --git a/src/components/settings/layout/SettingsRow.vue b/src/components/settings/layout/SettingsRow.vueindex 5f71be087..8b62c012b 100644--- a/src/components/settings/layout/SettingsRow.vue+++ b/src/components/settings/layout/SettingsRow.vue@@ -33,7 +33,7 @@ const emit = defineEmits<{ reset: [] }>()<span class="block text-xs font-medium text-surface"><slot name="label">{{ label }}</slot></span>- <span v-if="description" class="mt-1 block text-[11px] leading-relaxed text-muted">{{+ <span v-if="description" class="mt-1 block text-2xs leading-relaxed text-muted">{{description}}</span><slot name="description" />diff --git a/src/components/settings/layout/SettingsSection.vue b/src/components/settings/layout/SettingsSection.vueindex f56db05a7..9a348a02c 100644--- a/src/components/settings/layout/SettingsSection.vue+++ b/src/components/settings/layout/SettingsSection.vue@@ -9,7 +9,7 @@ const headingId = useId()<div class="flex items-start justify-between gap-4"><div class="min-w-0 flex-1"><h3 :id="headingId" class="text-xs font-semibold text-surface"><slot name="title" /></h3>- <p v-if="$slots.description" class="mt-1 text-[11px] text-muted">+ <p v-if="$slots.description" class="mt-1 text-2xs text-muted"><slot name="description" /></p></div>diff --git a/src/components/settings/mcp/MCPFailureAlert.vue b/src/components/settings/mcp/MCPFailureAlert.vueindex 3ef5221ee..3a27b7254 100644--- a/src/components/settings/mcp/MCPFailureAlert.vue+++ b/src/components/settings/mcp/MCPFailureAlert.vue@@ -172,7 +172,7 @@ async function copyDetails(): Promise<void> {data-test-id="settings-mcp-failure-details"><pre- class="max-h-40 overflow-auto rounded border border-border bg-input p-2 font-mono text-[11px] whitespace-pre-wrap text-muted"+ class="max-h-40 overflow-auto rounded border border-border bg-input p-2 font-mono text-2xs whitespace-pre-wrap text-muted"data-test-id="settings-mcp-failure-detail">{{ detail }}</pre></AppCollapsible>diff --git a/src/components/settings/mcp/MCPSettingsPanel.vue b/src/components/settings/mcp/MCPSettingsPanel.vueindex 4f1053e1e..a3c1d9774 100644--- a/src/components/settings/mcp/MCPSettingsPanel.vue+++ b/src/components/settings/mcp/MCPSettingsPanel.vue@@ -102,7 +102,7 @@ const serverSetup = useMCPServerSetup(() =><AppStatus :tone="statusTone">{{ statusMessage }}</AppStatus></template><template v-if="mcpRuntime.version" #description>- <span class="mt-1 block text-[11px] text-muted"+ <span class="mt-1 block text-2xs text-muted">{{ automation.version }} <code>{{ mcpRuntime.version }}</code></span></template>@@ -139,10 +139,10 @@ const serverSetup = useMCPServerSetup(() =></SettingsRow><SettingsRow :label="automation.rootDirectory"><template #description>- <code class="mt-1 block text-[11px] break-all text-surface">{{+ <code class="mt-1 block text-2xs break-all text-surface">{{mcpRootDirectory || automation.rootDirectoryDefault}}</code>- <span class="mt-1 block text-[11px] leading-relaxed text-muted">{{+ <span class="mt-1 block text-2xs leading-relaxed text-muted">{{automation.rootDirectoryDescription}}</span></template>diff --git a/src/components/settings/models/ModelsPanel.vue b/src/components/settings/models/ModelsPanel.vueindex 6e687fde7..58e0de23b 100644--- a/src/components/settings/models/ModelsPanel.vue+++ b/src/components/settings/models/ModelsPanel.vue@@ -122,7 +122,7 @@ const { connectionState, refresh: refreshAgents } = useModelConnectionStates(sta:ui="{root: 'py-3 max-sm:flex-wrap',label: 'text-xs',- description: 'text-[11px] leading-relaxed',+ description: 'text-2xs leading-relaxed',trailing: 'max-sm:w-full max-sm:justify-end'}"@click="editModel(profile.id)"@@ -139,7 +139,7 @@ const { connectionState, refresh: refreshAgents } = useModelConnectionStates(sta</template><template #trailing><span- class="mr-1 flex items-center gap-1 text-[11px] text-muted"+ class="mr-1 flex items-center gap-1 text-2xs text-muted"data-test-id="settings-model-status":data-state="connectionState(profile.connectionId, profile.providerID)">@@ -154,7 +154,7 @@ const { connectionState, refresh: refreshAgents } = useModelConnectionStates(sta<spanv-for="capability in profile.capabilities":key="capability"- class="rounded bg-panel px-1.5 py-0.5 text-[11px] text-muted"+ class="rounded bg-panel px-1.5 py-0.5 text-2xs text-muted">{{capability === 'tools'diff --git a/src/components/settings/privacy/PrivacySettingsPanel.vue b/src/components/settings/privacy/PrivacySettingsPanel.vueindex a7661539f..ccbc42682 100644--- a/src/components/settings/privacy/PrivacySettingsPanel.vue+++ b/src/components/settings/privacy/PrivacySettingsPanel.vue@@ -40,6 +40,6 @@ const { dailyPing, usageStats, unofficialBuild, disabledByEnvironment } = useSha<AppSwitch v-model="usageStats" :label="diagnostics.sharingUsageStats" /></SettingsRow></SettingsGroup>- <p class="text-[11px] text-muted">{{ diagnostics.sharingLocalData }}</p>+ <p class="text-2xs text-muted">{{ diagnostics.sharingLocalData }}</p></SettingsSection></template>diff --git a/src/components/settings/provider/ChatGPTSignInField.vue b/src/components/settings/provider/ChatGPTSignInField.vueindex 076993c05..cc653cd34 100644--- a/src/components/settings/provider/ChatGPTSignInField.vue+++ b/src/components/settings/provider/ChatGPTSignInField.vue@@ -35,9 +35,9 @@ const failure = computed(() => {<template><div class="flex flex-col gap-2" data-test-id="settings-chatgpt-sign-in">- <p class="text-[11px] text-muted">{{ ai.aiSetupChatGPTUsage }}</p>+ <p class="text-2xs text-muted">{{ ai.aiSetupChatGPTUsage }}</p><div v-if="status === 'waiting'" class="flex flex-wrap items-center gap-2">- <p role="status" class="flex items-center gap-1.5 text-[11px] text-muted">+ <p role="status" class="flex items-center gap-1.5 text-2xs text-muted"><icon-lucide-loader-2 class="size-3.5 animate-spin" aria-hidden="true" />{{ ai.aiSetupChatGPTWaiting }}</p>@@ -47,7 +47,7 @@ const failure = computed(() => {<AppButton size="xs" @click="emit('cancel')">{{ common.cancel }}</AppButton></div><div v-else-if="signedIn || saved" class="flex flex-wrap items-center gap-2">- <p role="status" class="flex items-center gap-1.5 text-[11px] text-surface">+ <p role="status" class="flex items-center gap-1.5 text-2xs text-surface"><icon-lucide-circle-check class="size-3.5 text-success" aria-hidden="true" />{{ ai.aiSetupChatGPTSignedInTitle }}<span v-if="email" class="text-muted">{{ email }}</span>diff --git a/src/components/settings/provider/ProviderSettingsField.vue b/src/components/settings/provider/ProviderSettingsField.vueindex 1a4b7c8e5..2b0a9be02 100644--- a/src/components/settings/provider/ProviderSettingsField.vue+++ b/src/components/settings/provider/ProviderSettingsField.vue@@ -50,7 +50,7 @@ const emit = defineEmits<{ clear: []; blur: [] }>()<p v-if="error" :id="`${inputID}-error`" class="text-xs text-error" role="alert">{{ error }}</p>- <p v-if="hint" :id="`${inputID}-hint`" class="text-[11px] leading-relaxed text-muted">+ <p v-if="hint" :id="`${inputID}-hint`" class="text-2xs leading-relaxed text-muted">{{ hint }}</p><slot name="hint" />diff --git a/src/components/settings/skills/SkillDetails.vue b/src/components/settings/skills/SkillDetails.vueindex f2265bb77..fb7dca676 100644--- a/src/components/settings/skills/SkillDetails.vue+++ b/src/components/settings/skills/SkillDetails.vue@@ -49,13 +49,13 @@ const useDescription = computed(() => {/></SettingsRow><SettingsRow v-if="!uploaded" :label="ai.skillsLocation">- <code class="text-[11px] break-all text-muted">{{ skill.location }}</code>+ <code class="text-2xs break-all text-muted">{{ skill.location }}</code></SettingsRow><SettingsRow v-if="skill.files.length" :label="ai.skillsFiles"><template #description><ul class="mt-1 flex flex-col gap-0.5"><li v-for="file in skill.files" :key="file">- <code class="text-[11px] break-all text-muted">{{ file }}</code>+ <code class="text-2xs break-all text-muted">{{ file }}</code></li></ul></template>diff --git a/src/components/settings/storage/StorageSettingsPanel.vue b/src/components/settings/storage/StorageSettingsPanel.vueindex c8a1ee6b4..5f232ffa3 100644--- a/src/components/settings/storage/StorageSettingsPanel.vue+++ b/src/components/settings/storage/StorageSettingsPanel.vue@@ -236,7 +236,7 @@ async function testConnection() {@click="openWorkspace">{{ storage.openWorkspace }}</AppButton>- <p v-if="!configured" class="text-[11px] text-muted">+ <p v-if="!configured" class="text-2xs text-muted">{{ settings.configureStorageHint }}</p></SettingsSection>diff --git a/src/components/settings/tool-access/ToolAccessSettingsPanel.vue b/src/components/settings/tool-access/ToolAccessSettingsPanel.vueindex c0c1abdb0..55517ccd6 100644--- a/src/components/settings/tool-access/ToolAccessSettingsPanel.vue+++ b/src/components/settings/tool-access/ToolAccessSettingsPanel.vue@@ -89,7 +89,7 @@ function setExpanded(key: string, open: boolean) {@set-item="(_group, name, enabled) => setToolEnabled(name, enabled)"/><div class="flex flex-wrap items-center justify-between gap-3">- <p class="max-w-prose text-[11px] leading-relaxed text-muted">+ <p class="max-w-prose text-2xs leading-relaxed text-muted">{{target === 'ai'? automation.aiToolsNoticediff --git a/src/components/settings/usage/UsageSettingsPanel.vue b/src/components/settings/usage/UsageSettingsPanel.vueindex d0a22eb18..98f9a3ba0 100644--- a/src/components/settings/usage/UsageSettingsPanel.vue+++ b/src/components/settings/usage/UsageSettingsPanel.vue@@ -52,20 +52,20 @@ const totals = computed(() => {<div class="grid grid-cols-2 gap-2"><div v-for="total in totals" :key="total.label" class="rounded border border-border p-3">- <div class="text-[11px] text-muted">{{ total.label }}</div>+ <div class="text-2xs text-muted">{{ total.label }}</div><div class="mt-1 text-sm font-semibold text-surface">{{ total.value }}</div></div></div><div class="flex flex-col gap-2"><h4 class="text-xs font-semibold text-surface">{{ diagnosticMessages.usageByModel }}</h4>- <div v-if="summary.models.length === 0" class="text-[11px] text-muted">+ <div v-if="summary.models.length === 0" class="text-2xs text-muted">{{ diagnosticMessages.usageNoData }}</div><divv-for="model in summary.models":key="`${model.provider}-${model.model}`"- class="flex justify-between gap-3 text-[11px]"+ class="flex justify-between gap-3 text-2xs"><span class="min-w-0 truncate text-muted">{{ model.provider }} · {{ model.model }}</span><span class="shrink-0 text-surface tabular-nums">@@ -79,6 +79,6 @@ const totals = computed(() => {</div></div>- <p class="text-[11px] text-muted">{{ diagnosticMessages.usageCacheNote }}</p>+ <p class="text-2xs text-muted">{{ diagnosticMessages.usageCacheNote }}</p></SettingsSection></template>diff --git a/src/components/shapes/ShapeKindPicker.stories.ts b/src/components/shapes/ShapeKindPicker.stories.tsindex 7fce24796..72b19a2e2 100644--- a/src/components/shapes/ShapeKindPicker.stories.ts+++ b/src/components/shapes/ShapeKindPicker.stories.ts@@ -26,7 +26,7 @@ const meta = {return { kind, icons: SHAPE_KIND_ICONS }},template: `- <div class="flex h-[520px] items-end justify-center bg-canvas p-4">+ <div class="flex h-130 items-end justify-center bg-canvas p-4"><ShapeKindPicker heading="Shape" tooltip="Shape" :selected="kind" @select="kind = $event"><template #trigger><button type="button" aria-label="Shape" class="flex items-center gap-2 rounded-md bg-panel px-2 py-1 text-surface">diff --git a/src/components/shapes/ShapeKindPicker.vue b/src/components/shapes/ShapeKindPicker.vueindex 4f170d46e..8e73b3164 100644--- a/src/components/shapes/ShapeKindPicker.vue+++ b/src/components/shapes/ShapeKindPicker.vue@@ -80,7 +80,7 @@ function pick(value: string) {/></template><template #footer="{ highlighted }">- <p class="flex h-5 items-center truncate px-1 text-[11px] text-muted">+ <p class="flex h-5 items-center truncate px-1 text-2xs text-muted"><span class="truncate" :class="highlighted && 'text-surface'">{{ highlighted?.label ?? label(selected ?? 'SQUARE') }}</span>diff --git a/src/components/sharing/UsageStatsQuestion.vue b/src/components/sharing/UsageStatsQuestion.vueindex 622a8d81f..24296119b 100644--- a/src/components/sharing/UsageStatsQuestion.vue+++ b/src/components/sharing/UsageStatsQuestion.vue@@ -22,7 +22,7 @@ const styles = tv(theme)()<section :class="styles.root()" data-test-id="usage-stats-question"><h3 :id="headingId" :class="styles.heading()">{{ diagnostics.sharingQuestionTitle }}</h3><p :class="styles.text()">{{ diagnostics.sharingQuestionDescription }}</p>- <ExternalLink :href="PRIVACY_URL" :ui="{ base: 'text-[11px]' }">{{+ <ExternalLink :href="PRIVACY_URL" :ui="{ base: 'text-2xs' }">{{diagnostics.sharingDetails}}</ExternalLink><p v-if="usageStatsConsent !== 'unset'" :class="styles.answer()" role="status">diff --git a/src/components/shell/AppMenu.vue b/src/components/shell/AppMenu.vueindex c55a8e372..3b9d5c6e0 100644--- a/src/components/shell/AppMenu.vue+++ b/src/components/shell/AppMenu.vue@@ -123,7 +123,7 @@ const { overflowStart, overflowEnd, scrollTowardHidden } = useScrollOverflow(men<MenubarMenu v-for="menu in topMenus" :key="menu.label"><MenubarTriggerv-test-id="`menubar-${menu.label.toLowerCase()}`"- class="flex cursor-pointer items-center rounded px-2 py-1 text-[11px] text-surface/80 transition-colors select-none hover:bg-hover hover:text-surface data-[state=open]:bg-hover data-[state=open]:text-surface"+ class="flex cursor-pointer items-center rounded px-2 py-1 text-2xs text-surface/80 transition-colors select-none hover:bg-hover hover:text-surface data-[state=open]:bg-hover data-[state=open]:text-surface">{{ menu.label }}</MenubarTrigger>diff --git a/src/components/statuses/StatusesDialog.vue b/src/components/statuses/StatusesDialog.vueindex 054ebbf5e..6e0453f2e 100644--- a/src/components/statuses/StatusesDialog.vue+++ b/src/components/statuses/StatusesDialog.vue@@ -177,7 +177,7 @@ function discard() {<divv-for="state in removed":key="state.id"- :class="[rows.row(), 'text-[11px] text-muted']"+ :class="[rows.row(), 'text-2xs text-muted']"data-test-id="status-removed-row":data-state-id="state.id">diff --git a/src/components/toolbar/MobileToolbar.vue b/src/components/toolbar/MobileToolbar.vueindex 4eac62d34..12f4a54d0 100644--- a/src/components/toolbar/MobileToolbar.vue+++ b/src/components/toolbar/MobileToolbar.vue@@ -102,7 +102,7 @@ function navigationClass(disabled: boolean) {<motion.div:layout="animationsEnabled"data-test-id="mobile-toolbar-container"- class="relative flex h-11 items-center overflow-hidden rounded-[8px] border border-border bg-panel px-2 shadow-lg"+ class="relative flex h-11 items-center overflow-hidden rounded-lg border border-border bg-panel px-2 shadow-lg":transition="layoutTransition"><AnimatePresence mode="popLayout" :custom="slideDirection">diff --git a/src/components/ui/feedback/AppBadge.vue b/src/components/ui/feedback/AppBadge.vueindex 322de9670..7132002cb 100644--- a/src/components/ui/feedback/AppBadge.vue+++ b/src/components/ui/feedback/AppBadge.vue@@ -9,7 +9,7 @@ const { ui } = defineProps<{}>()const cls = computed(() =>- twMerge('shrink-0 rounded bg-accent/10 px-1 py-px text-[9px] text-primary', ui?.base)+ twMerge('shrink-0 rounded bg-accent/10 px-1 py-px text-4xs text-primary', ui?.base))</script>diff --git a/src/components/ui/input/InlineLabelEditor.vue b/src/components/ui/input/InlineLabelEditor.vueindex 3539e642c..e4f46ff13 100644--- a/src/components/ui/input/InlineLabelEditor.vue+++ b/src/components/ui/input/InlineLabelEditor.vue@@ -4,34 +4,48 @@ import { computed, nextTick, ref, watch } from 'vue'import { SECTION_TITLE_FONT_FAMILY } from '@open-pencil/core/constants'+/** The label's text box in screen pixels, as the canvas draws it. */+export interface InlineLabelMetrics {+ fontSize: number+ lineHeight: number+ paddingX: number+}+const {modelValue,label,+ metrics,variant = 'section'} = defineProps<{modelValue: stringlabel: string+ /**+ * The canvas draws labels in screen pixels whatever the interface size, so the editor takes the+ * canvas's pixel sizes rather than the interface's rem ones.+ */+ metrics: InlineLabelMetrics/** The typography of the label it edits: a section title's pill or a frame's plain name. */variant?: 'section' | 'name'}>()-// The canvas draws section titles in 11px semibold with 6px padding, names in 11px regular.-const TEXT = {- section: 'px-1.5 text-[11px] font-semibold leading-6',- name: 'px-0.5 text-[11px] font-normal leading-[18px]'-}+const WEIGHT = { section: 'font-semibold', name: 'font-normal' }const { pixelRatio } = useDevicePixelRatio()// Section titles use the canvas's own title face; names use Inter like the rest of the page.// The canvas centers a title by its measured paragraph, the page by the font's line box, which// leaves the page's text one device pixel higher.-const font = computed(() =>- variant === 'section'- ? {- fontFamily: `'${SECTION_TITLE_FONT_FAMILY}', Inter, sans-serif`,- transform: `translateY(${1 / pixelRatio.value}px)`- }- : undefined-)+const font = computed(() => {+ const box = {+ fontSize: `${metrics.fontSize}px`,+ lineHeight: `${metrics.lineHeight}px`,+ paddingInline: `${metrics.paddingX}px`+ }+ if (variant !== 'section') return box+ return {+ ...box,+ fontFamily: `'${SECTION_TITLE_FONT_FAMILY}', Inter, sans-serif`,+ transform: `translateY(${1 / pixelRatio.value}px)`+ }+})const emit = defineEmits<{'update:modelValue': [value: string]@@ -64,7 +78,7 @@ watch(<spanaria-hidden="true"class="invisible col-start-1 row-start-1 h-full whitespace-pre"- :class="TEXT[variant]"+ :class="WEIGHT[variant]":style="font">{{ modelValue || ' ' }}</span>@@ -73,7 +87,7 @@ watch(:value="modelValue":aria-label="label"class="col-start-1 row-start-1 h-full w-0 min-w-full bg-transparent outline-none"- :class="TEXT[variant]"+ :class="WEIGHT[variant]":style="font"@input="updateValue"@keydown.enter.prevent="emit('commit')"diff --git a/src/components/ui/menu/AppShortcutText.vue b/src/components/ui/menu/AppShortcutText.vueindex 9edec5813..9d85338c5 100644--- a/src/components/ui/menu/AppShortcutText.vue+++ b/src/components/ui/menu/AppShortcutText.vue@@ -8,7 +8,7 @@ const { ui } = defineProps<{}}>()-const cls = computed(() => twMerge('text-[11px] text-muted', ui?.base))+const cls = computed(() => twMerge('text-2xs text-muted', ui?.base))</script><template>diff --git a/src/components/ui/menu/menu.ts b/src/components/ui/menu/menu.tsindex 0fdac558b..6f3593d0c 100644--- a/src/components/ui/menu/menu.ts+++ b/src/components/ui/menu/menu.ts@@ -12,13 +12,13 @@ export const menu = tv({floatingSurface,motionStyles.floating],- item: 'flex cursor-pointer items-center gap-2 rounded px-2 py-1.5 text-[11px] outline-none select-none data-[disabled]:cursor-default data-[disabled]:text-muted/50 data-[highlighted]:bg-hover',+ item: 'flex cursor-pointer items-center gap-2 rounded px-2 py-1.5 text-2xs outline-none select-none data-[disabled]:cursor-default data-[disabled]:text-muted/50 data-[highlighted]:bg-hover',separator: 'mx-1 my-1 h-px bg-border',- label: 'px-2 pt-1.5 pb-1 text-[11px] text-muted select-none',- shortcut: 'text-[11px] text-muted',+ label: 'px-2 pt-1.5 pb-1 text-2xs text-muted select-none',+ shortcut: 'text-2xs text-muted',icon: 'size-3 text-muted',subTrigger:- 'flex cursor-pointer items-center gap-2 rounded px-2 py-1.5 text-[11px] outline-none select-none',+ 'flex cursor-pointer items-center gap-2 rounded px-2 py-1.5 text-2xs outline-none select-none',// As in Figma and macOS menus: no scrollbar, a chevron strip over each end that has more.// No overscroll: WebKit's bounce takes the top past zero, which kept the top strip showing.scrollRoot: 'relative flex min-h-0 flex-col',diff --git a/src/components/ui/overlay/tooltip.ts b/src/components/ui/overlay/tooltip.tsindex 01d3e9759..43d7e01ee 100644--- a/src/components/ui/overlay/tooltip.ts+++ b/src/components/ui/overlay/tooltip.ts@@ -8,7 +8,7 @@ import { tooltipSurface } from '@/theme/overlay'const tooltipTheme = {slots: {// Long text wraps rather than running across the window.- content: ['z-50 max-w-80 px-2 py-1 text-[11px] break-words', tooltipSurface]+ content: ['z-50 max-w-80 px-2 py-1 text-2xs break-words', tooltipSurface]}} as constdiff --git a/src/components/ui/panel/PanelFoundation.stories.ts b/src/components/ui/panel/PanelFoundation.stories.tsindex b529ac4e8..ff586687f 100644--- a/src/components/ui/panel/PanelFoundation.stories.ts+++ b/src/components/ui/panel/PanelFoundation.stories.ts@@ -110,7 +110,7 @@ export const StateMatrix: Story = {},template: `<TooltipProvider>- <div class="w-[320px] overflow-hidden rounded-lg border border-border bg-panel shadow-xl">+ <div class="w-80 overflow-hidden rounded-lg border border-border bg-panel shadow-xl"><PanelHeader><template #icon><SquareIcon class="size-3.5" /></template><span role="heading" aria-level="2">Rectangle</span>diff --git a/src/components/ui/select/AppCombobox.stories.ts b/src/components/ui/select/AppCombobox.stories.tsindex 865d226cc..bbbbbe607 100644--- a/src/components/ui/select/AppCombobox.stories.ts+++ b/src/components/ui/select/AppCombobox.stories.ts@@ -65,7 +65,7 @@ const meta = {template: `<div class="w-80 bg-canvas p-6 text-surface"><AppCombobox v-model="value" v-bind="args" />- <p class="mt-3 font-mono text-[10px] text-muted">{{ value }}</p>+ <p class="mt-3 font-mono text-3xs text-muted">{{ value }}</p></div>`}),diff --git a/src/components/ui/select/examples/Picker.vue b/src/components/ui/select/examples/Picker.vueindex bb981ec16..8c04ad338 100644--- a/src/components/ui/select/examples/Picker.vue+++ b/src/components/ui/select/examples/Picker.vue@@ -45,7 +45,7 @@ const chosen = ref('')</script><template>- <div class="flex w-[240px] flex-col gap-2 rounded-lg border border-border bg-panel p-3">+ <div class="flex w-60 flex-col gap-2 rounded-lg border border-border bg-panel p-3"><div class="flex items-center justify-between text-xs text-surface">Components<AppPicker@@ -102,10 +102,10 @@ const chosen = ref('')><component :is="shapeIcon(item.value)" class="size-4"/></template><template #footer="{ highlighted }">- <p class="h-5 truncate px-1 text-[11px] text-surface">{{ highlighted?.label }}</p>+ <p class="h-5 truncate px-1 text-2xs text-surface">{{ highlighted?.label }}</p></template></AppPicker></div>- <p class="text-[11px] text-muted">Chosen: {{ chosen || '—' }}</p>+ <p class="text-2xs text-muted">Chosen: {{ chosen || '—' }}</p></div></template>diff --git a/src/components/updater/UpdatePrompt.stories.ts b/src/components/updater/UpdatePrompt.stories.tsindex bce4d0459..7776ee198 100644--- a/src/components/updater/UpdatePrompt.stories.ts+++ b/src/components/updater/UpdatePrompt.stories.ts@@ -45,7 +45,7 @@ const meta = {setup: () => ({ args }),// The size the Software Update window opens at.template:- '<div class="h-[520px] w-[560px] overflow-hidden rounded-lg border border-border"><UpdatePrompt v-bind="args" /></div>'+ '<div class="h-130 w-140 overflow-hidden rounded-lg border border-border"><UpdatePrompt v-bind="args" /></div>'})} satisfies Meta<Args>diff --git a/src/components/updater/UpdatePrompt.vue b/src/components/updater/UpdatePrompt.vueindex b91567ee1..f60da5c55 100644--- a/src/components/updater/UpdatePrompt.vue+++ b/src/components/updater/UpdatePrompt.vue@@ -97,7 +97,7 @@ function openNotesLink(event: MouseEvent) {<div :class="ui.notesHeader"><h2 :class="ui.notesLabel">{{ t.whatsNew }}</h2>- <ExternalLink :href="releaseNotesURL(release.version)" class="text-[11px]">+ <ExternalLink :href="releaseNotesURL(release.version)" class="text-2xs">{{ t.fullReleaseNotes }}</ExternalLink></div>diff --git a/src/components/variables/TokenAddMenu.vue b/src/components/variables/TokenAddMenu.vueindex e0d967065..2530b7253 100644--- a/src/components/variables/TokenAddMenu.vue+++ b/src/components/variables/TokenAddMenu.vue@@ -66,7 +66,7 @@ const items = computed(() => {<component :is="item.icon" :class="menu.icon" /><span class="flex min-w-0 flex-1 flex-col"><span>{{ item.label }}</span>- <span class="truncate text-[10px] text-muted">{{ item.hint }}</span>+ <span class="truncate text-3xs text-muted">{{ item.hint }}</span></span></DropdownMenuItem></MenuScrollArea>diff --git a/src/components/variables/examples/DesignSystem.vue b/src/components/variables/examples/DesignSystem.vueindex 65cd06828..0606feb06 100644--- a/src/components/variables/examples/DesignSystem.vue+++ b/src/components/variables/examples/DesignSystem.vue@@ -173,7 +173,7 @@ provideEditor(editor)<template><div- class="flex h-[640px] w-[min(var(--frame-width),calc(100vw-4rem))] flex-col overflow-hidden rounded-lg border border-border bg-panel max-md:h-dvh max-md:w-full max-md:rounded-none max-md:border-0"+ class="flex h-160 w-[min(var(--frame-width),calc(100vw-4rem))] flex-col overflow-hidden rounded-lg border border-border bg-panel max-md:h-dvh max-md:w-full max-md:rounded-none max-md:border-0":style="{ '--frame-width': `${width}px` }"><TokensPanel />diff --git a/src/theme/binding/field.ts b/src/theme/binding/field.tsindex 61c322fbb..d67a42920 100644--- a/src/theme/binding/field.ts+++ b/src/theme/binding/field.ts@@ -2,13 +2,13 @@ const bindingFieldTheme = {slots: {root: 'min-w-0',// A tint of the text colour reads as a chip on the field in both themes.- pill: 'flex h-[18px] min-w-0 flex-1 items-center overflow-hidden rounded-sm bg-surface/10 px-1 text-surface outline-none',- pillLabel: 'min-w-0 flex-1 truncate text-[11px] font-medium',+ pill: 'flex h-4.5 min-w-0 flex-1 items-center overflow-hidden rounded-sm bg-surface/10 px-1 text-surface outline-none',+ pillLabel: 'min-w-0 flex-1 truncate text-2xs font-medium',trigger:'flex size-5 shrink-0 cursor-pointer items-center justify-center rounded-sm border border-transparent bg-transparent text-muted outline-none transition-colors hover:text-surface focus-visible:border-panel-focus data-[open]:bg-hover data-[open]:text-surface disabled:opacity-0 data-[disabled]:opacity-0',createForm: 'flex items-center gap-1.5 p-1',createInput:- 'h-6 min-w-0 flex-1 rounded border border-transparent bg-panel-field px-2 text-[11px] text-surface outline-none placeholder:text-muted focus:border-panel-focus'+ 'h-6 min-w-0 flex-1 rounded border border-transparent bg-panel-field px-2 text-2xs text-surface outline-none placeholder:text-muted focus:border-panel-focus'},variants: {state: {diff --git a/src/theme/button/button.ts b/src/theme/button/button.tsindex c3489cb40..6008d6f6c 100644--- a/src/theme/button/button.ts+++ b/src/theme/button/button.ts@@ -22,7 +22,7 @@ export default {link: {}},size: {- xs: { base: 'h-6 px-1.5 text-[10px]', icon: 'size-3' },+ xs: { base: 'h-6 px-1.5 text-3xs', icon: 'size-3' },sm: { base: 'h-7 px-2 text-xs' },md: { base: 'h-8 px-3 text-xs' },lg: { base: 'h-9 px-3.5 text-sm' }diff --git a/src/theme/canvas-pane-header.ts b/src/theme/canvas-pane-header.tsindex b3f217088..0af9ee509 100644--- a/src/theme/canvas-pane-header.ts+++ b/src/theme/canvas-pane-header.ts@@ -1,8 +1,8 @@const canvasPaneHeaderTheme = {slots: {root: 'relative flex h-7 shrink-0 items-center gap-1 border-b border-border bg-panel px-1.5 text-muted after:absolute after:inset-x-0 after:bottom-0 after:h-px after:bg-transparent',- title: 'min-w-0 flex-1 truncate px-1 text-[11px]',- zoom: 'shrink-0 px-1 text-[11px] tabular-nums text-muted',+ title: 'min-w-0 flex-1 truncate px-1 text-2xs',+ zoom: 'shrink-0 px-1 text-2xs tabular-nums text-muted',actions: 'flex shrink-0 items-center gap-0.5',icon: 'size-3.5'},diff --git a/src/theme/chat/history.ts b/src/theme/chat/history.tsindex 6a1d65e49..ed94190cb 100644--- a/src/theme/chat/history.ts+++ b/src/theme/chat/history.ts@@ -14,10 +14,10 @@ export default {'w-full rounded border border-border bg-input px-2 py-1.5 text-xs outline-none focus:border-panel-focus',scope: 'my-2 flex gap-1',scopeButton:- 'flex-1 rounded px-2 py-1 text-[11px] text-muted hover:bg-hover data-[active=true]:bg-hover data-[active=true]:text-surface',+ 'flex-1 rounded px-2 py-1 text-2xs text-muted hover:bg-hover data-[active=true]:bg-hover data-[active=true]:text-surface',list: 'max-h-64 space-y-0.5 overflow-y-auto',row: 'flex w-full items-center gap-2 rounded px-2 py-2 text-left hover:bg-hover focus-visible:outline-panel-focus data-[selected=true]:bg-hover',- detail: 'block truncate text-[10px] text-muted',+ detail: 'block truncate text-3xs text-muted',label: 'block truncate text-xs',empty: 'px-2 py-4 text-center text-xs text-muted',form: 'space-y-2 border-t border-border p-2',diff --git a/src/theme/chat/profile.ts b/src/theme/chat/profile.tsindex 2aaadf017..29116fce8 100644--- a/src/theme/chat/profile.ts+++ b/src/theme/chat/profile.ts@@ -3,24 +3,24 @@ import { motionStyles } from '../motion/styles'export default {slots: {trigger:- 'min-w-0 max-w-full gap-1 rounded border-none bg-transparent px-1.5 py-0.5 text-[10px] text-muted',+ 'min-w-0 max-w-full gap-1 rounded border-none bg-transparent px-1.5 py-0.5 text-3xs text-muted',triggerIcon: 'size-3 shrink-0',triggerValue: 'min-w-0 truncate',triggerChevron: 'size-2.5 shrink-0',content: ['w-72 max-w-[calc(100vw-1rem)] overflow-hidden', motionStyles.floating],viewport: 'max-h-72 p-1',header: 'px-2 pt-1.5 pb-2',- headerLabel: 'text-[9px] font-medium tracking-wide text-muted uppercase',- headerDescription: 'mt-0.5 text-[9px] leading-3 text-muted',- item: 'grid h-auto min-h-11 grid-cols-[14px_minmax(0,1fr)_auto] gap-2 rounded px-2 py-1.5',+ headerLabel: 'text-4xs font-medium tracking-wide text-muted uppercase',+ headerDescription: 'mt-0.5 text-4xs leading-3 text-muted',+ item: 'grid h-auto min-h-11 grid-cols-[0.875rem_minmax(0,1fr)_auto] gap-2 rounded px-2 py-1.5',indicator: 'flex size-3.5 shrink-0 items-center justify-center text-primary',indicatorIcon: 'size-3',text: 'min-w-0',- name: 'block truncate text-[11px] leading-4 font-medium',- metadata: 'block truncate text-[9px] leading-3 text-muted',+ name: 'block truncate text-2xs leading-4 font-medium',+ metadata: 'block truncate text-4xs leading-3 text-muted',capability: 'size-3 shrink-0 text-muted',footer:- 'mt-1 flex w-full cursor-pointer items-center gap-1.5 border-t border-border px-2 py-1.5 text-left text-[10px] text-muted hover:bg-hover hover:text-surface',+ 'mt-1 flex w-full cursor-pointer items-center gap-1.5 border-t border-border px-2 py-1.5 text-left text-3xs text-muted hover:bg-hover hover:text-surface',footerIcon: 'size-3 shrink-0'}} as constdiff --git a/src/theme/chat/thinking.ts b/src/theme/chat/thinking.tsindex 2f55f6874..b67197b7d 100644--- a/src/theme/chat/thinking.ts+++ b/src/theme/chat/thinking.ts@@ -6,7 +6,7 @@ export default {slots: {meter:'inline-flex h-3 shrink-0 items-end gap-px text-muted data-[level=high]:text-component data-[level=low]:text-primary/80 data-[level=medium]:text-primary data-[level=minimal]:text-primary/60 data-[level=xhigh]:text-slot',- bar: 'w-[3px] rounded-[1px] bg-current data-[filled=false]:bg-muted/30',+ bar: 'w-0.75 rounded-[0.0625rem] bg-current data-[filled=false]:bg-muted/30',trigger: 'flex shrink-0 items-center',/** Narrow composers show only the meter, leaving the width to the model name. */label: 'hidden truncate @[16rem]:inline',diff --git a/src/theme/chat/tool.ts b/src/theme/chat/tool.tsindex d5117a117..c0ee05e64 100644--- a/src/theme/chat/tool.ts+++ b/src/theme/chat/tool.ts@@ -7,19 +7,19 @@ export default {status:'flex size-4 shrink-0 items-center justify-center rounded-full data-[state=done]:bg-success/20 data-[state=done]:text-success data-[state=error]:bg-error/15 data-[state=error]:text-error data-[state=pending]:bg-accent/20 data-[state=pending]:text-primary',statusIcon: 'size-3',- name: 'shrink-0 text-[11px] font-medium text-surface',- summary: 'min-w-0 flex-1 truncate font-mono text-[10px] text-muted',- undone: 'inline-flex shrink-0 items-center gap-1 text-[10px] text-muted',+ name: 'shrink-0 text-2xs font-medium text-surface',+ summary: 'min-w-0 flex-1 truncate font-mono text-3xs text-muted',+ undone: 'inline-flex shrink-0 items-center gap-1 text-3xs text-muted',undoneIcon: 'size-3',chevron:'ml-auto size-3 shrink-0 text-muted transition-transform motion-reduce:transition-none [[data-state=open]>&]:rotate-180',- body: 'space-y-2 border-t border-border px-2 py-2 text-[10px]',+ body: 'space-y-2 border-t border-border px-2 py-2 text-3xs',nodes: 'flex flex-wrap gap-1',- node: 'inline-flex max-w-40 cursor-pointer items-center gap-1 rounded border border-border bg-input px-1.5 py-0.5 text-[10px] text-surface hover:border-accent hover:text-primary disabled:cursor-default disabled:opacity-50 disabled:hover:border-border disabled:hover:text-surface',+ node: 'inline-flex max-w-40 cursor-pointer items-center gap-1 rounded border border-border bg-input px-1.5 py-0.5 text-3xs text-surface hover:border-accent hover:text-primary disabled:cursor-default disabled:opacity-50 disabled:hover:border-border disabled:hover:text-surface',nodeIcon: 'size-3 shrink-0 text-muted',nodeLabel: 'truncate',image:- 'max-h-56 w-auto max-w-full rounded border border-border bg-[repeating-conic-gradient(var(--color-hover)_0_25%,transparent_0_50%)] bg-size-[12px_12px] object-contain',+ 'max-h-56 w-auto max-w-full rounded border border-border bg-[repeating-conic-gradient(var(--color-hover)_0_25%,transparent_0_50%)] bg-size-[0.75rem_0.75rem] object-contain',compare:'relative w-full max-w-full overflow-hidden rounded border border-border bg-input select-none data-[mode=highlight]:[&>img:first-child]:opacity-40',compareImage: 'absolute inset-0 size-full object-contain',@@ -30,10 +30,10 @@ export default {compareAfter: 'absolute inset-y-0 right-0 h-full w-[100cqw] max-w-none object-contain',compareDivider: 'bg-accent shadow-[0_0_0_1px_rgb(0_0_0/0.25)]',compareLabel:- 'pointer-events-none absolute top-1 rounded bg-black/55 px-1 py-px text-[9px] font-medium text-white',+ 'pointer-events-none absolute top-1 rounded bg-black/55 px-1 py-px text-4xs font-medium text-white',group: 'rounded-lg border border-dashed border-border',groupTrigger:- 'flex w-full min-w-0 cursor-pointer items-center gap-2 rounded-lg px-2 py-1.5 text-left text-[11px] text-muted hover:bg-hover hover:text-surface',+ 'flex w-full min-w-0 cursor-pointer items-center gap-2 rounded-lg px-2 py-1.5 text-left text-2xs text-muted hover:bg-hover hover:text-surface',groupIcon: 'size-3.5 shrink-0 text-primary',groupNames: 'min-w-0 flex-1 truncate',groupFailed: 'bg-error/15 text-error',diff --git a/src/theme/cloud-portal/form.ts b/src/theme/cloud-portal/form.tsindex 41d96dee8..2f1762e4a 100644--- a/src/theme/cloud-portal/form.ts+++ b/src/theme/cloud-portal/form.ts@@ -17,10 +17,10 @@ export default {variants: {size: {md: {- label: 'text-[11px] text-muted',- hint: 'text-[11px]',- error: 'text-[11px]',- divider: 'text-[11px]'+ label: 'text-2xs text-muted',+ hint: 'text-2xs',+ error: 'text-2xs',+ divider: 'text-2xs'},lg: {form: 'gap-4',diff --git a/src/theme/cloud-portal/layout.ts b/src/theme/cloud-portal/layout.tsindex df2f1e193..c28809384 100644--- a/src/theme/cloud-portal/layout.ts+++ b/src/theme/cloud-portal/layout.ts@@ -6,7 +6,7 @@ export default {barHome:'flex items-center gap-2 rounded focus-visible:ring-2 focus-visible:ring-accent/50 focus-visible:outline-none',barTitle: 'text-xs font-semibold whitespace-nowrap',- barHost: 'truncate text-[11px] text-muted max-sm:hidden',+ barHost: 'truncate text-2xs text-muted max-sm:hidden',barEnd: 'ml-auto flex items-center gap-2',console: 'flex min-h-0 flex-1 max-md:flex-col',// Narrow screens turn the section list into one row above the page that scrolls without adiff --git a/src/theme/cloud-portal/public.ts b/src/theme/cloud-portal/public.tsindex 748ef9f4a..a0d96ade0 100644--- a/src/theme/cloud-portal/public.ts+++ b/src/theme/cloud-portal/public.ts@@ -6,7 +6,7 @@ export default {slots: {page: 'flex h-full min-h-0 flex-col overflow-y-auto bg-canvas text-surface',main: 'flex flex-1 flex-col items-center justify-center px-4 pt-12 pb-[12vh]',- column: 'flex w-full max-w-[360px] flex-col gap-6',+ column: 'flex w-full max-w-90 flex-col gap-6',header: 'flex flex-col items-center gap-4 text-center',icon: 'size-12 rounded-xl',headingGroup: 'flex flex-col gap-1.5',diff --git a/src/theme/cloud-portal/table.ts b/src/theme/cloud-portal/table.tsindex 894ba9c6e..6ee827b25 100644--- a/src/theme/cloud-portal/table.ts+++ b/src/theme/cloud-portal/table.ts@@ -3,10 +3,10 @@ export default {slots: {toolbar: 'flex flex-wrap items-center gap-2',title: 'flex min-w-0 items-center gap-1.5 truncate text-xs font-medium text-surface',- detail: 'mt-0.5 truncate text-[11px] text-muted',- quote: 'line-clamp-2 text-[11px] text-surface',+ detail: 'mt-0.5 truncate text-2xs text-muted',+ quote: 'line-clamp-2 text-2xs text-surface',actions: 'flex items-center justify-end gap-1',status:- 'inline-block shrink-0 rounded px-1.5 py-px text-[10px] font-medium whitespace-nowrap data-[tone=neutral]:bg-panel-field data-[tone=neutral]:text-muted data-[tone=success]:bg-success/10 data-[tone=success]:text-success data-[tone=warning]:bg-warning-bg data-[tone=warning]:text-warning data-[tone=error]:bg-error-bg data-[tone=error]:text-error'+ 'inline-block shrink-0 rounded px-1.5 py-px text-3xs font-medium whitespace-nowrap data-[tone=neutral]:bg-panel-field data-[tone=neutral]:text-muted data-[tone=success]:bg-success/10 data-[tone=success]:text-success data-[tone=warning]:bg-warning-bg data-[tone=warning]:text-warning data-[tone=error]:bg-error-bg data-[tone=error]:text-error'}} as constdiff --git a/src/theme/cloud/conflict.ts b/src/theme/cloud/conflict.tsindex 27645b93d..4ca3cddfc 100644--- a/src/theme/cloud/conflict.ts+++ b/src/theme/cloud/conflict.ts@@ -7,13 +7,13 @@ export default {image: 'size-full object-cover',caption: 'mt-2 flex flex-col',versionLabel: 'text-xs font-medium text-surface',- versionMeta: 'truncate text-[11px] text-muted',+ versionMeta: 'truncate text-2xs text-muted',options: 'mt-4 flex flex-col gap-1.5',option:'group flex w-full items-start gap-2.5 rounded-lg border border-border px-3 py-2.5 text-left outline-none hover:bg-hover focus-visible:ring-2 focus-visible:ring-accent/50 data-[state=checked]:border-panel-focus data-[state=checked]:bg-panel-selected-muted data-[tone=danger]:data-[state=checked]:border-error-border data-[tone=danger]:data-[state=checked]:bg-error-bg',optionMark:'mt-0.5 size-3.5 shrink-0 rounded-full border border-muted/60 group-data-[state=checked]:border-4 group-data-[state=checked]:border-accent group-data-[tone=danger]:group-data-[state=checked]:border-error',optionLabel: 'block text-xs font-medium text-surface',- optionDescription: 'mt-0.5 block text-[11px] leading-relaxed text-muted'+ optionDescription: 'mt-0.5 block text-2xs leading-relaxed text-muted'}} as constdiff --git a/src/theme/cloud/connect.ts b/src/theme/cloud/connect.tsindex cbc93adcb..e9bdf0dda 100644--- a/src/theme/cloud/connect.ts+++ b/src/theme/cloud/connect.ts@@ -7,25 +7,25 @@ export default {'flex size-8 shrink-0 items-center justify-center rounded-md bg-panel text-muted group-data-[state=checked]:text-primary',choiceBody: 'min-w-0 flex-1',choiceLabel: 'block text-xs font-medium text-surface',- choiceDescription: 'mt-0.5 block truncate text-[11px] text-muted',+ choiceDescription: 'mt-0.5 block truncate text-2xs text-muted',choiceMark:'size-3.5 shrink-0 rounded-full border border-border group-data-[state=checked]:border-4 group-data-[state=checked]:border-accent',address: 'mt-3 flex flex-col gap-1.5',addressAlone: 'flex flex-col gap-1.5',- addressLabel: 'text-[11px] font-medium text-muted',+ addressLabel: 'text-2xs font-medium text-muted',stack: 'flex flex-col gap-3',methods: 'flex flex-col gap-1.5',- divider: 'flex items-center gap-3 text-[11px] text-muted',+ divider: 'flex items-center gap-3 text-2xs text-muted',dividerLine: 'h-px flex-1 bg-border',- note: 'text-[11px] text-muted',- switch: 'flex items-center justify-center gap-1 text-[11px] text-muted',+ note: 'text-2xs text-muted',+ switch: 'flex items-center justify-center gap-1 text-2xs text-muted',verify: 'flex items-start gap-3',verifyIcon:'flex size-10 shrink-0 items-center justify-center rounded-full bg-panel-field text-muted',verifyText: 'pt-1 text-xs leading-relaxed text-muted',device: 'flex flex-col items-center gap-3 py-2',- deviceLabel: 'text-[11px] font-medium text-muted',- deviceStatus: 'flex items-center gap-2 text-[11px] text-muted',+ deviceLabel: 'text-2xs font-medium text-muted',+ deviceStatus: 'flex items-center gap-2 text-2xs text-muted',spinner: 'size-3.5 shrink-0 animate-spin motion-reduce:animate-none'}} as constdiff --git a/src/theme/cloud/invitation.ts b/src/theme/cloud/invitation.tsindex 3217cf7e9..d34ba10d6 100644--- a/src/theme/cloud/invitation.ts+++ b/src/theme/cloud/invitation.ts@@ -5,15 +5,15 @@ export default {documentIcon: 'flex size-9 shrink-0 items-center justify-center rounded-md bg-panel text-muted',documentBody: 'min-w-0 flex-1',documentName: 'block truncate text-xs font-medium text-surface',- documentMeta: 'mt-0.5 block truncate text-[11px] text-muted',- permission: 'shrink-0 rounded bg-panel px-1.5 py-0.5 text-[10px] font-medium text-muted',+ documentMeta: 'mt-0.5 block truncate text-2xs text-muted',+ permission: 'shrink-0 rounded bg-panel px-1.5 py-0.5 text-3xs font-medium text-muted',stack: 'flex flex-col gap-3',desktop: 'me-auto',unavailable: 'flex flex-col items-center gap-3 py-4 text-center',unavailableIcon:'flex size-10 items-center justify-center rounded-full bg-panel-field text-muted',- unavailableDescription: 'max-w-xs text-[11px] leading-relaxed text-muted',- loading: 'flex items-center justify-center gap-2 py-6 text-[11px] text-muted',+ unavailableDescription: 'max-w-xs text-2xs leading-relaxed text-muted',+ loading: 'flex items-center justify-center gap-2 py-6 text-2xs text-muted',spinner: 'size-3.5 shrink-0 animate-spin motion-reduce:animate-none'}} as constdiff --git a/src/theme/cloud/servers.ts b/src/theme/cloud/servers.tsindex b5dc2e9be..19d53d1bf 100644--- a/src/theme/cloud/servers.ts+++ b/src/theme/cloud/servers.ts@@ -6,16 +6,16 @@ export default {body: 'min-w-0 flex-1',titleRow: 'flex min-w-0 items-center gap-1.5',title: 'truncate text-xs font-medium text-surface',- host: 'truncate text-[11px] text-muted',- badge: 'shrink-0 rounded bg-panel-field px-1.5 py-0.5 text-[10px] font-medium text-muted',- account: 'mt-0.5 flex min-w-0 items-center gap-1.5 text-[11px] text-muted',+ host: 'truncate text-2xs text-muted',+ badge: 'shrink-0 rounded bg-panel-field px-1.5 py-0.5 text-3xs font-medium text-muted',+ account: 'mt-0.5 flex min-w-0 items-center gap-1.5 text-2xs text-muted',accountText: 'truncate',- expired: 'mt-0.5 flex items-center gap-1 text-[11px] text-warning',+ expired: 'mt-0.5 flex items-center gap-1 text-2xs text-warning',trailing: 'flex shrink-0 items-center gap-1',choices: 'flex flex-col gap-1.5',choiceIcon: 'flex size-8 shrink-0 items-center justify-center rounded-md bg-panel text-muted',waitlist: 'flex flex-col gap-3 rounded border border-border p-3',waitlistHeader: 'flex items-start gap-3',- waitlistDescription: 'mt-0.5 text-[11px] text-muted'+ waitlistDescription: 'mt-0.5 text-2xs text-muted'}} as constdiff --git a/src/theme/cloud/share.ts b/src/theme/cloud/share.tsindex 373ae69ab..078df7911 100644--- a/src/theme/cloud/share.ts+++ b/src/theme/cloud/share.ts@@ -1,13 +1,13 @@export default {slots: {invite: 'flex items-center gap-2',- heading: 'mb-2 text-[11px] font-semibold text-muted',+ heading: 'mb-2 text-2xs font-semibold text-muted',list: 'flex flex-col',row: 'flex min-h-11 items-center gap-3 py-1.5',rowBody: 'min-w-0 flex-1',rowName: 'flex min-w-0 items-center gap-1.5 truncate text-xs font-medium text-surface',- rowDetail: 'block truncate text-[11px] text-muted',- rowRole: 'shrink-0 px-2 text-[11px] text-muted',+ rowDetail: 'block truncate text-2xs text-muted',+ rowRole: 'shrink-0 px-2 text-2xs text-muted',pendingAvatar:'flex size-7 shrink-0 items-center justify-center rounded-full border border-dashed border-border text-muted',groupAvatar:@@ -17,7 +17,7 @@ export default {'flex size-8 shrink-0 items-center justify-center rounded-md bg-panel-field text-muted data-[access=link]:bg-success/10 data-[access=link]:text-success',accessBody: 'min-w-0 flex-1',accessLabel: 'text-xs font-medium text-surface',- accessDetail: 'text-[11px] text-muted',- footnote: 'text-[11px] text-muted'+ accessDetail: 'text-2xs text-muted',+ footnote: 'text-2xs text-muted'}} as constdiff --git a/src/theme/cloud/status.ts b/src/theme/cloud/status.tsindex a8c245b86..06f9131b9 100644--- a/src/theme/cloud/status.ts+++ b/src/theme/cloud/status.ts@@ -2,13 +2,13 @@ export default {slots: {trigger:'flex h-6 shrink-0 items-center gap-1 rounded px-1 text-muted outline-none hover:bg-hover hover:text-surface focus-visible:ring-2 focus-visible:ring-accent/50 data-[state=open]:bg-hover data-[state-sync=conflict]:bg-warning-bg data-[state-sync=conflict]:text-warning data-[state-sync=error]:text-error data-[state-sync=view]:bg-panel-field data-[state-sync=view]:text-surface data-[state-sync=not-live]:bg-warning-bg data-[state-sync=not-live]:text-warning',- triggerLabel: 'text-[11px] font-medium',+ triggerLabel: 'text-2xs font-medium',header: 'flex items-start gap-2.5',headerIcon:'flex size-8 shrink-0 items-center justify-center rounded-md bg-panel-field text-muted data-[state-sync=synced]:text-primary data-[state-sync=conflict]:bg-warning-bg data-[state-sync=conflict]:text-warning data-[state-sync=error]:bg-error-bg data-[state-sync=error]:text-error data-[state-sync=not-live]:bg-warning-bg data-[state-sync=not-live]:text-warning',title: 'text-xs font-medium text-surface',- detail: 'mt-0.5 text-[11px] leading-relaxed text-muted',- facts: 'mt-3 flex flex-col gap-1 rounded-md bg-panel-field px-2.5 py-2 text-[11px]',+ detail: 'mt-0.5 text-2xs leading-relaxed text-muted',+ facts: 'mt-3 flex flex-col gap-1 rounded-md bg-panel-field px-2.5 py-2 text-2xs',fact: 'flex justify-between gap-3 [&_dt]:text-muted [&_dd]:truncate [&_dd]:text-surface',actions: 'mt-3 flex flex-wrap items-center gap-2'}diff --git a/src/theme/cloud/versions.ts b/src/theme/cloud/versions.tsindex 466fb7d7e..59a63cfb5 100644--- a/src/theme/cloud/versions.ts+++ b/src/theme/cloud/versions.ts@@ -6,7 +6,7 @@ export default {item: 'group/item relative px-2',// The line between markers runs through the gutter beside each entry.itemButton:- 'grid w-full cursor-pointer grid-cols-[24px_minmax(0,1fr)] gap-x-2 rounded-md px-1 py-1.5 pr-8 text-left text-xs outline-none hover:bg-hover focus-visible:bg-hover data-[selected]:bg-panel-selected-muted',+ 'grid w-full cursor-pointer grid-cols-[1.5rem_minmax(0,1fr)] gap-x-2 rounded-md px-1 py-1.5 pr-8 text-left text-xs outline-none hover:bg-hover focus-visible:bg-hover data-[selected]:bg-panel-selected-muted',marker: 'relative flex justify-center pt-0.5',ring: 'relative z-10 size-4 rounded-full border-2 border-muted bg-panel group-data-[selected]/item:border-accent',dot: 'relative z-10 mt-1 size-2 rounded-full bg-muted group-data-[selected]/item:bg-accent',@@ -15,8 +15,8 @@ export default {title: 'min-w-0 truncate font-semibold text-surface',current: 'min-w-0 truncate font-semibold text-surface group-data-[selected]/item:text-accent',description: 'line-clamp-3 min-w-0 break-words text-surface/80',- author: 'min-w-0 truncate text-[11px] text-muted',- time: 'text-[11px] text-muted',+ author: 'min-w-0 truncate text-2xs text-muted',+ time: 'text-2xs text-muted',actions:'invisible absolute top-1.5 right-3 group-focus-within/item:visible group-hover/item:visible group-data-[selected]/item:visible group-data-[menu-open]/item:visible',more: 'flex justify-center px-3 py-2',diff --git a/src/theme/cloud/workspace.ts b/src/theme/cloud/workspace.tsindex d63a8b545..3e46d6468 100644--- a/src/theme/cloud/workspace.ts+++ b/src/theme/cloud/workspace.ts@@ -2,28 +2,28 @@export default {slots: {form: 'flex flex-col gap-1.5',- label: 'text-[11px] font-medium text-muted',+ label: 'text-2xs font-medium text-muted',stack: 'flex flex-col gap-4',inline: 'flex items-center gap-2',section: 'flex flex-col gap-2',- sectionTitle: 'text-[11px] font-medium text-muted',+ sectionTitle: 'text-2xs font-medium text-muted',sent: 'flex flex-col gap-1.5',- note: 'text-[11px] text-muted',+ note: 'text-2xs text-muted',list: 'flex flex-col divide-y divide-border rounded border border-border',row: 'flex items-center gap-3 px-3 py-2',person: 'flex min-w-0 flex-1 flex-col',personName: 'truncate text-xs text-surface',- personEmail: 'truncate text-[11px] text-muted',- personDetail: 'text-[11px] text-pretty text-muted',- you: 'ml-1 text-[11px] text-muted',- role: 'shrink-0 text-[11px] text-muted',+ personEmail: 'truncate text-2xs text-muted',+ personDetail: 'text-2xs text-pretty text-muted',+ you: 'ml-1 text-2xs text-muted',+ role: 'shrink-0 text-2xs text-muted',roleSelect: 'w-28 shrink-0',/** A role in the invite menu, with what it lets someone do on a second line. */roleItem: 'h-auto max-w-80 py-1',- dangerTitle: 'text-[11px] font-medium text-error',+ dangerTitle: 'text-2xs font-medium text-error',dangerList: 'flex flex-col divide-y divide-error-border rounded border border-error-border',dangerRow: 'flex items-center gap-3 px-3 py-2.5',- dangerDescription: 'text-[11px] text-pretty text-muted',+ dangerDescription: 'text-2xs text-pretty text-muted',confirmName: 'mt-3 flex flex-col gap-1.5',pendingIcon:'flex size-6 shrink-0 items-center justify-center rounded-full bg-panel-field text-muted'diff --git a/src/theme/collaboration/avatar/person.ts b/src/theme/collaboration/avatar/person.tsindex 183c0114a..6428c108c 100644--- a/src/theme/collaboration/avatar/person.ts+++ b/src/theme/collaboration/avatar/person.ts@@ -1,6 +1,6 @@/** A person's initials on their color, in the avatar stack, presence lists, and mobile HUD. */export default {- base: 'flex shrink-0 items-center justify-center rounded-full text-[10px] font-semibold text-white',+ base: 'flex shrink-0 items-center justify-center rounded-full text-3xs font-semibold text-white',variants: {size: { sm: 'size-6', md: 'size-7', lg: 'size-12 text-base' },bordered: { true: 'border-2 border-panel', false: '' },diff --git a/src/theme/collaboration/avatar/stack.ts b/src/theme/collaboration/avatar/stack.tsindex beee6b745..c92c2d450 100644--- a/src/theme/collaboration/avatar/stack.ts+++ b/src/theme/collaboration/avatar/stack.ts@@ -4,14 +4,14 @@ export default {root: 'flex items-center -space-x-1.5',person: 'relative inline-flex shrink-0',badge:- 'absolute -right-1.5 -bottom-1 flex items-center gap-px rounded-full border border-panel bg-panel px-0.5 text-[8px] leading-none font-semibold',+ 'absolute -right-1.5 -bottom-1 flex items-center gap-px rounded-full border border-panel bg-panel px-0.5 text-5xs leading-none font-semibold',badgeIcon: 'size-2',/** On someone in the voice call with their microphone off. */muted:'absolute -bottom-1 -left-1 flex size-3 items-center justify-center rounded-full border border-panel bg-panel text-muted',mutedIcon: 'size-2',overflow:- 'relative flex shrink-0 items-center justify-center rounded-full border-2 border-panel bg-hover text-[9px] font-semibold text-surface'+ 'relative flex shrink-0 items-center justify-center rounded-full border-2 border-panel bg-hover text-4xs font-semibold text-surface'},variants: {size: {diff --git a/src/theme/collaboration/follow-frame.ts b/src/theme/collaboration/follow-frame.tsindex 264229d76..90ecad6b5 100644--- a/src/theme/collaboration/follow-frame.ts+++ b/src/theme/collaboration/follow-frame.ts@@ -2,9 +2,9 @@export default {slots: {root: 'pointer-events-none absolute inset-0 z-30 border-2',- bar: 'pointer-events-auto absolute top-0 left-1/2 flex max-w-[calc(100%-1rem)] -translate-x-1/2 items-center gap-1.5 rounded-b-md py-1 pr-1 pl-2.5 text-[11px] font-medium text-white shadow-md',+ bar: 'pointer-events-auto absolute top-0 left-1/2 flex max-w-[calc(100%-1rem)] -translate-x-1/2 items-center gap-1.5 rounded-b-md py-1 pr-1 pl-2.5 text-2xs font-medium text-white shadow-md',icon: 'size-3 shrink-0',label: 'min-w-0 truncate',- stop: 'ml-1.5 shrink-0 cursor-pointer rounded bg-black/15 px-1.5 py-0.5 text-[11px] font-medium outline-none hover:bg-black/25 focus-visible:ring-1 focus-visible:ring-current'+ stop: 'ml-1.5 shrink-0 cursor-pointer rounded bg-black/15 px-1.5 py-0.5 text-2xs font-medium outline-none hover:bg-black/25 focus-visible:ring-1 focus-visible:ring-current'}} as constdiff --git a/src/theme/collaboration/page-markers.ts b/src/theme/collaboration/page-markers.tsindex 8e48ec887..2681b4e2d 100644--- a/src/theme/collaboration/page-markers.ts+++ b/src/theme/collaboration/page-markers.ts@@ -4,6 +4,6 @@ export default {root: 'flex shrink-0 items-center gap-1',person: 'size-2 rounded-full',agent: 'size-3',- overflow: 'text-[9px] leading-none text-muted'+ overflow: 'text-4xs leading-none text-muted'}} as constdiff --git a/src/theme/collaboration/presence-avatars.ts b/src/theme/collaboration/presence-avatars.tsindex eda881377..0548b201c 100644--- a/src/theme/collaboration/presence-avatars.ts+++ b/src/theme/collaboration/presence-avatars.ts@@ -10,7 +10,7 @@ export default {/** On your avatar while you are in a room. */live: 'absolute -top-0.5 -right-0.5 size-2 rounded-full border border-panel bg-success-fill',overflow:- 'relative flex size-6 shrink-0 cursor-pointer items-center justify-center rounded-full border-2 border-panel bg-hover text-[9px] font-semibold text-surface outline-none focus-visible:ring-2 focus-visible:ring-panel-focus',+ 'relative flex size-6 shrink-0 cursor-pointer items-center justify-center rounded-full border-2 border-panel bg-hover text-4xs font-semibold text-surface outline-none focus-visible:ring-2 focus-visible:ring-panel-focus',card: ['z-50 w-60 p-2', floatingSurface, motionStyles.floating],leave: 'mt-2 w-full'}diff --git a/src/theme/collaboration/presence-list.ts b/src/theme/collaboration/presence-list.tsindex f653bbced..16499a790 100644--- a/src/theme/collaboration/presence-list.ts+++ b/src/theme/collaboration/presence-list.ts@@ -1,5 +1,5 @@const NAME =- 'min-w-0 cursor-default truncate text-left text-[11px] text-surface outline-none focus-visible:ring-1 focus-visible:ring-panel-focus'+ 'min-w-0 cursor-default truncate text-left text-2xs text-surface outline-none focus-visible:ring-1 focus-visible:ring-panel-focus'/** People in a room, each followed by their agents. */export default {@@ -11,8 +11,8 @@ export default {name: `${NAME} flex-1`,// An agent's callsign keeps its width; the status beside it truncates first.agentName: NAME,- status: 'min-w-0 flex-1 truncate text-right text-[10px] text-muted',+ status: 'min-w-0 flex-1 truncate text-right text-3xs text-muted',renameInput:- 'h-6 min-w-0 flex-1 rounded border border-accent bg-input px-1.5 text-[11px] text-surface outline-none'+ 'h-6 min-w-0 flex-1 rounded border border-accent bg-input px-1.5 text-2xs text-surface outline-none'}} as constdiff --git a/src/theme/collaboration/room-screen.ts b/src/theme/collaboration/room-screen.tsindex 516dc400c..f33e9af36 100644--- a/src/theme/collaboration/room-screen.ts+++ b/src/theme/collaboration/room-screen.ts@@ -13,7 +13,7 @@ export const roomScreenTheme = {othersWaiting: 'mt-3 text-xs text-muted',actions: 'flex flex-col items-center gap-3',buttons: 'flex items-center justify-center gap-2',- footnote: 'flex flex-wrap items-center justify-center gap-1.5 text-[11px] text-muted',+ footnote: 'flex flex-wrap items-center justify-center gap-1.5 text-2xs text-muted',link: 'text-primary underline-offset-2 hover:underline focus-visible:underline focus-visible:outline-none'}} as const@@ -25,6 +25,6 @@ export const roomNoticeTheme = {icon: 'size-4 shrink-0 text-muted',content: 'flex min-w-0 flex-col',title: 'text-xs font-medium text-surface',- description: 'text-[11px] text-muted'+ description: 'text-2xs text-muted'}} as constdiff --git a/src/theme/collaboration/share-button.ts b/src/theme/collaboration/share-button.tsindex 85007c359..ccef03008 100644--- a/src/theme/collaboration/share-button.ts+++ b/src/theme/collaboration/share-button.ts@@ -1,5 +1,5 @@export default {- base: 'flex h-7 cursor-pointer items-center gap-1.5 rounded border-none px-3 text-[11px] font-medium transition-colors outline-none focus-visible:ring-1 focus-visible:ring-panel-focus',+ base: 'flex h-7 cursor-pointer items-center gap-1.5 rounded border-none px-3 text-2xs font-medium transition-colors outline-none focus-visible:ring-1 focus-visible:ring-panel-focus',variants: {connection: {idle: 'bg-accent text-on-accent hover:bg-accent/90',diff --git a/src/theme/collaboration/voice-call.ts b/src/theme/collaboration/voice-call.tsindex df853a33d..cf0a02bad 100644--- a/src/theme/collaboration/voice-call.ts+++ b/src/theme/collaboration/voice-call.ts@@ -5,12 +5,12 @@ export default {trigger: 'relative',/** How many people are in a call we are not in yet. */count:- 'absolute -top-1 -right-1 flex h-3 min-w-3 items-center justify-center rounded-full bg-success-fill px-0.5 text-[8px] leading-none font-semibold text-white',+ 'absolute -top-1 -right-1 flex h-3 min-w-3 items-center justify-center rounded-full bg-success-fill px-0.5 text-5xs leading-none font-semibold text-white',chevron: 'size-2.5',content: 'z-50 flex w-64 flex-col gap-3 p-3',header: 'flex items-center justify-between gap-2',title: 'text-xs font-medium text-surface',- status: 'text-[11px] text-muted',+ status: 'text-2xs text-muted',actions: 'flex items-center gap-1.5',action: 'flex-1'},diff --git a/src/theme/color-slider.ts b/src/theme/color-slider.tsindex 697d55c92..8f34fca03 100644--- a/src/theme/color-slider.ts+++ b/src/theme/color-slider.ts@@ -3,7 +3,7 @@ import { CHECKERBOARD_BACKGROUND } from '@/theme/paint/checkerboard'export default {slots: {root: 'flex items-center gap-2',- label: 'w-7 shrink-0 text-[10px] font-medium text-muted',+ label: 'w-7 shrink-0 text-3xs font-medium text-muted',slider: 'relative flex h-3 flex-1 touch-none items-center rounded-md select-none',track: 'absolute inset-0 overflow-hidden rounded-md',thumb:diff --git a/src/theme/command-palette.ts b/src/theme/command-palette.tsindex 9f44a4bab..35091861f 100644--- a/src/theme/command-palette.ts+++ b/src/theme/command-palette.ts@@ -3,16 +3,16 @@ export default {root: 'flex h-[min(70vh,32rem)] flex-col overflow-hidden',searchWrapper: 'flex h-14 shrink-0 items-center border-b border-border px-3',search:- 'h-8 flex-1 rounded-none border-0 bg-transparent px-0 text-[13px] outline-none placeholder:text-muted',+ 'h-8 flex-1 rounded-none border-0 bg-transparent px-0 text-[0.8125rem] outline-none placeholder:text-muted',back: 'px-2 pt-2 text-xs text-muted',content:'min-h-0 flex-1 overflow-y-auto px-2 pb-2 pt-1 [scrollbar-color:theme(colors.muted)_transparent]',- label: 'px-2 py-1 text-[11px] font-medium text-muted',+ label: 'px-2 py-1 text-2xs font-medium text-muted',group: 'mb-2 last:mb-0',- item: 'mx-0 flex h-8 cursor-pointer items-center gap-2 rounded-md p-1 text-[13px] leading-6 text-surface outline-none data-[disabled]:cursor-not-allowed data-[disabled]:text-muted data-[disabled]:opacity-55 data-[highlighted]:bg-hover',+ item: 'mx-0 flex h-8 cursor-pointer items-center gap-2 rounded-md p-1 text-[0.8125rem] leading-6 text-surface outline-none data-[disabled]:cursor-not-allowed data-[disabled]:text-muted data-[disabled]:opacity-55 data-[highlighted]:bg-hover',itemIcon: 'flex size-6 shrink-0 items-center justify-center text-muted',itemLabel: 'min-w-0 flex-1 truncate',shortcut: 'flex shrink-0 items-center gap-1 text-xs text-muted',- key: 'inline-flex min-w-5 items-center justify-center rounded border border-border bg-panel px-1 py-0.5 font-mono text-[10px] leading-none'+ key: 'inline-flex min-w-5 items-center justify-center rounded border border-border bg-panel px-1 py-0.5 font-mono text-3xs leading-none'}} as constdiff --git a/src/theme/comments.ts b/src/theme/comments.tsindex 63704d9b9..650141cc2 100644--- a/src/theme/comments.ts+++ b/src/theme/comments.ts@@ -21,13 +21,13 @@ export default {card: 'flex max-h-[min(28rem,70vh)] w-80 flex-col overflow-hidden p-0',// A new comment is the composer alone, floating beside its pin, as in Figma.draftCard:- 'w-72 rounded-[20px] p-0 focus-within:shadow-[0_0_0_1px_var(--color-accent),0_8px_30px_rgb(0_0_0/0.4)]',+ 'w-72 rounded-[1.25rem] p-0 focus-within:shadow-[0_0_0_1px_var(--color-accent),0_8px_30px_rgb(0_0_0/0.4)]',threadCard: 'flex min-h-0 flex-col',thread: 'scrollbar-thin flex min-h-0 flex-col gap-3 overflow-y-auto px-3 py-2.5',- message: 'group/message grid grid-cols-[24px_minmax(0,1fr)] gap-x-2 gap-y-0.5',+ message: 'group/message grid grid-cols-[1.5rem_minmax(0,1fr)] gap-x-2 gap-y-0.5',messageMeta: 'flex h-6 min-w-0 items-center gap-1.5 text-xs',messageAuthor: 'min-w-0 truncate font-semibold text-surface',- messageTime: 'shrink-0 text-[11px] text-muted',+ messageTime: 'shrink-0 text-2xs text-muted',messageActions:'ml-auto flex shrink-0 opacity-0 group-focus-within/message:opacity-100 group-hover/message:opacity-100',messageText: 'col-start-2 min-w-0 text-xs break-words text-surface',@@ -44,10 +44,10 @@ export default {itemButton:'flex w-full cursor-pointer flex-col gap-1 px-3 py-2.5 text-left text-xs outline-none focus-visible:bg-hover',itemTop: 'flex h-6 items-center gap-1.5 pr-14',- itemPlace: 'min-w-0 truncate text-[11px] text-muted',+ itemPlace: 'min-w-0 truncate text-2xs text-muted',itemMeta: 'flex min-w-0 items-baseline gap-1.5',itemText: 'line-clamp-3 min-w-0 break-words text-surface/80',- itemReplies: 'text-[11px] text-muted',+ itemReplies: 'text-2xs text-muted',itemActions:'invisible absolute top-2 right-2 flex gap-0.5 group-focus-within/item:visible group-hover/item:visible group-data-[menu-open]/item:visible',menuIndicator: 'absolute left-2'@@ -57,7 +57,7 @@ export default {bare: {true: {composer:- 'rounded-[20px] border-0 bg-transparent py-1.5 pr-1.5 focus-within:border-0 focus-within:ring-0'+ 'rounded-[1.25rem] border-0 bg-transparent py-1.5 pr-1.5 focus-within:border-0 focus-within:ring-0'}}}diff --git a/src/theme/constraints.ts b/src/theme/constraints.tsindex fd539c061..4727e56b1 100644--- a/src/theme/constraints.ts+++ b/src/theme/constraints.ts@@ -1,11 +1,11 @@const constraintsTheme = {slots: {- root: 'grid grid-cols-[72px_minmax(0,1fr)] items-center gap-1.5',- diagram: 'relative h-16 w-[72px] rounded border border-border bg-panel-field',+ root: 'grid grid-cols-[4.5rem_minmax(0,1fr)] items-center gap-1.5',+ diagram: 'relative h-16 w-18 rounded border border-border bg-panel-field',pin: 'absolute flex cursor-pointer items-center justify-center rounded-sm border border-transparent bg-transparent text-muted outline-none hover:bg-hover hover:text-surface focus-visible:ring-1 focus-visible:ring-panel-focus',pinMark: 'block rounded-full bg-current',scaleBadge:- 'pointer-events-none absolute inset-2 flex items-center justify-center text-[9px] font-medium tracking-wide text-primary uppercase',+ 'pointer-events-none absolute inset-2 flex items-center justify-center text-4xs font-medium tracking-wide text-primary uppercase',selects: 'grid min-w-0 gap-1.5'},variants: {@@ -22,8 +22,8 @@ const constraintsTheme = {horizontalTrailing: { pin: 'top-1/2 right-1 h-7 w-4 -translate-y-1/2', pinMark: 'h-5 w-0.5' },verticalLeading: { pin: 'top-1 left-1/2 h-4 w-7 -translate-x-1/2', pinMark: 'h-0.5 w-5' },verticalTrailing: { pin: 'bottom-1 left-1/2 h-4 w-7 -translate-x-1/2', pinMark: 'h-0.5 w-5' },- horizontalCenter: { pin: 'top-[21px] left-[27px] h-6 w-4', pinMark: 'h-4 w-0.5' },- verticalCenter: { pin: 'top-[25px] left-[33px] h-4 w-6', pinMark: 'h-0.5 w-4' }+ horizontalCenter: { pin: 'top-5.25 left-6.75 h-6 w-4', pinMark: 'h-4 w-0.5' },+ verticalCenter: { pin: 'top-6.25 left-8.25 h-4 w-6', pinMark: 'h-0.5 w-4' }}},defaultVariants: {diff --git a/src/theme/date/range-calendar.ts b/src/theme/date/range-calendar.tsindex 1ac8dc95d..8cbbda9ba 100644--- a/src/theme/date/range-calendar.ts+++ b/src/theme/date/range-calendar.ts@@ -8,7 +8,7 @@ export default {header: 'flex items-center justify-between gap-2',heading: 'text-xs font-semibold',grid: 'w-full border-collapse select-none',- headCell: 'h-7 w-8 text-center text-[10px] font-medium text-muted',+ headCell: 'h-7 w-8 text-center text-3xs font-medium text-muted',cell: 'p-0 text-center',day: ['mx-auto flex size-8 cursor-pointer items-center justify-center rounded-md tabular-nums outline-none',diff --git a/src/theme/design-check.ts b/src/theme/design-check.tsindex 7025781aa..2c9a6da56 100644--- a/src/theme/design-check.ts+++ b/src/theme/design-check.ts@@ -8,14 +8,14 @@ export const designCheckTheme = {toolbarRow: 'flex min-w-0 items-center gap-1',filters: 'flex min-w-0 flex-1 items-center gap-0.5',filter:- 'flex h-6 cursor-pointer items-center gap-1 rounded px-1.5 text-[11px] text-surface tabular-nums outline-none hover:bg-hover focus-visible:ring-1 focus-visible:ring-panel-focus data-[state=off]:text-muted data-[state=off]:[&_svg]:opacity-50',+ 'flex h-6 cursor-pointer items-center gap-1 rounded px-1.5 text-2xs text-surface tabular-nums outline-none hover:bg-hover focus-visible:ring-1 focus-visible:ring-panel-focus data-[state=off]:text-muted data-[state=off]:[&_svg]:opacity-50',list: 'scrollbar-thin min-h-0 flex-1 overflow-x-hidden overflow-y-auto pb-2',- status: 'px-3 py-2 text-[11px] text-muted',+ status: 'px-3 py-2 text-2xs text-muted',// Group slots override the matching AppCollapsible slots.group: 'group/issue border-b border-border/60 last:border-b-0',groupHeader: 'group/header relative h-8 gap-0 pr-2 pl-1.5',groupTrigger:- 'h-7 cursor-pointer gap-1.5 rounded pr-1 text-[11px] focus-visible:ring-1 focus-visible:ring-panel-focus',+ 'h-7 cursor-pointer gap-1.5 rounded pr-1 text-2xs focus-visible:ring-1 focus-visible:ring-panel-focus',chevron: 'size-3 text-muted',groupLabel: 'flex min-w-0 flex-1 items-center gap-1.5',groupTitle: 'block min-w-0 truncate font-semibold',@@ -25,17 +25,17 @@ export const designCheckTheme = {'invisible absolute inset-y-0 right-1.5 flex items-center gap-0.5 group-focus-within/header:visible group-hover/header:visible group-data-[menu-open]/issue:visible',rows: 'pb-1',rowItem: 'group/row relative',- row: 'flex h-7 w-full cursor-default items-center gap-2 pr-2 pl-7 text-left text-[11px] text-surface outline-none hover:bg-hover focus-visible:bg-hover data-[selected]:bg-panel-selected-muted data-[missing]:text-muted',+ row: 'flex h-7 w-full cursor-default items-center gap-2 pr-2 pl-7 text-left text-2xs text-surface outline-none hover:bg-hover focus-visible:bg-hover data-[selected]:bg-panel-selected-muted data-[missing]:text-muted',rowIcon: 'size-3 shrink-0 text-muted',rowName: 'min-w-0 flex-1 truncate',- rowTag: 'shrink-0 text-[10px] text-muted',+ rowTag: 'shrink-0 text-3xs text-muted',rowDetail: 'flex max-w-[50%] min-w-0 shrink items-center gap-1.5 text-muted tabular-nums',rowDetailText: 'truncate',rowAction:'absolute top-1/2 right-1.5 hidden h-5 -translate-y-1/2 cursor-pointer items-center rounded bg-panel px-1.5 text-primary shadow-[0_0_0_1px_var(--color-border)] outline-none group-focus-within/row:flex group-hover/row:flex hover:bg-hover focus-visible:ring-1 focus-visible:ring-panel-focus',contrastSwatch:- 'flex h-3.5 shrink-0 items-center rounded-[3px] px-[3px] text-[9px] leading-none font-semibold shadow-[inset_0_0_0_1px_rgb(0_0_0/0.12)]',- swatch: 'size-2.5 shrink-0 rounded-[3px] shadow-[inset_0_0_0_1px_rgb(0_0_0/0.12)]',+ 'flex h-3.5 shrink-0 items-center rounded-[0.1875rem] px-0.75 text-4xs leading-none font-semibold shadow-[inset_0_0_0_1px_rgb(0_0_0/0.12)]',+ swatch: 'size-2.5 shrink-0 rounded-[0.1875rem] shadow-[inset_0_0_0_1px_rgb(0_0_0/0.12)]',more: 'mb-1 ml-6'}} as const@@ -57,7 +57,7 @@ export const layerIssueMarkTheme = {/** The page list badge: the count of errors and warnings, in the most severe color. */export const pageIssueBadgeTheme = {- base: 'flex h-3.5 min-w-3.5 shrink-0 items-center justify-center rounded-full px-1 text-[9px] leading-none font-semibold tabular-nums',+ base: 'flex h-3.5 min-w-3.5 shrink-0 items-center justify-center rounded-full px-1 text-4xs leading-none font-semibold tabular-nums',variants: {severity: {error: 'bg-error-fill text-white',@@ -68,11 +68,7 @@ export const pageIssueBadgeTheme = {export const issueTooltipTheme = {slots: {- content: [- 'pointer-events-none z-50 w-64 py-1.5 text-[11px]',- floatingSurface,- motionStyles.popup- ],+ content: ['pointer-events-none z-50 w-64 py-1.5 text-2xs', floatingSurface, motionStyles.popup],header: 'flex items-center gap-1.5 px-2.5 pt-0.5 pb-1 font-semibold',headerIcon: 'size-3 shrink-0 text-muted',headerText: 'min-w-0 truncate',diff --git a/src/theme/feedback/placeholder.ts b/src/theme/feedback/placeholder.tsindex 45757bb31..39f4fcae0 100644--- a/src/theme/feedback/placeholder.ts+++ b/src/theme/feedback/placeholder.ts@@ -19,7 +19,7 @@ const placeholderTheme = {content: 'max-w-xs',icon: 'mb-2 size-8',label: 'font-normal text-muted',- description: 'text-[11px]',+ description: 'text-2xs',action: 'mt-3'},panel: { root: 'p-6' },diff --git a/src/theme/feedback/progress.ts b/src/theme/feedback/progress.tsindex 801a208e2..dbed549d7 100644--- a/src/theme/feedback/progress.ts+++ b/src/theme/feedback/progress.ts@@ -4,7 +4,7 @@ const progressTheme = {track: 'h-1 w-full overflow-hidden rounded-full',// Reka marks unmeasurable work `indeterminate`; the bar then pulses in place.fill: 'h-full rounded-full transition-[width] duration-150 ease-out motion-reduce:transition-none data-[state=indeterminate]:w-1/3 data-[state=indeterminate]:animate-pulse motion-reduce:data-[state=indeterminate]:animate-none',- label: 'text-[10px] leading-none tabular-nums'+ label: 'text-3xs leading-none tabular-nums'},variants: {tone: {diff --git a/src/theme/feedback/status.ts b/src/theme/feedback/status.tsindex ec7742fbb..a2b7ec361 100644--- a/src/theme/feedback/status.ts+++ b/src/theme/feedback/status.ts@@ -1,6 +1,6 @@const statusTheme = {slots: {- text: 'text-[10px] leading-snug',+ text: 'text-3xs leading-snug',/** A state as a coloured dot and its label, as room status shows it. */indicator: 'inline-flex items-center gap-1.5 text-xs',dot: 'size-2 shrink-0 rounded-full'diff --git a/src/theme/feedback/toast.ts b/src/theme/feedback/toast.tsindex a5da18f04..fe75da680 100644--- a/src/theme/feedback/toast.ts+++ b/src/theme/feedback/toast.ts@@ -10,7 +10,7 @@ const toastTheme = {progress: 'mt-1.5',// A filled button that darkens the toast, so its text keeps the toast's contrast.action:- 'shrink-0 cursor-pointer rounded px-2 py-0.5 text-[11px] leading-4 font-medium transition-colors focus-visible:outline-1 focus-visible:outline-current',+ 'shrink-0 cursor-pointer rounded px-2 py-0.5 text-2xs leading-4 font-medium transition-colors focus-visible:outline-1 focus-visible:outline-current',control: 'mt-0.5 shrink-0 cursor-pointer rounded p-0.5 opacity-70 hover:opacity-100'},variants: {diff --git a/src/theme/figjam/controls.ts b/src/theme/figjam/controls.tsindex 16bd8989f..5868ae393 100644--- a/src/theme/figjam/controls.ts+++ b/src/theme/figjam/controls.ts@@ -2,7 +2,7 @@ const figJamControlsTheme = {slots: {root: 'grid gap-3',header: 'mb-1 flex items-center justify-between',- label: 'text-[11px] text-muted',+ label: 'text-2xs text-muted',leadingIcon: 'mr-1.5 size-4 shrink-0 text-muted',option: 'flex items-center gap-2',optionIcon: 'size-4 shrink-0 text-muted'diff --git a/src/theme/figjam/swatches.ts b/src/theme/figjam/swatches.tsindex 87e60e1ca..cd64c425b 100644--- a/src/theme/figjam/swatches.ts+++ b/src/theme/figjam/swatches.ts@@ -1,6 +1,6 @@const swatchesTheme = {slots: {- root: 'grid grid-cols-11 justify-items-center gap-[3px]',+ root: 'grid grid-cols-11 justify-items-center gap-0.75',swatch:'size-4 cursor-pointer rounded-full border border-border focus-visible:ring-2 focus-visible:ring-accent/50 focus-visible:outline-none',none: 'flex items-center justify-center bg-transparent text-muted'diff --git a/src/theme/figjam/toolbar.ts b/src/theme/figjam/toolbar.tsindex f325ab307..7ca2792cd 100644--- a/src/theme/figjam/toolbar.ts+++ b/src/theme/figjam/toolbar.ts@@ -1,6 +1,6 @@const figJamToolbarTheme = {slots: {- bar: 'flex h-10 max-w-[calc(100vw-16px)] items-center gap-0.5 overflow-x-auto px-1',+ bar: 'flex h-10 max-w-[calc(100vw-1rem)] items-center gap-0.5 overflow-x-auto px-1',divider: 'mx-1 h-6 w-px shrink-0 bg-border',trigger:'flex h-8 shrink-0 cursor-pointer items-center gap-0.5 rounded-md px-1.5 text-muted outline-none hover:bg-hover hover:text-surface focus-visible:ring-2 focus-visible:ring-accent/50 data-[state=open]:bg-hover data-[state=open]:text-surface',@@ -13,7 +13,7 @@ const figJamToolbarTheme = {'flex h-7 cursor-pointer items-center gap-2 rounded px-2 text-left text-xs text-surface outline-none hover:bg-hover focus-visible:bg-hover data-[state=on]:bg-accent/15 data-[state=on]:text-primary',optionIcon: 'size-4 shrink-0 text-muted',group: 'grid gap-2',- groupLabel: 'text-[11px] text-muted',+ groupLabel: 'text-2xs text-muted',segments: 'flex gap-1'}}diff --git a/src/theme/home/document-entry.ts b/src/theme/home/document-entry.tsindex 6476bd0d6..e0e8a72d7 100644--- a/src/theme/home/document-entry.ts+++ b/src/theme/home/document-entry.ts@@ -15,8 +15,8 @@ export default {title: 'flex min-w-0 items-center gap-1.5',name: 'block min-w-0 truncate text-xs font-medium',status: 'flex shrink-0 items-center gap-1 text-muted',- metadata: 'mt-0.5 block truncate text-[10px] text-muted',- trailingMetadata: 'hidden shrink-0 text-[10px] text-muted sm:inline',+ metadata: 'mt-0.5 block truncate text-3xs text-muted',+ trailingMetadata: 'hidden shrink-0 text-3xs text-muted sm:inline',actions: 'flex shrink-0 items-center gap-1',// Over an icon button: shown on hover, focus, and while open; always on touch screens.menuTrigger:diff --git a/src/theme/home/location-menu.ts b/src/theme/home/location-menu.tsindex de5e8bfee..ce801c9ac 100644--- a/src/theme/home/location-menu.ts+++ b/src/theme/home/location-menu.ts@@ -11,7 +11,7 @@ export default {chevron: 'size-3.5 shrink-0 text-muted pointer-coarse:size-4',content: 'w-[var(--reka-dropdown-menu-trigger-width)]',itemLabel: 'min-w-0 flex-1 truncate',- count: 'shrink-0 text-[11px] text-muted tabular-nums',+ count: 'shrink-0 text-2xs text-muted tabular-nums',check: 'size-3.5 shrink-0 text-surface',attention: 'size-3.5 shrink-0 text-warning'}diff --git a/src/theme/input/copy-field.ts b/src/theme/input/copy-field.tsindex d0c1b7119..418388803 100644--- a/src/theme/input/copy-field.ts+++ b/src/theme/input/copy-field.ts@@ -6,7 +6,7 @@ export default {variants: {look: {/** A command to run, set apart like a terminal line. */- command: { root: 'rounded bg-input px-2.5 py-1.5', value: 'font-mono text-[11px]' },+ command: { root: 'rounded bg-input px-2.5 py-1.5', value: 'font-mono text-2xs' },/** An address or token inside a settings row. */plain: { value: 'text-xs' }}diff --git a/src/theme/input/input.ts b/src/theme/input/input.tsindex ad1a7e6bd..14cec5066 100644--- a/src/theme/input/input.ts+++ b/src/theme/input/input.ts@@ -17,7 +17,7 @@ export default {panel: panelFieldBase},size: {- xs: 'h-6 px-2 text-[11px]',+ xs: 'h-6 px-2 text-2xs',sm: 'h-7 px-2.5 text-xs',md: 'h-8 px-3 text-xs',lg: 'h-9 px-3 text-sm'diff --git a/src/theme/input/number-field.ts b/src/theme/input/number-field.tsindex 0fdfff9e7..1faf3054d 100644--- a/src/theme/input/number-field.ts+++ b/src/theme/input/number-field.ts@@ -4,13 +4,13 @@ const numberFieldTheme = {slots: {root: [panelFieldBase,- 'group flex min-h-6 flex-1 cursor-ew-resize items-center text-[11px] tabular-nums data-[disabled]:cursor-auto data-[editing]:cursor-auto'+ 'group flex min-h-6 flex-1 cursor-ew-resize items-center text-2xs tabular-nums data-[disabled]:cursor-auto data-[editing]:cursor-auto'],leading:- 'flex shrink-0 items-center justify-center self-stretch px-[5px] text-muted select-none [&>*]:pointer-events-none',+ 'flex shrink-0 items-center justify-center self-stretch px-1.25 text-muted select-none [&>*]:pointer-events-none',field:- 'min-w-0 flex-1 cursor-text border-none bg-transparent pr-1.5 font-[inherit] text-[11px] text-surface outline-none',- display: 'flex min-w-0 flex-1 items-center overflow-hidden text-[11px] select-none',+ 'min-w-0 flex-1 cursor-text border-none bg-transparent pr-1.5 font-[inherit] text-2xs text-surface outline-none',+ display: 'flex min-w-0 flex-1 items-center overflow-hidden text-2xs select-none',mixed: 'flex-1 text-muted',value: 'min-w-0 flex-1 truncate text-surface',trailing: 'flex shrink-0 items-center self-stretch',diff --git a/src/theme/layer-tree.ts b/src/theme/layer-tree.tsindex ef4166433..d9d20e31f 100644--- a/src/theme/layer-tree.ts+++ b/src/theme/layer-tree.ts@@ -1,7 +1,7 @@const layerTreeTheme = {slots: {viewport: 'scrollbar-thin h-full overflow-y-auto px-1',- row: 'group/row relative flex w-full cursor-pointer items-center gap-1 rounded border-none bg-transparent pr-1 text-left text-[11px] text-surface hover:bg-hover',+ row: 'group/row relative flex w-full cursor-pointer items-center gap-1 rounded border-none bg-transparent pr-1 text-left text-2xs text-surface hover:bg-hover',disclosure:'flex w-4 shrink-0 cursor-pointer items-center justify-center text-current transition-transform',disclosurePlaceholder: 'w-4 shrink-0',@@ -12,10 +12,10 @@ const layerTreeTheme = {'flex size-4 items-center justify-center rounded text-current outline-none hover:bg-white/15 focus-visible:ring-1 focus-visible:ring-panel-focus',actionIcon: 'size-3',dropIndicator: 'pointer-events-none absolute bg-accent',- renameRow: 'group/row relative flex w-full items-center gap-1 pr-1 text-[11px] text-surface',+ renameRow: 'group/row relative flex w-full items-center gap-1 pr-1 text-2xs text-surface',renameIcon: 'size-3 shrink-0 opacity-70',renameInput:- 'min-w-0 flex-1 rounded border border-accent bg-input px-1 py-0 text-[11px] text-surface outline-none'+ 'min-w-0 flex-1 rounded border border-accent bg-input px-1 py-0 text-2xs text-surface outline-none'},variants: {selected: {diff --git a/src/theme/layout-alignment.ts b/src/theme/layout-alignment.tsindex 7d2c5984e..eb5e5f76e 100644--- a/src/theme/layout-alignment.ts+++ b/src/theme/layout-alignment.ts@@ -1,7 +1,7 @@const layoutAlignmentTheme = {slots: {grid: 'grid w-fit grid-cols-3 gap-0.5 rounded bg-panel-field p-0.5',- cell: 'flex size-6 cursor-pointer items-center justify-center rounded border-0 text-[11px] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent/50',+ cell: 'flex size-6 cursor-pointer items-center justify-center rounded border-0 text-2xs focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent/50',dot: 'size-1.5 rounded-full bg-current'},variants: {diff --git a/src/theme/list/action-row.ts b/src/theme/list/action-row.tsindex 591e9c842..3079f33ad 100644--- a/src/theme/list/action-row.ts+++ b/src/theme/list/action-row.ts@@ -3,8 +3,8 @@ export default {root: 'group flex w-full cursor-pointer items-center gap-3 rounded border border-border bg-panel-field px-3 py-2 text-left whitespace-normal transition-colors enabled:hover:bg-panel-field-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent/50 disabled:cursor-not-allowed disabled:opacity-50',leading: 'flex shrink-0 items-center justify-center text-muted',body: 'min-w-0 flex-1',- label: 'block truncate text-[11px] font-medium text-surface',- description: 'block text-[10px] break-words text-muted',+ label: 'block truncate text-2xs font-medium text-surface',+ description: 'block text-3xs break-words text-muted',trailing: 'flex shrink-0 items-center gap-1 text-muted'}} as constdiff --git a/src/theme/list/side-list.ts b/src/theme/list/side-list.tsindex 3f482db76..eea963cee 100644--- a/src/theme/list/side-list.ts+++ b/src/theme/list/side-list.ts@@ -4,13 +4,13 @@ export default {root: 'flex h-full w-64 shrink-0 flex-col overflow-y-auto border-r border-border bg-panel',group: 'flex flex-col gap-0.5 border-t border-border p-2 first:border-t-0',header: 'flex h-7 shrink-0 items-center justify-between pr-0.5 pl-2',- title: 'text-[11px] font-semibold text-muted',+ title: 'text-2xs font-semibold text-muted',actions: 'flex items-center gap-0.5',items: 'flex flex-col gap-0.5',item: 'group flex h-7 w-full shrink-0 cursor-pointer items-center gap-2 rounded border-none bg-transparent px-2 text-left text-xs text-muted outline-none transition-colors hover:bg-hover hover:text-surface focus-visible:ring-2 focus-visible:ring-accent/50 data-[active=true]:bg-hover data-[active=true]:text-surface',icon: 'size-3.5 shrink-0',label: 'min-w-0 flex-1 truncate',- trailing: 'flex shrink-0 items-center gap-1.5 text-[11px] text-muted tabular-nums',+ trailing: 'flex shrink-0 items-center gap-1.5 text-2xs text-muted tabular-nums',attention: 'size-3.5 text-warning'}} as constdiff --git a/src/theme/markdown/markdown.css b/src/theme/markdown/markdown.cssindex 07638ee0c..fde1d4641 100644--- a/src/theme/markdown/markdown.css+++ b/src/theme/markdown/markdown.css@@ -30,7 +30,7 @@}[data-stream-markdown='alert'] [data-stream-markdown='link-url'] {- @apply bg-input p-2 text-[11px] break-all text-surface;+ @apply bg-input p-2 text-2xs break-all text-surface;}/* Menus such as a table's copy formats, sized like the app's menus. The renderer sets the item@@ -101,7 +101,7 @@[data-stream-markdown='error-component'],[data-stream-markdown='image-caption'] {- @apply text-[11px];+ @apply text-2xs;}/* A task item shows its checkbox in place of the bullet. */@@ -125,10 +125,10 @@[data-stream-markdown='th'],[data-stream-markdown='td'] {- @apply px-2 py-1 text-[11px] leading-4;+ @apply px-2 py-1 text-2xs leading-4;}- @apply text-[11px] leading-4;+ @apply text-2xs leading-4;[data-stream-markdown='blockquote'],[data-stream-markdown='code-block'] {@@ -136,7 +136,7 @@}[data-stream-markdown='code-block-header'] {- @apply h-6 px-1.5 py-0 text-[9px] leading-3;+ @apply h-6 px-1.5 py-0 text-4xs leading-3;}[data-stream-markdown='code-block-header'] [data-stream-markdown='actions'] {@@ -153,15 +153,15 @@}[data-stream-markdown='code-line'] {- @apply min-h-4 text-[11px] leading-4;+ @apply min-h-4 text-2xs leading-4;&::before {- @apply mr-2 text-[9px];+ @apply mr-2 text-4xs;}}[data-stream-markdown='code-block'] [data-stream-markdown='code'] {- @apply p-1.5 text-[11px] leading-4;+ @apply p-1.5 text-2xs leading-4;}[data-stream-markdown='heading-1'] {@@ -176,11 +176,11 @@[data-stream-markdown='heading-4'],[data-stream-markdown='heading-5'],[data-stream-markdown='heading-6'] {- @apply mt-2 mb-1 text-[11px];+ @apply mt-2 mb-1 text-2xs;}[data-stream-markdown='language-name'] {- @apply text-[9px] leading-3;+ @apply text-4xs leading-3;}[data-stream-markdown='language-title'] {diff --git a/src/theme/metrics/dashboard.ts b/src/theme/metrics/dashboard.tsindex 476c736f8..9ae5225b1 100644--- a/src/theme/metrics/dashboard.ts+++ b/src/theme/metrics/dashboard.ts@@ -4,8 +4,8 @@ export const metricsDashboardTheme = {page: 'chart-theme flex h-full min-h-0 flex-col overflow-hidden bg-canvas text-surface',bar: 'flex h-11 shrink-0 items-center gap-2 border-b border-border bg-panel px-4',barTitle: 'text-xs font-semibold whitespace-nowrap',- barHost: 'truncate text-[11px] text-muted max-sm:hidden',- barMeta: 'truncate text-[11px] text-muted max-sm:hidden',+ barHost: 'truncate text-2xs text-muted max-sm:hidden',+ barMeta: 'truncate text-2xs text-muted max-sm:hidden',barEnd: 'ml-auto flex items-center gap-2',main: 'min-w-0 flex-1 overflow-y-auto',inner:@@ -14,9 +14,9 @@ export const metricsDashboardTheme = {row: 'grid gap-4 lg:grid-cols-2',usage: 'flex flex-col gap-4',breakdown: 'grid gap-6 md:grid-cols-2',- sectionLabel: 'mb-2 text-[11px] font-medium text-muted',+ sectionLabel: 'mb-2 text-2xs font-medium text-muted',section: 'flex flex-col gap-4',- sectionHeading: 'mt-2 text-[11px] font-semibold tracking-wide text-muted uppercase'+ sectionHeading: 'mt-2 text-2xs font-semibold tracking-wide text-muted uppercase'}} as const@@ -27,8 +27,8 @@ export const metricsCardTheme = {header: 'flex flex-wrap items-start justify-between gap-x-3 gap-y-1',titleGroup: 'flex min-w-64 flex-1 flex-col gap-0.5',title: 'text-xs font-semibold',- note: 'text-[11px] text-muted',- aside: 'shrink-0 text-[11px] text-muted tabular-nums'+ note: 'text-2xs text-muted',+ aside: 'shrink-0 text-2xs text-muted tabular-nums'}} as const@@ -36,9 +36,9 @@ export const metricsCardTheme = {export const metricsTileTheme = {slots: {root: 'flex min-w-0 flex-col gap-1 rounded-lg border border-border bg-panel p-4',- label: 'text-[11px] text-muted',+ label: 'text-2xs text-muted',value: 'text-2xl font-semibold tabular-nums',- detail: 'flex flex-wrap items-center gap-x-1 text-[11px] text-muted tabular-nums',+ detail: 'flex flex-wrap items-center gap-x-1 text-2xs text-muted tabular-nums',change: 'font-medium data-[direction=up]:text-success data-[direction=down]:text-error',trend: 'mt-2 h-8'}@@ -50,10 +50,10 @@ export const metricsWaitlistTheme = {list: 'flex flex-col',row: 'flex min-h-9 items-center gap-3 border-b border-border py-1.5 text-xs last:border-b-0',domain: 'min-w-0 flex-1 truncate font-medium',- time: 'shrink-0 text-[11px] text-muted tabular-nums',+ time: 'shrink-0 text-2xs text-muted tabular-nums',more: 'mt-2',status:- 'shrink-0 rounded px-1.5 py-px text-[10px] font-medium data-[confirmed=false]:bg-panel-field data-[confirmed=false]:text-muted data-[confirmed=true]:bg-success/10 data-[confirmed=true]:text-success'+ 'shrink-0 rounded px-1.5 py-px text-3xs font-medium data-[confirmed=false]:bg-panel-field data-[confirmed=false]:text-muted data-[confirmed=true]:bg-success/10 data-[confirmed=true]:text-success'}} as const@@ -61,7 +61,7 @@ export const metricsWaitlistTheme = {export const metricsNetworksTheme = {slots: {table: 'w-full table-fixed text-xs',- row: 'h-9 border-b border-border last:border-b-0 [&>th]:h-7 [&>th]:text-[11px] [&>th]:font-normal [&>th]:text-muted',+ row: 'h-9 border-b border-border last:border-b-0 [&>th]:h-7 [&>th]:text-2xs [&>th]:font-normal [&>th]:text-muted',asn: 'w-16 text-left text-muted tabular-nums',name: 'truncate pr-3 text-left font-medium',number: 'w-16 text-right tabular-nums'@@ -87,7 +87,7 @@ export const metricsRetentionTheme = {root: 'flex flex-col gap-3',stats: 'grid grid-cols-3 gap-4',stat: 'flex flex-col gap-0.5',- statLabel: 'text-[11px] text-muted',+ statLabel: 'text-2xs text-muted',statValue:'flex h-7 items-center text-lg font-semibold tabular-nums data-[empty=true]:text-xs data-[empty=true]:font-normal data-[empty=true]:text-muted'}diff --git a/src/theme/page-list.ts b/src/theme/page-list.tsindex 467273e5a..3321f9045 100644--- a/src/theme/page-list.ts+++ b/src/theme/page-list.ts@@ -2,7 +2,7 @@ const pageListTheme = {slots: {panel: 'flex min-h-0 flex-1 flex-col',header: 'flex shrink-0 items-center justify-between px-3 py-1.5',- title: 'text-[11px] font-semibold text-surface',+ title: 'text-2xs font-semibold text-surface',add: 'cursor-pointer rounded border-none bg-transparent px-1 text-base leading-none text-muted hover:bg-hover hover:text-surface focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-panel-focus',body: 'min-h-0 flex-1 overflow-hidden',viewport: 'scrollbar-thin h-full overflow-x-hidden overflow-y-auto px-1 pb-1',@@ -11,10 +11,10 @@ const pageListTheme = {renameRow: 'flex h-6 w-full items-center gap-1.5 rounded px-2',icon: 'size-3 shrink-0 opacity-70',renameInput:- 'min-w-0 flex-1 rounded border border-accent bg-input px-1 py-0 text-[11px] text-surface outline-none',+ 'min-w-0 flex-1 rounded border border-accent bg-input px-1 py-0 text-2xs text-surface outline-none',divider: 'my-1 flex cursor-pointer items-center px-2',dividerLine: 'h-px flex-1 bg-border',- item: 'flex h-6 w-full cursor-pointer items-center gap-1.5 rounded border-none px-2 text-left text-[11px] outline-none focus-visible:ring-1 focus-visible:ring-panel-focus',+ item: 'flex h-6 w-full cursor-pointer items-center gap-1.5 rounded border-none px-2 text-left text-2xs outline-none focus-visible:ring-1 focus-visible:ring-panel-focus',label: 'min-w-0 flex-1 truncate',/** Right-aligned page badges, such as who works on the page. */trailing: 'flex shrink-0 items-center gap-1.5'diff --git a/src/theme/paint/checkerboard.ts b/src/theme/paint/checkerboard.tsindex 93790469e..126dea20c 100644--- a/src/theme/paint/checkerboard.ts+++ b/src/theme/paint/checkerboard.ts@@ -1,2 +1,2 @@export const CHECKERBOARD_BACKGROUND =- 'bg-checkerboard bg-[image:linear-gradient(45deg,var(--color-checkerboard-muted)_25%,transparent_25%),linear-gradient(-45deg,var(--color-checkerboard-muted)_25%,transparent_25%),linear-gradient(45deg,transparent_75%,var(--color-checkerboard-muted)_75%),linear-gradient(-45deg,transparent_75%,var(--color-checkerboard-muted)_75%)] bg-[size:8px_8px] bg-[position:0_0,0_4px,4px_-4px,-4px_0]'+ 'bg-checkerboard bg-[image:linear-gradient(45deg,var(--color-checkerboard-muted)_25%,transparent_25%),linear-gradient(-45deg,var(--color-checkerboard-muted)_25%,transparent_25%),linear-gradient(45deg,transparent_75%,var(--color-checkerboard-muted)_75%),linear-gradient(-45deg,transparent_75%,var(--color-checkerboard-muted)_75%)] bg-[size:0.5rem_0.5rem] bg-[position:0_0,0_0.25rem,0.25rem_-0.25rem,-0.25rem_0]'diff --git a/src/theme/paint/field.ts b/src/theme/paint/field.tsindex 74f6416db..cf4b5d462 100644--- a/src/theme/paint/field.ts+++ b/src/theme/paint/field.ts@@ -1,6 +1,6 @@export default {slots: {- root: 'flex h-6 min-w-0 flex-1 items-center overflow-hidden rounded border border-transparent bg-panel-field text-[11px] transition-colors hover:bg-panel-field-hover focus-within:border-panel-focus focus-within:bg-panel-field-hover',+ root: 'flex h-6 min-w-0 flex-1 items-center overflow-hidden rounded border border-transparent bg-panel-field text-2xs transition-colors hover:bg-panel-field-hover focus-within:border-panel-focus focus-within:bg-panel-field-hover',preview: 'flex shrink-0 items-center pl-1',value: 'flex min-w-0 flex-1 items-center pl-1 pr-1',divider: 'h-4 w-px shrink-0 bg-muted/40',diff --git a/src/theme/panel/field/group.ts b/src/theme/panel/field/group.tsindex f0515918b..c9dd7d269 100644--- a/src/theme/panel/field/group.ts+++ b/src/theme/panel/field/group.ts@@ -1,7 +1,7 @@const panelFieldGroupTheme = {slots: {root: 'min-w-0',- label: 'mb-1 block truncate text-[11px] leading-none text-muted',+ label: 'mb-1 block truncate text-2xs leading-none text-muted',container: 'flex min-w-0 flex-col gap-1.5'}}diff --git a/src/theme/panel/grid.ts b/src/theme/panel/grid.tsindex df5ae2735..a7eea0045 100644--- a/src/theme/panel/grid.ts+++ b/src/theme/panel/grid.ts@@ -2,7 +2,7 @@ const panelGridTheme = {base: ['flex min-w-0 items-end gap-1.5','[&>[data-slot=fields]]:grid [&>[data-slot=fields]]:min-w-0 [&>[data-slot=fields]]:flex-1 [&>[data-slot=fields]]:items-end [&>[data-slot=fields]]:gap-1.5',- '[&>[data-slot=actions]]:flex [&>[data-slot=actions]]:h-6 [&>[data-slot=actions]]:min-w-[26px] [&>[data-slot=actions]]:shrink-0 [&>[data-slot=actions]]:items-center [&>[data-slot=actions]]:justify-end [&>[data-slot=actions]]:gap-0.5',+ '[&>[data-slot=actions]]:flex [&>[data-slot=actions]]:h-6 [&>[data-slot=actions]]:min-w-6.5 [&>[data-slot=actions]]:shrink-0 [&>[data-slot=actions]]:items-center [&>[data-slot=actions]]:justify-end [&>[data-slot=actions]]:gap-0.5','[&>[data-slot=actions]_[data-slot=icon-button]]:size-6 [&>[data-slot=actions]_[data-slot=icon-button]]:rounded'],variants: {diff --git a/src/theme/panel/properties-tabs.ts b/src/theme/panel/properties-tabs.tsindex b2953e1aa..a32246165 100644--- a/src/theme/panel/properties-tabs.ts+++ b/src/theme/panel/properties-tabs.ts@@ -7,7 +7,7 @@ export default {slots: {list: '@container/tabs flex h-10 shrink-0 items-center gap-0.5 overflow-x-clip border-b border-border px-2',trigger:- 'relative flex shrink-0 items-center gap-1 rounded px-1.5 py-1 text-[11px] text-muted outline-none hover:text-surface focus-visible:ring-1 focus-visible:ring-panel-focus data-[state=active]:font-semibold data-[state=active]:text-surface after:absolute after:inset-x-1.5 after:-bottom-[9px] after:h-0.5 after:rounded-full after:bg-transparent data-[state=active]:after:bg-accent',+ 'relative flex shrink-0 items-center gap-1 rounded px-1.5 py-1 text-2xs text-muted outline-none hover:text-surface focus-visible:ring-1 focus-visible:ring-panel-focus data-[state=active]:font-semibold data-[state=active]:text-surface after:absolute after:inset-x-1.5 after:-bottom-2.25 after:h-0.5 after:rounded-full after:bg-transparent data-[state=active]:after:bg-accent',icon: 'size-3 shrink-0 data-[severity=error]:text-error data-[severity=warning]:text-warning',label: 'sr-only @[240px]/tabs:not-sr-only'}diff --git a/src/theme/panel/section.ts b/src/theme/panel/section.tsindex 4c6e41b16..9f369059b 100644--- a/src/theme/panel/section.ts+++ b/src/theme/panel/section.ts@@ -3,9 +3,9 @@ const panelSectionTheme = {root: 'border-b border-border px-3 pb-3 text-surface data-[disabled]:opacity-60',header: 'flex h-8 min-w-0 items-center gap-1.5',title:- 'min-w-0 flex-1 cursor-default truncate border-0 bg-transparent p-0 text-left text-[11px] font-semibold text-surface',+ 'min-w-0 flex-1 cursor-default truncate border-0 bg-transparent p-0 text-left text-2xs font-semibold text-surface',actions:- 'flex h-7 w-[26px] shrink-0 items-center justify-end gap-0.5 [&_[data-slot=icon-button]]:size-6 [&_[data-slot=icon-button]]:rounded',+ 'flex h-7 w-6.5 shrink-0 items-center justify-end gap-0.5 [&_[data-slot=icon-button]]:size-6 [&_[data-slot=icon-button]]:rounded',body: 'min-w-0 data-[state=closed]:hidden'}}diff --git a/src/theme/save-to.ts b/src/theme/save-to.tsindex 7275d93eb..2d6e1109b 100644--- a/src/theme/save-to.ts+++ b/src/theme/save-to.ts@@ -2,21 +2,21 @@export default {slots: {field: 'flex flex-col gap-1.5',- label: 'text-[11px] font-medium text-muted',- server: 'mt-1 text-[11px] font-medium text-muted',+ label: 'text-2xs font-medium text-muted',+ server: 'mt-1 text-2xs font-medium text-muted',choices: 'flex flex-col gap-1.5',choice:'group flex w-full items-center gap-3 rounded-lg border border-border bg-panel-field px-3 py-2 text-left outline-none hover:bg-panel-field-hover focus-visible:ring-2 focus-visible:ring-accent/50 disabled:cursor-default disabled:opacity-50 disabled:hover:bg-panel-field data-[state=checked]:border-panel-focus data-[state=checked]:bg-panel-selected-muted',choiceIcon: 'size-3.5 shrink-0 text-muted group-data-[state=checked]:text-primary',choiceLabel: 'min-w-0 flex-1 truncate text-xs text-surface',- choiceRole: 'shrink-0 text-[11px] text-muted',+ choiceRole: 'shrink-0 text-2xs text-muted',choiceMark:'size-3.5 shrink-0 rounded-full border border-border group-data-[state=checked]:border-4 group-data-[state=checked]:border-accent',stack: 'flex flex-col gap-4',- note: 'text-[11px] leading-relaxed text-muted',+ note: 'text-2xs leading-relaxed text-muted',progress: 'flex flex-col gap-1.5',progressTrack: 'h-1 overflow-hidden rounded-full bg-panel-field',progressBar: 'h-full rounded-full bg-accent transition-[width] motion-reduce:transition-none',- progressText: 'text-[11px] text-muted tabular-nums'+ progressText: 'text-2xs text-muted tabular-nums'}} as constdiff --git a/src/theme/select/app.ts b/src/theme/select/app.tsindex 2e751de8a..325f79e9b 100644--- a/src/theme/select/app.ts+++ b/src/theme/select/app.ts@@ -9,7 +9,7 @@ const appSelectTheme = {...selectTheme.variants,/** The control scale in `theme/control.ts`, with the padding and text of an input that size. */size: {- xs: { trigger: 'h-6 px-1.5 text-[11px]' },+ xs: { trigger: 'h-6 px-1.5 text-2xs' },sm: { trigger: 'h-7 px-2.5 text-xs' },md: { trigger: 'h-8 px-3 text-xs' },lg: { trigger: 'h-9 px-3 text-sm' }diff --git a/src/theme/select/combobox.ts b/src/theme/select/combobox.tsindex 9ee96663a..fd67de02f 100644--- a/src/theme/select/combobox.ts+++ b/src/theme/select/combobox.ts@@ -11,26 +11,26 @@ const appComboboxTheme = {value: 'min-w-0 flex-1 truncate text-left text-surface',chevron: 'ml-1 size-3 shrink-0 text-muted',content: [- 'z-[110] max-h-72 min-w-[var(--reka-combobox-trigger-width)] overflow-hidden text-[11px]',+ 'z-[110] max-h-72 min-w-[var(--reka-combobox-trigger-width)] overflow-hidden text-2xs',floatingSurface,motionStyles.floating],search: 'relative m-1 flex h-7 items-center rounded-md border border-border bg-input',input:- 'h-full min-w-0 flex-1 bg-transparent pr-2 pl-7 text-[11px] text-surface outline-none placeholder:text-muted',+ 'h-full min-w-0 flex-1 bg-transparent pr-2 pl-7 text-2xs text-surface outline-none placeholder:text-muted',searchIcon: 'pointer-events-none absolute left-2 size-3 text-muted',viewport: 'max-h-64 overflow-y-auto p-0.5',- empty: 'px-2 py-4 text-center text-[11px] text-muted',- groupLabel: 'bg-panel px-2 py-1 text-[9px] font-medium uppercase tracking-wide text-muted',+ empty: 'px-2 py-4 text-center text-2xs text-muted',+ groupLabel: 'bg-panel px-2 py-1 text-4xs font-medium uppercase tracking-wide text-muted',item: 'relative flex min-h-8 cursor-pointer items-center gap-2 rounded py-1 pr-2 pl-6 text-surface outline-none select-none data-[disabled]:pointer-events-none data-[highlighted]:bg-hover data-[disabled]:opacity-50',indicator: 'absolute left-1.5 inline-flex items-center justify-center',- description: 'truncate font-mono text-[9px] text-muted',- meta: 'shrink-0 rounded bg-accent/10 px-1 py-px text-[9px] text-primary'+ description: 'truncate font-mono text-4xs text-muted',+ meta: 'shrink-0 rounded bg-accent/10 px-1 py-px text-4xs text-primary'},variants: {/** The control scale in `theme/control.ts`, with the padding and text of an input that size. */size: {- xs: { trigger: 'h-6 px-2', value: 'text-[11px]' },+ xs: { trigger: 'h-6 px-2', value: 'text-2xs' },sm: { trigger: 'h-7 px-2.5', value: 'text-xs' },md: { trigger: 'h-8 px-3', value: 'text-xs' },lg: { trigger: 'h-9 px-3', value: 'text-sm' }diff --git a/src/theme/select/picker.ts b/src/theme/select/picker.tsindex c55ad86aa..5dc6d7cb9 100644--- a/src/theme/select/picker.ts+++ b/src/theme/select/picker.ts@@ -15,22 +15,22 @@ const appPickerTheme = {],// The title and close button line up with the panel's section headers and the search field.header: 'flex h-9 shrink-0 items-center gap-1.5 border-b border-border pr-2 pl-3',- title: 'min-w-0 flex-1 truncate text-[11px] font-semibold text-surface',+ title: 'min-w-0 flex-1 truncate text-2xs font-semibold text-surface',search: [panelFieldBase, 'relative m-2 flex h-7 shrink-0 items-center'],searchIcon: 'pointer-events-none absolute left-2 size-3.5 text-muted',input:'h-full min-w-0 flex-1 bg-transparent pr-2 pl-7 text-xs text-surface outline-none placeholder:text-muted',list: 'flex min-h-0 flex-col gap-2 overflow-y-auto px-2 pb-2',group: '',- groupLabel: 'px-1 pb-1 text-[10px] font-medium tracking-wide text-muted uppercase',+ groupLabel: 'px-1 pb-1 text-3xs font-medium tracking-wide text-muted uppercase',item: 'flex w-full cursor-pointer items-center gap-2 rounded px-1 py-1 text-left outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[highlighted]:bg-hover',leading:'flex size-8 shrink-0 items-center justify-center overflow-hidden rounded border border-border bg-panel-secondary text-muted',text: 'min-w-0 flex-1',label: 'block truncate text-xs text-surface',- description: 'block truncate text-[10px] text-muted',+ description: 'block truncate text-3xs text-muted',check: 'size-3 shrink-0 text-primary',- empty: 'px-1 py-2 text-[11px] text-muted',+ empty: 'px-1 py-2 text-2xs text-muted',placeholder: 'block h-10 rounded bg-hover motion-safe:animate-pulse',setup: 'flex min-h-0 flex-1 flex-col gap-3 overflow-y-auto p-3',footer: 'border-t border-border p-1'diff --git a/src/theme/select/segmented-control.ts b/src/theme/select/segmented-control.tsindex 48271face..7839ba138 100644--- a/src/theme/select/segmented-control.ts+++ b/src/theme/select/segmented-control.ts@@ -5,8 +5,8 @@ const segmentedControlTheme = {},variants: {size: {- sm: { item: 'px-1.5 text-[11px]' },- md: { item: 'px-2 text-[11px]' },+ sm: { item: 'px-1.5 text-2xs' },+ md: { item: 'px-2 text-2xs' },touch: { item: 'h-10 min-w-10 px-2 text-xs' }}},diff --git a/src/theme/select/select.ts b/src/theme/select/select.tsindex 093d42092..cecf605d5 100644--- a/src/theme/select/select.ts+++ b/src/theme/select/select.ts@@ -8,15 +8,15 @@ import { panelFieldBase } from '../panel/field/base'*/export default {slots: {- trigger: [panelFieldBase, 'flex items-center justify-between text-[11px]'],+ trigger: [panelFieldBase, 'flex items-center justify-between text-2xs'],value: 'min-w-0 flex-1 truncate text-left',chevron: 'ml-1 size-3 shrink-0 text-muted',- content: ['z-[110] overflow-hidden text-[11px]', floatingSurface, motionStyles.floating],+ content: ['z-[110] overflow-hidden text-2xs', floatingSurface, motionStyles.floating],viewport: '',scrollButton: 'flex h-5 cursor-default items-center justify-center text-muted',item: 'relative flex h-6 cursor-pointer items-center gap-2 rounded-md pr-2 pl-6 text-surface outline-none select-none data-[disabled]:pointer-events-none data-[highlighted]:bg-hover data-[disabled]:opacity-50',indicator: 'absolute inset-y-0 left-0 inline-flex w-6 items-center justify-center text-primary',- label: 'flex h-6 items-center pr-2 pl-6 text-[10px] text-muted',+ label: 'flex h-6 items-center pr-2 pl-6 text-3xs text-muted',separator: 'mx-1 my-1 h-px bg-border'},variants: {diff --git a/src/theme/settings/ai-setup/flow.ts b/src/theme/settings/ai-setup/flow.tsindex e3fd261da..385199f8f 100644--- a/src/theme/settings/ai-setup/flow.ts+++ b/src/theme/settings/ai-setup/flow.ts@@ -10,9 +10,9 @@ export default {tour: 'flex items-start justify-between gap-4 rounded-lg border border-border p-4',tourAction: 'shrink-0',group: 'flex flex-col gap-2',- groupHeading: 'text-[11px] font-semibold text-muted',+ groupHeading: 'text-2xs font-semibold text-muted',// Reads as a group heading; the gap below lives inside the animated content.- moreTrigger: 'py-1.5 text-[11px] font-semibold text-muted transition-colors hover:text-surface',+ moreTrigger: 'py-1.5 text-2xs font-semibold text-muted transition-colors hover:text-surface',moreGroup: 'flex flex-col gap-2 pt-1',connection: 'flex flex-col gap-3 rounded-md border border-border p-3',connectionHeading: 'flex items-center gap-2 text-xs font-semibold text-surface',diff --git a/src/theme/statuses.ts b/src/theme/statuses.tsindex a08ead978..3221287cf 100644--- a/src/theme/statuses.ts+++ b/src/theme/statuses.ts@@ -7,7 +7,7 @@ export default {row: 'grid grid-cols-[0.875rem_1.5rem_minmax(0,1fr)_1.5rem] items-center gap-x-1.5 gap-y-1',handle: 'size-3.5 cursor-grab text-muted',marker: 'flex size-6 items-center justify-center text-muted',- hint: 'col-start-3 text-[11px] text-muted',+ hint: 'col-start-3 text-2xs text-muted',field: 'col-start-3'}} as constdiff --git a/src/theme/sticky-controls.ts b/src/theme/sticky-controls.tsindex d19c5c43a..52f1dd895 100644--- a/src/theme/sticky-controls.ts+++ b/src/theme/sticky-controls.ts@@ -1,7 +1,7 @@const stickyControlsTheme = {slots: {root: 'grid gap-2.5',- option: 'flex items-center justify-between gap-1.5 text-[11px] text-muted'+ option: 'flex items-center justify-between gap-1.5 text-2xs text-muted'}}diff --git a/src/theme/tab-bar.ts b/src/theme/tab-bar.tsindex 1b22db29a..fdc2718c1 100644--- a/src/theme/tab-bar.ts+++ b/src/theme/tab-bar.ts@@ -7,7 +7,7 @@ const tabBarTheme = {list: 'flex h-full items-end',item: 'group/tab flex h-full max-w-48 min-w-24 items-center border-r border-border pr-3',trigger:- 'flex h-full min-w-0 cursor-pointer touch-manipulation items-center gap-1.5 px-3 text-[11px] transition-colors outline-none select-none focus-visible:ring-1 focus-visible:ring-panel-focus',+ 'flex h-full min-w-0 cursor-pointer touch-manipulation items-center gap-1.5 px-3 text-2xs transition-colors outline-none select-none focus-visible:ring-1 focus-visible:ring-panel-focus',icon: 'size-3 shrink-0 opacity-50',label: 'min-w-0 flex-1 truncate',close:diff --git a/src/theme/table/index.ts b/src/theme/table/index.tsindex 602ead73f..47a8692bd 100644--- a/src/theme/table/index.ts+++ b/src/theme/table/index.ts@@ -8,7 +8,7 @@ export default {scroller: 'overflow-x-auto',table: 'w-full border-collapse text-left text-xs text-surface',header: 'border-b border-border',- head: 'h-8 px-3 align-middle text-[11px] font-medium whitespace-nowrap text-muted first:pl-4 last:pr-4',+ head: 'h-8 px-3 align-middle text-2xs font-medium whitespace-nowrap text-muted first:pl-4 last:pr-4',// While newer rows load the old ones stay, a little faded, so the table never jumps.body: 'transition-opacity duration-150 data-refreshing:opacity-60 motion-reduce:transition-none',row: 'border-b border-border transition-colors duration-100 last:border-b-0 hover:bg-hover/40 motion-reduce:transition-none',@@ -17,7 +17,7 @@ export default {/** A bar that pulses along the top edge while newer rows load. */refresh: 'pointer-events-none absolute inset-x-0 top-0 z-10',footer: 'border-t border-border px-4 py-1.5',- pagination: 'flex items-center justify-between gap-2 text-[11px] text-muted',+ pagination: 'flex items-center justify-between gap-2 text-2xs text-muted',range: 'tabular-nums',pages: 'flex items-center gap-0.5'}diff --git a/src/theme/tabs/index.ts b/src/theme/tabs/index.tsindex b81684551..c58127a12 100644--- a/src/theme/tabs/index.ts+++ b/src/theme/tabs/index.ts@@ -5,7 +5,7 @@ export default {trigger:'flex shrink-0 cursor-pointer items-center gap-2 rounded px-2 py-1.5 text-left text-xs text-muted transition-colors hover:bg-hover hover:text-surface focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent/50 disabled:cursor-default disabled:opacity-50 data-[state=active]:bg-hover data-[state=active]:text-surface',// A group's name above its tabs, styled as the side list's group titles (list/side-list.ts).- heading: 'px-2 pt-3 pb-1 text-[11px] font-semibold text-muted select-none first:pt-1',+ heading: 'px-2 pt-3 pb-1 text-2xs font-semibold text-muted select-none first:pt-1',icon: 'flex size-3.5 shrink-0 items-center justify-center',label: 'min-w-0',trailing: 'ml-auto shrink-0',diff --git a/src/theme/tokens.css b/src/theme/tokens.cssindex a5fb3228f..c066b8a98 100644--- a/src/theme/tokens.css+++ b/src/theme/tokens.css@@ -47,6 +47,16 @@}@theme {+ /*+ * Interface text below Tailwind's text-xs. Sizes are in rem, like Tailwind's own scale, so the+ * whole interface follows the root font size. T-shirt names keep tailwind-merge reading them as+ * font sizes rather than colors.+ */+ --text-2xs: 0.6875rem;+ --text-3xs: 0.625rem;+ --text-4xs: 0.5625rem;+ --text-5xs: 0.5rem;+/* The theme's colors are its own: Tailwind's default palette is left out. */--color-*: initial;--color-white: #ffffff;diff --git a/src/theme/toolbar.ts b/src/theme/toolbar.tsindex 2b65518b3..373e77fc0 100644--- a/src/theme/toolbar.ts+++ b/src/theme/toolbar.ts@@ -16,7 +16,7 @@ const toolbarTheme = {'flex size-7 shrink-0 cursor-pointer items-center justify-center rounded-full border border-border bg-panel text-muted shadow-sm outline-none select-none focus-visible:ring-1 focus-visible:ring-panel-focus disabled:pointer-events-none',navigationIcon: 'size-3.5',action:- 'flex size-8 cursor-pointer items-center justify-center rounded-[6px] border-none bg-transparent text-muted transition-colors outline-none select-none active:bg-hover active:text-surface focus-visible:ring-1 focus-visible:ring-panel-focus',+ 'flex size-8 cursor-pointer items-center justify-center rounded-md border-none bg-transparent text-muted transition-colors outline-none select-none active:bg-hover active:text-surface focus-visible:ring-1 focus-visible:ring-panel-focus',actionIcon: 'size-4'},variants: {@@ -28,8 +28,8 @@ const toolbarTheme = {},mobile: {true: {- button: 'rounded-[6px] select-none',- flyoutTrigger: 'rounded-[6px] select-none active:bg-hover active:text-surface'+ button: 'rounded-md select-none',+ flyoutTrigger: 'rounded-md select-none active:bg-hover active:text-surface'},false: {button: 'rounded-lg',diff --git a/src/theme/variables/css-expression.ts b/src/theme/variables/css-expression.tsindex c389b9bf3..0bba5ca42 100644--- a/src/theme/variables/css-expression.ts+++ b/src/theme/variables/css-expression.ts@@ -2,7 +2,7 @@ export default {slots: {/** The field and buttons, in the value grid's columns under the value's. */field: 'min-w-0',- error: 'text-[10px] text-error',+ error: 'text-3xs text-error',/** Where the browser computes the preview, out of sight. */probe: 'pointer-events-none invisible absolute size-0 overflow-hidden'}diff --git a/src/theme/variables/formula-field.ts b/src/theme/variables/formula-field.tsindex fcf33cdfc..0f0272e26 100644--- a/src/theme/variables/formula-field.ts+++ b/src/theme/variables/formula-field.ts@@ -1,11 +1,11 @@/** The value field: an input holding pills and operators, with the result at its end. */export default {slots: {- root: 'relative flex h-auto min-h-7 cursor-text items-end gap-1.5 py-[3px] focus-within:border-panel-focus focus-within:ring-1 focus-within:ring-accent/25 data-[invalid]:border-error data-[invalid]:focus-within:border-error',+ root: 'relative flex h-auto min-h-7 cursor-text items-end gap-1.5 py-0.75 focus-within:border-panel-focus focus-within:ring-1 focus-within:ring-accent/25 data-[invalid]:border-error data-[invalid]:focus-within:border-error',/** What the field holds, such as CSS, muted at its start. */prefix: 'shrink-0 self-start leading-5 text-muted',editor: 'flex min-w-0 flex-1 *:min-w-0 *:flex-1',/** Buttons over the field's top right corner, which the text's first line keeps clear. */- actions: 'absolute top-[3px] right-2 flex h-5 items-center'+ actions: 'absolute top-0.75 right-2 flex h-5 items-center'}} as constdiff --git a/src/theme/variables/inspector.ts b/src/theme/variables/inspector.tsindex c119e2b36..2c3269fa8 100644--- a/src/theme/variables/inspector.ts+++ b/src/theme/variables/inspector.ts@@ -3,10 +3,10 @@ export default {slots: {root: 'flex shrink-0 flex-col gap-4 overflow-y-auto p-4',section: 'flex flex-col gap-2',- title: 'text-[11px] font-semibold text-muted',- label: 'text-[11px] text-muted',- hint: 'text-[10px] text-muted',- error: 'text-[10px] text-error',+ title: 'text-2xs font-semibold text-muted',+ label: 'text-2xs text-muted',+ hint: 'text-3xs text-muted',+ error: 'text-3xs text-error',/** One mode's value, under the mode's name when there are several. */value: 'flex flex-col gap-1',/** The fixed `--` in front of a CSS name the user types. */@@ -19,7 +19,7 @@ export default {/** One mode in the collection inspector: its name, when it applies, and the CSS it writes. */mode: 'flex flex-col gap-1.5 border-b border-border pb-3 last:border-b-0 last:pb-0',/** The CSS a mode is written under, wrapped rather than cut so it reads in full. */- modeCSS: 'font-mono text-[11px] break-all text-muted'+ modeCSS: 'font-mono text-2xs break-all text-muted'},variants: {/** Beside the token list on desktop; the whole panel, behind a back button, on mobile. */diff --git a/src/theme/variables/output.ts b/src/theme/variables/output.tsindex 7b582f9b2..f81358fdf 100644--- a/src/theme/variables/output.ts+++ b/src/theme/variables/output.ts@@ -1,7 +1,7 @@export default {slots: {root: 'flex shrink-0 flex-col border-t border-border',- title: 'text-[11px] font-semibold text-muted'+ title: 'text-2xs font-semibold text-muted'},variants: {/** Under the token list on desktop; the whole panel, behind a back button, on mobile. */diff --git a/src/theme/variables/sidebar.ts b/src/theme/variables/sidebar.tsindex eb4f8181f..b05f79426 100644--- a/src/theme/variables/sidebar.ts+++ b/src/theme/variables/sidebar.ts@@ -3,9 +3,9 @@ export default {root: 'flex w-52 shrink-0 flex-col gap-4 overflow-y-auto border-r border-border p-2',section: 'flex flex-col gap-0.5',heading: 'mb-1 flex items-center justify-between px-2',- title: 'text-[11px] font-semibold text-muted',+ title: 'text-2xs font-semibold text-muted',item: 'flex cursor-pointer items-center gap-2 rounded py-1 pr-2 pl-[calc(0.5rem+var(--depth,0)*0.75rem)] text-left text-xs text-surface hover:bg-hover data-[active]:bg-hover data-[active]:font-medium',groupLabel: 'truncate',- count: 'ml-auto text-[11px] text-muted tabular-nums'+ count: 'ml-auto text-2xs text-muted tabular-nums'}} as constdiff --git a/src/theme/variables/table.ts b/src/theme/variables/table.tsindex 63f7e7006..96fff4bb7 100644--- a/src/theme/variables/table.ts+++ b/src/theme/variables/table.ts@@ -10,31 +10,31 @@ const COLUMNS =export default {slots: {root: '@container/tokens-list flex min-w-0 flex-1 flex-col overflow-auto',- header: `sticky top-0 z-10 grid min-w-min items-center gap-3 border-b border-border bg-panel px-4 py-2 text-[11px] font-medium text-muted ${COLUMNS}`,- group: 'px-4 pt-3 pb-1 text-[11px] font-semibold text-muted',+ header: `sticky top-0 z-10 grid min-w-min items-center gap-3 border-b border-border bg-panel px-4 py-2 text-2xs font-medium text-muted ${COLUMNS}`,+ group: 'px-4 pt-3 pb-1 text-2xs font-semibold text-muted',row: `${COLUMNS} grid min-w-min cursor-pointer items-center gap-3 px-4 py-1.5 text-xs text-surface outline-none transition-colors duration-100 hover:bg-hover data-[highlighted]:bg-hover data-[state=checked]:bg-hover data-[state=checked]:ring-1 data-[state=checked]:ring-accent/40 data-[state=checked]:ring-inset data-[dragging]:opacity-50 data-[drop=after]:shadow-[inset_0_-2px_0_var(--color-accent)] data-[drop=before]:shadow-[inset_0_2px_0_var(--color-accent)] motion-reduce:transition-none`,name: 'flex min-w-0 flex-col truncate',nameLine: 'flex min-w-0 items-center gap-1.5',/** A token's type, or that a formula gives its value. */icon: 'size-3 shrink-0 text-muted',/** The CSS name as its own column, from 42rem of list width. */- cssColumn: 'hidden truncate font-mono text-[11px] text-muted @2xl/tokens-list:block',+ cssColumn: 'hidden truncate font-mono text-2xs text-muted @2xl/tokens-list:block',/** The CSS name column's title, in the header's own font like the others. */headerCssColumn: 'hidden @2xl/tokens-list:block',/** The CSS name under the token name, below 42rem of list width. */- cssStacked: 'truncate font-mono text-[11px] text-muted @2xl/tokens-list:hidden',+ cssStacked: 'truncate font-mono text-2xs text-muted @2xl/tokens-list:hidden',value:- 'flex min-w-0 animate-in items-center gap-1.5 truncate font-mono text-[11px] fade-in duration-150 motion-reduce:animate-none',+ 'flex min-w-0 animate-in items-center gap-1.5 truncate font-mono text-2xs fade-in duration-150 motion-reduce:animate-none',/** An alias: its target's name, as wide as the name, and what it gives. */aliasPill: 'max-w-[65%] flex-none',aliasResult: 'truncate text-muted',/** Marks a value whose CSS is an expression, which its tooltip shows. */expressionBadge:- 'shrink-0 rounded-sm border border-border px-1 font-sans text-[9px] leading-3.5 font-medium text-muted',+ 'shrink-0 rounded-sm border border-border px-1 font-sans text-4xs leading-3.5 font-medium text-muted',modeHeader: 'flex min-w-0 flex-col gap-0.5',/** When a mode applies: words in the UI font, a selector or query in the code font. */modeCondition:- 'truncate text-[11px] font-normal text-muted data-[code]:font-mono data-[code]:text-[10px]',+ 'truncate text-2xs font-normal text-muted data-[code]:font-mono data-[code]:text-3xs',empty: 'px-4 py-8 text-center text-xs text-muted'}} as constdiff --git a/src/theme/variables/value-editor.ts b/src/theme/variables/value-editor.tsindex 4e76b92ff..a452a896f 100644--- a/src/theme/variables/value-editor.ts+++ b/src/theme/variables/value-editor.ts@@ -3,10 +3,10 @@ export default {slots: {root: 'flex flex-col gap-1',header: 'flex min-h-6 items-center justify-between gap-2',- label: 'text-[11px] text-muted',+ label: 'text-2xs text-muted',tools: 'flex shrink-0 items-center',control: 'flex min-h-7 min-w-0 items-center gap-1.5',- error: 'text-[10px] text-error'+ error: 'text-3xs text-error'},variants: {/** A single value heads its section; one of several modes is labelled with the mode. */diff --git a/tools/checks/lint/src/plugin.ts b/tools/checks/lint/src/plugin.tsindex 8f7181473..22b5d3a81 100644--- a/tools/checks/lint/src/plugin.ts+++ b/tools/checks/lint/src/plugin.ts@@ -14,7 +14,10 @@ import { preferEsToolkitRule } from '#lint/rules/quality/es-toolkit.ts'import { noUnvalidatedJSONParseRule } from '#lint/rules/quality/json-parse.ts'import { noModuleMockingRule } from '#lint/rules/quality/module-mocking.ts'import { noReduceAccumulatorCopyRule } from '#lint/rules/quality/reduce-accumulator-copy.ts'-import { noUnknownTailwindClassesRule } from '#lint/rules/quality/tailwind-classes.ts'+import {+ noPxTailwindValuesRule,+ noUnknownTailwindClassesRule+} from '#lint/rules/quality/tailwind-classes.ts'import { valibotSchemaConventionsRule } from '#lint/rules/quality/valibot-schemas.ts'import { noWidenThenAssertRule } from '#lint/rules/quality/widen-then-assert.ts'import { noRawSQLRule } from '#lint/rules/sql.ts'@@ -457,6 +460,7 @@ const plugin = {'no-math-random': noMathRandom,'no-hardcoded-color-constants': noHardcodedColorConstants,'no-unknown-tailwind-classes': noUnknownTailwindClassesRule,+ 'no-px-tailwind-values': noPxTailwindValuesRule,'no-hand-rolled-color': noHandRolledColor,'no-raw-console-format': noRawConsoleFormat,'no-silent-catch': noSilentCatch,diff --git a/tools/checks/lint/src/rules/quality/tailwind-classes.ts b/tools/checks/lint/src/rules/quality/tailwind-classes.tsindex e163cc944..16b62c4b5 100644--- a/tools/checks/lint/src/rules/quality/tailwind-classes.ts+++ b/tools/checks/lint/src/rules/quality/tailwind-classes.ts@@ -153,71 +153,122 @@ function isClassHelperCall(node: ESTree.CallExpression): boolean {return node.callee.type === 'Identifier' && CLASS_HELPERS.has(node.callee.name)}+/** Why a class is a problem for a rule, or null; `theme` builds the file's classes. */+type ClassCheck = (theme: Theme, className: string, file: string) => string | null+/**- * Require every class Tailwind reads to be one it can build. It drops a class it does not know- * without a warning, so a typo or a color with no token leaves the element unstyled. Classes are- * read from Vue class attributes and bindings, `tv`, `twMerge` and `twJoin` calls, and theme- * modules under `src/theme/`.+ * A rule over every class Tailwind reads: Vue class attributes and bindings, `tv`, `twMerge` and+ * `twJoin` calls, and theme modules under `src/theme/`.*/-export const noUnknownTailwindClassesRule = defineRule({- meta: {- type: 'problem',- docs: {- description: 'Require Tailwind classes to be ones the app theme can build.'- }- },- create(context) {- const file = normalizedFilename(context)- const theme = themeFor(file)- if (!theme) return {}- const themeModule = file.startsWith('src/theme/') || file.includes('/src/theme/')-- const check = (node: ESTree.Node, text: string) => {- for (const className of classNames(text)) {- const problem = classProblem(theme, className)- if (problem) context.report({ node, message: `Tailwind class: ${problem}.` })+function defineClassRule(description: string, problemFor: ClassCheck) {+ return defineRule({+ meta: { type: 'problem', docs: { description } },+ create(context) {+ const file = normalizedFilename(context)+ const theme = themeFor(file)+ if (!theme) return {}+ const themeModule = file.startsWith('src/theme/') || file.includes('/src/theme/')++ const check = (node: ESTree.Node, text: string) => {+ for (const className of classNames(text)) {+ const problem = problemFor(theme, className, file)+ if (problem) context.report({ node, message: `Tailwind class: ${problem}.` })+ }}- }- function checkStrings(node: ESTree.Node) {- if (!isClassString(node)) return- if (node.type === 'Literal' && typeof node.value === 'string') check(node, node.value)- else if (node.type === 'TemplateLiteral')- for (const quasi of node.quasis) check(node, quasi.value.cooked ?? quasi.value.raw)- }+ function checkStrings(node: ESTree.Node) {+ if (!isClassString(node)) return+ if (node.type === 'Literal' && typeof node.value === 'string') check(node, node.value)+ else if (node.type === 'TemplateLiteral')+ for (const quasi of node.quasis) check(node, quasi.value.cooked ?? quasi.value.raw)+ }- let helperDepth = 0- return {- Program(node) {- if (!isVueSourceFile(file)) return- const template = vueTemplateAst(context.sourceCode.getText(), file)- if (!template) return- walkVueTemplateAst(template, (templateNode) => {- if (templateNode.type !== VUE_ELEMENT_NODE) return- for (const prop of templateNode.props) {- if (prop.type !== VUE_DIRECTIVE_NODE) {- if (prop.name === 'class' && prop.value) check(node, prop.value.content)- continue+ let helperDepth = 0+ return {+ Program(node) {+ if (!isVueSourceFile(file)) return+ const template = vueTemplateAst(context.sourceCode.getText(), file)+ if (!template) return+ walkVueTemplateAst(template, (templateNode) => {+ if (templateNode.type !== VUE_ELEMENT_NODE) return+ for (const prop of templateNode.props) {+ if (prop.type !== VUE_DIRECTIVE_NODE) {+ if (prop.name === 'class' && prop.value) check(node, prop.value.content)+ continue+ }+ const arg = prop.arg?.type === 4 ? prop.arg.content : null+ const expression = prop.exp?.type === 4 ? prop.exp.content : null+ if (prop.name === 'bind' && arg === 'class' && expression)+ for (const text of boundClassStrings(expression)) check(node, text)}- const arg = prop.arg?.type === 4 ? prop.arg.content : null- const expression = prop.exp?.type === 4 ? prop.exp.content : null- if (prop.name === 'bind' && arg === 'class' && expression)- for (const text of boundClassStrings(expression)) check(node, text)- }- })- },- CallExpression(node) {- if (isClassHelperCall(node)) helperDepth++- },- 'CallExpression:exit'(node: ESTree.CallExpression) {- if (isClassHelperCall(node)) helperDepth--- },- Literal(node) {- if (themeModule || helperDepth > 0) checkStrings(node)- },- TemplateLiteral(node) {- if (themeModule || helperDepth > 0) checkStrings(node)+ })+ },+ CallExpression(node) {+ if (isClassHelperCall(node)) helperDepth+++ },+ 'CallExpression:exit'(node: ESTree.CallExpression) {+ if (isClassHelperCall(node)) helperDepth--+ },+ Literal(node) {+ if (themeModule || helperDepth > 0) checkStrings(node)+ },+ TemplateLiteral(node) {+ if (themeModule || helperDepth > 0) checkStrings(node)+ }}}+ })+}++/**+ * Require every class Tailwind reads to be one it can build. It drops a class it does not know+ * without a warning, so a typo or a color with no token leaves the element unstyled.+ */+export const noUnknownTailwindClassesRule = defineClassRule(+ 'Require Tailwind classes to be ones the app theme can build.',+ (theme, className) => classProblem(theme, className)+)++/** Sources sized with the interface: the app and the SDK's primitives. */+const INTERFACE_SOURCES = ['src/', 'packages/vue/src/']+const PX_LENGTH = /(?:^|[\s(,])-?(?:\d*\.)?\d+px\b/i++/**+ * The pixel length in a class's arbitrary value, such as `text-[11px]` or `grid-cols-[24px_1fr]`.+ * Shadows keep pixel offsets: they are decoration, not layout. `content` values are text.+ */+function pxValue(theme: Theme, className: string): string | null {+ for (const candidate of theme.system.parseCandidate(className)) {+ const value = arbitraryValue(candidate)+ if (value !== null && PX_LENGTH.test(value)) return value+ }+ return null+}++type Candidate = ReturnType<DesignSystem['parseCandidate']>[number]++/** Whether a utility or property takes values that are not sizes: shadows and text content. */+function exempt(name: string): boolean {+ return name.endsWith('shadow') || name === 'content'+}++/** A class's arbitrary size value, `[width:10px]` or `w-[10px]`. */+function arbitraryValue(candidate: Candidate): string | null {+ if (candidate.kind === 'arbitrary') return exempt(candidate.property) ? null : candidate.value+ if (candidate.kind !== 'functional' || candidate.value?.kind !== 'arbitrary') return null+ return exempt(candidate.root) ? null : candidate.value.value+}++/**+ * Require interface sizes in rem, so the interface follows the root font size: Tailwind's scale,+ * the theme's text sizes, or a rem arbitrary value.+ */+export const noPxTailwindValuesRule = defineClassRule(+ 'Require Tailwind sizes in the interface to be in rem.',+ (theme, className, file) => {+ if (!INTERFACE_SOURCES.some((root) => file.startsWith(root) || file.includes(`/${root}`)))+ return null+ if (pxValue(theme, className) === null) return null+ return `size \`${className}\` in rem so it follows the root font size: use the spacing scale (\`h-6.5\`), a theme size (\`text-2xs\`, \`rounded-md\`), or a rem value`}-})+)diff --git a/tools/checks/lint/tests/tailwind-classes.test.ts b/tools/checks/lint/tests/tailwind-classes.test.tsindex ee68c18bb..ad24c71c0 100644--- a/tools/checks/lint/tests/tailwind-classes.test.ts+++ b/tools/checks/lint/tests/tailwind-classes.test.ts@@ -103,3 +103,48 @@ test('checks SDK examples and the landing against the docs stylesheet that build)expect(diagnostics.map((item) => item.filename?.split('/').pop())).toEqual(['Palette.vue'])})++describe('no-px-tailwind-values', () => {+ const pxRule = 'no-px-tailwind-values'++ test('rejects pixel lengths in arbitrary values in the app and the SDK', async () => {+ const classes = [+ 'text-[11px]',+ 'hover:h-[26px]',+ '-bottom-[9px]',+ 'grid-cols-[24px_minmax(0,1fr)]',+ 'w-[min(360px,100%)]',+ '[width:10px]',+ 'w-[10PX]'+ ]+ const accepted = [+ 'text-2xs',+ 'h-6.5',+ 'w-[22.5rem]',+ 'rounded-md',+ 'w-px',+ 'shadow-[0_8px_30px_var(--color-border)]',+ 'grid-cols-[repeat(2,1fr)]',+ '[box-shadow:0_1px_2px_var(--color-border)]',+ 'after:content-["10px_wide"]'+ ]+ const diagnostics = ruleDiagnostics(+ await lintFiles(+ {+ 'src/theme/rejected.ts': `export const theme = '${classes.join(' ')}'\n`,+ 'src/theme/accepted.ts': `export const theme = '${accepted.join(' ')}'\n`,+ 'packages/vue/src/primitives/Demo/examples/Px.vue': `${SCRIPT}<template><p class="text-[11px]" /></template>\n`,+ 'packages/docs/.vitepress/theme/landing/Px.vue': `${SCRIPT}<template><p class="text-[11px]" /></template>\n`+ },+ { [`open-pencil/${pxRule}`]: 'error' }+ ),+ pxRule+ )+ const files = diagnostics.map((item) => item.filename?.split('/').pop())+ expect(files.filter((name) => name === 'rejected.ts')).toHaveLength(classes.length)+ expect(files.filter((name) => name !== 'rejected.ts')).toEqual(['Px.vue'])+ expect(diagnostics.find((item) => item.filename?.endsWith('Px.vue'))?.filename).toContain(+ 'packages/vue/src/'+ )+ })+})