diff --git a/craft/src/panels/left/PagesPanel.tsx b/craft/src/panels/left/PagesPanel.tsx index 02f1abe..106c930 100644 --- a/craft/src/panels/left/PagesPanel.tsx +++ b/craft/src/panels/left/PagesPanel.tsx @@ -58,18 +58,23 @@ export const PagesPanel: React.FC = () => { .replace(/-+/g, '-'); }; - /* ---------- Zone button style ---------- */ - const zoneButtonStyle = (isActive: boolean): React.CSSProperties => ({ + /* ---------- Zone row style ---------- + * Same neutral surface language as the page-list rows below (Item 11) -- + * header/footer are just two more items in the tree, not a louder, + * differently-colored category. The active/editing state reuses the same + * accent-outline treatment the page list already uses for the active page, + * so there's one consistent "this is what's currently open" affordance. */ + const zoneRowStyle = (isActive: boolean): React.CSSProperties => ({ display: 'flex', alignItems: 'center', gap: 8, width: '100%', - padding: '10px 12px', + padding: '7px 10px', fontSize: 12, - fontWeight: 600, - color: isActive ? '#f59e0b' : '#fbbf24', - background: isActive ? 'rgba(245, 158, 11, 0.15)' : 'rgba(245, 158, 11, 0.06)', - border: `1px solid ${isActive ? 'rgba(245, 158, 11, 0.5)' : 'rgba(245, 158, 11, 0.2)'}`, + fontWeight: isActive ? 600 : 500, + color: isActive ? 'var(--color-accent)' : 'var(--color-text-muted)', + background: isActive ? 'var(--color-accent-subtle)' : 'var(--color-bg-elevated)', + border: `1px solid ${isActive ? 'var(--color-accent)' : 'var(--color-border)'}`, borderRadius: 'var(--radius-md)', cursor: 'pointer', transition: 'all var(--transition-fast)', @@ -78,57 +83,35 @@ export const PagesPanel: React.FC = () => { return (