Skip to content

armgit / avibe

Public Imported from GitHub
0

Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.

fix(ui): improve switch off-state contrast in dark mode

cyh83dfed61f7bc
diff --git a/ui/src/components/settings/SettingsPrimitives.tsx b/ui/src/components/settings/SettingsPrimitives.tsx
index 3ecf708ca..94eca6ec5 100644
--- a/ui/src/components/settings/SettingsPrimitives.tsx
+++ b/ui/src/components/settings/SettingsPrimitives.tsx
@@ -102,6 +102,8 @@ export const CompactSelect: React.FC<React.SelectHTMLAttributes<HTMLSelectElemen
// Mirrors design.pen FALFE / ylboi (mint switch on): cornerRadius 9999,
// fill --mint, blur 8 #5BFFA055 glow, 38×22 with knob inset 3.
+// Off state mirrors fcMl6 (Switch/Unchecked): fill + stroke = --border-strong
+// (14% white dark / 14% black light) for sufficient contrast against bg-background.
export const ToggleSwitch: React.FC<{ enabled: boolean; onClick: () => void; disabled?: boolean }> = ({
enabled,
onClick,
@@ -117,7 +119,7 @@ export const ToggleSwitch: React.FC<{ enabled: boolean; onClick: () => void; dis
'relative inline-flex h-5 w-9 shrink-0 items-center rounded-full border transition-colors focus:outline-none focus:ring-2 focus:ring-mint/40 disabled:opacity-50',
enabled
? 'border-mint/50 bg-mint shadow-[0_0_12px_-2px_rgba(91,255,160,0.6)]'
- : 'border-border bg-surface-2'
+ : 'border-border-strong bg-border-strong'
)}
>
<span
diff --git a/ui/src/components/steps/AgentDetection.tsx b/ui/src/components/steps/AgentDetection.tsx
index de81930ea..6507c37e9 100644
--- a/ui/src/components/steps/AgentDetection.tsx
+++ b/ui/src/components/steps/AgentDetection.tsx
@@ -236,7 +236,7 @@ export const AgentDetection: React.FC<AgentDetectionProps> = ({ data, onNext, on
'relative inline-flex h-5 w-9 shrink-0 items-center rounded-full border transition-colors focus:outline-none focus:ring-2 focus:ring-mint/40',
agent.enabled
? 'border-mint/50 bg-mint shadow-[0_0_12px_-2px_rgba(91,255,160,0.6)]'
- : 'border-border bg-surface-2'
+ : 'border-border-strong bg-border-strong'
)}
>
<span
diff --git a/ui/src/components/steps/ChannelList.tsx b/ui/src/components/steps/ChannelList.tsx
index 232bd99ec..571009d1d 100644
--- a/ui/src/components/steps/ChannelList.tsx
+++ b/ui/src/components/steps/ChannelList.tsx
@@ -1097,12 +1097,12 @@ export const ChannelList: React.FC<ChannelListProps> = ({ data = {}, onNext, onB
<span
className={clsx(
'relative inline-flex h-[18px] w-[30px] items-center rounded-full transition-colors',
- showInactive ? 'bg-mint' : 'bg-neutral-300'
+ showInactive ? 'bg-mint' : 'bg-border-strong'
)}
>
<span
className={clsx(
- 'inline-block h-3.5 w-3.5 rounded-full bg-white shadow-sm transition-transform',
+ 'inline-block h-3.5 w-3.5 rounded-full bg-background shadow-sm transition-transform',
showInactive ? 'translate-x-[14px]' : 'translate-x-0.5'
)}
/>
@@ -1189,12 +1189,12 @@ export const ChannelList: React.FC<ChannelListProps> = ({ data = {}, onNext, onB
}}
className={clsx(
'relative inline-flex h-[18px] w-8 shrink-0 cursor-pointer items-center rounded-full transition-colors',
- channelEnabled ? 'bg-mint' : 'bg-neutral-300'
+ channelEnabled ? 'bg-mint' : 'bg-border-strong'
)}
>
<span
className={clsx(
- 'inline-block h-3.5 w-3.5 rounded-full bg-white shadow-sm transition-transform',
+ 'inline-block h-3.5 w-3.5 rounded-full bg-background shadow-sm transition-transform',
channelEnabled ? 'translate-x-[14px]' : 'translate-x-0.5'
)}
/>
@@ -1381,12 +1381,12 @@ export const ChannelList: React.FC<ChannelListProps> = ({ data = {}, onNext, onB
}}
className={clsx(
'relative inline-flex h-6 w-11 items-center rounded-full transition-colors',
- (config as any)[platform]?.require_mention ? 'bg-accent' : 'bg-neutral-300'
+ (config as any)[platform]?.require_mention ? 'bg-accent' : 'bg-border-strong'
)}
>
<span
className={clsx(
- 'inline-block h-4 w-4 rounded-full bg-white transition-transform shadow-sm',
+ 'inline-block h-4 w-4 rounded-full bg-background transition-transform shadow-sm',
(config as any)[platform]?.require_mention ? 'translate-x-6' : 'translate-x-1'
)}
/>
diff --git a/ui/src/components/steps/Summary.tsx b/ui/src/components/steps/Summary.tsx
index de6c808df..73016da3a 100644
--- a/ui/src/components/steps/Summary.tsx
+++ b/ui/src/components/steps/Summary.tsx
@@ -376,7 +376,7 @@ const Switch: React.FC<{ checked: boolean; onChange: (next: boolean) => void }>
'relative inline-flex h-5 w-9 shrink-0 items-center rounded-full border transition-colors focus:outline-none focus:ring-2 focus:ring-mint/40',
checked
? 'border-mint/50 bg-mint shadow-[0_0_12px_-2px_rgba(91,255,160,0.6)]'
- : 'border-border bg-surface-2'
+ : 'border-border-strong bg-border-strong'
)}
>
<span
diff --git a/ui/src/components/steps/UserList.tsx b/ui/src/components/steps/UserList.tsx
index 184bfe449..3a978495a 100644
--- a/ui/src/components/steps/UserList.tsx
+++ b/ui/src/components/steps/UserList.tsx
@@ -706,12 +706,12 @@ export const UserList: React.FC = () => {
<span
className={clsx(
'relative inline-flex h-[18px] w-[30px] items-center rounded-full transition-colors',
- showDisabled ? 'bg-mint' : 'bg-white/[0.08]'
+ showDisabled ? 'bg-mint' : 'bg-border-strong'
)}
>
<span
className={clsx(
- 'inline-block h-3.5 w-3.5 rounded-full bg-white shadow-sm transition-transform',
+ 'inline-block h-3.5 w-3.5 rounded-full bg-background shadow-sm transition-transform',
showDisabled ? 'translate-x-[14px]' : 'translate-x-0.5'
)}
/>
@@ -781,12 +781,12 @@ export const UserList: React.FC = () => {
}}
className={clsx(
'relative inline-flex h-[18px] w-8 shrink-0 cursor-pointer items-center rounded-full transition-colors',
- userConfig.enabled ? 'bg-mint' : 'bg-neutral-300'
+ userConfig.enabled ? 'bg-mint' : 'bg-border-strong'
)}
>
<span
className={clsx(
- 'inline-block h-3.5 w-3.5 rounded-full bg-white shadow-sm transition-transform',
+ 'inline-block h-3.5 w-3.5 rounded-full bg-background shadow-sm transition-transform',
userConfig.enabled ? 'translate-x-[14px]' : 'translate-x-0.5'
)}
/>