Skip to content

ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.

feat(ui): Phase 1 page restyles (dashboard, settings, databases, docker, marketplace)

Juan Denis0b9ee6c61e65
diff --git a/frontend/src/components/MetricsGraph.jsx b/frontend/src/components/MetricsGraph.jsx
index a23ba3c0..952b9a17 100644
--- a/frontend/src/components/MetricsGraph.jsx
+++ b/frontend/src/components/MetricsGraph.jsx
@@ -6,11 +6,15 @@ import {
import { Cpu, MemoryStick, HardDrive, TrendingUp } from 'lucide-react';
import api from '../services/api';
-// Chart colors - matching new_dashboard_3 style
+// Chart series colors — redesign "infra console" palette (see
+// docs/REDESIGN_MAP.md). Kept as hex (not CSS var()) on purpose: var() does not
+// reliably resolve inside SVG presentation attributes, so hardcoding keeps the
+// series from rendering blank. Grid/axis/ticks ARE themed via CSS overrides in
+// _metrics-graph.scss.
const CHART_COLORS = {
- cpu: '#6366f1', // Purple/Indigo
- memory: '#10b981', // Green (RAM)
- disk: '#f59e0b' // Amber/Orange (Disk)
+ cpu: '#8b93ff', // accent-bright (periwinkle)
+ memory: '#3ddc97', // green (RAM)
+ disk: '#f5b945' // amber (Disk)
};
const MetricsGraph = ({ compact = false, timezone, serverId }) => {
diff --git a/frontend/src/pages/Dashboard.jsx b/frontend/src/pages/Dashboard.jsx
index 2d794b3e..1cc66cc8 100644
--- a/frontend/src/pages/Dashboard.jsx
+++ b/frontend/src/pages/Dashboard.jsx
@@ -10,7 +10,7 @@ import { useMetrics } from '../hooks/useMetrics';
import MetricsGraph from '../components/MetricsGraph';
import useDashboardLayout from '../hooks/useDashboardLayout';
import { Button } from '@/components/ui/button';
-import { Badge } from '@/components/ui/badge';
+import { MetricCard, Pill } from '@/components/ds';
// Refresh interval options in seconds
const REFRESH_OPTIONS = [
@@ -245,11 +245,11 @@ const Dashboard = () => {
<span className="conn-status__dot" aria-hidden="true"></span>
{isConnected ? 'Live' : 'Reconnecting'}
</span>
- <span className="detail-separator">|</span>
+ <span className="detail-separator">·</span>
<span>IP: {ipAddress}</span>
- <span className="detail-separator">|</span>
+ <span className="detail-separator">·</span>
<span>KERNEL: {kernelVersion}</span>
- <span className="detail-separator">|</span>
+ <span className="detail-separator">·</span>
<span>UPTIME: {uptimeFormatted.days}d {String(uptimeFormatted.hours).padStart(2, '0')}h {String(uptimeFormatted.minutes).padStart(2, '0')}m</span>
</div>
</div>
@@ -297,61 +297,66 @@ const Dashboard = () => {
{widgets.filter(w => w.visible).map(w => {
const WIDGET_RENDERERS = {
cpu: () => (
- <div key="cpu" className="metric-tile">
- <div className="tile-head">
- <span className="tile-title">CPU</span>
- <Zap size={16} className="tile-icon cpu" />
+ <MetricCard
+ key="cpu"
+ className="dash-kpi"
+ tone="accent"
+ icon={<Zap size={16} />}
+ value={(metrics?.cpu?.percent || 0).toFixed(1)}
+ unit="%"
+ label="CPU"
+ >
+ <div className="sk-kpi__sub">
+ <span>Cores {metrics?.cpu?.count_logical || 0}</span>
</div>
- <div className="tile-val">{(metrics?.cpu?.percent || 0).toFixed(1)}%</div>
- <div className="tile-sub">
- <span>Cores: {metrics?.cpu?.count_logical || 0}</span>
- </div>
- </div>
+ </MetricCard>
),
ram: () => (
- <div key="ram" className="metric-tile">
- <div className="tile-head">
- <span className="tile-title">RAM</span>
- <Database size={16} className="tile-icon memory" />
- </div>
- <div className="tile-val">{metrics?.memory?.ram?.used_human || '0 GB'}</div>
- <div className="tile-sub">
- <span>Total: {metrics?.memory?.ram?.total_human || '0 GB'}</span>
- <span>Cached: {metrics?.memory?.ram?.cached_human || '0 GB'}</span>
+ <MetricCard
+ key="ram"
+ className="dash-kpi"
+ tone="green"
+ icon={<Database size={16} />}
+ value={metrics?.memory?.ram?.used_human || '0 GB'}
+ label="RAM"
+ >
+ <div className="sk-kpi__sub">
+ <span>Total {metrics?.memory?.ram?.total_human || '0 GB'}</span>
+ <span>Cached {metrics?.memory?.ram?.cached_human || '0 GB'}</span>
</div>
- </div>
+ </MetricCard>
),
network: () => (
- <div key="network" className="metric-tile">
- <div className="tile-head">
- <span className="tile-title">Network</span>
- <Activity size={16} className="tile-icon network" />
- </div>
- <div className="tile-val">
- {metrics?.network?.io?.bytes_sent_human || '0 B'}
- <span className="tile-val-unit">sent</span>
+ <MetricCard
+ key="network"
+ className="dash-kpi"
+ tone="cyan"
+ icon={<Activity size={16} />}
+ value={metrics?.network?.io?.bytes_sent_human || '0 B'}
+ unit="sent"
+ label="Network"
+ >
+ <div className="sk-kpi__sub">
+ <span>In {metrics?.network?.io?.bytes_recv_human || '0 B'}</span>
+ <span>Out {metrics?.network?.io?.bytes_sent_human || '0 B'}</span>
</div>
- <div className="tile-sub">
- <span>In: {metrics?.network?.io?.bytes_recv_human || '0 B'}</span>
- <span>Out: {metrics?.network?.io?.bytes_sent_human || '0 B'}</span>
- </div>
- </div>
+ </MetricCard>
),
disk: () => (
- <div key="disk" className="metric-tile">
- <div className="tile-head">
- <span className="tile-title">Disk</span>
- <HardDrive size={16} className="tile-icon disk" />
- </div>
- <div className="tile-val">
- {(metrics?.disk?.partitions?.[0]?.percent || 0).toFixed(1)}%
- <span className="tile-val-unit">used</span>
+ <MetricCard
+ key="disk"
+ className="dash-kpi"
+ tone="amber"
+ icon={<HardDrive size={16} />}
+ value={(metrics?.disk?.partitions?.[0]?.percent || 0).toFixed(1)}
+ unit="%"
+ label="Disk"
+ >
+ <div className="sk-kpi__sub">
+ <span>Used {metrics?.disk?.partitions?.[0]?.used_human || '0 GB'}</span>
+ <span>Free {metrics?.disk?.partitions?.[0]?.free_human || '0 GB'}</span>
</div>
- <div className="tile-sub">
- <span>Used: {metrics?.disk?.partitions?.[0]?.used_human || '0 GB'}</span>
- <span>Free: {metrics?.disk?.partitions?.[0]?.free_human || '0 GB'}</span>
- </div>
- </div>
+ </MetricCard>
),
chart: () => (
<div key="chart" className="chart-panel">
@@ -432,9 +437,9 @@ const Dashboard = () => {
</td>
<td>{app.app_type}</td>
<td>
- <Badge variant={app.status === 'running' ? 'success' : 'warning'}>
+ <Pill kind={app.status === 'running' ? 'green' : 'amber'}>
{app.status?.toUpperCase()}
- </Badge>
+ </Pill>
</td>
<td>{app.domains?.[0]?.name || '-'}</td>
</tr>
diff --git a/frontend/src/pages/Databases.jsx b/frontend/src/pages/Databases.jsx
index 36897384..0e324689 100644
--- a/frontend/src/pages/Databases.jsx
+++ b/frontend/src/pages/Databases.jsx
@@ -559,6 +559,7 @@ export default function Databases() {
{activeStatus.readonly ? <><Lock size={11} aria-hidden="true" /> Read-only</> : 'Writes enabled'}
</span>
)}
+ <span className="dbx-status-item dbx-status-muted">UTF-8</span>
</>
) : (
<span className="dbx-status-item dbx-status-muted">No tab open</span>
@@ -570,6 +571,7 @@ export default function Databases() {
<span className="dbx-status-item">{activeStatus.rowCount} row{activeStatus.rowCount === 1 ? '' : 's'}{activeStatus.truncated ? ` of ${activeStatus.totalRows}` : ''}</span>
)}
{activeStatus?.execTime != null && <span className="dbx-status-item dbx-mono">{activeStatus.execTime}s</span>}
+ {activeStatus && <span className="dbx-status-item is-connected">Connected</span>}
</div>
</footer>
diff --git a/frontend/src/pages/Docker.jsx b/frontend/src/pages/Docker.jsx
index f4af9f9c..0ca92e13 100644
--- a/frontend/src/pages/Docker.jsx
+++ b/frontend/src/pages/Docker.jsx
@@ -10,6 +10,7 @@ import EmptyState from '../components/EmptyState';
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
import { Textarea } from '@/components/ui/textarea';
+import { MetricCard } from '@/components/ds';
import {
Box, Layers, HardDrive, Network as NetworkIcon, Search, X, RefreshCw,
Trash2, Play, Square, RotateCw, Terminal as TerminalLucide, FileText,
@@ -402,6 +403,16 @@ const Docker = () => {
</aside>
<main className="dx-main">
+ <div className="dx-kpi-strip">
+ <MetricCard tone="accent" icon={<Box size={16} />} value={stats.containers.total} label="Containers">
+ <div className="sk-kpi__sub"><span>{stats.containers.running} running</span></div>
+ </MetricCard>
+ <MetricCard tone="cyan" icon={<Layers size={16} />} value={stats.images.total} label="Images">
+ <div className="sk-kpi__sub"><span>{stats.images.size}</span></div>
+ </MetricCard>
+ <MetricCard tone="violet" icon={<HardDrive size={16} />} value={stats.volumes.total} label="Volumes" />
+ <MetricCard tone="green" icon={<NetworkIcon size={16} />} value={stats.networks.total} label="Networks" />
+ </div>
<div className="dx-workbar">
<div className="dx-workbar-title">
<span>Docker</span>
diff --git a/frontend/src/styles/components/_metrics-graph.scss b/frontend/src/styles/components/_metrics-graph.scss
index 9691ac78..b3afc898 100644
--- a/frontend/src/styles/components/_metrics-graph.scss
+++ b/frontend/src/styles/components/_metrics-graph.scss
@@ -123,12 +123,12 @@
// Tooltip
.metrics-tooltip {
- background: rgba(24, 24, 27, 0.95);
+ background: var(--surface-2);
backdrop-filter: blur(8px);
- border: 1px solid $border-subtle;
+ border: 1px solid var(--border-strong);
border-radius: $radius-lg;
padding: $space-3 $space-4;
- box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
+ box-shadow: var(--shadow-lg);
min-width: 140px;
.tooltip-time {
@@ -199,25 +199,25 @@
opacity: 1;
}
- // CPU - Purple/Indigo
+ // CPU - periwinkle accent
&.cpu.active {
- background: rgba(99, 102, 241, 0.1);
- color: #6366f1;
- border-color: rgba(99, 102, 241, 0.3);
+ background: var(--accent-bg);
+ color: var(--accent-bright);
+ border-color: var(--accent-dim);
}
- // Memory - Green
+ // Memory - green
&.memory.active {
- background: rgba(16, 185, 129, 0.1);
- color: #10b981;
- border-color: rgba(16, 185, 129, 0.3);
+ background: var(--green-bg);
+ color: var(--green);
+ border-color: rgba(61, 220, 151, 0.3);
}
- // Disk - Orange
+ // Disk - amber
&.disk.active {
- background: rgba(245, 158, 11, 0.1);
- color: $warning;
- border-color: rgba(245, 158, 11, 0.3);
+ background: var(--amber-bg);
+ color: var(--amber);
+ border-color: rgba(245, 185, 69, 0.3);
}
}
@@ -267,18 +267,18 @@
}
&.cpu {
- background: #6366f1;
- box-shadow: 0 0 8px rgba(99, 102, 241, 0.5);
+ background: var(--accent-bright);
+ box-shadow: 0 0 8px var(--accent-glow);
}
&.memory {
- background: #10b981;
- box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
+ background: var(--green);
+ box-shadow: 0 0 8px rgba(61, 220, 151, 0.5);
}
&.disk {
- background: $warning;
- box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
+ background: var(--amber);
+ box-shadow: 0 0 8px rgba(245, 185, 69, 0.5);
}
}
diff --git a/frontend/src/styles/components/_users.scss b/frontend/src/styles/components/_users.scss
index c7c6fa3e..6a5816b9 100644
--- a/frontend/src/styles/components/_users.scss
+++ b/frontend/src/styles/components/_users.scss
@@ -307,13 +307,14 @@
// Settings Nav Divider
// --------------------------------------------
.settings-nav-divider {
- padding: $space-2 $space-4;
- margin-top: $space-4;
- font-size: $font-size-xs;
- font-weight: 600;
- color: $text-tertiary;
+ padding: $space-3 $space-3 $space-1;
+ margin-top: $space-3;
+ font-family: var(--mono);
+ font-size: 0.62rem;
+ font-weight: $font-weight-medium;
+ color: var(--text-ghost);
text-transform: uppercase;
- letter-spacing: 0.1em;
+ letter-spacing: 0.12em;
&:first-child {
margin-top: 0;
diff --git a/frontend/src/styles/pages/_dashboard.scss b/frontend/src/styles/pages/_dashboard.scss
index 8b3d63b3..e694525c 100644
--- a/frontend/src/styles/pages/_dashboard.scss
+++ b/frontend/src/styles/pages/_dashboard.scss
@@ -152,6 +152,20 @@
}
}
+// KPI cards (redesign) use the shared `.sk-kpi` primitive; this just places
+// them on the dashboard's 12-col grid (4-up, like the old metric tiles).
+.dash-kpi {
+ grid-column: span 3;
+
+ @media (max-width: $breakpoint-xl) {
+ grid-column: span 6;
+ }
+
+ @media (max-width: $breakpoint-md) {
+ grid-column: span 12;
+ }
+}
+
.tile-head {
display: flex;
justify-content: space-between;
diff --git a/frontend/src/styles/pages/_databases.scss b/frontend/src/styles/pages/_databases.scss
index 5e2644d9..e2f36c6c 100644
--- a/frontend/src/styles/pages/_databases.scss
+++ b/frontend/src/styles/pages/_databases.scss
@@ -344,8 +344,8 @@ $dbx-sqlite: #3d8fd1;
color: $text-tertiary;
.dbx-status-dot { width: 7px; height: 7px; border-radius: $radius-full; background: currentColor; }
- &.is-active { color: $success; }
- &.is-inactive { color: $warning; }
+ &.is-active { color: $success; .dbx-status-dot { box-shadow: 0 0 6px currentColor; } }
+ &.is-inactive { color: $warning; .dbx-status-dot { box-shadow: 0 0 6px currentColor; } }
&.is-missing { color: $text-tertiary; }
}
@@ -647,7 +647,7 @@ $dbx-sqlite: #3d8fd1;
background: $bg-elevated;
border-bottom: 1px solid $border-subtle;
flex-shrink: 0;
- .dbx-results-count { font-size: $font-size-xs; color: $text-secondary; }
+ .dbx-results-count { font-size: $font-size-xs; color: $success; font-weight: $font-weight-medium; }
.dbx-results-time { font-family: $font-mono; font-size: $font-size-xs; color: $text-tertiary; }
}
@@ -873,6 +873,20 @@ $dbx-sqlite: #3d8fd1;
svg { color: $text-tertiary; }
&.is-write { color: $warning; font-weight: $font-weight-medium; }
&.dbx-status-muted { color: $text-tertiary; }
+
+ // Green "● Connected" segment (matches the prototype status bar)
+ &.is-connected {
+ color: $success;
+ font-family: $font-mono;
+ &::before {
+ content: '';
+ width: 6px;
+ height: 6px;
+ border-radius: $radius-full;
+ background: currentColor;
+ box-shadow: 0 0 6px currentColor;
+ }
+ }
}
// ─── Context menu ─────────────────────────────────────
diff --git a/frontend/src/styles/pages/_docker.scss b/frontend/src/styles/pages/_docker.scss
index a16cf4be..a52b9a49 100644
--- a/frontend/src/styles/pages/_docker.scss
+++ b/frontend/src/styles/pages/_docker.scss
@@ -233,7 +233,7 @@
}
tr:hover {
- background: fade($white, 2%);
+ background: $bg-hover;
}
tr:last-child td {
@@ -445,15 +445,15 @@
color: $color-docker;
&.image-icon {
- color: #a78bfa; // Purple for images
+ color: $violet; // Purple for images
}
&.network-icon {
- color: #34d399; // Green for networks
+ color: $success; // Green for networks
}
&.volume-icon {
- color: #fbbf24; // Yellow for volumes
+ color: $warning; // Yellow for volumes
}
}
@@ -776,10 +776,10 @@
box-shadow: $shadow-md;
}
- &[data-kind='containers'] .dx-stat-icon { color: #3b82f6; background: rgba(59, 130, 246, 0.12); }
- &[data-kind='images'] .dx-stat-icon { color: #8b5cf6; background: rgba(139, 92, 246, 0.12); }
- &[data-kind='volumes'] .dx-stat-icon { color: #10b981; background: rgba(16, 185, 129, 0.12); }
- &[data-kind='networks'] .dx-stat-icon { color: #f59e0b; background: rgba(245, 158, 11, 0.12); }
+ &[data-kind='containers'] .dx-stat-icon { color: $info; background: fade($info, 12%); }
+ &[data-kind='images'] .dx-stat-icon { color: $violet; background: fade($violet, 12%); }
+ &[data-kind='volumes'] .dx-stat-icon { color: $success; background: fade($success, 12%); }
+ &[data-kind='networks'] .dx-stat-icon { color: $warning; background: fade($warning, 12%); }
}
.dx-stat-icon {
@@ -1004,7 +1004,7 @@
font-size: $font-size-xs;
span { @include truncate(); }
- svg { color: #8b5cf6; flex-shrink: 0; }
+ svg { color: $violet; flex-shrink: 0; }
}
.dx-card-detail {
@@ -1079,7 +1079,7 @@
@include transition(width);
&.cpu { background: $accent-primary; }
- &.mem { background: #10b981; }
+ &.mem { background: $success; }
}
.dx-res-value {
@@ -1140,31 +1140,38 @@
flex-direction: column;
}
+// Status filter rendered as a segmented control (redesign seg look).
.dx-filter-chips {
- display: flex;
+ display: inline-flex;
align-items: center;
- gap: $space-2;
+ gap: 2px;
flex-wrap: wrap;
+ background: var(--surface-2);
+ border: 1px solid var(--border);
+ border-radius: 9px;
+ padding: 3px;
.filter-chip {
display: inline-flex;
align-items: center;
gap: $space-2;
- min-height: 30px;
+ min-height: 28px;
padding: 0 $space-3;
- border: 1px solid $border-default;
- border-radius: $radius-full;
+ border: 1px solid transparent;
+ border-radius: 6px;
background: transparent;
- color: $text-secondary;
+ color: $text-tertiary;
font-size: $font-size-xs;
+ font-weight: $font-weight-medium;
cursor: pointer;
@include transition(all);
- &:hover:not(:disabled),
+ &:hover:not(:disabled) { color: $text-primary; }
+
&.active {
- border-color: $accent-primary;
- background: $accent-glow;
- color: $accent-primary;
+ background: var(--surface-3);
+ color: $text-primary;
+ box-shadow: var(--shadow-sm);
}
&:disabled {
@@ -1175,11 +1182,23 @@
.filter-chip-count {
font-family: $font-mono;
+ font-size: 10.5px;
color: inherit;
- opacity: 0.8;
+ opacity: 0.7;
}
}
+// KPI tile strip atop the Docker content area (uses the shared .sk-kpi cards).
+.dx-kpi-strip {
+ display: grid;
+ grid-template-columns: repeat(4, 1fr);
+ gap: $space-4;
+ margin-bottom: $space-4;
+
+ @media (max-width: $breakpoint-lg) { grid-template-columns: repeat(2, 1fr); }
+ @media (max-width: $breakpoint-sm) { grid-template-columns: 1fr; }
+}
+
.dx-search-field {
position: relative;
display: flex;
@@ -1517,8 +1536,8 @@
width: 38px;
height: 38px;
border-radius: $radius-md;
- background: rgba(59, 130, 246, 0.12);
- color: #3b82f6;
+ background: fade($info, 12%);
+ color: $info;
display: flex;
align-items: center;
justify-content: center;
diff --git a/frontend/src/styles/pages/_marketplace.scss b/frontend/src/styles/pages/_marketplace.scss
index 165963af..907748e6 100644
--- a/frontend/src/styles/pages/_marketplace.scss
+++ b/frontend/src/styles/pages/_marketplace.scss
@@ -34,13 +34,15 @@
gap: $space-2;
margin-bottom: $space-3;
color: $accent-primary;
- font-size: $font-size-sm;
- font-weight: $font-weight-semibold;
- letter-spacing: 0;
+ font-family: var(--mono);
+ font-size: 11px;
+ font-weight: $font-weight-medium;
+ letter-spacing: 0.1em;
+ text-transform: uppercase;
svg {
- width: 16px;
- height: 16px;
+ width: 15px;
+ height: 15px;
}
}
@@ -141,10 +143,11 @@
.marketplace-kicker {
margin: 0 0 $space-1;
- color: $text-tertiary;
+ color: var(--text-ghost);
+ font-family: var(--mono);
font-size: $font-size-xs;
- font-weight: $font-weight-semibold;
- letter-spacing: 0;
+ font-weight: $font-weight-medium;
+ letter-spacing: 0.12em;
text-transform: uppercase;
}
@@ -169,7 +172,7 @@
&:hover {
transform: translateY(-2px);
border-color: $border-active;
- box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
+ box-shadow: var(--shadow-lg);
}
}
@@ -375,15 +378,16 @@
height: 15px;
}
- &:hover,
- &--active {
+ &:hover {
border-color: $border-active;
background: $bg-hover;
color: $text-primary;
}
&--active {
- border-color: $accent-primary;
+ border-color: var(--accent-dim);
+ background: var(--accent-bg);
+ color: var(--accent-bright);
}
}
diff --git a/frontend/src/styles/pages/_settings.scss b/frontend/src/styles/pages/_settings.scss
index afb3ede6..426bd98f 100644
--- a/frontend/src/styles/pages/_settings.scss
+++ b/frontend/src/styles/pages/_settings.scss
@@ -534,15 +534,15 @@
border: 1px solid $border-subtle;
.preview-sidebar {
- background: #0f0f11;
+ background: #0d0f15;
}
.preview-content {
- background: #09090b;
+ background: #0a0b0e;
}
.preview-card {
- background: #18181b;
+ background: #101218;
}
}
@@ -564,10 +564,10 @@
&.system {
border: 1px solid $border-subtle;
- background: linear-gradient(135deg, #09090b 50%, #ffffff 50%);
+ background: linear-gradient(135deg, #0a0b0e 50%, #ffffff 50%);
.preview-sidebar {
- background: linear-gradient(180deg, #0f0f11 50%, #f5f5f5 50%);
+ background: linear-gradient(180deg, #0d0f15 50%, #f1f3f9 50%);
}
.preview-content {
@@ -575,7 +575,7 @@
}
.preview-card {
- background: linear-gradient(135deg, #18181b 50%, #f5f5f5 50%);
+ background: linear-gradient(135deg, #101218 50%, #f1f3f9 50%);
}
}
}
@@ -653,7 +653,7 @@
height: 0;
&:checked + .toggle-slider {
- background: $accent-primary;
+ background: linear-gradient(160deg, var(--accent-bright), var(--accent-primary));
&::before {
transform: translateX(20px);
@@ -661,7 +661,7 @@
}
&:focus + .toggle-slider {
- box-shadow: 0 0 0 2px fade($accent-primary-raw, 30%);
+ box-shadow: 0 0 0 2px var(--accent-bg);
}
}
@@ -672,7 +672,8 @@
left: 0;
right: 0;
bottom: 0;
- background: $border-active;
+ background: var(--surface-3);
+ border: 1px solid var(--border);
border-radius: 24px;
transition: all $transition-fast;
@@ -695,14 +696,16 @@
.toggle-switch:not(:has(input)) {
width: 44px;
height: 24px;
- background: $border-active;
+ background: var(--surface-3);
+ border: 1px solid var(--border);
border-radius: 24px;
cursor: pointer;
transition: background $transition-fast;
flex-shrink: 0;
&.on {
- background: $accent-primary;
+ background: linear-gradient(160deg, var(--accent-bright), var(--accent-primary));
+ border-color: transparent;
.toggle-knob {
transform: translateX(20px);