Skip to content

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

fix(ui): chrome polish — menubar contrast, menu/tab/tooltip type scale

Danila Poyarkovf365f30f06f7
diff --git a/src/components/Shell/AppMenu.vue b/src/components/Shell/AppMenu.vue
index 6b8ddfac0..fc349c90f 100644
--- a/src/components/Shell/AppMenu.vue
+++ b/src/components/Shell/AppMenu.vue
@@ -92,7 +92,7 @@ const subMenuCls = useMenuUI({ content: 'min-w-44' })
<MenubarMenu v-for="menu in topMenus" :key="menu.label">
<MenubarTrigger
v-test-id="`menubar-${menu.label.toLowerCase()}`"
- class="flex cursor-pointer items-center rounded px-2 py-1 text-xs text-muted 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-[11px] 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/ui/menu.ts b/src/components/ui/menu.ts
index 0a1d59154..19028cc42 100644
--- a/src/components/ui/menu.ts
+++ b/src/components/ui/menu.ts
@@ -3,12 +3,12 @@ import { tv } from 'tailwind-variants'
export const menu = tv({
slots: {
content: 'z-50 rounded-xl bg-panel p-1 shadow-[0_8px_30px_rgb(0_0_0/0.4)]',
- item: 'flex cursor-pointer items-center gap-2 rounded-md px-2 py-1.5 text-xs 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-[11px] 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',
shortcut: 'text-[11px] text-muted',
icon: 'size-3 text-muted',
subTrigger:
- 'flex cursor-pointer items-center gap-2 rounded-md px-2 py-1.5 text-xs outline-none select-none'
+ 'flex cursor-pointer items-center gap-2 rounded px-2 py-1.5 text-[11px] outline-none select-none'
},
variants: {
tone: {
diff --git a/src/components/ui/tooltip.ts b/src/components/ui/tooltip.ts
index 09e433989..901b79b96 100644
--- a/src/components/ui/tooltip.ts
+++ b/src/components/ui/tooltip.ts
@@ -3,7 +3,7 @@ import { tv } from 'tailwind-variants'
export const tooltip = tv({
slots: {
content:
- 'z-50 rounded-md bg-panel px-2 py-1 text-xs text-surface shadow-[0_8px_30px_rgb(0_0_0/0.4)]'
+ 'z-50 rounded-md bg-panel px-2 py-1 text-[11px] text-surface shadow-[0_8px_30px_rgb(0_0_0/0.4)]'
}
})
diff --git a/src/theme/collaboration.ts b/src/theme/collaboration.ts
index dd4213725..014c72c98 100644
--- a/src/theme/collaboration.ts
+++ b/src/theme/collaboration.ts
@@ -4,11 +4,11 @@ const collaborationTheme = {
'flex shrink-0 items-center justify-center rounded-full text-[10px] font-semibold text-white',
peerAvatar: 'cursor-pointer transition-all',
shareButton:
- 'flex h-7 cursor-pointer items-center gap-1.5 rounded-md border-none px-3 text-xs font-medium transition-colors outline-none focus-visible:ring-1 focus-visible:ring-accent',
+ '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-accent',
presenceTrigger:
'flex h-8 cursor-pointer items-center gap-1.5 rounded-full border border-white/10 bg-panel/70 px-3 shadow-md backdrop-blur-xl outline-none select-none active:bg-hover focus-visible:ring-1 focus-visible:ring-accent',
presenceDot: 'size-2 rounded-full bg-green-500',
- presenceContent: 'z-50 w-56 rounded-xl border border-border bg-panel p-3 shadow-xl',
+ presenceContent: 'z-50 w-56 rounded-xl bg-panel p-3 shadow-[0_8px_30px_rgb(0_0_0/0.4)]',
peerRow:
'flex cursor-pointer items-center gap-2 rounded-md px-0.5 py-0.5 outline-none select-none active:bg-hover focus-visible:ring-1 focus-visible:ring-accent',
disconnect:
diff --git a/src/theme/tab-bar.ts b/src/theme/tab-bar.ts
index 1633ac9d4..536f04176 100644
--- a/src/theme/tab-bar.ts
+++ b/src/theme/tab-bar.ts
@@ -3,7 +3,7 @@ const tabBarTheme = {
root: 'scrollbar-none flex h-9 shrink-0 items-end overflow-x-auto border-b border-border bg-canvas',
list: 'flex h-full items-end',
trigger:
- 'group/tab flex h-full max-w-48 min-w-0 cursor-pointer items-center gap-1.5 border-r border-border px-3 text-xs transition-colors outline-none select-none focus-visible:ring-1 focus-visible:ring-accent',
+ 'group/tab flex h-full max-w-48 min-w-0 cursor-pointer items-center gap-1.5 border-r border-border px-3 text-[11px] transition-colors outline-none select-none focus-visible:ring-1 focus-visible:ring-accent',
icon: 'size-3 shrink-0 opacity-50',
label: 'min-w-0 flex-1 truncate',
close: