Skip to content

AI-native design editor. Open-source Figma alternative.

feat(ui): confident selection and consistent panel headers

Danila Poyarkov55965ac556b4
diff --git a/src/components/AssetsPanel.vue b/src/components/AssetsPanel.vue
index 22a417733..7a62fff1f 100644
--- a/src/components/AssetsPanel.vue
+++ b/src/components/AssetsPanel.vue
@@ -171,7 +171,7 @@ function insertSelectedAsset() {
<template>
<section data-test-id="assets-panel" class="flex min-h-0 flex-1 flex-col overflow-hidden">
- <header class="shrink-0 px-3 py-2 text-[11px] tracking-wider text-muted uppercase">
+ <header class="shrink-0 px-3 py-2 text-[11px] font-semibold text-surface">
{{ panels.assets }}
</header>
<div class="shrink-0 px-2 pb-2">
diff --git a/src/components/LayersPanel.vue b/src/components/LayersPanel.vue
index fc2400d80..b260ee915 100644
--- a/src/components/LayersPanel.vue
+++ b/src/components/LayersPanel.vue
@@ -74,7 +74,7 @@ const panelTabsUI = { root: 'w-full' }
<SplitterPanel :default-size="70" :min-size="20" class="flex flex-col overflow-hidden">
<header
data-test-id="layers-header"
- class="shrink-0 px-3 py-2 text-[11px] tracking-wider text-muted uppercase"
+ class="shrink-0 px-3 py-2 text-[11px] font-semibold text-surface"
>
{{ panels.layers }}
</header>
diff --git a/src/theme/layer-tree.ts b/src/theme/layer-tree.ts
index 63ec26ac0..91f764a9b 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 py-1 pr-1 text-left text-xs text-surface hover:bg-hover',
+ 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',
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 border border-accent bg-input px-1 py-0 text-xs text-surface outline-none'
+ 'min-w-0 flex-1 rounded-panel border border-accent bg-input px-1 py-0 text-[11px] text-surface outline-none'
},
variants: {
selected: {
diff --git a/src/theme/page-list.ts b/src/theme/page-list.ts
index 3a9ddfecd..8677b2b1d 100644
--- a/src/theme/page-list.ts
+++ b/src/theme/page-list.ts
@@ -2,19 +2,19 @@ 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] tracking-wider text-muted uppercase',
+ title: 'text-[11px] 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',
row: 'relative cursor-grab active:cursor-grabbing',
dropIndicator: 'pointer-events-none absolute inset-x-1 z-10 h-0.5 rounded-full bg-accent',
- renameRow: 'flex w-full items-center gap-1.5 rounded px-2 py-1',
+ 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 border border-accent bg-input px-1 py-0 text-xs text-surface outline-none',
+ 'min-w-0 flex-1 rounded-panel 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 border-none px-2 py-1 text-left text-xs outline-none focus-visible:ring-1 focus-visible:ring-panel-focus',
+ 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',
label: 'truncate'
},
variants: {
diff --git a/src/theme/segmented-control.ts b/src/theme/segmented-control.ts
index 6da8abc30..195ce5314 100644
--- a/src/theme/segmented-control.ts
+++ b/src/theme/segmented-control.ts
@@ -8,7 +8,7 @@ const segmentedControlTheme = {
variants: {
size: {
sm: { item: 'px-1.5 text-[11px]' },
- md: { item: 'px-2 text-xs' }
+ md: { item: 'px-2 text-[11px]' }
}
},
defaultVariants: {