AI-native design editor. Open-source Figma alternative.
refactor(ui): replace sizing design tokens with plain utilities
Danila Poyarkovd8952eb5155c
diff --git a/src/app.css b/src/app.cssindex c2c5aa2d3..76f1544dc 100644--- a/src/app.css+++ b/src/app.css@@ -29,14 +29,6 @@}@theme {- --spacing-control: 24px;- --spacing-panel-x: 12px;- --spacing-panel-y: 8px;- --spacing-panel: 6px;- --spacing-panel-rail: 26px;- --spacing-panel-icon: 14px;- --radius-panel: 5px;---color-panel: #2a2a2a;--color-panel-secondary: #242424;--color-panel-field: transparent;diff --git a/src/components/DesignPanel.vue b/src/components/DesignPanel.vueindex 6aa79ed00..95f05a215 100644--- a/src/components/DesignPanel.vue+++ b/src/components/DesignPanel.vue@@ -46,7 +46,7 @@ const { panels } = useI18n()><PanelHeader><template #icon>- <icon-lucide-layers-3 class="size-panel-icon" aria-hidden="true" />+ <icon-lucide-layers-3 class="size-3.5" aria-hidden="true" /></template><span role="heading" aria-level="2">{{ panels.layersCount({ count: String(multiCount) }) }}@@ -75,7 +75,7 @@ const { panels } = useI18n()<template #icon><Tip :label="node.type"><span role="img" :aria-label="node.type" class="contents">- <component :is="selectedIcon" class="size-panel-icon" />+ <component :is="selectedIcon" class="size-3.5" /></span></Tip></template>diff --git a/src/components/properties/AppearanceSection.vue b/src/components/properties/AppearanceSection.vueindex 962f18910..18381ab64 100644--- a/src/components/properties/AppearanceSection.vue+++ b/src/components/properties/AppearanceSection.vue@@ -106,7 +106,7 @@ function blendModeOptions(value: BlendMode | typeof MIXED) {<PanelGridv-if="hasCornerRadius && !showIndependentCorners"columns="fill-rail"- class="mt-panel"+ class="mt-1.5"><PanelFieldGroup :label="panels.radius"><VariableNumberField@@ -152,7 +152,7 @@ function blendModeOptions(value: BlendMode | typeof MIXED) {<PanelGridv-else-if="hasCornerRadius && !isMulti && node"columns="two-rail"- class="mt-panel"+ class="mt-1.5"data-corner-grid><VariableNumberField@@ -204,7 +204,7 @@ function blendModeOptions(value: BlendMode | typeof MIXED) {<PanelRail /></PanelGrid>- <PanelGrid v-if="hasCornerRadius" columns="fill" class="mt-panel">+ <PanelGrid v-if="hasCornerRadius" columns="fill" class="mt-1.5"><PanelFieldGroup :label="panels.cornerSmoothing"><NumberFieldsuffix="%"diff --git a/src/components/properties/EffectsSection.vue b/src/components/properties/EffectsSection.vueindex ab5db6070..cebbaa0b7 100644--- a/src/components/properties/EffectsSection.vue+++ b/src/components/properties/EffectsSection.vue@@ -68,7 +68,7 @@ function effectPreview(effect: Effect): Fill {@remove="effectsCtx.adjustExpandedAfterRemove(index)"><div class="flex min-w-0 flex-1 flex-col">- <div class="flex min-w-0 items-center gap-panel">+ <div class="flex min-w-0 items-center gap-1.5"><Tip:label="effectsCtx.expandedIndex.value === index@@ -111,7 +111,7 @@ function effectPreview(effect: Effect): Fill {<divv-if="effectsCtx.expandedIndex.value === index"- class="flex flex-col gap-panel py-panel"+ class="flex flex-col gap-1.5 py-1.5"data-slot="effect-settings"><PanelFieldGroup :label="panels.blendMode">diff --git a/src/components/properties/FillSection.vue b/src/components/properties/FillSection.vueindex 9f6780e43..eb1d5ce72 100644--- a/src/components/properties/FillSection.vue+++ b/src/components/properties/FillSection.vue@@ -93,7 +93,7 @@ function updateSolidColor(:visibility-label="panels.toggleVisibility":remove-label="panels.removeFill">- <div class="flex min-w-0 flex-1 flex-col gap-panel">+ <div class="flex min-w-0 flex-1 flex-col gap-1.5"><BindableValueRootv-slot="binding":provider="colorProvider"diff --git a/src/components/properties/LayoutSection/AutoLayoutControls.vue b/src/components/properties/LayoutSection/AutoLayoutControls.vueindex 0fae4e0ec..2aaf215b7 100644--- a/src/components/properties/LayoutSection/AutoLayoutControls.vue+++ b/src/components/properties/LayoutSection/AutoLayoutControls.vue@@ -18,7 +18,7 @@ const layoutModes = computed<Array<{ mode: LayoutMode; label: string }>>(() => [</script><template>- <div class="flex items-center gap-panel">+ <div class="flex items-center gap-1.5"><IconButtonv-if="ctx.node.layoutMode === 'NONE'":label="panels.addAutoLayout"diff --git a/src/components/properties/LayoutSection/size/SizeControls.vue b/src/components/properties/LayoutSection/size/SizeControls.vueindex 9bb3c12bc..c2d1e38d7 100644--- a/src/components/properties/LayoutSection/size/SizeControls.vue+++ b/src/components/properties/LayoutSection/size/SizeControls.vue@@ -53,7 +53,7 @@ const visibleSizeLimits = computed(() =><SizeAxisField axis="height" icon="H" :label="panels.height" /></PanelGrid>- <PanelGrid v-if="visibleSizeLimits.length" columns="two" class="mt-panel">+ <PanelGrid v-if="visibleSizeLimits.length" columns="two" class="mt-1.5"><SizeLimitField v-for="item in visibleSizeLimits" :key="item.prop" :item="item" /></PanelGrid></template>diff --git a/src/components/properties/PositionSection.vue b/src/components/properties/PositionSection.vueindex dbea41fe6..4b6e66c5c 100644--- a/src/components/properties/PositionSection.vue+++ b/src/components/properties/PositionSection.vue@@ -30,7 +30,7 @@ function handleAlign(v-slot="{ active, isMulti, xValue, yValue, wValue, hValue, rotationValue, actions }"><PanelSection v-if="active" :label="panels.position">- <div role="toolbar" :aria-label="panels.position" class="mb-panel flex justify-between">+ <div role="toolbar" :aria-label="panels.position" class="mb-1.5 flex justify-between"><div class="flex gap-0.5"><IconButton:label="panels.alignLeft"@@ -102,7 +102,7 @@ function handleAlign(</Tip></PanelGrid>- <PanelGrid v-if="isMulti" columns="two" class="mt-panel">+ <PanelGrid v-if="isMulti" columns="two" class="mt-1.5"><Tip :label="panels.width"><NumberFieldicon="W"@@ -127,7 +127,7 @@ function handleAlign(</Tip></PanelGrid>- <div class="mt-panel grid grid-cols-[minmax(0,1fr)_repeat(3,var(--spacing-control))] gap-0.5">+ <div class="mt-1.5 grid grid-cols-[minmax(0,1fr)_repeat(3,24px)] gap-0.5"><Tip :label="panels.rotation"><NumberFieldsuffix="°"diff --git a/src/components/properties/StrokeSection.vue b/src/components/properties/StrokeSection.vueindex e4d4316b0..607e5b9fe 100644--- a/src/components/properties/StrokeSection.vue+++ b/src/components/properties/StrokeSection.vue@@ -266,7 +266,7 @@ function onToggleSides(activeNode: SceneNode | null) {</template></div>- <PanelGrid v-if="advancedActive" columns="three" class="mt-panel">+ <PanelGrid v-if="advancedActive" columns="three" class="mt-1.5"><PanelFieldGroup :label="panels.strokeCap"><SegmentedControl:model-value="cap === MIXED ? 'MIXED' : cap"diff --git a/src/components/properties/TypographySection.vue b/src/components/properties/TypographySection.vueindex d8f40045d..63e81662a 100644--- a/src/components/properties/TypographySection.vue+++ b/src/components/properties/TypographySection.vue@@ -58,7 +58,7 @@ function featureEnabled(features: Array<{ tag: string; enabled: boolean }>, tag:<PanelSection v-if="ctx.node.value" :label="panels.typography"><SharedStyleField kind="text" :label="panels.textStyle" />- <div class="mb-panel flex min-w-0 items-center gap-panel">+ <div class="mb-1.5 flex min-w-0 items-center gap-1.5"><FontPickerclass="min-w-0 flex-1":model-value="ctx.node.value.fontFamily"@@ -88,7 +88,7 @@ function featureEnabled(features: Array<{ tag: string; enabled: boolean }>, tag:</Tip></div>- <PanelGrid columns="two" class="mb-panel">+ <PanelGrid columns="two" class="mb-1.5"><PanelFieldGroup :label="panels.fontWeight"><AppSelect:label="panels.fontWeight"@@ -111,7 +111,7 @@ function featureEnabled(features: Array<{ tag: string; enabled: boolean }>, tag:</PanelFieldGroup></PanelGrid>- <PanelGrid columns="two" class="mb-panel">+ <PanelGrid columns="two" class="mb-1.5"><PanelFieldGroup :label="panels.lineHeight"><VariableNumberField:model-value="@@ -146,7 +146,7 @@ function featureEnabled(features: Array<{ tag: string; enabled: boolean }>, tag:</PanelFieldGroup></PanelGrid>- <PanelFieldGroup :label="panels.direction" class="mb-panel">+ <PanelFieldGroup :label="panels.direction" class="mb-1.5"><AppSelect:label="panels.direction":model-value="ctx.node.value.textDirection"@@ -159,7 +159,7 @@ function featureEnabled(features: Array<{ tag: string; enabled: boolean }>, tag:/></PanelFieldGroup>- <PanelFieldGroup :label="panels.textAlignment" class="mb-panel">+ <PanelFieldGroup :label="panels.textAlignment" class="mb-1.5"><SegmentedControl:model-value="ctx.node.value.textAlignHorizontal":options="alignmentOptions"@@ -175,7 +175,7 @@ function featureEnabled(features: Array<{ tag: string; enabled: boolean }>, tag:</SegmentedControl></PanelFieldGroup>- <PanelFieldGroup :label="panels.verticalTextAlignment" class="mb-panel">+ <PanelFieldGroup :label="panels.verticalTextAlignment" class="mb-1.5"><SegmentedControl:model-value="ctx.node.value.textAlignVertical":options="verticalAlignmentOptions"@@ -196,7 +196,7 @@ function featureEnabled(features: Array<{ tag: string; enabled: boolean }>, tag:</SegmentedControl></PanelFieldGroup>- <PanelGrid columns="two" class="mb-panel">+ <PanelGrid columns="two" class="mb-1.5"><PanelFieldGroup :label="panels.textCase"><AppSelect:label="panels.textCase"@@ -220,7 +220,7 @@ function featureEnabled(features: Array<{ tag: string; enabled: boolean }>, tag:<PanelFieldGroupv-if="ctx.node.value.textTruncation === 'ENDING'":label="panels.maxLines"- class="mb-panel"+ class="mb-1.5"><NumberField:model-value="ctx.node.value.maxLines ?? 1"@@ -235,12 +235,12 @@ function featureEnabled(features: Array<{ tag: string; enabled: boolean }>, tag:/></PanelFieldGroup>- <PanelFieldGroup :label="panels.openTypeFeatures" class="mb-panel">+ <PanelFieldGroup :label="panels.openTypeFeatures" class="mb-1.5"><div class="grid gap-1.5"><labelv-for="feature in commonFeatures":key="feature.tag"- class="flex items-center justify-between gap-panel text-[11px] text-muted"+ class="flex items-center justify-between gap-1.5 text-[11px] text-muted"><span>{{ feature.label }}</span><AppSwitch@@ -253,8 +253,8 @@ function featureEnabled(features: Array<{ tag: string; enabled: boolean }>, tag:</div></PanelFieldGroup>- <PanelFieldGroup :label="panels.textFormatting" :ui="{ container: 'flex-row gap-panel' }">- <div class="flex items-center gap-panel" role="toolbar" :aria-label="panels.textFormatting">+ <PanelFieldGroup :label="panels.textFormatting" :ui="{ container: 'flex-row gap-1.5' }">+ <div class="flex items-center gap-1.5" role="toolbar" :aria-label="panels.textFormatting"><IconButton:label="`${menu.bold} (${appMenuShortcutLabel('text.bold')})`"size="md"diff --git a/src/components/properties/binding/demo/BindingFieldDemo.vue b/src/components/properties/binding/demo/BindingFieldDemo.vueindex 4191cb115..31ca5300f 100644--- a/src/components/properties/binding/demo/BindingFieldDemo.vue+++ b/src/components/properties/binding/demo/BindingFieldDemo.vue@@ -113,12 +113,12 @@ const mixedTargets: BindingTarget[] = [<template><div class="w-[320px] overflow-hidden rounded-lg border border-border bg-panel shadow-xl">- <header class="border-b border-border px-panel-x py-panel-y">+ <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></header>- <div class="grid grid-cols-2 gap-panel p-panel-x">+ <div class="grid grid-cols-2 gap-1.5 px-3"><label class="space-y-1"><span class="text-[11px] text-muted">Unbound</span><BindingFieldDemoItemdiff --git a/src/components/properties/binding/demo/BindingFieldDemoItem.vue b/src/components/properties/binding/demo/BindingFieldDemoItem.vueindex d82e99617..fd49dbfcf 100644--- a/src/components/properties/binding/demo/BindingFieldDemoItem.vue+++ b/src/components/properties/binding/demo/BindingFieldDemoItem.vue@@ -50,7 +50,7 @@ function tooltip(variableName: string, resolvedValue: unknown) {<divv-bind="{ ...attrs, ...binding.stateAttrs }"data-story-control- class="group/binding flex h-control min-w-0 items-center rounded-panel border border-transparent bg-panel-field text-xs text-surface outline-none hover:bg-panel-field-hover focus-within:border-panel-focus data-[derived]:text-muted"+ class="group/binding flex h-6 min-w-0 items-center rounded border border-transparent bg-panel-field text-xs text-surface outline-none hover:bg-panel-field-hover focus-within:border-panel-focus data-[derived]:text-muted":data-derived="derived ? '' : undefined"@pointerdown="!editing &&diff --git a/src/components/properties/component-properties/ComponentPropertiesSection.vue b/src/components/properties/component-properties/ComponentPropertiesSection.vueindex 2555c99b3..570374720 100644--- a/src/components/properties/component-properties/ComponentPropertiesSection.vue+++ b/src/components/properties/component-properties/ComponentPropertiesSection.vue@@ -41,7 +41,7 @@ const sectionLabel = computed(() =><template><PanelSection v-if="active" :label="sectionLabel" :ui="componentSectionUI">- <div class="flex flex-col gap-panel">+ <div class="flex flex-col gap-1.5"><PanelFieldGroup v-for="control in controls" :key="control.id" :label="control.name"><ComponentPropertyTextFieldv-if="control.type === 'TEXT'"diff --git a/src/components/properties/item-list/PropertyItemRow.vue b/src/components/properties/item-list/PropertyItemRow.vueindex 3e9e122f9..6f758dcdd 100644--- a/src/components/properties/item-list/PropertyItemRow.vue+++ b/src/components/properties/item-list/PropertyItemRow.vue@@ -54,7 +54,7 @@ defineSlots<{:prop-key="propKey":index="index":aria-label="visibilityLabel"- class="flex size-control shrink-0 cursor-pointer items-center justify-center rounded-panel border-none bg-transparent p-0 text-muted hover:bg-hover hover:text-surface"+ class="flex size-6 shrink-0 cursor-pointer items-center justify-center rounded border-none bg-transparent p-0 text-muted hover:bg-hover hover:text-surface"@toggle="emit('toggleVisibility', $event)"><icon-lucide-eye v-if="!item.hidden" class="size-3.5" />@@ -68,7 +68,7 @@ defineSlots<{:aria-label="removeLabel":class="[removeClass,- 'flex size-control shrink-0 cursor-pointer items-center justify-center rounded-panel border-none bg-transparent p-0 text-muted hover:bg-hover hover:text-surface'+ 'flex size-6 shrink-0 cursor-pointer items-center justify-center rounded border-none bg-transparent p-0 text-muted hover:bg-hover hover:text-surface']"@remove="emit('remove', $event)">diff --git a/src/components/properties/shared-style/SharedStyleField.vue b/src/components/properties/shared-style/SharedStyleField.vueindex 5aae31dcc..318f0781f 100644--- a/src/components/properties/shared-style/SharedStyleField.vue+++ b/src/components/properties/shared-style/SharedStyleField.vue@@ -45,7 +45,7 @@ function update(value: string) {</script><template>- <PanelGrid v-if="visible" columns="fill" class="mb-panel">+ <PanelGrid v-if="visible" columns="fill" class="mb-1.5"><PanelFieldGroup :label="label"><AppSelect:model-value="styleId === MIXED ? 'MIXED' : (styleId ?? 'NONE')"diff --git a/src/components/ui/panel/PanelFoundation.stories.ts b/src/components/ui/panel/PanelFoundation.stories.tsindex 457332eab..79d03338a 100644--- a/src/components/ui/panel/PanelFoundation.stories.ts+++ b/src/components/ui/panel/PanelFoundation.stories.ts@@ -87,16 +87,16 @@ export const StateMatrix: Story = {<TooltipProvider><div class="w-[320px] overflow-hidden rounded-lg border border-border bg-panel shadow-xl"><PanelHeader>- <template #icon><SquareIcon class="size-panel-icon" /></template>+ <template #icon><SquareIcon class="size-3.5" /></template><span role="heading" aria-level="2">Rectangle</span><template #actions>- <IconButton label="Selection actions"><MoreIcon class="size-panel-icon" /></IconButton>+ <IconButton label="Selection actions"><MoreIcon class="size-3.5" /></IconButton></template></PanelHeader><PanelSection label="Layout"><template #actions>- <IconButton label="Reset layout"><RotateIcon class="size-panel-icon" /></IconButton>+ <IconButton label="Reset layout"><RotateIcon class="size-3.5" /></IconButton></template><PanelGrid columns="two-rail"><PanelFieldGroup label="Width">@@ -106,7 +106,7 @@ export const StateMatrix: Story = {<AppInput v-model="height" tone="panel" data-story-control data-state="focus" aria-label="Height" /></PanelFieldGroup><PanelRail>- <IconButton label="Constrain proportions" size="md"><LinkIcon class="size-panel-icon" /></IconButton>+ <IconButton label="Constrain proportions" size="md"><LinkIcon class="size-3.5" /></IconButton></PanelRail></PanelGrid></PanelSection>@@ -120,13 +120,13 @@ export const StateMatrix: Story = {<AppInput v-model="mixed" tone="panel" state="mixed" readonly data-story-control aria-label="Mixed opacity" /></PanelFieldGroup><PanelRail>- <IconButton label="Toggle visibility"><EyeIcon class="size-panel-icon" /></IconButton>+ <IconButton label="Toggle visibility"><EyeIcon class="size-3.5" /></IconButton></PanelRail></PanelGrid></PanelSection><PanelSection label="States">- <div class="grid grid-cols-2 gap-panel">+ <div class="grid grid-cols-2 gap-1.5"><PanelFieldGroup label="Bound"><AppInput v-model="bound" tone="panel" state="bound" readonly data-story-control aria-label="Bound value" /></PanelFieldGroup>diff --git a/src/theme/binding-field.ts b/src/theme/binding-field.tsindex 4819c4d6a..075070d7f 100644--- a/src/theme/binding-field.ts+++ b/src/theme/binding-field.ts@@ -8,22 +8,22 @@ const bindingFieldTheme = {pickerContent:'z-[100] w-56 overflow-hidden rounded-lg border border-border bg-panel text-surface shadow-xl',pickerSearch:- 'h-control w-full border-0 border-b border-border bg-transparent px-2 text-[11px] text-surface outline-none placeholder:text-muted focus:border-panel-focus',+ 'h-6 w-full border-0 border-b border-border bg-transparent px-2 text-[11px] text-surface outline-none placeholder:text-muted focus:border-panel-focus',pickerViewport: 'max-h-48 overflow-y-auto p-1',pickerItem:- 'flex h-control cursor-pointer items-center gap-2 rounded-panel px-2 text-[11px] text-surface outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[highlighted]:bg-hover',+ 'flex h-6 cursor-pointer items-center gap-2 rounded px-2 text-[11px] text-surface outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[highlighted]:bg-hover',pickerItemIcon: 'size-3 shrink-0 text-component',pickerItemLabel: 'min-w-0 flex-1 truncate',pickerItemIndicator: 'flex size-3 shrink-0 items-center justify-center text-component',pickerEmpty: 'px-2 py-3 text-center text-[11px] text-muted',pickerFooter: 'border-t border-border p-1',pickerAction:- 'flex h-control w-full cursor-pointer items-center gap-2 rounded-panel border-0 bg-transparent px-2 text-left text-[11px] text-muted outline-none hover:bg-hover hover:text-surface focus-visible:border-panel-focus',+ 'flex h-6 w-full cursor-pointer items-center gap-2 rounded border-0 bg-transparent px-2 text-left text-[11px] text-muted outline-none hover:bg-hover hover:text-surface focus-visible:border-panel-focus',createForm: 'flex items-center gap-1.5 p-1',createInput:- 'h-control min-w-0 flex-1 rounded-panel 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-[11px] text-surface outline-none placeholder:text-muted focus:border-panel-focus',createSubmit:- 'h-control shrink-0 rounded-panel border border-transparent bg-panel-field px-2 text-[11px] text-surface outline-none hover:bg-panel-field-hover focus-visible:border-panel-focus disabled:cursor-not-allowed disabled:opacity-50'+ 'h-6 shrink-0 rounded border border-transparent bg-panel-field px-2 text-[11px] text-surface outline-none hover:bg-panel-field-hover focus-visible:border-panel-focus disabled:cursor-not-allowed disabled:opacity-50'},variants: {state: {diff --git a/src/theme/constraints.ts b/src/theme/constraints.tsindex 609a5b7ec..23e6aa358 100644--- a/src/theme/constraints.ts+++ b/src/theme/constraints.ts@@ -1,12 +1,12 @@const constraintsTheme = {slots: {- root: 'grid grid-cols-[72px_minmax(0,1fr)] items-center gap-panel',- diagram: 'relative h-16 w-[72px] rounded-panel border border-border bg-panel-field',+ 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',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-accent uppercase',- selects: 'grid min-w-0 gap-panel'+ selects: 'grid min-w-0 gap-1.5'},variants: {active: {diff --git a/src/theme/layer-tree.ts b/src/theme/layer-tree.tsindex 91f764a9b..86a9e1e52 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-panel border-none bg-transparent py-1.5 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 py-1.5 pr-1 text-left text-[11px] text-surface hover:bg-hover',disclosure:'flex w-4 shrink-0 cursor-pointer items-center justify-center text-muted transition-transform hover:text-surface',disclosurePlaceholder: 'w-4 shrink-0',@@ -15,7 +15,7 @@ const layerTreeTheme = {renameRow: 'flex w-full items-center gap-1 py-1',renameIcon: 'size-3 shrink-0 opacity-70',renameInput:- 'min-w-0 flex-1 rounded-panel 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-[11px] text-surface outline-none'},variants: {selected: {diff --git a/src/theme/number-field.ts b/src/theme/number-field.tsindex fdb948c0f..e69ce905e 100644--- a/src/theme/number-field.ts+++ b/src/theme/number-field.ts@@ -4,7 +4,7 @@ const numberFieldTheme = {slots: {root: [panelFieldBase,- 'group flex min-h-control 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-[11px] 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',diff --git a/src/theme/page-list.ts b/src/theme/page-list.tsindex 8677b2b1d..90f5a6a85 100644--- a/src/theme/page-list.ts+++ b/src/theme/page-list.ts@@ -11,10 +11,10 @@ const pageListTheme = {renameRow: 'flex w-full items-center gap-1.5 rounded px-2 py-1.5',icon: 'size-3 shrink-0 opacity-70',renameInput:- 'min-w-0 flex-1 rounded-panel 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-[11px] text-surface outline-none',divider: 'my-1 flex cursor-pointer items-center px-2',dividerLine: 'h-px flex-1 bg-border',- item: 'flex w-full cursor-pointer items-center gap-1.5 rounded-panel border-none px-2 py-1.5 text-left text-[11px] outline-none focus-visible:ring-1 focus-visible:ring-panel-focus',+ item: 'flex w-full cursor-pointer items-center gap-1.5 rounded border-none px-2 py-1.5 text-left text-[11px] outline-none focus-visible:ring-1 focus-visible:ring-panel-focus',label: 'truncate'},variants: {diff --git a/src/theme/paint-field.ts b/src/theme/paint-field.tsindex e69573608..43fd39d00 100644--- a/src/theme/paint-field.ts+++ b/src/theme/paint-field.ts@@ -1,6 +1,6 @@export default {slots: {- root: 'flex h-control min-w-0 flex-1 items-center overflow-hidden rounded-panel 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-[11px] 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-0.5',value: 'flex min-w-0 flex-1 items-center px-1.5',divider: 'h-4 w-px shrink-0 bg-border',diff --git a/src/theme/panel/field-group.ts b/src/theme/panel/field-group.tsindex adcc1d61c..f0515918b 100644--- a/src/theme/panel/field-group.ts+++ b/src/theme/panel/field-group.ts@@ -2,7 +2,7 @@ const panelFieldGroupTheme = {slots: {root: 'min-w-0',label: 'mb-1 block truncate text-[11px] leading-none text-muted',- container: 'flex min-w-0 flex-col gap-panel'+ container: 'flex min-w-0 flex-col gap-1.5'}}diff --git a/src/theme/panel/field.ts b/src/theme/panel/field.tsindex 55461d39d..afc2ba8e9 100644--- a/src/theme/panel/field.ts+++ b/src/theme/panel/field.ts@@ -1,5 +1,5 @@export const panelFieldBase =- 'h-control min-w-0 rounded-panel border border-transparent bg-panel-field text-surface outline-none hover:bg-panel-field-hover focus:border-panel-focus focus:bg-panel-field-hover focus-visible:border-panel-focus focus-within:border-panel-focus focus-within:bg-panel-field-hover disabled:cursor-not-allowed disabled:text-muted disabled:opacity-60'+ 'h-6 min-w-0 rounded border border-transparent bg-panel-field text-surface outline-none hover:bg-panel-field-hover focus:border-panel-focus focus:bg-panel-field-hover focus-visible:border-panel-focus focus-within:border-panel-focus focus-within:bg-panel-field-hover disabled:cursor-not-allowed disabled:text-muted disabled:opacity-60'export const panelFieldState = {idle: '',@@ -9,4 +9,4 @@ export const panelFieldState = {} as constexport const panelIconButtonBase =- 'flex size-control shrink-0 cursor-pointer items-center justify-center rounded-panel border border-transparent bg-transparent text-muted outline-none hover:bg-hover hover:text-surface focus-visible:border-panel-focus disabled:cursor-not-allowed disabled:opacity-50'+ 'flex size-6 shrink-0 cursor-pointer items-center justify-center rounded border border-transparent bg-transparent text-muted outline-none hover:bg-hover hover:text-surface focus-visible:border-panel-focus disabled:cursor-not-allowed disabled:opacity-50'diff --git a/src/theme/panel/grid.ts b/src/theme/panel/grid.tsindex 2c0e606db..281ab27f8 100644--- a/src/theme/panel/grid.ts+++ b/src/theme/panel/grid.ts@@ -1,12 +1,12 @@const panelGridTheme = {- base: 'grid min-w-0 items-end gap-panel',+ base: 'grid min-w-0 items-end gap-1.5',variants: {columns: {two: 'grid-cols-2',three: 'grid-cols-3',- 'two-rail': 'grid-cols-[minmax(0,1fr)_minmax(0,1fr)_var(--spacing-panel-rail)]',+ 'two-rail': 'grid-cols-[minmax(0,1fr)_minmax(0,1fr)_26px]',fill: 'grid-cols-[minmax(0,1fr)]',- 'fill-rail': 'grid-cols-[minmax(0,1fr)_var(--spacing-panel-rail)]'+ 'fill-rail': 'grid-cols-[minmax(0,1fr)_26px]'}},defaultVariants: {diff --git a/src/theme/panel/header.ts b/src/theme/panel/header.tsindex ffdc63e5c..5aadfa31d 100644--- a/src/theme/panel/header.ts+++ b/src/theme/panel/header.ts@@ -1,10 +1,10 @@const panelHeaderTheme = {slots: {- root: 'grid min-w-0 grid-cols-[var(--spacing-panel-icon)_minmax(0,1fr)_auto] items-center gap-panel border-b border-border px-panel-x py-panel-y text-surface',- icon: 'flex size-panel-icon items-center justify-center text-muted',+ root: 'grid min-w-0 grid-cols-[14px_minmax(0,1fr)_auto] items-center gap-1.5 border-b border-border px-3 py-2 text-surface',+ icon: 'flex size-3.5 items-center justify-center text-muted',title: 'min-w-0 truncate text-xs font-semibold text-surface',actions:- 'flex min-w-0 items-center justify-end gap-0.5 [&_[data-slot=icon-button]]:size-control [&_[data-slot=icon-button]]:rounded-panel'+ 'flex min-w-0 items-center justify-end gap-0.5 [&_[data-slot=icon-button]]:size-6 [&_[data-slot=icon-button]]:rounded'},variants: {component: {diff --git a/src/theme/panel/item-row.ts b/src/theme/panel/item-row.tsindex 571ab0389..32410b21e 100644--- a/src/theme/panel/item-row.ts+++ b/src/theme/panel/item-row.ts@@ -1,7 +1,7 @@export default {slots: {- root: 'group flex min-h-control items-center gap-panel py-0.5',- content: 'flex min-w-0 flex-1 items-center gap-panel',+ root: 'group flex min-h-6 items-center gap-1.5 py-0.5',+ content: 'flex min-w-0 flex-1 items-center gap-1.5',rail: 'flex shrink-0 items-center gap-0.5',remove:'transition-opacity [@media(hover:hover)]:pointer-events-none [@media(hover:hover)]:opacity-0 group-hover:pointer-events-auto group-hover:opacity-100 group-focus-within:pointer-events-auto group-focus-within:opacity-100'diff --git a/src/theme/panel/rail.ts b/src/theme/panel/rail.tsindex f33483ae6..16e3a82ba 100644--- a/src/theme/panel/rail.ts+++ b/src/theme/panel/rail.ts@@ -1,3 +1,3 @@export default {- base: 'flex h-control w-panel-rail shrink-0 items-center justify-end gap-0.5 [&_[data-slot=icon-button]]:size-control [&_[data-slot=icon-button]]:rounded-panel'+ base: 'flex h-6 w-[26px] shrink-0 items-center justify-end gap-0.5 [&_[data-slot=icon-button]]:size-6 [&_[data-slot=icon-button]]:rounded'}diff --git a/src/theme/panel/section.ts b/src/theme/panel/section.tsindex 503a83bab..7ce53e5bd 100644--- a/src/theme/panel/section.ts+++ b/src/theme/panel/section.ts@@ -1,17 +1,17 @@const panelSectionTheme = {slots: {- root: 'border-b border-border px-panel-x py-panel-y text-surface data-[disabled]:opacity-60',- header: 'mb-panel grid min-w-0 items-center gap-panel',+ root: 'border-b border-border px-3 py-2 text-surface data-[disabled]:opacity-60',+ header: 'mb-1.5 grid min-w-0 items-center gap-1.5',title:'min-w-0 cursor-pointer truncate border-0 bg-transparent p-0 text-left text-[11px] leading-none font-semibold text-surface',actions:- 'flex h-control w-panel-rail shrink-0 items-center justify-end gap-0.5 [&_[data-slot=icon-button]]:size-control [&_[data-slot=icon-button]]:rounded-panel',+ 'flex h-6 w-[26px] 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'},variants: {actions: {true: {- header: 'grid-cols-[minmax(0,1fr)_var(--spacing-panel-rail)]'+ header: 'grid-cols-[minmax(0,1fr)_26px]'},false: {header: 'grid-cols-[minmax(0,1fr)]'