diff --git a/apps/ide/src/renderer/agentFirst/agentFirst.css b/apps/ide/src/renderer/agentFirst/agentFirst.css index 8e34545a..99a4e533 100644 --- a/apps/ide/src/renderer/agentFirst/agentFirst.css +++ b/apps/ide/src/renderer/agentFirst/agentFirst.css @@ -25,30 +25,30 @@ .workbench.mode-agent:not(.has-scene) { --dock-col: 0px; } .workbench.mode-agent:not(.has-scene) .af-dock { display: none; } } -.af-dock-head { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line); font-weight: 600; } +.af-dock-head { display: flex; align-items: center; gap: 8px; min-height: var(--header-h); padding: 0 6px 0 12px; border-bottom: 1px solid var(--line); background: var(--chrome); font-weight: 600; } .af-dock-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; } .af-dock-body p { margin: 0; max-width: 340px; line-height: 1.5; } .af-dock-body .primary-button { width: auto; margin: 0; } .af-dock-art { width: 72px; height: 72px; opacity: 0.6; } .af-dock-art path { fill: none; stroke: var(--accent); stroke-width: 1.2; stroke-linejoin: round; } -.af-live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); } +.af-live { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: 600; color: var(--muted); } .af-live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); } .af-live[data-state='live'] { color: var(--accent); } .af-live[data-state='live']::before { background: var(--accent); } /* ---- Chats column (AF7) -------------------------------------------------- */ .af-sessions { display: flex; flex-direction: column; gap: 8px; padding: 10px 0 12px; min-height: 100%; } -.af-mode-switch { display: flex; margin: 0 12px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; } -.af-mode-button { flex: 1; padding: 4px 8px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; } -.af-mode-button + .af-mode-button { border-left: 1px solid var(--line); } -.af-mode-button.is-active { background: var(--hover); color: var(--fg); font-weight: 600; } +.af-mode-switch { display: flex; gap: 2px; margin: 0 12px; padding: 2px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--chrome); } +.af-mode-button { flex: 1; min-height: var(--control-h-sm); padding: 0 8px; border: 0; border-radius: var(--radius); background: none; color: var(--muted); font: inherit; font-size: var(--fs-sm); cursor: pointer; } +.af-mode-button:hover:not(.is-active) { color: var(--fg); } +.af-mode-button.is-active { background: var(--raised); color: var(--fg); font-weight: 600; box-shadow: 0 0 0 1px var(--line-strong); } .af-mode-button:focus-visible { outline: 1px solid var(--accent); outline-offset: -1px; } .af-new-row { display: flex; gap: 6px; margin: 0 12px; } .af-new-chat { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: auto; margin: 0; flex: 0 0 auto; white-space: nowrap; padding-inline: 12px; } .af-new-chat svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; } .af-new-agent { flex: 1 1 0; min-width: 0; } .af-search { margin: 0 12px; width: calc(100% - 24px); } -.af-section-title { display: flex; align-items: center; justify-content: space-between; margin: 6px 12px 0; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); cursor: default; } +.af-section-title { display: flex; align-items: center; justify-content: space-between; margin: 10px 12px 0; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); cursor: default; } .af-agents > summary { list-style: none; cursor: pointer; } .af-agents > summary::-webkit-details-marker { display: none; } .af-projects { display: flex; flex-direction: column; gap: 2px; } @@ -58,8 +58,8 @@ .af-project-head[aria-expanded='true'] .af-project-chevron { transform: rotate(90deg); } .af-project-head.is-current .af-project-icon { stroke: var(--accent); } .af-project-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } -.af-project-count { font-weight: 400; font-size: 11px; } -.af-project-open { margin: 0 0 2px 32px; font-size: 12px; } +.af-project-count { font-weight: 400; font-size: var(--fs-xs); } +.af-project-open { margin: 0 0 2px 32px; font-size: var(--fs-sm); } .af-session-list { list-style: none; margin: 0; padding: 0; } .af-session { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 8px 4px 28px; cursor: pointer; } .af-session:hover { background: var(--hover); } @@ -68,11 +68,11 @@ .af-session-main { display: flex; flex-direction: column; flex: 1; min-width: 0; } .af-session-title, .af-session-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .af-session.is-unread .af-session-title { font-weight: 600; } -.af-session-sub { font-size: 11px; } +.af-session-sub { font-size: var(--fs-xs); } .af-session-actions { display: flex; visibility: hidden; } .af-session:hover .af-session-actions, .af-session:focus-within .af-session-actions { visibility: visible; } .af-rename { flex: 1; min-width: 0; } -.af-confirm { display: flex; align-items: center; gap: 6px; padding: 6px 8px 6px 28px; font-size: 12px; } +.af-confirm { display: flex; align-items: center; gap: 6px; padding: 6px 8px 6px 28px; font-size: var(--fs-sm); } .af-confirm span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .af-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--line); } .af-dot[data-status='running'] { background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); animation: af-pulse 1.4s ease-in-out infinite; } @@ -81,21 +81,21 @@ .af-dot[data-status='idle'][data-unread='true'] { background: var(--fg); } @keyframes af-pulse { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 10%, transparent); } } @media (prefers-reduced-motion: reduce) { .af-dot[data-status='running'] { animation: none; } } -.af-badge { flex: none; padding: 0 6px; border: 1px solid var(--line); border-radius: 10px; font-size: 10px; line-height: 16px; color: var(--muted); white-space: nowrap; } +.af-badge { flex: none; padding: 0 6px; border: 1px solid var(--line); border-radius: var(--radius-pill); font-size: var(--fs-2xs); line-height: 16px; color: var(--muted); white-space: nowrap; } .af-badge[data-availability='ready'] { color: var(--accent); border-color: var(--accent); } .af-badge[data-availability='needs-login'] { color: var(--warn); border-color: var(--warn); } .af-badge[data-availability='error'] { color: var(--crit); border-color: var(--crit); } .af-pending { color: var(--warn); border-color: var(--warn); } .af-agent-list { list-style: none; margin: 4px 0 0; padding: 0; } -.af-agent { display: grid; gap: 2px; padding: 6px 12px; border-bottom: 1px solid var(--line); } +.af-agent { display: grid; gap: 4px; padding: 8px 12px; border-bottom: 1px solid var(--line); } +.af-agent:first-child { border-top: 1px solid var(--line); } .af-agent-main { display: flex; align-items: center; gap: 8px; } .af-agent-name { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } -.af-agent-detail { margin: 0; font-size: 12px; overflow-wrap: anywhere; } -.af-agent-actions { display: flex; flex-wrap: wrap; gap: 4px; } +.af-agent-detail { margin: 0; font-size: var(--fs-sm); line-height: 1.45; overflow-wrap: anywhere; } +.af-agent-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; } .af-agent-actions:empty { display: none; } -.af-small-button { padding: 2px 8px; font-size: 12px; } -.af-agents-note { margin: 6px 12px 0; font-size: 11px; line-height: 1.4; } -.secondary-button.is-danger { color: var(--crit); border-color: color-mix(in srgb, var(--crit) 50%, var(--line)); } +.af-small-button { min-height: var(--control-h-sm); padding: 0 8px; font-size: var(--fs-sm); } +.af-agents-note { margin: 6px 12px 0; font-size: var(--fs-xs); line-height: 1.4; } .af-link-button { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; color: var(--accent); font: inherit; cursor: pointer; } .af-link-button:hover { text-decoration: underline; } .af-link-button svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; } @@ -104,79 +104,78 @@ .af-chat { display: flex; flex-direction: column; height: 100%; min-height: 0; background: var(--editor); } .af-chat-header { display: flex; align-items: center; gap: 10px; padding: 8px 16px; border-bottom: 1px solid var(--line); } .af-chat-heading { flex: 1; min-width: 0; } -.af-chat-title { margin: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } -.af-chat-sub { display: flex; align-items: center; gap: 8px; font-size: 12px; } -.af-status-pill { padding: 0 6px; border-radius: 8px; font-size: 11px; line-height: 16px; background: var(--hover); color: var(--muted); } +.af-chat-title { margin: 0; font-size: var(--fs-lg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } +.af-chat-sub { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); } +.af-status-pill { padding: 0 6px; border-radius: var(--radius-pill); font-size: var(--fs-xs); line-height: 16px; background: var(--hover); color: var(--muted); } .af-status-pill[data-status='running'] { color: var(--accent); } .af-status-pill[data-status='awaiting'] { color: var(--warn); } .af-status-pill[data-status='error'] { color: var(--crit); } -.af-usage { font-size: 11px; white-space: nowrap; } +.af-usage { font-size: var(--fs-xs); white-space: nowrap; } .af-usage[hidden] { display: none; } -.af-header-button { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--warn); border-radius: 4px; background: none; color: var(--fg); font: inherit; font-size: 12px; cursor: pointer; } +.af-header-button { display: inline-flex; align-items: center; gap: 6px; min-height: var(--control-h); padding: 0 10px; border: 1px solid var(--warn); border-radius: var(--radius); background: none; color: var(--fg); font: inherit; font-size: var(--fs-sm); cursor: pointer; } .af-header-button[hidden] { display: none; } .af-header-button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; } .af-transcript { flex: 1; min-height: 0; overflow: auto; padding: 16px max(16px, calc((100% - 860px) / 2)); display: flex; flex-direction: column; gap: 12px; } .af-empty { margin: auto 0; text-align: center; padding: 24px; } .af-empty[hidden] { display: none; } -.af-empty h3 { margin: 0 0 8px; font-size: 18px; } +.af-empty h3 { margin: 0 0 8px; font-size: var(--fs-xl); } .af-empty p { margin: 0 auto; max-width: 480px; line-height: 1.5; } .af-message { min-width: 0; overflow-wrap: anywhere; line-height: 1.55; } -.af-message.is-user { align-self: flex-end; max-width: 85%; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--hover); } +.af-message.is-user { align-self: flex-end; max-width: 85%; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--hover); } .af-user-text { margin: 0; white-space: pre-wrap; } -.af-message-actions { display: flex; gap: 8px; margin-top: 4px; font-size: 12px; } +.af-message-actions { display: flex; gap: 8px; margin-top: 4px; font-size: var(--fs-sm); } .af-message-actions:empty { display: none; } .af-message-body > :first-child { margin-top: 0; } .af-message-body > :last-child { margin-bottom: 0; } .af-message.is-streaming .af-message-body::after { content: '\258D'; color: var(--accent); } -.af-thought { border-left: 2px solid var(--line); padding-left: 10px; color: var(--muted); font-size: 12px; } +.af-thought { border-left: 2px solid var(--line); padding-left: 10px; color: var(--muted); font-size: var(--fs-sm); } .af-thought summary { cursor: pointer; } .af-thought-body { white-space: pre-wrap; margin-top: 4px; } -.af-tool { border: 1px solid var(--line); border-radius: 6px; background: var(--panel); min-width: 0; } +.af-tool { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--panel); min-width: 0; } .af-tool[data-status='failed'] { border-color: color-mix(in srgb, var(--crit) 60%, var(--line)); } -.af-tool-head { display: flex; align-items: center; gap: 8px; padding: 5px 10px; cursor: pointer; list-style: none; font-size: 12px; min-width: 0; } +.af-tool-head { display: flex; align-items: center; gap: 8px; padding: 5px 10px; cursor: pointer; list-style: none; font-size: var(--fs-sm); min-width: 0; } .af-tool-head::-webkit-details-marker { display: none; } .af-tool-head svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; } .af-tool-chevron { color: var(--muted); transition: transform 0.1s; } .af-tool[open] .af-tool-chevron { transform: rotate(90deg); } .af-tool-icon { color: var(--accent); } -.af-tool-title { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, 'Cascadia Code', Menlo, Consolas, monospace; } +.af-tool-title { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-mono); } .af-tool-status { margin-left: auto; flex: none; color: var(--muted); } .af-tool-status[data-status='in_progress'] { color: var(--accent); } .af-tool-status[data-status='failed'] { color: var(--crit); } .af-tool-body { padding: 0 10px 8px; display: grid; gap: 8px; min-width: 0; } .af-tool-body:empty { display: none; } -.af-tool-text { font-size: 12px; } -.af-tool-raw, .af-terminal-output { margin: 0; padding: 8px; max-height: 280px; overflow: auto; border-radius: 4px; background: var(--editor); font: 12px/1.45 ui-monospace, 'Cascadia Code', Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; } -.af-terminal-exit { margin: 2px 0 0; font-size: 11px; } +.af-tool-text { font-size: var(--fs-sm); } +.af-tool-raw, .af-terminal-output { margin: 0; padding: 8px; max-height: 280px; overflow: auto; border-radius: var(--radius); background: var(--editor); font: var(--fs-sm)/1.45 var(--font-mono); white-space: pre-wrap; overflow-wrap: anywhere; } +.af-terminal-exit { margin: 2px 0 0; font-size: var(--fs-xs); } .af-terminal-exit.is-error { color: var(--crit); } -.af-file-link { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0; border: 0; background: none; color: var(--accent); font: 12px ui-monospace, 'Cascadia Code', Menlo, Consolas, monospace; cursor: pointer; } +.af-file-link { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0; border: 0; background: none; color: var(--accent); font: var(--fs-sm) var(--font-mono); cursor: pointer; } .af-file-link:hover { text-decoration: underline; } -.af-diff-block { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; } +.af-diff-block { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; } .af-diff-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 3px 8px; border-bottom: 1px solid var(--line); background: var(--editor); } -.af-diff-counts { font-size: 11px; white-space: nowrap; } -.is-add { color: #3fb950; } +.af-diff-counts { font-size: var(--fs-xs); white-space: nowrap; } +.is-add { color: var(--ok); } .is-remove { color: var(--crit); } -@media (prefers-color-scheme: light) { .is-add { color: #1a7f37; } } -.af-diff { margin: 0; max-height: 360px; overflow: auto; background: var(--editor); font: 12px/1.45 ui-monospace, 'Cascadia Code', Menlo, Consolas, monospace; } +.af-diff { margin: 0; max-height: 360px; overflow: auto; background: var(--editor); font: var(--fs-sm)/1.45 var(--font-mono); } .af-diff-line { display: block; padding: 0 8px; white-space: pre; } -.af-diff-line.is-add { background: color-mix(in srgb, #3fb950 14%, transparent); color: var(--fg); } +.af-diff-line.is-add { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--fg); } .af-diff-line.is-remove { background: color-mix(in srgb, var(--crit) 14%, transparent); color: var(--fg); } -.af-diff-line.is-gap { color: var(--muted); background: var(--panel); text-align: center; font-size: 11px; } -.af-permission { display: grid; gap: 8px; padding: 10px 12px; border: 1px solid var(--warn); border-radius: 6px; background: color-mix(in srgb, var(--warn) 8%, var(--panel)); } +.af-diff-line.is-gap { color: var(--muted); background: var(--panel); text-align: center; font-size: var(--fs-xs); } +.af-permission { display: grid; gap: 8px; padding: 10px 12px; border: 1px solid var(--warn); border-radius: var(--radius-md); background: color-mix(in srgb, var(--warn) 8%, var(--panel)); } .af-permission.is-resolved { border-color: var(--line); background: var(--panel); } .af-permission-title { margin: 0; font-weight: 600; overflow-wrap: anywhere; } .af-permission-actions { display: flex; flex-wrap: wrap; gap: 6px; } .af-permission-actions .primary-button { width: auto; margin: 0; } -.af-notice { margin: 0; padding: 6px 10px; border-radius: 4px; background: var(--panel); font-size: 12px; overflow-wrap: anywhere; } -.af-notice.is-warning { border-left: 3px solid var(--warn); } -.af-notice.is-error { border-left: 3px solid var(--crit); } -.af-turn-end { display: grid; gap: 4px; font-size: 12px; } +.af-notice { margin: 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--panel); font-size: var(--fs-sm); line-height: 1.45; overflow-wrap: anywhere; } +.af-notice.is-warning { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); border-left: 3px solid var(--warn); background: color-mix(in srgb, var(--warn) 6%, var(--panel)); } +.af-notice.is-error { border-color: color-mix(in srgb, var(--crit) 45%, var(--line)); border-left: 3px solid var(--crit); background: color-mix(in srgb, var(--crit) 6%, var(--panel)); } +.af-turn-end { display: grid; gap: 4px; font-size: var(--fs-sm); } .af-turn-end:empty { display: none; } -.af-turn-files { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 6px 10px; border: 1px dashed var(--line); border-radius: 6px; } +.af-turn-files { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 6px 10px; border: 1px dashed var(--line); border-radius: var(--radius-md); } .af-turn-file { display: inline-flex; align-items: center; gap: 6px; min-width: 0; } .af-stop { margin: 0; } -.af-stop.is-error { color: var(--crit); } -.af-plan { margin: 0 max(16px, calc((100% - 860px) / 2)); border: 1px solid var(--line); border-bottom: 0; border-radius: 6px 6px 0 0; background: var(--panel); font-size: 12px; } +.af-stop.is-error { color: var(--muted); font-size: var(--fs-xs); } +.af-plan { margin: 0 max(16px, calc((100% - 860px) / 2)); border: 1px solid var(--line); border-bottom: 0; border-radius: var(--radius-md) 6px 0 0; background: var(--panel); font-size: var(--fs-sm); } .af-plan[hidden] { display: none; } .af-plan-summary { padding: 5px 10px; cursor: pointer; font-weight: 600; } .af-plan-list { list-style: none; margin: 0; padding: 0 10px 8px; display: grid; gap: 2px; max-height: 160px; overflow: auto; } @@ -184,28 +183,35 @@ .af-plan-entry[data-status='completed'] { color: var(--muted); text-decoration: line-through; } .af-plan-entry[data-status='in_progress'] { color: var(--accent); } .af-plan-mark { flex: none; width: 12px; text-align: center; } -.af-composer { display: grid; gap: 6px; margin: 0 max(16px, calc((100% - 860px) / 2)) 14px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); } -.af-composer:focus-within { border-color: var(--accent); } +.af-composer { display: grid; gap: 8px; margin: 0 max(16px, calc((100% - 860px) / 2)) 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); } +.af-composer:focus-within { border-color: var(--accent); box-shadow: var(--shadow-sm); } .af-input-wrap { position: relative; display: grid; } .af-input { min-height: 44px; max-height: 40vh; padding: 2px 0; border: 0; background: none; color: var(--fg); font: inherit; line-height: 1.5; resize: none; field-sizing: content; } .af-input:focus { outline: none; } -.af-queue { margin: 0; font-size: 11px; } +.af-queue { margin: 0; font-size: var(--fs-xs); } .af-queue[hidden] { display: none; } .af-composer-row { display: flex; align-items: center; gap: 6px; min-width: 0; flex-wrap: wrap; } .af-options { display: contents; } .af-spacer { flex: 1; } -.af-select { max-width: 180px; height: 24px; padding: 0 4px; border: 1px solid var(--line); border-radius: 4px; background: var(--editor); color: var(--fg); font: inherit; font-size: 12px; } +.af-select { max-width: 180px; padding: 0 4px; font-size: var(--fs-sm); } +/* V4: each agent option is a chip that names itself (Model, Effort...), not a bare value. */ +.af-option { display: inline-flex; align-items: center; gap: 2px; min-width: 0; height: var(--control-h); padding-left: 8px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--editor); } +.af-option:focus-within { border-color: var(--accent); } +.af-option:has(> select[hidden]) { display: none; } +.af-option-name { flex: none; color: var(--muted); font-size: var(--fs-xs); white-space: nowrap; } +.af-option .af-select { height: calc(var(--control-h) - 2px); max-width: 150px; border: 0; background: transparent; } +.af-option .af-select:focus { outline: none; } .af-select[hidden] { display: none; } -.af-send { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 0; border-radius: 7px; background: var(--accent); color: var(--status-fg); cursor: pointer; } +.af-send { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 0; border-radius: var(--radius-md); background: var(--button-bg); color: var(--on-accent); cursor: pointer; } .af-send:disabled { opacity: 0.4; cursor: default; } .af-send[data-action='stop'] { background: var(--fg); color: var(--editor); } .af-send svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; } .af-send[data-action='stop'] svg { fill: currentColor; } -.af-slash-name { font-family: ui-monospace, 'Cascadia Code', Menlo, Consolas, monospace; } +.af-slash-name { font-family: var(--font-mono); } /* ---- Project instructions (AF11) ---- */ .af-instr-list { list-style: none; margin: 0; padding: 0 4px; } -.af-instr { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 4px; } +.af-instr { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: var(--radius); } .af-instr:hover { background: var(--hover); } .af-instr-main { display: flex; flex-direction: column; min-width: 0; flex: 1; } .af-instr-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } @@ -215,8 +221,8 @@ /* ---- Installing agents (AF2) ---- */ .af-agent-setup { display: grid; gap: 6px; } .af-agent-setup:has(.af-agent-actions:empty):has(.af-install[hidden]) { display: none; } -.af-agent-version { font-size: 11px; white-space: nowrap; } -.af-install { display: grid; gap: 6px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--editor); font-size: 12px; } +.af-agent-version { font-size: var(--fs-xs); white-space: nowrap; } +.af-install { display: grid; gap: 6px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--editor); font-size: var(--fs-sm); } .af-install[hidden] { display: none; } .af-install-title { margin: 0; font-weight: 600; } .af-install-list { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 2px 10px; margin: 0; } @@ -228,28 +234,28 @@ .af-install-error { margin: 0; color: var(--crit); white-space: pre-wrap; overflow-wrap: anywhere; } /* ---- First run (AF13) ---- */ -.af-guide { width: min(640px, 100%); margin: 24px auto 0; padding: 16px 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); text-align: left; } +.af-guide { width: min(640px, 100%); margin: 24px auto 0; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); text-align: left; } .af-guide-tab { height: 100%; overflow: auto; padding: 24px 16px; background: var(--editor); } .af-guide-tab .af-guide { margin-top: 0; } .af-guide-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; } -.af-guide-title { margin: 0; font-size: 16px; } -.af-guide-lead { margin: 4px 0 0; font-size: 12px; } -.af-guide-skip { font-size: 12px; } +.af-guide-title { margin: 0; font-size: var(--fs-xl); } +.af-guide-lead { margin: 4px 0 0; font-size: var(--fs-sm); } +.af-guide-skip { font-size: var(--fs-sm); } .af-guide-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; } .af-guide-step { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; } -.af-guide-number { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border: 1px solid var(--line); border-radius: 50%; font-size: 12px; color: var(--muted); } +.af-guide-number { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border: 1px solid var(--line); border-radius: 50%; font-size: var(--fs-sm); color: var(--muted); } .af-guide-step[data-state='current'] .af-guide-number { border-color: var(--accent); color: var(--accent); font-weight: 600; } -.af-guide-step[data-state='done'] .af-guide-number { background: var(--accent); border-color: var(--accent); color: var(--status-fg); } +.af-guide-step[data-state='done'] .af-guide-number { background: var(--button-bg); border-color: var(--accent); color: var(--on-accent); } .af-guide-body { display: grid; gap: 6px; min-width: 0; } -.af-guide-step-title { display: flex; align-items: center; gap: 8px; margin: 1px 0 0; font-size: 13px; } -.af-guide-state { padding: 0 6px; border: 1px solid var(--line); border-radius: 8px; font-size: 10px; font-weight: 400; line-height: 16px; color: var(--muted); } +.af-guide-step-title { display: flex; align-items: center; gap: 8px; margin: 1px 0 0; font-size: var(--fs-md); } +.af-guide-state { padding: 0 6px; border: 1px solid var(--line); border-radius: var(--radius-pill); font-size: var(--fs-2xs); font-weight: 400; line-height: 16px; color: var(--muted); } .af-guide-step[data-state='current'] .af-guide-state { color: var(--accent); border-color: var(--accent); } .af-guide-step[data-state='todo'] .af-guide-step-title { color: var(--muted); } -.af-guide-text { margin: 0; font-size: 12px; line-height: 1.45; } +.af-guide-text { margin: 0; font-size: var(--fs-sm); line-height: 1.45; } .af-guide-actions { display: flex; flex-wrap: wrap; gap: 6px; } .af-guide-actions .primary-button { width: auto; margin: 0; } .af-guide-agents { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; } -.af-guide-agent { display: grid; gap: 4px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; } +.af-guide-agent { display: grid; gap: 4px; padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--radius-md); } .af-guide-agent-main { display: flex; align-items: center; gap: 8px; cursor: pointer; } .af-guide-agent-main input:disabled + .af-agent-name { color: var(--muted); } @@ -260,46 +266,45 @@ /* ---- Restore, metric delta and the Changes tab (AF5, AF6, AF9) ------------- */ .af-message-actions { flex-wrap: wrap; } -.af-restore-confirm { flex-basis: 100%; display: grid; gap: 6px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); } +.af-restore-confirm { flex-basis: 100%; display: grid; gap: 6px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--panel); } .af-restore-confirm[hidden] { display: none; } .af-restore-confirm p { margin: 0; } -.af-restore-files { margin: 0; padding-left: 18px; max-height: 140px; overflow: auto; font-family: ui-monospace, 'Cascadia Code', Menlo, Consolas, monospace; font-size: 11px; } +.af-restore-files { margin: 0; padding-left: 18px; max-height: 140px; overflow: auto; font-family: var(--font-mono); font-size: var(--fs-xs); } .af-restore-actions { display: flex; gap: 8px; } .af-metric-delta summary { cursor: pointer; color: var(--muted); } .af-metric-delta-label { font-weight: 600; color: var(--fg); } .af-metric-delta p { margin: 4px 0; } -.af-metric-delta-files { margin: 0; padding-left: 18px; font-family: ui-monospace, 'Cascadia Code', Menlo, Consolas, monospace; font-size: 11px; } +.af-metric-delta-files { margin: 0; padding-left: 18px; font-family: var(--font-mono); font-size: var(--fs-xs); } .af-link-button.is-danger { color: var(--crit); } .af-link-button:disabled { opacity: 0.5; cursor: default; text-decoration: none; } .af-changes { display: flex; flex-direction: column; height: 100%; min-height: 0; background: var(--editor); } .af-changes-header { display: flex; align-items: center; gap: 10px; padding: 8px 16px; border-bottom: 1px solid var(--line); } -.af-changes-summary { font-size: 12px; } -.af-changes-notice { margin: 0; padding: 8px 16px; border-bottom: 1px solid var(--line); font-size: 12px; } +.af-changes-summary { font-size: var(--fs-sm); } +.af-changes-notice { margin: 0; padding: 8px 16px; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); } .af-changes-notice[hidden] { display: none; } .af-changes-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(220px, 32%) minmax(0, 1fr); } .af-changes-list { margin: 0; padding: 4px 0; list-style: none; overflow: auto; border-right: 1px solid var(--line); } -.af-changes-row { display: flex; align-items: center; gap: 6px; padding: 3px 12px; font-size: 13px; cursor: pointer; white-space: nowrap; } +.af-changes-row { display: flex; align-items: center; gap: 6px; padding: 3px 12px; font-size: var(--fs-md); cursor: pointer; white-space: nowrap; } .af-changes-row:hover { background: var(--hover); } .af-changes-row.is-selected { background: var(--hover); box-shadow: inset 2px 0 var(--accent); } .af-changes-row:focus-visible { outline: 1px solid var(--accent); outline-offset: -1px; } -.af-changes-status { flex: none; width: 12px; font-size: 11px; font-weight: 700; text-align: center; color: var(--warn); } -.af-changes-status[data-status='added'] { color: #3fb950; } +.af-changes-status { flex: none; width: 12px; font-size: var(--fs-xs); font-weight: 700; text-align: center; color: var(--warn); } +.af-changes-status[data-status='added'] { color: var(--ok); } .af-changes-status[data-status='deleted'] { color: var(--crit); } .af-changes-name { overflow: hidden; text-overflow: ellipsis; } -.af-changes-folder { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 11px; } -.af-changes-actions { display: none; gap: 8px; font-size: 12px; } +.af-changes-folder { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: var(--fs-xs); } +.af-changes-actions { display: none; gap: 8px; font-size: var(--fs-sm); } .af-changes-row:hover .af-changes-actions, .af-changes-row.is-selected .af-changes-actions, .af-changes-row:focus-within .af-changes-actions { display: inline-flex; } .af-changes-diff { display: flex; flex-direction: column; min-width: 0; min-height: 0; } -.af-changes-diff-head { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-bottom: 1px solid var(--line); font-size: 12px; } -.af-changes-diff-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, 'Cascadia Code', Menlo, Consolas, monospace; } -.af-changes-diff-note { margin: 0; padding: 8px 12px; font-size: 12px; } +.af-changes-diff-head { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); } +.af-changes-diff-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-mono); } +.af-changes-diff-note { margin: 0; padding: 8px 12px; font-size: var(--fs-sm); } .af-changes-diff-note[hidden] { display: none; } .af-changes-diff-host { flex: 1; min-height: 0; } -@media (prefers-color-scheme: light) { .af-changes-status[data-status='added'] { color: #1a7f37; } } /* ---- Worktree chats (AF12) ------------------------------------------------ */ -.af-new-worktree { display: flex; align-items: center; gap: 6px; margin: -2px 12px 0; font-size: 12px; color: var(--muted); cursor: pointer; } +.af-new-worktree { display: flex; align-items: center; gap: 6px; margin: -2px 12px 0; font-size: var(--fs-sm); color: var(--muted); cursor: pointer; } .af-new-worktree[hidden] { display: none; } .af-new-worktree input { margin: 0; } .af-branch { max-width: 160px; overflow: hidden; text-overflow: ellipsis; color: var(--accent); border-color: var(--accent); } @@ -309,15 +314,15 @@ .af-confirm.has-worktree { flex-wrap: wrap; } .af-confirm-worktree { flex-basis: 100%; display: flex; align-items: center; gap: 6px; color: var(--muted); } .af-confirm-worktree input { margin: 0; } -.af-worktree { display: grid; gap: 6px; padding: 8px 16px; border-bottom: 1px solid var(--line); background: var(--panel); font-size: 12px; } +.af-worktree { display: grid; gap: 6px; padding: 8px 16px; border-bottom: 1px solid var(--line); background: var(--panel); font-size: var(--fs-sm); } .af-worktree[hidden], .af-worktree [hidden] { display: none; } .af-worktree-summary { margin: 0; } -.af-worktree-files { margin: 0; padding-left: 16px; font-family: var(--mono, monospace); font-size: 11px; overflow-wrap: anywhere; } +.af-worktree-files { margin: 0; padding-left: 16px; font-family: var(--font-mono); font-size: var(--fs-xs); overflow-wrap: anywhere; } .af-worktree-files:empty { display: none; } .af-worktree-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .af-worktree-message { flex: 1 1 200px; min-width: 0; } -.af-worktree-hint { font-size: 11px; } -.af-worktree-confirm { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 6px 8px; border: 1px solid var(--crit); border-radius: 4px; } +.af-worktree-hint { font-size: var(--fs-xs); } +.af-worktree-confirm { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 6px 8px; border: 1px solid var(--crit); border-radius: var(--radius); } .af-worktree-confirm span { flex: 1 1 200px; } .af-worktree-error { margin: 0; padding: 6px 8px; border-left: 3px solid var(--crit); background: var(--editor); overflow-wrap: anywhere; } @@ -348,5 +353,5 @@ } .af-import-when { flex: 0 0 auto; - font-size: 11px; + font-size: var(--fs-xs); } diff --git a/apps/ide/src/renderer/agentFirst/agentWorkbench.ts b/apps/ide/src/renderer/agentFirst/agentWorkbench.ts index ce1eb207..a3d7df41 100644 --- a/apps/ide/src/renderer/agentFirst/agentWorkbench.ts +++ b/apps/ide/src/renderer/agentFirst/agentWorkbench.ts @@ -6,7 +6,7 @@ import type { CustomEditorInput } from '../editor/customEditor.ts'; import type { EditorGroup } from '../editor/editorGroup.ts'; import type { NotificationCenter } from '../notifications.ts'; import type { Workbench } from '../workbench.ts'; -import { el } from '../dom.ts'; +import { closeIcon, el } from '../dom.ts'; import { createChatView, type ChatView, type ChatViewDeps } from './chatView.ts'; import { createSessionsView, type SessionsView } from './sessionsView.ts'; import { createInstructionsView, type InstructionsViewDeps } from './instructionsView.ts'; @@ -95,7 +95,7 @@ export function installAgentWorkbench(options: AgentWorkbenchOptions): AgentWork const artPath = document.createElementNS('http://www.w3.org/2000/svg', 'path'); artPath.setAttribute('d', DOCK_ART); art.append(artPath); - const hideDock = el('button', { className: 'icon-button', text: '×', attrs: { type: 'button', title: 'Hide the live analysis column', 'aria-label': 'Hide the live analysis column' } }); + const hideDock = el('button', { className: 'icon-button', attrs: { type: 'button', title: 'Hide the live analysis column', 'aria-label': 'Hide the live analysis column' } }, [closeIcon()]); hideDock.addEventListener('click', () => setDockHidden(true)); workbench.dockArea.replaceChildren( el('header', { className: 'af-dock-head' }, [el('span', { text: 'Live analysis' }), el('span', { className: 'af-live', text: 'Waiting', attrs: { 'data-state': 'idle' } }), el('span', { className: 'af-spacer' }), hideDock]), diff --git a/apps/ide/src/renderer/agentFirst/chatView.ts b/apps/ide/src/renderer/agentFirst/chatView.ts index aa07e8aa..811ff6cf 100644 --- a/apps/ide/src/renderer/agentFirst/chatView.ts +++ b/apps/ide/src/renderer/agentFirst/chatView.ts @@ -133,7 +133,7 @@ export function createChatView(sessionId: string, deps: ChatViewDeps): ChatView bar.chips, el('div', { className: 'af-input-wrap' }, [input, bar.popup, slashPopup]), queueNote, - el('div', { className: 'af-composer-row' }, [bar.attachButton, modeSelect, optionsSlot, el('span', { className: 'af-spacer' }), sendButton]), + el('div', { className: 'af-composer-row' }, [bar.attachButton, el('label', { className: 'af-option' }, [el('span', { className: 'af-option-name', text: 'Mode' }), modeSelect]), optionsSlot, el('span', { className: 'af-spacer' }), sendButton]), ]); const element = el('section', { className: 'af-chat', attrs: { 'data-testid': 'af-chat', 'data-session': sessionId } }, [header, worktreeBar.element, transcript, plan, composer]); @@ -485,7 +485,8 @@ export function createChatView(sessionId: string, deps: ChatViewDeps): ChatView } } - function configSelect(option: ConfigOptionView): HTMLSelectElement { + /** One of the agent's options (model, effort...): its name stays visible above the value (visual polish V4). */ + function configSelect(option: ConfigOptionView): HTMLElement { const select = el('select', { className: 'af-select', attrs: { 'aria-label': option.name, title: option.name, 'data-option': option.id } }); select.append(...option.values.map((value) => { const node = el('option', { text: value.name, attrs: { value: value.id, title: value.description ?? '' } }); @@ -495,7 +496,7 @@ export function createChatView(sessionId: string, deps: ChatViewDeps): ChatView select.addEventListener('change', () => { deps.api.setConfigOption(sessionId, option.id, select.value).catch((error: unknown) => deps.onStatus(errorText(error))); }); - return select; + return el('label', { className: 'af-option' }, [el('span', { className: 'af-option-name', text: option.name }), select]); } modeSelect.addEventListener('change', () => { diff --git a/apps/ide/src/renderer/agentFirst/sessionsView.ts b/apps/ide/src/renderer/agentFirst/sessionsView.ts index f0eb346a..a19caa8f 100644 --- a/apps/ide/src/renderer/agentFirst/sessionsView.ts +++ b/apps/ide/src/renderer/agentFirst/sessionsView.ts @@ -219,6 +219,10 @@ export function createSessionsView(container: HTMLElement, deps: SessionsViewDep return option; })); newChatButton.disabled = !agents.some((agent) => agent.kind === 'acp' && agent.availability !== 'missing'); + if (newChatButton.disabled) { + // Never an empty picker: say why New chat is off (visual polish V3). + agentSelect.prepend(el('option', { text: 'No agent yet', attrs: { value: '', disabled: '', selected: '' } })); + } const builtins = agents.filter((agent) => agent.kind === 'builtin'); const builtinRow: HTMLElement[] = []; if (builtins.length > 0) { diff --git a/apps/ide/src/renderer/debug/debug.css b/apps/ide/src/renderer/debug/debug.css index 78befc98..68ade709 100644 --- a/apps/ide/src/renderer/debug/debug.css +++ b/apps/ide/src/renderer/debug/debug.css @@ -9,15 +9,9 @@ .debug-config { flex: 1; min-width: 0; - height: 26px; - border: 1px solid var(--line); - border-radius: 4px; - background: var(--editor); - color: var(--fg); - font: inherit; } -.debug-start svg { fill: #3fb950; stroke: #3fb950; } -.debug-status { margin: 0 12px 8px; font-size: 12px; } +.debug-start svg { fill: var(--ok); stroke: var(--ok); } +.debug-status { margin: 0 12px 8px; font-size: var(--fs-sm); } .debug-status[hidden] { display: none; } .debug-status.is-warning { color: var(--warn); } .debug-status.is-error { color: var(--crit); } @@ -29,7 +23,7 @@ gap: 4px; height: 24px; padding: 0 8px 0 4px; - font-size: 11px; + font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; @@ -40,8 +34,8 @@ .debug-section-title > span:first-of-type { flex: 1; } .debug-section-actions { display: flex; gap: 2px; } .debug-section-body { padding-bottom: 6px; } -.debug-empty { margin: 4px 12px; font-size: 12px; } -.debug-thread { margin: 2px 12px; font-size: 12px; } +.debug-empty { margin: 4px 12px; font-size: var(--fs-sm); } +.debug-thread { margin: 2px 12px; font-size: var(--fs-sm); } .debug-tree { list-style: none; margin: 0; padding: 0; } .debug-row { @@ -50,8 +44,8 @@ gap: 2px; min-height: 22px; padding: 0 8px; - font-family: ui-monospace, 'Cascadia Code', Menlo, Consolas, monospace; - font-size: 12px; + font-family: var(--font-mono); + font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; cursor: pointer; @@ -61,7 +55,7 @@ .debug-twisty::before { content: '\203A'; display: inline-block; transition: transform 0.1s; } .debug-node[aria-expanded='true'] > .debug-row .debug-twisty::before { transform: rotate(90deg); } .debug-twisty.is-leaf::before { content: ''; } -.debug-node.is-scope > .debug-row .debug-var-name { font-family: system-ui, sans-serif; font-weight: 600; } +.debug-node.is-scope > .debug-row .debug-var-name { font-family: var(--font-ui); font-weight: 600; } .debug-var-name { color: var(--symbol); flex: none; } .debug-var-sep { flex: none; color: var(--muted); } .debug-var-value { overflow: hidden; text-overflow: ellipsis; } @@ -75,10 +69,7 @@ margin: 4px 12px; padding: 3px 6px; border: 1px solid var(--accent); - border-radius: 3px; - background: var(--editor); - color: var(--fg); - font: 12px ui-monospace, 'Cascadia Code', Menlo, Consolas, monospace; + font: var(--fs-sm) var(--font-mono); } .debug-watch-input[hidden] { display: none; } @@ -86,11 +77,11 @@ .debug-frame.is-selected { background: var(--hover); box-shadow: inset 2px 0 0 var(--accent); } .debug-frame.is-subtle { opacity: 0.6; } .debug-frame-name { overflow: hidden; text-overflow: ellipsis; } -.debug-frame-where { flex: none; font-size: 11px; } +.debug-frame-where { flex: none; font-size: var(--fs-xs); } .debug-breakpoint-row { gap: 6px; font-family: inherit; } .debug-breakpoint-row .debug-frame-where { margin-left: auto; } -.debug-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #e51400; } -.debug-dot.is-unverified { background: none; border: 1px solid #848484; } +.debug-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--breakpoint); } +.debug-dot.is-unverified { background: none; border: 1px solid var(--muted); } /* The floating toolbar, centred over the editors while a session runs. */ .debug-toolbar { @@ -101,19 +92,19 @@ padding: 2px 4px; transform: translateX(-50%); border: 1px solid var(--line); - border-radius: 5px; + border-radius: var(--radius); background: var(--chrome); - box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); + box-shadow: var(--shadow-sm); } .debug-toolbar[hidden] { display: none; } .debug-toolbar .icon-button[hidden] { display: none; } .debug-toolbar .icon-button:disabled { opacity: 0.4; cursor: default; } -.debug-toolbar [data-testid='debug-continue'] svg { stroke: #3fb950; } +.debug-toolbar [data-testid='debug-continue'] svg { stroke: var(--ok); } .debug-toolbar [data-testid='debug-stop'] svg { stroke: var(--crit); } -.debug-toolbar [data-testid='debug-restart'] svg { stroke: #3fb950; } +.debug-toolbar [data-testid='debug-restart'] svg { stroke: var(--ok); } /* The status bar turns orange while debugging, as in VS Code. */ -body.is-debugging .status-bar { background: #b8541b; } +body.is-debugging .status-bar { background: var(--status-debug); } /* The Debug Console. */ .debug-console { display: flex; flex-direction: column; height: 100%; min-height: 0; } @@ -123,7 +114,7 @@ body.is-debugging .status-bar { background: #b8541b; } min-height: 0; overflow: auto; padding: 4px 12px; - font: 12px/1.45 ui-monospace, 'Cascadia Code', Menlo, Consolas, monospace; + font: var(--fs-sm)/1.45 var(--font-mono); white-space: pre-wrap; word-break: break-word; user-select: text; @@ -132,7 +123,7 @@ body.is-debugging .status-bar { background: #b8541b; } .debug-console-line.is-console, .debug-console-line.is-important { color: var(--accent); } .debug-console-line.is-input { color: var(--muted); } .debug-console-row { display: flex; align-items: center; gap: 6px; padding: 2px 12px 4px; border-top: 1px solid var(--line); } -.debug-console-prompt { color: var(--accent); font-family: ui-monospace, 'Cascadia Code', Menlo, Consolas, monospace; } +.debug-console-prompt { color: var(--accent); font-family: var(--font-mono); } .debug-console-input { flex: 1; min-width: 0; @@ -141,7 +132,7 @@ body.is-debugging .status-bar { background: #b8541b; } outline: 0; background: none; color: var(--fg); - font: 12px ui-monospace, 'Cascadia Code', Menlo, Consolas, monospace; + font: var(--fs-sm) var(--font-mono); } /* The editor: breakpoints in the glyph margin, the paused line. */ @@ -155,9 +146,9 @@ body.is-debugging .status-bar { background: #b8541b; } height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; - background: #e51400; + background: var(--breakpoint); } -.monaco-editor .debug-breakpoint.is-unverified::before { background: none; border: 1px solid #848484; box-sizing: border-box; } +.monaco-editor .debug-breakpoint.is-unverified::before { background: none; border: 1px solid var(--muted); box-sizing: border-box; } .monaco-editor .debug-breakpoint-hint::before { background: rgba(229, 20, 0, 0.4); } .monaco-editor .debug-current-line { background: rgba(255, 238, 0, 0.18); } .monaco-editor .debug-frame-line { background: rgba(80, 200, 120, 0.15); } @@ -170,8 +161,8 @@ body.is-debugging .status-bar { background: #b8541b; } margin: -5px 0 0 -3px; border-top: 5px solid transparent; border-bottom: 5px solid transparent; - border-left: 7px solid #ffcc00; + border-left: 7px solid var(--debug-frame); } -.monaco-editor .debug-frame-arrow::after { border-left-color: #3fb950; } +.monaco-editor .debug-frame-arrow::after { border-left-color: var(--ok); } .monaco-editor .debug-breakpoint, .monaco-editor .debug-breakpoint-hint, .monaco-editor .debug-current-arrow, .monaco-editor .debug-frame-arrow { position: relative; cursor: pointer; } diff --git a/apps/ide/src/renderer/dom.ts b/apps/ide/src/renderer/dom.ts index 4269f7a3..704ff68b 100644 --- a/apps/ide/src/renderer/dom.ts +++ b/apps/ide/src/renderer/dom.ts @@ -32,6 +32,14 @@ export function icon(pathData: string, className?: string): SVGSVGElement { return svg; } +/** The one close glyph of the workbench (tabs, notifications, the scene, the dock): an X drawn in SVG, never a text character. */ +export const CLOSE_ICON_PATH = 'M6 6l12 12M18 6L6 18'; + +/** A close glyph for an `icon-button` or a notification. */ +export function closeIcon(): SVGSVGElement { + return icon(CLOSE_ICON_PATH, 'close-icon'); +} + let iconSheetAdopted = false; /** diff --git a/apps/ide/src/renderer/extensions/extensions.css b/apps/ide/src/renderer/extensions/extensions.css index d34f0617..933d87c9 100644 --- a/apps/ide/src/renderer/extensions/extensions.css +++ b/apps/ide/src/renderer/extensions/extensions.css @@ -5,7 +5,7 @@ .extensions-scroll { flex: 1; min-height: 0; overflow: auto; padding-bottom: 12px; } .extensions-section { display: flex; flex-direction: column; } .extensions-section[hidden] { display: none; } -.extensions-section-title { margin: 6px 12px 4px; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); } +.extensions-section-title { margin: 6px 12px 4px; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); } .extensions-section .side-note { margin: 2px 12px 8px; } .extensions-list { list-style: none; margin: 0; padding: 0; } .extensions-more { margin: 6px 12px; align-self: flex-start; } @@ -14,40 +14,40 @@ .extension-row { display: flex; gap: 10px; padding: 8px 10px 8px 12px; cursor: pointer; border-left: 2px solid transparent; min-width: 0; } .extension-row:hover { background: var(--hover); } .extension-row:focus-visible { outline: 1px solid var(--accent); outline-offset: -1px; } -.extension-icon { flex: none; width: 36px; height: 36px; border-radius: 4px; object-fit: contain; } +.extension-icon { flex: none; width: 36px; height: 36px; border-radius: var(--radius); object-fit: contain; } .extension-icon.is-placeholder { background: var(--hover); } .extension-icon.is-large { width: 96px; height: 96px; } .extension-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .extension-title-line { display: flex; align-items: baseline; gap: 8px; min-width: 0; } .extension-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; } -.extension-meta { flex: none; font-size: 11px; margin-left: auto; } -.extension-description { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } -.extension-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: 12px; } +.extension-meta { flex: none; font-size: var(--fs-xs); margin-left: auto; } +.extension-description { color: var(--muted); font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } +.extension-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: var(--fs-sm); } .extension-publisher { display: inline-flex; align-items: center; gap: 3px; color: var(--muted); } .extension-verified svg { width: 13px; height: 13px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linejoin: round; } .extension-state { color: var(--accent); } .extension-actions { display: inline-flex; gap: 4px; margin-left: auto; } -.extension-action { margin: 0; width: auto; padding: 2px 8px; font-size: 12px; } -.extension-busy, .extension-installed-mark { font-size: 12px; } +.extension-action { margin: 0; width: auto; padding: 2px 8px; font-size: var(--fs-sm); } +.extension-busy, .extension-installed-mark { font-size: var(--fs-sm); } .extension-details { grid-area: editor; z-index: 39; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--editor); overflow: auto; } .extension-details:focus { outline: none; } .extension-details-loading { margin: 24px; } .extension-details-head { display: flex; gap: 20px; align-items: flex-start; padding: 20px 24px 16px; border-bottom: 1px solid var(--line); } .extension-details-title { flex: 1; min-width: 0; } -.extension-details-title h2 { margin: 0 0 4px; font-size: 22px; font-weight: 600; overflow-wrap: anywhere; } +.extension-details-title h2 { margin: 0 0 4px; font-size: var(--fs-2xl); font-weight: 600; overflow-wrap: anywhere; } .extension-details-publisher { display: flex; align-items: center; gap: 4px; margin: 0 0 6px; color: var(--muted); } .extension-details-description { margin: 0 0 10px; } .extension-details-actions { display: flex; flex-wrap: wrap; gap: 6px; } -.extension-details-actions .extension-action { padding: 4px 12px; font-size: 13px; } +.extension-details-actions .extension-action { padding: 4px 12px; font-size: var(--fs-md); } .extension-details-body { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 280px); gap: 24px; padding: 16px 24px 24px; min-height: 0; } .extension-details-readme { min-width: 0; } .extension-details-readme .markdown-preview { border: 0; height: auto; } .extension-details-readme .markdown-preview-header { display: none; } .extension-details-readme .markdown-preview-body { overflow: visible; padding: 0; } .extension-details-side { min-width: 0; } -.extension-details-side h3 { margin: 16px 0 6px; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); } -.extension-details-facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin: 0; font-size: 12px; } +.extension-details-side h3 { margin: 16px 0 6px; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); } +.extension-details-facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin: 0; font-size: var(--fs-sm); } .extension-details-facts dt { color: var(--muted); } .extension-details-facts dd { margin: 0; overflow-wrap: anywhere; } @media (max-width: 900px) { @@ -62,8 +62,8 @@ .activity-item { position: relative; } .activity-item > .codicon-glyph { width: 24px; font-size: 24px; } .activity-item > .ext-icon-mask { width: 24px; height: 24px; } -.activity-letter { font-weight: 600; font-size: 16px; } -.activity-badge { position: absolute; right: 6px; bottom: 6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--accent); color: var(--status-fg); font-size: 10px; font-weight: 600; line-height: 16px; text-align: center; } +.activity-letter { font-weight: 600; font-size: var(--fs-xl); } +.activity-badge { position: absolute; right: 6px; bottom: 6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: var(--radius-pill); background: var(--button-bg); color: var(--on-accent); font-size: var(--fs-2xs); font-weight: 600; line-height: 16px; text-align: center; } .activity-badge[hidden] { display: none; } /* The Source Control and Run and Debug panes hold their view and, under it, extensions' views. */ @@ -90,7 +90,7 @@ .ext-view-message { margin: 4px 12px 6px; } .ext-view-message[hidden] { display: none; } -.ext-action.is-text { width: auto; padding: 0 6px; font: inherit; font-size: 12px; } +.ext-action.is-text { width: auto; padding: 0 6px; font: inherit; font-size: var(--fs-sm); } .ext-action:disabled { opacity: 0.4; cursor: default; } .ext-tree-row { gap: 4px; } @@ -100,7 +100,7 @@ .ext-tree-checkbox { flex: none; margin: 0 2px 0 0; } .ext-tree-actions { margin-left: auto; display: none; align-items: center; gap: 2px; } .ext-tree-row:hover > .ext-tree-actions, .ext-tree-row:focus > .ext-tree-actions, .ext-tree-row[aria-selected='true'] > .ext-tree-actions { display: flex; } -.ext-tree-actions > .ext-action { display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 3px; background: none; color: var(--muted); cursor: pointer; } +.ext-tree-actions > .ext-action { display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: var(--radius-sm); background: none; color: var(--muted); cursor: pointer; } .ext-tree-actions > .ext-action:hover { background: var(--hover); color: var(--fg); } .ext-welcome { padding: 6px 0 8px; } diff --git a/apps/ide/src/renderer/git/scm.css b/apps/ide/src/renderer/git/scm.css index 6a545a9d..71d2c28f 100644 --- a/apps/ide/src/renderer/git/scm.css +++ b/apps/ide/src/renderer/git/scm.css @@ -23,10 +23,10 @@ min-width: 16px; height: 16px; padding: 0 4px; - border-radius: 8px; - background: var(--accent); - color: var(--status-fg); - font-size: 9px; + border-radius: var(--radius-pill); + background: var(--button-bg); + color: var(--on-accent); + font-size: var(--fs-2xs); font-weight: 600; line-height: 16px; text-align: center; @@ -41,15 +41,10 @@ min-height: 52px; resize: vertical; padding: 5px 7px; - border: 1px solid var(--line); - border-radius: 3px; - background: var(--editor); - color: var(--fg); - font: inherit; - font-size: 13px; + font-size: var(--fs-md); box-sizing: border-box; } -.scm-message:focus { outline: 1px solid var(--accent); outline-offset: -1px; border-color: var(--accent); } + .scm-commit-box .scm-commit { margin: 0; width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 6px; } .scm-commit svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; } @@ -63,14 +58,14 @@ white-space: nowrap; min-width: 0; } -.scm-group-header { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); } +.scm-group-header { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); } .scm-group-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; } .scm-change { padding-left: 20px; cursor: pointer; } .scm-change:hover, .scm-group-header:hover { background: var(--hover); } .scm-change:focus { outline: 1px solid var(--accent); outline-offset: -1px; } .scm-name { flex-shrink: 0; } .scm-change.is-deleted .scm-name { text-decoration: line-through; } -.scm-folder { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 12px; } +.scm-folder { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: var(--fs-sm); } .scm-row-actions { display: none; gap: 1px; flex-shrink: 0; } .scm-change:hover .scm-row-actions, .scm-change:focus-within .scm-row-actions, .scm-group-header:hover .scm-row-actions, .scm-group-header:focus-within .scm-row-actions { display: flex; } @@ -79,20 +74,17 @@ .scm-count { flex-shrink: 0; padding: 0 6px; - border-radius: 9px; + border-radius: var(--radius-pill); background: var(--hover); color: var(--muted); - font-size: 11px; + font-size: var(--fs-xs); letter-spacing: 0; } -.scm-letter { flex-shrink: 0; width: 14px; text-align: center; font-size: 12px; font-weight: 600; } +.scm-letter { flex-shrink: 0; width: 14px; text-align: center; font-size: var(--fs-sm); font-weight: 600; } .scm-letter[data-letter='M'], .scm-letter[data-letter='T'] { color: var(--warn); } -.scm-letter[data-letter='A'], .scm-letter[data-letter='U'], .scm-letter[data-letter='C'] { color: #3fb950; } +.scm-letter[data-letter='A'], .scm-letter[data-letter='U'], .scm-letter[data-letter='C'] { color: var(--ok); } .scm-letter[data-letter='D'], .scm-letter[data-letter='!'] { color: var(--crit); } .scm-letter[data-letter='R'] { color: var(--accent); } -@media (prefers-color-scheme: light) { - .scm-letter[data-letter='A'], .scm-letter[data-letter='U'], .scm-letter[data-letter='C'] { color: #1a7f37; } -} /* The diff view covers the editor area while it is open. */ .editor-area { position: relative; } @@ -117,32 +109,26 @@ min-width: 0; } .scm-diff-title { flex-shrink: 0; } -.scm-diff-folder { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 12px; } +.scm-diff-folder { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: var(--fs-sm); } .scm-diff-actions { display: flex; align-items: center; gap: 6px; } -.scm-diff-open { padding: 3px 8px; font-size: 12px; } +.scm-diff-open { padding: 3px 8px; font-size: var(--fs-sm); } .scm-diff-open[hidden] { display: none; } .scm-diff-host { flex: 1; min-height: 0; } /* #175: the explorer's rows follow the Git status: a colour, and a letter on files. */ .tree-row[data-git] .tree-label { color: var(--git-colour); } .tree-row[data-git='modified'], .tree-row[data-git='renamed'] { --git-colour: var(--warn); } -.tree-row[data-git='added'], .tree-row[data-git='untracked'] { --git-colour: #3fb950; } +.tree-row[data-git='added'], .tree-row[data-git='untracked'] { --git-colour: var(--ok); } .tree-row[data-git='deleted'], .tree-row[data-git='conflict'] { --git-colour: var(--crit); } -.tree-git-letter { flex-shrink: 0; margin-left: auto; padding: 0 8px 0 6px; font-size: 11px; font-weight: 600; color: var(--git-colour); } -@media (prefers-color-scheme: light) { - .tree-row[data-git='added'], .tree-row[data-git='untracked'] { --git-colour: #1a7f37; } -} +.tree-git-letter { flex-shrink: 0; margin-left: auto; padding: 0 8px 0 6px; font-size: var(--fs-xs); font-weight: 600; color: var(--git-colour); } /* #175: the editor's change markers, beside the metric strip (#178), and the peek under a change. */ .monaco-editor .git-gutter { width: 3px !important; margin-left: 7px; cursor: pointer; } -.monaco-editor .git-gutter.is-added { background: #3fb950; } +.monaco-editor .git-gutter.is-added { background: var(--ok); } .monaco-editor .git-gutter.is-modified { background: var(--accent); } .monaco-editor .git-gutter.is-deleted { width: 7px !important; background: linear-gradient(to top, var(--crit) 0 3px, transparent 3px); } -@media (prefers-color-scheme: light) { - .monaco-editor .git-gutter.is-added { background: #1a7f37; } -} .monaco-editor .git-blame-inline { color: var(--muted); opacity: 0.75; font-style: italic; } -.git-peek { box-sizing: border-box; display: flex; flex-direction: column; border-top: 1px solid var(--accent); border-bottom: 1px solid var(--accent); background: var(--panel); font-size: 12px; } +.git-peek { box-sizing: border-box; display: flex; flex-direction: column; border-top: 1px solid var(--accent); border-bottom: 1px solid var(--accent); background: var(--panel); font-size: var(--fs-sm); } .git-peek-header { flex: none; display: flex; align-items: center; gap: 6px; height: 28px; padding: 4px 8px; box-sizing: border-box; } .git-peek-title { flex: 1; color: var(--muted); } .git-peek-original { flex: 1; margin: 0; padding: 0 8px 4px; overflow: auto; color: var(--crit); white-space: pre; } diff --git a/apps/ide/src/renderer/notifications.ts b/apps/ide/src/renderer/notifications.ts index 53233fc5..8f3753bd 100644 --- a/apps/ide/src/renderer/notifications.ts +++ b/apps/ide/src/renderer/notifications.ts @@ -1,4 +1,4 @@ -import { el } from './dom.ts'; +import { closeIcon, el } from './dom.ts'; import { clampPercent } from './progressPercent.ts'; /** @@ -82,7 +82,7 @@ export function createNotificationCenter(host: HTMLElement): NotificationCenter } function shell(kind: NotificationSeverity | 'progress', body: Node[], onClose: () => void): HTMLElement { - const close = el('button', { className: 'notification-close', text: '×', attrs: { type: 'button', title: 'Close', 'aria-label': 'Close notification' } }); + const close = el('button', { className: 'notification-close', attrs: { type: 'button', title: 'Close', 'aria-label': 'Close notification' } }, [closeIcon()]); close.addEventListener('click', onClose); const root = el('div', { className: `notification is-${kind}`, attrs: { role: kind === 'error' ? 'alert' : 'group', 'data-testid': 'notification' } }, [ el('span', { className: 'notification-icon', attrs: { 'aria-hidden': 'true' } }), diff --git a/apps/ide/src/renderer/scenePanel.ts b/apps/ide/src/renderer/scenePanel.ts index cbdf54ae..f4c637e0 100644 --- a/apps/ide/src/renderer/scenePanel.ts +++ b/apps/ide/src/renderer/scenePanel.ts @@ -1,5 +1,5 @@ import type { CodeXRApi, SceneAddress, SceneInfo } from '../shared/api.ts'; -import { el, icon } from './dom.ts'; +import { closeIcon, el, icon } from './dom.ts'; import { createSceneXrControls } from './sceneXrControls.ts'; import { analysedFilesLabel, analysisKindLabel, displayAddress, INITIAL_SHARE_VIEW, ipcErrorMessage, reduceShare, shareControls, type ShareAction, type ShareView } from './sceneHeaderModel.ts'; @@ -33,7 +33,7 @@ export function createScenePanel( const kind = el('span', { className: 'scene-kind', attrs: { 'data-testid': 'scene-kind' } }); const title = el('span', { className: 'scene-title', attrs: { 'data-testid': 'scene-title' } }); const files = el('span', { className: 'scene-files', attrs: { 'data-testid': 'scene-files' } }); - const close = el('button', { className: 'icon-button', text: '×', attrs: { type: 'button', title: 'Close the scene', 'aria-label': 'Close the scene' } }); + const close = el('button', { className: 'icon-button', attrs: { type: 'button', title: 'Close the scene', 'aria-label': 'Close the scene' } }, [closeIcon()]); const localAddress = el('span', { className: 'scene-address', attrs: { 'data-testid': 'scene-local-address' } }); const copyLocal = copyButton('Copy the local address', 'scene-copy-local'); diff --git a/apps/ide/src/renderer/styles.css b/apps/ide/src/renderer/styles.css index fc9f2e4b..e0a1a6fd 100644 --- a/apps/ide/src/renderer/styles.css +++ b/apps/ide/src/renderer/styles.css @@ -2,24 +2,76 @@ * Workbench styles. Colour tokens follow the Electron + Monaco preview that * was approved for the IDE (adr/assets/0001-ide-preview/): dark first, with a * light theme picked by the operating system preference. + * + * Design tokens (epic: IDE visual polish). Every stylesheet of the renderer + * takes its colours, type sizes, radii and shadows from the variables below; + * test/designTokens.test.ts fails on a hex colour, a px font size or a px + * radius written anywhere else. See docs/ide/visual-audit.md. */ :root { color-scheme: dark light; + /* Surfaces, from the outermost frame inwards. */ --chrome: #10151c; --panel: #141a22; --editor: #0e1319; + --raised: #19212b; --line: #232c37; + --line-strong: #314050; --hover: #1b2430; + --active: #213041; + /* Text. */ --fg: #d5dce5; --muted: #8a96a5; + /* Roles. */ --accent: #2fb0ff; + /* Filled buttons and badges: white text needs a deeper blue than the accent (4.5:1). */ + --button-bg: #0b6fab; + --button-hover: #0d7cbf; + --on-accent: #ffffff; + --ok: #3fb950; --crit: #f85149; --warn: #d29922; + --on-warn: #1b1300; + --symbol: #b180d7; --status: #0b3a5c; --status-fg: #e6f3fc; - --symbol: #b180d7; - font-family: system-ui, -apple-system, 'Segoe UI', Ubuntu, Cantarell, sans-serif; - font-size: 13px; + --status-debug: #b8541b; + /* Debugger marks, the same in both themes, as in VS Code. */ + --breakpoint: #e51400; + --debug-frame: #ffcc00; + /* The transparency grid behind images, deliberately the same in both themes. */ + --checker-light: #ffffff; + --checker-dark: #dddddd; + + /* Type: one family per role, one scale. 13px is the body size. */ + --font-ui: system-ui, -apple-system, 'Segoe UI', Ubuntu, Cantarell, sans-serif; + --font-mono: ui-monospace, 'Cascadia Code', 'SFMono-Regular', Menlo, Consolas, monospace; + --fs-2xs: 10px; + --fs-xs: 11px; + --fs-sm: 12px; + --fs-md: 13px; + --fs-lg: 14px; + --fs-xl: 16px; + --fs-2xl: 22px; + + /* Shape and depth. */ + --radius-sm: 3px; + --radius: 4px; + --radius-md: 6px; + --radius-lg: 8px; + --radius-pill: 999px; + --shadow-sm: 0 2px 8px rgb(0 0 0 / 0.3); + --shadow-md: 0 6px 20px rgb(0 0 0 / 0.35); + --shadow-lg: 0 8px 24px rgb(0 0 0 / 0.4); + + /* Controls: buttons, inputs and selects share one height. */ + --control-h: 26px; + --control-h-sm: 22px; + /* Every strip that heads a column (editor tabs, panel tabs, scene header, dock) is this tall. */ + --header-h: 35px; + + font-family: var(--font-ui); + font-size: var(--fs-md); } @media (prefers-color-scheme: light) { @@ -27,16 +79,27 @@ --chrome: #f3f5f8; --panel: #f7f9fb; --editor: #ffffff; + --raised: #ffffff; --line: #d8dfe7; + --line-strong: #b9c4d0; --hover: #e6ecf2; + --active: #dbe6f1; --fg: #1c2632; --muted: #596677; --accent: #0073bd; + --button-bg: #0073bd; + --button-hover: #0067a8; + --on-accent: #ffffff; + --ok: #1a7f37; --crit: #cf222e; --warn: #9a6700; + --on-warn: #ffffff; + --symbol: #6f42c1; --status: #0073bd; --status-fg: #ffffff; - --symbol: #6f42c1; + --shadow-sm: 0 2px 8px rgb(15 30 45 / 0.12); + --shadow-md: 0 6px 20px rgb(15 30 45 / 0.16); + --shadow-lg: 0 8px 24px rgb(15 30 45 / 0.18); } } @@ -110,7 +173,7 @@ body { } .side-bar-title { - font-size: 11px; + font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; @@ -133,7 +196,7 @@ body { height: 24px; padding: 0; border: 0; - border-radius: 4px; + border-radius: var(--radius); background: none; color: var(--muted); cursor: pointer; @@ -148,14 +211,14 @@ body { height: 20px; padding: 0 4px; border: 1px solid var(--accent); - border-radius: 2px; + border-radius: var(--radius-sm); background: var(--editor); color: var(--fg); font: inherit; outline: none; } .side-bar-subtitle { - font-size: 11px; + font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; @@ -199,7 +262,7 @@ body { background: none; color: var(--muted); font: inherit; - font-size: 11px; + font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; @@ -215,8 +278,8 @@ body { .symbol-kind { flex: none; width: 14px; - font-family: ui-monospace, 'Cascadia Code', Menlo, Consolas, monospace; - font-size: 11px; + font-family: var(--font-mono); + font-size: var(--fs-xs); font-weight: 700; text-align: center; } @@ -237,7 +300,7 @@ body { scrollbar-width: none; background: var(--editor); border-bottom: 1px solid var(--line); - font-size: 12px; + font-size: var(--fs-sm); white-space: nowrap; } .editor-breadcrumbs[hidden] { display: none; } @@ -249,7 +312,7 @@ body { height: 20px; padding: 0 3px; border: 0; - border-radius: 3px; + border-radius: var(--radius-sm); background: none; color: var(--muted); font: inherit; @@ -260,18 +323,28 @@ body { .crumb-separator { flex: none; width: 12px; height: 12px; fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; } .explorer-body { padding: 0 0 8px; } .explorer-body > p { margin: 0 12px 12px; } +/* Buttons (visual polish V2): one height, one radius, three weights. A primary + button fills its side-bar column unless its row says otherwise. */ .primary-button { margin: 0 12px; width: calc(100% - 24px); - padding: 6px 10px; - border: 0; - border-radius: 4px; - background: var(--accent); - color: var(--status-fg); +} +.primary-button, .secondary-button { + display: inline-flex; + align-items: center; + justify-content: center; + gap: 6px; + min-height: var(--control-h); + padding: 0 12px; + border: 1px solid transparent; + border-radius: var(--radius); font: inherit; + line-height: 1.2; + white-space: nowrap; cursor: pointer; } -.primary-button:hover { filter: brightness(1.1); } +.primary-button { background: var(--button-bg); color: var(--on-accent); } +.primary-button:hover:not(:disabled) { background: var(--button-hover); } .tree, .tree ul { list-style: none; margin: 0; padding: 0; } .tree-row { display: flex; @@ -340,7 +413,7 @@ body { .editor-tabs { flex: none; display: flex; - height: 35px; + height: var(--header-h); overflow-x: auto; overflow-y: hidden; background: var(--chrome); @@ -371,7 +444,7 @@ body { height: 20px; padding: 0; border: 0; - border-radius: 4px; + border-radius: var(--radius); background: none; color: inherit; cursor: pointer; @@ -403,10 +476,10 @@ body { .markdown-preview.is-tab .markdown-preview-header { display: none; } .markdown-preview-header { flex: none; display: flex; align-items: center; gap: 6px; height: 35px; padding: 0 6px 0 12px; background: var(--chrome); border-bottom: 1px solid var(--line); color: var(--fg); } .markdown-preview-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } -.markdown-preview-close { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 4px; background: none; color: inherit; cursor: pointer; } +.markdown-preview-close { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: var(--radius); background: none; color: inherit; cursor: pointer; } .markdown-preview-close:hover { background: var(--hover); } .markdown-preview-close svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; } -.markdown-preview-body { position: relative; flex: 1; min-height: 0; overflow: auto; padding: 8px 24px 32px; color: var(--fg); font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; } +.markdown-preview-body { position: relative; flex: 1; min-height: 0; overflow: auto; padding: 8px 24px 32px; color: var(--fg); font-size: var(--fs-lg); line-height: 1.6; overflow-wrap: anywhere; } .markdown-preview-body:focus-visible { outline: 1px solid var(--accent); outline-offset: -1px; } .markdown-body h1, .markdown-body h2 { padding-bottom: 0.3em; border-bottom: 1px solid var(--line); } .markdown-body h1 { font-size: 1.8em; margin: 0.8em 0 0.5em; } @@ -417,9 +490,9 @@ body { .markdown-body ul, .markdown-body ol { padding-left: 2em; } .markdown-body a { color: var(--accent); text-decoration: none; cursor: pointer; } .markdown-body a:hover { text-decoration: underline; } -.markdown-body code { font-family: ui-monospace, 'Cascadia Code', Menlo, Consolas, monospace; font-size: 0.9em; padding: 0.1em 0.35em; border-radius: 4px; background: var(--hover); } -.markdown-body pre { overflow-x: auto; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--chrome); line-height: 1.45; } -.markdown-body pre code { padding: 0; background: none; font-size: 13px; } +.markdown-body code { font-family: var(--font-mono); font-size: 0.9em; padding: 0.1em 0.35em; border-radius: var(--radius); background: var(--hover); } +.markdown-body pre { overflow-x: auto; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--chrome); line-height: 1.45; } +.markdown-body pre code { padding: 0; background: none; font-size: var(--fs-md); } .markdown-body blockquote { padding: 0 1em; border-left: 3px solid var(--line); color: var(--muted); } .markdown-body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; } .markdown-body th, .markdown-body td { padding: 4px 12px; border: 1px solid var(--line); } @@ -428,7 +501,7 @@ body { .markdown-body img { max-width: 100%; height: auto; } .markdown-body input[type='checkbox'] { margin-right: 0.4em; } .markdown-body li:has(> input[type='checkbox']) { list-style: none; margin-left: -1.3em; } -.md-remote-image, .md-image-missing { display: inline-block; padding: 2px 8px; border: 1px dashed var(--line); border-radius: 4px; color: var(--muted); font-size: 12px; } +.md-remote-image, .md-image-missing { display: inline-block; padding: 2px 8px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); font-size: var(--fs-sm); } .editor-host { flex: 1; min-height: 0; } .editor-placeholder { flex: 1; display: grid; place-items: center; } .editor-host[hidden], .editor-placeholder[hidden] { display: none; } @@ -447,11 +520,11 @@ body { letter-spacing: -0.01em; } -.welcome-tagline { color: var(--muted); font-size: 15px; margin: 0 0 24px; } +.welcome-tagline { color: var(--muted); font-size: var(--fs-lg); margin: 0 0 24px; } .accent { color: var(--accent); } .muted { color: var(--muted); } -.small { font-size: 12px; } +.small { font-size: var(--fs-sm); } .error { color: var(--crit); } .info-list { @@ -461,13 +534,13 @@ body { margin: 16px 0 0; padding: 12px 16px; border: 1px solid var(--line); - border-radius: 6px; + border-radius: var(--radius-md); background: var(--panel); } .info-list:empty { display: none; } .info-list dt { color: var(--muted); } -.info-list dd { margin: 0; font-family: ui-monospace, 'Cascadia Code', Menlo, Consolas, monospace; } +.info-list dd { margin: 0; font-family: var(--font-mono); } .status-bar { grid-area: status; @@ -475,7 +548,7 @@ body { justify-content: space-between; align-items: center; padding: 0 10px; - font-size: 12px; + font-size: var(--fs-sm); background: var(--status); color: var(--status-fg); } @@ -513,17 +586,32 @@ body { /* Side-bar views (#15): one pane per activity item. */ .side-pane[hidden] { display: none; } .side-note { margin: 12px; } -.secondary-button { - padding: 6px 10px; - border: 1px solid var(--line); - border-radius: 4px; - background: none; +.secondary-button { border-color: var(--line-strong); background: transparent; color: var(--fg); } +.secondary-button:hover:not(:disabled) { background: var(--hover); } +.primary-button:disabled, .secondary-button:disabled { opacity: 0.5; cursor: default; } +.primary-button svg, .secondary-button svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; } +/* A destructive action reads as one until it is hovered. */ +.secondary-button.is-danger { color: var(--crit); border-color: color-mix(in srgb, var(--crit) 45%, var(--line-strong)); } +.secondary-button.is-danger:hover:not(:disabled) { background: color-mix(in srgb, var(--crit) 12%, transparent); } + +/* Form controls (V2): every text field and select of the workbench shares + the control height, the editor surface, the border and the focus colour. */ +.agents-input, .search-input, .settings-input, .settings-select, .af-select, +.problems-origin, .output-channel, .terminal-menu-input, .debug-config, .debug-watch-input, +.viewer-find-input, .pdf-page-input, .scm-message { + border: 1px solid var(--line-strong); + border-radius: var(--radius); + background: var(--editor); color: var(--fg); font: inherit; - cursor: pointer; } -.secondary-button:hover { background: var(--hover); } -.primary-button:disabled, .secondary-button:disabled { opacity: 0.6; cursor: default; } +.agents-input:not(textarea), .search-input, .settings-input, .settings-select, .af-select, .terminal-menu-input, .debug-config { height: var(--control-h); } +.problems-origin, .output-channel { height: var(--control-h-sm); } +.agents-input::placeholder, .search-input::placeholder, .settings-input::placeholder, .scm-message::placeholder, .af-input::placeholder { color: var(--muted); opacity: 1; } +.agents-input:focus, .search-input:focus, .settings-input:focus, .settings-select:focus, .af-select:focus, +.problems-origin:focus, .output-channel:focus, .terminal-menu-input:focus, .debug-config:focus, .debug-watch-input:focus, +.viewer-find-input:focus, .pdf-page-input:focus, .scm-message:focus { border-color: var(--accent); outline: 1px solid var(--accent); outline-offset: -1px; } +input[type='checkbox'], input[type='radio'] { accent-color: var(--button-bg); } /* Python environment (#15) */ .env-section .side-bar-subtitle { margin-top: 4px; } @@ -532,8 +620,8 @@ body { justify-self: start; padding: 1px 8px; border: 1px solid var(--line); - border-radius: 10px; - font-size: 11px; + border-radius: var(--radius-pill); + font-size: var(--fs-xs); color: var(--muted); } .env-badge[data-state='ready'] { color: var(--fg); border-color: var(--accent); } @@ -544,12 +632,12 @@ body { .env-progress { width: 100%; accent-color: var(--accent); } .env-packages p { margin: 0 0 4px; } .env-package-list { margin: 0; padding-left: 16px; display: grid; gap: 2px; } -.env-package-name { font-family: ui-monospace, 'Cascadia Code', Menlo, Consolas, monospace; } +.env-package-name { font-family: var(--font-mono); } .env-location { margin: 0; overflow-wrap: anywhere; } .env-actions { display: flex; flex-wrap: wrap; gap: 8px; } .env-actions .primary-button { margin: 0; width: auto; } .checkbox-row { display: flex; align-items: center; gap: 6px; margin-top: 8px; cursor: pointer; } -.checkbox-row input { margin: 0; accent-color: var(--accent, #3794ff); } +.checkbox-row input { margin: 0; accent-color: var(--accent); } /* Status bar items */ .status-right { display: flex; align-items: center; gap: 12px; min-width: 0; } @@ -560,14 +648,14 @@ body { .status-problems svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; } .status-problems svg + span { margin-right: 5px; } /* #177: Restricted Mode, the first item of the status bar while the folder is not trusted. */ -.status-item.status-trust { display: inline-flex; align-items: center; gap: 4px; background: var(--warn); color: #1b1300; font-weight: 600; } +.status-item.status-trust { display: inline-flex; align-items: center; gap: 4px; background: var(--warn); color: var(--on-warn); font-weight: 600; } .status-item.status-trust[hidden] { display: none; } .status-trust-icon { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; } .status-item { padding: 0 6px; height: 20px; border: 0; - border-radius: 3px; + border-radius: var(--radius-sm); background: none; color: inherit; font: inherit; @@ -606,7 +694,7 @@ body { flex-direction: column; gap: 4px; padding: 6px 8px 6px 12px; - font-size: 12px; + font-size: var(--fs-sm); border-bottom: 1px solid var(--line); } .scene-header-row { display: flex; align-items: center; gap: 6px; min-width: 0; min-height: 24px; } @@ -615,9 +703,9 @@ body { flex: none; padding: 1px 6px; border: 1px solid var(--accent); - border-radius: 3px; + border-radius: var(--radius-sm); color: var(--accent); - font-size: 11px; + font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; } @@ -631,12 +719,12 @@ body { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; - font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; + font-family: var(--font-mono); user-select: text; } .scene-copy { flex: none; } .scene-copy.is-copied { color: var(--accent); } -.scene-share { flex: none; margin-left: auto; padding: 2px 8px; font-size: 12px; white-space: nowrap; } +.scene-share { flex: none; margin-left: auto; padding: 2px 8px; font-size: var(--fs-sm); white-space: nowrap; } .scene-share-error { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--crit); } .scene-slot { flex: 1; min-height: 0; } @media (max-width: 720px) { @@ -664,7 +752,7 @@ body { display: flex; align-items: center; gap: 8px; - height: 35px; + height: var(--header-h); padding: 0 8px 0 12px; background: var(--chrome); border-bottom: 1px solid var(--line); @@ -681,7 +769,7 @@ body { border: 0; background: none; font: inherit; - font-size: 11px; + font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; @@ -694,10 +782,10 @@ body { .panel-badge { min-width: 16px; padding: 0 5px; - border-radius: 8px; + border-radius: var(--radius-pill); background: var(--hover); color: var(--fg); - font-size: 10px; + font-size: var(--fs-2xs); font-weight: 600; letter-spacing: 0; line-height: 16px; @@ -739,7 +827,7 @@ body { height: 22px; padding: 0 4px; border: 1px solid var(--accent); - border-radius: 2px; + border-radius: var(--radius-sm); background: var(--editor); color: var(--fg); font: inherit; @@ -762,11 +850,11 @@ body { height: 22px; padding: 0 6px; border: 1px solid var(--line); - border-radius: 2px; + border-radius: var(--radius-sm); background: var(--editor); color: var(--fg); font: inherit; - font-size: 12px; + font-size: var(--fs-sm); } .problems-filter:focus { outline: 1px solid var(--accent); outline-offset: -1px; border-color: var(--accent); } .problems-toggles { flex: none; display: flex; gap: 2px; } @@ -777,11 +865,11 @@ body { height: 22px; padding: 0 5px; border: 0; - border-radius: 3px; + border-radius: var(--radius-sm); background: none; color: var(--muted); font: inherit; - font-size: 11px; + font-size: var(--fs-xs); cursor: pointer; } .problems-toggle:hover { background: var(--hover); color: var(--fg); } @@ -796,14 +884,8 @@ body { flex: 0 1 auto; min-width: 0; max-width: 140px; - height: 22px; padding: 0 4px; - border: 1px solid var(--line); - border-radius: 2px; - background: var(--editor); - color: var(--fg); - font: inherit; - font-size: 12px; + font-size: var(--fs-sm); } .problems-body { flex: 1; min-height: 0; overflow: auto; padding: 4px 0; scrollbar-width: thin; } .problems-body[hidden] { display: none; } @@ -825,19 +907,19 @@ body { .problems-chevron { width: 14px; height: 14px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; transform: rotate(90deg); color: var(--muted); } .problems-file.is-collapsed .problems-chevron { transform: none; } .problems-file-name { flex-shrink: 0; } -.problems-file-folder { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 12px; } +.problems-file-folder { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: var(--fs-sm); } .problems-count { flex-shrink: 0; padding: 0 6px; - border-radius: 9px; + border-radius: var(--radius-pill); background: var(--hover); color: var(--muted); - font-size: 11px; + font-size: var(--fs-xs); line-height: 16px; } -.problems-row { padding-left: 34px; font-size: 12px; } +.problems-row { padding-left: 34px; font-size: var(--fs-sm); } .problems-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; } -.problems-source, .problems-where { flex-shrink: 0; font-size: 12px; } +.problems-source, .problems-where { flex-shrink: 0; font-size: var(--fs-sm); } /* A narrow panel drops the source picker, then the severity toggles (the status bar keeps the counts); the filter stays, Ctrl+Shift+M focuses it. */ @container panel (max-width: 760px) { .problems-origin { display: none; } } @container panel (max-width: 600px) { .problems-toggles { display: none; } } @@ -849,15 +931,9 @@ body { .output-channel { margin-left: auto; min-width: 0; - height: 22px; max-width: 220px; padding: 0 4px; - border: 1px solid var(--line); - border-radius: 2px; - background: var(--editor); - color: var(--fg); - font: inherit; - font-size: 12px; + font-size: var(--fs-sm); } .output-body { flex: 1; min-height: 0; display: flex; flex-direction: column; } .output-empty { margin: 12px; } @@ -867,8 +943,8 @@ body { min-height: 0; overflow: auto; padding: 4px 12px; - font-family: ui-monospace, 'Cascadia Code', Menlo, Consolas, monospace; - font-size: 12px; + font-family: var(--font-mono); + font-size: var(--fs-sm); line-height: 18px; white-space: pre-wrap; overflow-wrap: anywhere; @@ -894,13 +970,13 @@ body { padding: 4px 0 8px; background: var(--panel); border: 1px solid var(--line); - border-radius: 6px; - box-shadow: 0 6px 20px rgb(0 0 0 / 0.35); + border-radius: var(--radius-md); + box-shadow: var(--shadow-md); } .terminal-menu[hidden] { display: none; } .terminal-menu-heading { margin: 8px 12px 4px; - font-size: 11px; + font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; @@ -922,21 +998,15 @@ body { } .terminal-menu-item[role='menuitemradio'] { justify-content: flex-start; } .terminal-menu-item:hover, .terminal-menu-item:focus-visible { background: var(--hover); outline: none; } -.terminal-menu-check { width: 12px; color: var(--accent); font-size: 10px; } +.terminal-menu-check { width: 12px; color: var(--accent); font-size: var(--fs-2xs); } .terminal-menu-row { display: flex; align-items: center; padding-right: 8px; } .terminal-menu-row .terminal-menu-item { flex: 1; min-width: 0; } .terminal-menu-note { margin: 4px 12px; } .terminal-menu-custom { display: grid; gap: 6px; margin: 0 12px; } .terminal-menu-input { - height: 26px; padding: 0 6px; - border: 1px solid var(--line); - border-radius: 4px; - background: var(--editor); - color: var(--fg); - font: inherit; } -.terminal-menu-input:focus { border-color: var(--accent); outline: none; } + /* #286: the terminal's find widget, over its top-right corner (above xterm's layers). */ .terminal-find { position: absolute; @@ -950,8 +1020,8 @@ body { padding: 3px 4px; background: var(--chrome); border: 1px solid var(--line); - border-radius: 4px; - box-shadow: 0 2px 8px rgb(0 0 0 / 0.3); + border-radius: var(--radius); + box-shadow: var(--shadow-sm); } .terminal-find[hidden] { display: none; } .terminal-find-input { @@ -960,7 +1030,7 @@ body { height: 24px; padding: 0 6px; border: 1px solid var(--line); - border-radius: 3px; + border-radius: var(--radius-sm); background: var(--editor); color: var(--fg); font: inherit; @@ -968,7 +1038,7 @@ body { .terminal-find-input:focus { border-color: var(--accent); outline: none; } .terminal-find-button { width: 24px; height: 22px; color: var(--fg); } .terminal-find-button[aria-pressed='true'] { background: var(--hover); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); } -.terminal-find-count { min-width: 64px; padding: 0 4px; font-size: 12px; color: var(--muted); white-space: nowrap; text-align: center; } +.terminal-find-count { min-width: 64px; padding: 0 4px; font-size: var(--fs-sm); color: var(--muted); white-space: nowrap; text-align: center; } /* Notifications (#153): VS Code-style toasts, bottom-right, above everything but the scene view. */ .notifications { @@ -992,8 +1062,8 @@ body { background: var(--panel); color: var(--fg); border: 1px solid var(--line); - border-radius: 4px; - box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35); + border-radius: var(--radius); + box-shadow: var(--shadow-md); } .notification-icon { width: 12px; @@ -1002,12 +1072,12 @@ body { border-radius: 50%; background: var(--accent); } -.notification.is-warning .notification-icon { background: #d29922; } +.notification.is-warning .notification-icon { background: var(--warn); } .notification.is-error .notification-icon { background: var(--crit); } .notification.is-progress .notification-icon { background: transparent; border: 2px solid var(--accent); border-right-color: transparent; animation: notification-spin 0.9s linear infinite; } .notification-body { min-width: 0; } .notification-message { margin: 0; overflow-wrap: anywhere; } -.notification-detail { margin: 4px 0 0; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; } +.notification-detail { margin: 4px 0 0; color: var(--muted); font-size: var(--fs-sm); overflow-wrap: anywhere; } .notification-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; } .notification-actions .secondary-button { margin: 0; width: auto; } .notification-close { @@ -1015,10 +1085,10 @@ body { height: 24px; padding: 0; border: 0; - border-radius: 3px; + border-radius: var(--radius-sm); background: transparent; color: var(--muted); - font-size: 16px; + font-size: var(--fs-xl); line-height: 1; cursor: pointer; } @@ -1028,7 +1098,7 @@ body { height: 3px; margin-top: 8px; overflow: hidden; - border-radius: 2px; + border-radius: var(--radius-sm); background: var(--line); } .progress-bar { height: 100%; width: 0; background: var(--accent); transition: width 0.2s ease; } @@ -1074,14 +1144,14 @@ body { background: var(--panel); color: var(--fg); border: 1px solid var(--line); - border-radius: 6px; - box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); + border-radius: var(--radius-md); + box-shadow: var(--shadow-lg); } .quick-input-field { height: 28px; padding: 0 8px; border: 1px solid var(--accent); - border-radius: 4px; + border-radius: var(--radius); background: var(--editor); color: var(--fg); font: inherit; @@ -1098,7 +1168,7 @@ body { gap: 8px; height: 24px; padding: 0 8px; - border-radius: 3px; + border-radius: var(--radius-sm); cursor: pointer; white-space: nowrap; } @@ -1107,19 +1177,19 @@ body { .quick-input-row.is-hint .quick-input-label { color: var(--muted); } .quick-input-label { overflow: hidden; text-overflow: ellipsis; } .quick-input-label mark { background: transparent; color: var(--accent); font-weight: 600; } -.quick-input-description { font-size: 12px; overflow: hidden; text-overflow: ellipsis; } +.quick-input-description { font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; } .quick-input-trailing { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; } -.quick-input-group { font-size: 12px; } +.quick-input-group { font-size: var(--fs-sm); } .quick-input-key { padding: 0 5px; border: 1px solid var(--line); border-bottom-width: 2px; - border-radius: 3px; + border-radius: var(--radius-sm); background: var(--editor); color: var(--muted); - font: 11px/16px ui-monospace, 'Cascadia Code', Menlo, Consolas, monospace; + font: var(--fs-xs)/16px var(--font-mono); } -.quick-input-empty { margin: 6px 8px 2px; font-size: 12px; } +.quick-input-empty { margin: 6px 8px 2px; font-size: var(--fs-sm); } /* Search view (#165) */ .search-form { display: flex; flex-direction: column; gap: 6px; padding: 0 12px 8px; } @@ -1133,21 +1203,15 @@ body { .search-input { flex: 1; min-width: 0; - height: 26px; padding: 0 6px; - border: 1px solid var(--line); - border-radius: 3px; - background: var(--editor); - color: var(--fg); - font: inherit; } -.search-input:focus { border-color: var(--accent); outline: none; } + .search-row:first-child .search-input { padding-right: 78px; } .search-toggles { position: absolute; right: 2px; display: flex; gap: 1px; } .search-toggle { width: 24px; height: 22px; } .search-toggle[aria-pressed='true'] { background: var(--hover); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); } .search-label { display: flex; flex-direction: column; gap: 2px; } -.search-summary { margin: 0 12px 6px; font-size: 12px; overflow-wrap: anywhere; } +.search-summary { margin: 0 12px 6px; font-size: var(--fs-sm); overflow-wrap: anywhere; } .search-summary:empty { display: none; } .search-results { display: flex; flex-direction: column; } .search-file, .search-match { @@ -1165,23 +1229,23 @@ body { .search-chevron { width: 14px; height: 14px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; transform: rotate(90deg); color: var(--muted); } .search-file.is-collapsed .search-chevron { transform: none; } .search-file-name { flex-shrink: 0; } -.search-file-folder { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 12px; } +.search-file-folder { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: var(--fs-sm); } .search-count { flex-shrink: 0; margin-left: auto; padding: 0 6px; - border-radius: 9px; + border-radius: var(--radius-pill); background: var(--hover); color: var(--muted); - font-size: 11px; + font-size: var(--fs-xs); line-height: 16px; } -.search-match { padding-left: 34px; font-size: 12px; } -.search-line-number { flex-shrink: 0; min-width: 2.5em; text-align: right; font-family: ui-monospace, 'Cascadia Code', Menlo, Consolas, monospace; font-size: 11px; } -.search-preview { overflow: hidden; text-overflow: ellipsis; font-family: ui-monospace, 'Cascadia Code', Menlo, Consolas, monospace; } -.search-preview mark { background: color-mix(in srgb, var(--accent) 28%, transparent); color: inherit; border-radius: 2px; } +.search-match { padding-left: 34px; font-size: var(--fs-sm); } +.search-line-number { flex-shrink: 0; min-width: 2.5em; text-align: right; font-family: var(--font-mono); font-size: var(--fs-xs); } +.search-preview { overflow: hidden; text-overflow: ellipsis; font-family: var(--font-mono); } +.search-preview mark { background: color-mix(in srgb, var(--accent) 28%, transparent); color: inherit; border-radius: var(--radius-sm); } .search-preview del { background: color-mix(in srgb, var(--crit) 22%, transparent); color: inherit; } -.search-preview ins { background: color-mix(in srgb, #3fb950 26%, transparent); color: inherit; text-decoration: none; } +.search-preview ins { background: color-mix(in srgb, var(--ok) 26%, transparent); color: inherit; text-decoration: none; } .search-more { padding: 2px 12px 2px 34px; } /* Context menus (#167, contextMenu.ts): the terminal menu's look, at the pointer. */ @@ -1195,9 +1259,9 @@ body { padding: 4px 0; background: var(--panel); border: 1px solid var(--line); - border-radius: 6px; - box-shadow: 0 6px 20px rgb(0 0 0 / 0.35); - font-size: 13px; + border-radius: var(--radius-md); + box-shadow: var(--shadow-md); + font-size: var(--fs-md); } .context-menu-item { display: flex; @@ -1215,7 +1279,7 @@ body { } .context-menu-item:hover:not(:disabled), .context-menu-item:focus-visible { background: var(--hover); outline: none; } .context-menu-item:disabled { color: var(--muted); cursor: default; } -.context-menu-key { color: var(--muted); font-size: 12px; white-space: nowrap; } +.context-menu-key { color: var(--muted); font-size: var(--fs-sm); white-space: nowrap; } .context-menu-separator { height: 1px; margin: 4px 0; background: var(--line); } /* Editor tabs (#167): a preview tab is italic until it is kept; the drop marker while dragging. */ @@ -1242,7 +1306,7 @@ body { .settings-scope.is-active { color: var(--fg); border-bottom-color: var(--accent); } .settings-scope:disabled { opacity: 0.5; cursor: default; } .settings-scope-note { margin: 0; } -.link-button { align-self: flex-start; padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-size: 12px; cursor: pointer; } +.link-button { align-self: flex-start; padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-size: var(--fs-sm); cursor: pointer; } .link-button:hover { text-decoration: underline; } .link-button[hidden] { display: none; } .settings-errors { margin: 0 12px; } @@ -1256,23 +1320,17 @@ body { .settings-category { color: var(--muted); font-weight: 400; } .settings-description, .settings-note, .settings-key { margin: 0; } .settings-note { color: var(--accent); } -.settings-key { font-family: ui-monospace, 'Cascadia Code', Menlo, Consolas, monospace; font-size: 11px; overflow-wrap: anywhere; } +.settings-key { font-family: var(--font-mono); font-size: var(--fs-xs); overflow-wrap: anywhere; } .settings-reset[hidden] { display: none; } .settings-control { display: flex; } .settings-input, .settings-select { width: 100%; max-width: 320px; - height: 26px; box-sizing: border-box; padding: 0 6px; - border: 1px solid var(--line); - border-radius: 3px; - background: var(--editor); - color: var(--fg); - font: inherit; } .settings-input[type='number'] { max-width: 100px; } -.settings-input:focus, .settings-select:focus { border-color: var(--accent); outline: none; } + .settings-input[aria-invalid='true'] { border-color: var(--crit); } .settings-control input[type='checkbox'] { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); } @@ -1280,12 +1338,12 @@ body { .keybinding-keys { display: flex; flex-wrap: wrap; gap: 4px; min-height: 18px; align-items: center; } .settings-row-head .icon-button[hidden] { display: none; } .settings-row.is-recording { border-left-color: var(--accent); background: var(--hover); } -.keybinding-recorder { font-family: ui-monospace, 'Cascadia Code', Menlo, Consolas, monospace; caret-color: transparent; } +.keybinding-recorder { font-family: var(--font-mono); caret-color: transparent; } .keybinding-recorder:focus { border-color: var(--accent); outline: none; } .settings-input:disabled, .settings-select:disabled { opacity: 0.6; cursor: default; } /* AI agent hub (agents/agentsView.ts): reuses the side-bar, button and badge styles above. */ -.agents-store-note { margin: 0 12px 8px; padding: 6px 8px; border: 1px solid var(--crit); border-radius: 4px; } +.agents-store-note { margin: 0 12px 8px; padding: 6px 8px; border: 1px solid var(--crit); border-radius: var(--radius); } .agents-store-note[hidden], .agents-test-result[hidden], .agents-field[hidden] { display: none; } .agents-provider-list { list-style: none; margin: 0 0 8px; padding: 0; } .agents-provider { display: grid; gap: 4px; padding: 8px 12px; border-bottom: 1px solid var(--line); } @@ -1294,24 +1352,18 @@ body { .agents-provider-key, .agents-provider-url, .agents-test-result { margin: 0; overflow-wrap: anywhere; } .agents-test-result[data-state='ok'] { color: var(--accent); } .agents-test-result[data-state='error'] { color: var(--crit); } -.agents-form { display: grid; gap: 10px; margin: 0 12px 12px; padding: 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--editor); } +.agents-form { display: grid; gap: 10px; margin: 0 12px 12px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--editor); } .agents-form .error { margin: 0; overflow-wrap: anywhere; } .agents-form .env-actions .primary-button { margin: 0; width: auto; } .agents-field { display: grid; gap: 4px; } -.agents-field label { font-size: 11px; color: var(--muted); } +.agents-field label { font-size: var(--fs-xs); color: var(--muted); } .agents-help { margin: 0; } .agents-input { width: 100%; min-width: 0; - height: 26px; padding: 0 6px; - border: 1px solid var(--line); - border-radius: 3px; - background: var(--panel); - color: var(--fg); - font: inherit; } -.agents-input:focus { outline: 1px solid var(--accent); outline-offset: -1px; border-color: var(--accent); } + .agents-input:disabled { opacity: 0.7; } .agents-home[hidden], .agents-chat[hidden] { display: none; } .agents-new-chat { display: flex; gap: 6px; margin: 0 12px 8px; } @@ -1326,7 +1378,7 @@ body { .agents-row:focus-visible { outline: 1px solid var(--accent); outline-offset: -1px; } .agents-row-main { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; } .agents-row-title, .agents-row-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } -.agents-row-sub { font-size: 12px; } +.agents-row-sub { font-size: var(--fs-sm); } .agents-warn { color: var(--crit); } .agents-row-actions { display: flex; gap: 2px; visibility: hidden; } .agents-row:hover .agents-row-actions, .agents-row:focus-within .agents-row-actions, .agents-row-actions.is-visible { visibility: visible; } @@ -1339,9 +1391,9 @@ body { .agents-transcript { flex: 1; min-height: 0; overflow: auto; padding: 8px 12px; display: flex; flex-direction: column; gap: 12px; } .agents-chat-empty { margin: 8px 0; } .agents-message { display: grid; gap: 4px; min-width: 0; } -.agents-message.is-user { padding: 6px 8px; border-radius: 6px; background: var(--hover); } +.agents-message.is-user { padding: 6px 8px; border-radius: var(--radius-md); background: var(--hover); } .agents-message-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 24px; } -.agents-message-author { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); } +.agents-message-author { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); } .agents-message.is-assistant .agents-message-author { color: var(--accent); } .agents-message-body { min-width: 0; overflow-wrap: anywhere; line-height: 1.5; } .agents-message-body > :first-child { margin-top: 0; } @@ -1356,18 +1408,18 @@ body { /* Markdown inside answers (chatMarkdown.ts). */ .chat-paragraph { margin: 0 0 8px; } -.chat-heading { margin: 10px 0 6px; font-size: 13px; } +.chat-heading { margin: 10px 0 6px; font-size: var(--fs-md); } .chat-list { margin: 0 0 8px; padding-left: 20px; } .chat-list li { margin: 2px 0; } .chat-quote { margin: 0 0 8px; padding-left: 8px; border-left: 2px solid var(--line); color: var(--muted); } .chat-rule { border: 0; border-top: 1px solid var(--line); margin: 8px 0; } -.chat-inline-code { padding: 0 4px; border-radius: 3px; background: var(--hover); font-family: ui-monospace, 'Cascadia Code', Menlo, Consolas, monospace; font-size: 12px; } +.chat-inline-code { padding: 0 4px; border-radius: var(--radius-sm); background: var(--hover); font-family: var(--font-mono); font-size: var(--fs-sm); } .chat-link { color: var(--accent); } -.chat-code { margin: 0 0 8px; border: 1px solid var(--line); border-radius: 4px; background: var(--editor); overflow: hidden; } -.chat-code-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 2px 8px; border-bottom: 1px solid var(--line); font-size: 11px; color: var(--muted); } -.chat-code-action { padding: 2px 6px; border: 0; border-radius: 3px; background: none; color: var(--muted); font: inherit; cursor: pointer; } +.chat-code { margin: 0 0 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--editor); overflow: hidden; } +.chat-code-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 2px 8px; border-bottom: 1px solid var(--line); font-size: var(--fs-xs); color: var(--muted); } +.chat-code-action { padding: 2px 6px; border: 0; border-radius: var(--radius-sm); background: none; color: var(--muted); font: inherit; cursor: pointer; } .chat-code-action:hover { background: var(--hover); color: var(--fg); } -.chat-code pre { margin: 0; padding: 8px; overflow: auto; font-family: ui-monospace, 'Cascadia Code', Menlo, Consolas, monospace; font-size: 12px; line-height: 1.45; } +.chat-code pre { margin: 0; padding: 8px; overflow: auto; font-family: var(--font-mono); font-size: var(--fs-sm); line-height: 1.45; } .side-pane[data-view='agents']:has(> .agents-chat:not([hidden])) { height: 100%; } /* Attachments in the composer (A6): chips, and the "@" file list above the message box. */ @@ -1376,37 +1428,37 @@ body { .chat-chips { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; } .chat-chips[hidden] { display: none; } .chat-chips.is-static { margin-top: 6px; } -.chat-chip { display: inline-flex; align-items: center; gap: 2px; max-width: 100%; padding: 1px 2px 1px 6px; border: 1px solid var(--line); border-radius: 3px; background: var(--editor); font-family: ui-monospace, 'Cascadia Code', Menlo, Consolas, monospace; font-size: 11px; } +.chat-chip { display: inline-flex; align-items: center; gap: 2px; max-width: 100%; padding: 1px 2px 1px 6px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--editor); font-family: var(--font-mono); font-size: var(--fs-xs); } .chat-chips.is-static .chat-chip { padding-right: 6px; } .chat-chip-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } -.chat-chip-remove { padding: 0 4px; border: 0; border-radius: 2px; background: none; color: var(--muted); font: inherit; line-height: 1.4; cursor: pointer; } +.chat-chip-remove { padding: 0 4px; border: 0; border-radius: var(--radius-sm); background: none; color: var(--muted); font: inherit; line-height: 1.4; cursor: pointer; } .chat-chip-remove:hover { background: var(--hover); color: var(--fg); } -.chat-mention { position: absolute; left: 0; right: 0; bottom: calc(100% + 4px); z-index: 5; margin: 0; padding: 4px 0; list-style: none; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); box-shadow: 0 4px 12px rgb(0 0 0 / 0.35); } +.chat-mention { position: absolute; left: 0; right: 0; bottom: calc(100% + 4px); z-index: 5; margin: 0; padding: 4px 0; list-style: none; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow-md); } .chat-mention[hidden] { display: none; } -.chat-mention-row { padding: 3px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; cursor: pointer; } +.chat-mention-row { padding: 3px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-sm); cursor: pointer; } .chat-mention-row[aria-selected='true'], .chat-mention-row:hover { background: var(--hover); color: var(--fg); } /* Tools the agent used (A7), and the approval card a risky tool waits on. */ .chat-tools { display: grid; gap: 2px; margin: 0 0 6px; } .chat-tools:empty { display: none; } -.chat-tool { border-left: 2px solid var(--line); padding-left: 6px; font-size: 12px; } +.chat-tool { border-left: 2px solid var(--line); padding-left: 6px; font-size: var(--fs-sm); } .chat-tool-head { display: flex; align-items: baseline; gap: 6px; min-width: 0; cursor: pointer; list-style: none; } .chat-tool-head::-webkit-details-marker { display: none; } -.chat-tool-status { flex: none; font-size: 10px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); } +.chat-tool-status { flex: none; font-size: var(--fs-2xs); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); } .chat-tool-status.is-done { color: var(--accent); } .chat-tool-status.is-error, .chat-tool-status.is-denied { color: var(--crit); } .chat-tool-status.is-running { color: var(--warn); } -.chat-tool-name { flex: none; font-family: ui-monospace, 'Cascadia Code', Menlo, Consolas, monospace; font-size: 11px; } +.chat-tool-name { flex: none; font-family: var(--font-mono); font-size: var(--fs-xs); } .chat-tool-summary { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); } -.chat-tool-result, .chat-approval-detail { margin: 4px 0 2px; padding: 6px 8px; max-height: 200px; overflow: auto; border: 1px solid var(--line); border-radius: 4px; background: var(--editor); font-family: ui-monospace, 'Cascadia Code', Menlo, Consolas, monospace; font-size: 11px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; } -.chat-approval { display: grid; gap: 6px; padding: 8px; border: 1px solid var(--warn); border-radius: 6px; background: var(--panel); } +.chat-tool-result, .chat-approval-detail { margin: 4px 0 2px; padding: 6px 8px; max-height: 200px; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--editor); font-family: var(--font-mono); font-size: var(--fs-xs); line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; } +.chat-approval { display: grid; gap: 6px; padding: 8px; border: 1px solid var(--warn); border-radius: var(--radius-md); background: var(--panel); } .chat-approval-title { margin: 0; font-weight: 600; } .chat-approval .env-actions { flex-wrap: wrap; } /* Which tools an agent may use (agent form). */ -.agents-tools { display: grid; gap: 4px; margin: 0; padding: 6px 8px 8px; border: 1px solid var(--line); border-radius: 4px; min-width: 0; } -.agents-tools legend { padding: 0 4px; font-size: 12px; color: var(--muted); } -.agents-tool { display: flex; align-items: flex-start; gap: 6px; font-size: 12px; cursor: pointer; } +.agents-tools { display: grid; gap: 4px; margin: 0; padding: 6px 8px 8px; border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; } +.agents-tools legend { padding: 0 4px; font-size: var(--fs-sm); color: var(--muted); } +.agents-tool { display: flex; align-items: flex-start; gap: 6px; font-size: var(--fs-sm); cursor: pointer; } .agents-tool input { margin: 2px 0 0; flex: none; } .agents-tool-main { min-width: 0; } @@ -1414,15 +1466,15 @@ body { .edit-review { grid-area: editor; z-index: 40; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--editor); border-top: 2px solid var(--warn); } .edit-review-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--panel); } .edit-review-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; min-width: 0; } -.edit-review-kicker { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--warn); } -.edit-review-path { font-family: ui-monospace, 'Cascadia Code', Menlo, Consolas, monospace; font-size: 12px; overflow-wrap: anywhere; } +.edit-review-kicker { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--warn); } +.edit-review-path { font-family: var(--font-mono); font-size: var(--fs-sm); overflow-wrap: anywhere; } .edit-review-summary { flex-basis: 100%; } .edit-review > .error { margin: 0; padding: 6px 12px; } .edit-review-body { flex: 1; display: grid; grid-template-columns: minmax(160px, 220px) 1fr; min-height: 0; } .edit-review-hunks { margin: 0; padding: 6px 0; overflow: auto; list-style: none; border-right: 1px solid var(--line); background: var(--panel); } .edit-review-hunk { display: flex; align-items: center; gap: 6px; padding: 2px 10px; } .edit-review-hunk input { margin: 0; flex: none; } -.edit-review-hunk-label { padding: 2px 0; border: 0; background: none; color: var(--fg); font: inherit; font-size: 12px; text-align: left; cursor: pointer; } +.edit-review-hunk-label { padding: 2px 0; border: 0; background: none; color: var(--fg); font: inherit; font-size: var(--fs-sm); text-align: left; cursor: pointer; } .edit-review-hunk-label:hover { color: var(--accent); } .edit-review-diff { min-width: 0; min-height: 0; } .agents-message > *, .chat-approval > * { min-width: 0; } @@ -1433,27 +1485,27 @@ body { /* A sub-agent inside its delegate_task line (A11): the run tree. */ .chat-tool.has-child { border-left-color: var(--accent); } -.chat-child { display: grid; gap: 4px; margin: 4px 0 2px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); min-width: 0; } +.chat-child { display: grid; gap: 4px; margin: 4px 0 2px; padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); min-width: 0; } .chat-child > * { min-width: 0; } .chat-child-head { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; } .chat-child-agent { font-weight: 600; } .chat-child-task { margin: 0; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } -.chat-child-answer { font-size: 12px; overflow-wrap: anywhere; } +.chat-child-answer { font-size: var(--fs-sm); overflow-wrap: anywhere; } .chat-child-answer > :last-child { margin-bottom: 0; } /* #19: the scene header's XR row and the standalone-headset panel. */ .scene-header-col { display: flex; flex-direction: column; gap: 2px; min-width: 0; } -.scene-xr-button { flex: none; padding: 2px 8px; font-size: 12px; white-space: nowrap; } +.scene-xr-button { flex: none; padding: 2px 8px; font-size: var(--fs-sm); white-space: nowrap; } .scene-xr-button[hidden], .scene-xr-note[hidden], .scene-headset[hidden] { display: none; } .scene-xr-note { padding-left: 70px; color: var(--muted); white-space: normal; } .scene-headset { display: flex; align-items: flex-start; gap: 10px; padding: 4px 0 2px 70px; } -.scene-qr { flex: none; width: 132px; height: 132px; border-radius: 3px; } +.scene-qr { flex: none; width: 132px; height: 132px; border-radius: var(--radius-sm); } .scene-headset-text { min-width: 0; margin: 0; color: var(--muted); white-space: normal; } .scene-headset-text p { margin: 0 0 4px; } .scene-headset-text .scene-address { display: block; color: var(--fg); } /* A12: MCP servers */ -.agents-mcp-target { font-family: ui-monospace, 'Cascadia Code', Menlo, Consolas, monospace; overflow-wrap: anywhere; } +.agents-mcp-target { font-family: var(--font-mono); overflow-wrap: anywhere; } .agents-tool[hidden] { display: none; } .agents-mcp-tools { overflow-wrap: anywhere; } .agents-tool-filter { margin-bottom: 4px; } @@ -1471,7 +1523,7 @@ body { .agents-usage-table .is-number { text-align: right; font-variant-numeric: tabular-nums; } .agents-price-table td:first-child { min-width: 9em; } .agents-price-table input[type="number"] { width: 5.5em; } -.agents-budget-note { margin: 0 0 4px; padding: 4px 6px; border-radius: 4px; border: 1px solid var(--line); } +.agents-budget-note { margin: 0 0 4px; padding: 4px 6px; border-radius: var(--radius); border: 1px solid var(--line); } .agents-budget-note.is-warning { border-color: var(--warn); } .agents-budget-note.is-reached { border-color: var(--crit); } .agents-chat-total { display: block; margin-bottom: 4px; overflow-wrap: anywhere; } @@ -1479,3 +1531,41 @@ body { .agents-usage-list { list-style: none; margin: 2px 0 4px; padding: 0; display: grid; gap: 4px; } .agents-usage-list li { display: grid; min-width: 0; } .agents-usage-name { overflow-wrap: anywhere; } + +/* ---- Visual polish V3-V7 (docs/ide/visual-audit.md) ---------------------- + Rules that bring the surfaces built by different stories onto one rhythm: + 26px controls, 35px column headers, one badge shape, one close glyph. */ + +/* Close glyphs drawn in SVG, sized like every other icon. */ +.icon-button .close-icon, .notification-close .close-icon { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; } +.notification-close { display: grid; place-items: center; } + +/* V5: the scene header. Its first row lines up with the editor tabs (35px); + the address and XR rows wrap instead of clipping in a narrow column. */ +.scene-header { gap: 2px; padding: 0 6px 6px 12px; background: var(--chrome); } +.scene-header > .scene-header-row:first-child { min-height: var(--header-h); } +.scene-header-row { flex-wrap: wrap; row-gap: 4px; } +.scene-kind { padding: 0 6px; border-radius: var(--radius-pill); line-height: 18px; } +.scene-address-label { width: 56px; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.04em; } +.scene-header .secondary-button, .scene-xr-button { min-height: var(--control-h-sm); padding: 0 8px; font-size: var(--fs-sm); } +.scene-share { margin-left: auto; } +.scene-xr-note { padding-left: 62px; } + +/* V6: the welcome view. The build table is folded into "About this build". */ +.welcome-build { margin-top: 8px; color: var(--muted); } +.welcome-build > summary { display: inline-flex; align-items: center; gap: 6px; padding: 2px 0; font-size: var(--fs-sm); cursor: pointer; list-style: none; } +.welcome-build > summary::-webkit-details-marker { display: none; } +.welcome-build > summary::before { content: ''; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform 0.1s; } +.welcome-build[open] > summary::before { transform: rotate(45deg); } +.welcome-build > summary:hover { color: var(--fg); } +.welcome-build > p { margin: 8px 0 0; font-size: var(--fs-sm); } +.welcome-build .info-list { margin-top: 8px; color: var(--fg); } + +/* V7: side-bar views. Sections read as VS Code pane headers, notes keep the gutter. */ +.agents-usage-overview { margin-left: 12px; margin-right: 12px; } +.agents-store-note { border-color: color-mix(in srgb, var(--warn) 60%, var(--line)); border-left-width: 3px; background: color-mix(in srgb, var(--warn) 6%, transparent); font-size: var(--fs-sm); line-height: 1.45; } +.agents-inline-button { width: auto; } +.env-badge { line-height: 18px; padding: 0 8px; } +.env-badge[data-state='ready'] { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 60%, var(--line)); } +.env-actions .secondary-button { min-height: var(--control-h); } +.status-item { height: 20px; display: inline-flex; align-items: center; } diff --git a/apps/ide/src/renderer/viewers/viewers.css b/apps/ide/src/renderer/viewers/viewers.css index 35c61cdb..c83748a8 100644 --- a/apps/ide/src/renderer/viewers/viewers.css +++ b/apps/ide/src/renderer/viewers/viewers.css @@ -12,7 +12,7 @@ padding: 2px 8px; border-bottom: 1px solid var(--line); background: var(--chrome); - font-size: 12px; + font-size: var(--fs-sm); flex-wrap: wrap; white-space: nowrap; } @@ -25,29 +25,23 @@ .viewer-scroll[hidden], .viewer-message[hidden] { display: none; } .viewer-message { flex: 1; display: grid; place-items: center; padding: 24px; text-align: center; } .viewer-find { display: flex; align-items: center; gap: 2px; } -.viewer-find-input, .pdf-page-input { - height: 22px; - border: 1px solid var(--line); - border-radius: 3px; - background: var(--editor); - color: var(--fg); - font: inherit; -} + +.viewer-find-input, .pdf-page-input { height: var(--control-h-sm); } .viewer-find-input { width: 160px; padding: 0 6px; } -.viewer-find-input:focus, .pdf-page-input:focus { outline: 1px solid var(--accent); outline-offset: -1px; } + .viewer-find-count { min-width: 64px; margin: 0 4px; text-align: center; font-variant-numeric: tabular-nums; } .pdf-page-input { width: 40px; margin: 0 4px; text-align: center; } /* The image: fitted by default, checkerboard behind transparency. */ .image-viewer-stage { display: grid; place-items: center; padding: 16px; box-sizing: border-box; } .image-viewer-image { - background-color: #fff; + background-color: var(--checker-light); background-image: - linear-gradient(45deg, #ddd 25%, transparent 25%), linear-gradient(-45deg, #ddd 25%, transparent 25%), - linear-gradient(45deg, transparent 75%, #ddd 75%), linear-gradient(-45deg, transparent 75%, #ddd 75%); + linear-gradient(45deg, var(--checker-dark) 25%, transparent 25%), linear-gradient(-45deg, var(--checker-dark) 25%, transparent 25%), + linear-gradient(45deg, transparent 75%, var(--checker-dark) 75%), linear-gradient(-45deg, transparent 75%, var(--checker-dark) 75%); background-size: 16px 16px; background-position: 0 0, 0 8px, 8px -8px, -8px 0; - box-shadow: 0 1px 6px rgba(0, 0, 0, 0.3); + box-shadow: var(--shadow-sm); image-rendering: auto; } .image-viewer-stage.is-fit { overflow: hidden; } @@ -59,8 +53,8 @@ .pdf-page { position: relative; flex: none; - background: #fff; - box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35); + background: var(--checker-light); + box-shadow: var(--shadow-sm); --scale-round-x: 1px; --scale-round-y: 1px; } @@ -107,4 +101,4 @@ .pdf-page .textLayer br::selection { background: transparent; } .pdf-page .textLayer .endOfContent { display: block; position: absolute; inset: 100% 0 0; z-index: 0; cursor: default; user-select: none; } .pdf-page .textLayer.selecting .endOfContent { top: 0; } -.pdf-page .textLayer .highlight { position: static; margin: -1px; padding: 1px; border-radius: 3px; background-color: rgba(255, 140, 0, 0.5); } +.pdf-page .textLayer .highlight { position: static; margin: -1px; padding: 1px; border-radius: var(--radius-sm); background-color: rgba(255, 140, 0, 0.5); } diff --git a/apps/ide/src/renderer/workbench.ts b/apps/ide/src/renderer/workbench.ts index be299bc0..300bbad3 100644 --- a/apps/ide/src/renderer/workbench.ts +++ b/apps/ide/src/renderer/workbench.ts @@ -252,8 +252,12 @@ export function renderWorkbench(root: HTMLElement, storage: LayoutStorage | null document.createTextNode(' IDE'), ]), el('p', { className: 'welcome-tagline', text: 'Edit, analyse and explore your code in extended reality.' }), - status, - infoList, + // Visual polish V6: the build details are for a bug report, not the first thing a person reads. + el('details', { className: 'welcome-build', attrs: { 'data-testid': 'welcome-build' } }, [ + el('summary', { text: 'About this build' }), + status, + infoList, + ]), ]); const editorArea = el('main', { className: 'editor-area' }, [welcome]); @@ -373,6 +377,8 @@ export function renderWorkbench(root: HTMLElement, storage: LayoutStorage | null showError(message: string): void { status.textContent = message; status.className = 'error'; + // An error must not hide inside the collapsed build details. + status.parentElement?.setAttribute('open', ''); }, }; } diff --git a/apps/ide/test/designTokens.test.ts b/apps/ide/test/designTokens.test.ts new file mode 100644 index 00000000..d8ce0c67 --- /dev/null +++ b/apps/ide/test/designTokens.test.ts @@ -0,0 +1,87 @@ +// Visual polish V1: the renderer's stylesheets take colours, type sizes, +// radii and shadows from the design tokens declared at the top of styles.css. +// A raw value anywhere else is how the workbench drifted into eleven font +// sizes and nine radii; this test keeps it from drifting back. +import { describe, it } from 'node:test'; +import assert from 'node:assert/strict'; +import { readdirSync, readFileSync, statSync } from 'node:fs'; +import { join, relative } from 'node:path'; + +const RENDERER = join(import.meta.dirname, '..', 'src', 'renderer'); + +function cssFiles(dir: string): string[] { + return readdirSync(dir).flatMap((name) => { + const path = join(dir, name); + if (statSync(path).isDirectory()) { + return name === 'public' ? [] : cssFiles(path); + } + return name.endsWith('.css') ? [path] : []; + }); +} + +/** The token blocks: `:root { ... }`, also inside the light-theme media query. */ +function withoutTokenBlocks(css: string): string { + return css.replace(/:root\s*\{[^}]*\}/g, (block) => '\n'.repeat(block.split('\n').length - 1)); +} + +function withoutComments(css: string): string { + return css.replace(/\/\*[\s\S]*?\*\//g, (comment) => '\n'.repeat(comment.split('\n').length - 1)); +} + +interface Hit { file: string; line: number; text: string } + +function scan(pattern: RegExp, allow: (line: string) => boolean = () => false): Hit[] { + const hits: Hit[] = []; + for (const file of cssFiles(RENDERER)) { + const lines = withoutTokenBlocks(withoutComments(readFileSync(file, 'utf8'))).split('\n'); + lines.forEach((text, index) => { + if (pattern.test(text) && !allow(text)) { + hits.push({ file: relative(RENDERER, file), line: index + 1, text: text.trim() }); + } + }); + } + return hits; +} + +const report = (hits: Hit[]): string => hits.map((hit) => `${hit.file}:${hit.line} ${hit.text}`).join('\n'); + +describe('design tokens (visual polish V1)', () => { + it('finds the stylesheets', () => { + assert.ok(cssFiles(RENDERER).length >= 6); + }); + + it('declares every token it relies on, in both themes where it changes', () => { + const css = readFileSync(join(RENDERER, 'styles.css'), 'utf8'); + for (const token of ['--fs-xs', '--fs-sm', '--fs-md', '--radius', '--radius-pill', '--shadow-md', '--font-mono', '--control-h', '--button-bg', '--on-accent', '--ok', '--line-strong']) { + assert.match(css, new RegExp(`${token}:`), `${token} is not declared`); + } + const light = css.slice(css.indexOf('@media (prefers-color-scheme: light)')); + for (const token of ['--ok', '--button-bg', '--line-strong', '--shadow-md', '--on-warn']) { + assert.match(light, new RegExp(`${token}:`), `${token} has no light-theme value`); + } + }); + + it('uses no hex colour outside the token blocks', () => { + assert.deepEqual(scan(/#[0-9a-f]{3,8}\b/i), [], report(scan(/#[0-9a-f]{3,8}\b/i))); + }); + + it('uses no px font size outside the type scale (icon glyphs excepted)', () => { + const hits = scan(/font(-size)?:\s*\d+(\.\d+)?px/, (line) => /glyph/.test(line)); + assert.deepEqual(hits, [], report(hits)); + }); + + it('uses no px border radius outside the radius scale', () => { + const hits = scan(/border-radius:\s*\d+(\.\d+)?px/); + assert.deepEqual(hits, [], report(hits)); + }); + + it('draws shadows only from the elevation tokens', () => { + const hits = scan(/box-shadow:[^;]*rgba?\(/); + assert.deepEqual(hits, [], report(hits)); + }); + + it('writes the monospace stack once', () => { + const hits = scan(/Consolas|Menlo/); + assert.deepEqual(hits, [], report(hits)); + }); +}); diff --git a/docs/ide/visual-audit.md b/docs/ide/visual-audit.md new file mode 100644 index 00000000..f0f99cab --- /dev/null +++ b/docs/ide/visual-audit.md @@ -0,0 +1,150 @@ +# Code-XR IDE: visual and consistency audit + +Epic #300 (stories V1-V7, #301-#307). Branch `ide`, `apps/ide/src/renderer`. + +The IDE was built story by story (scaffold, explorer, terminal, Git, debugger, extensions, AI agents, the agent-first layout), and each story styled its own corner. The result works, but it does not look like one product. This audit lists what drifted, compares it with VS Code, Cursor and Zed, and records what was changed. Screenshots are taken from the built app (Electron 45, Linux, 1440x873, `nativeTheme` switched for each theme) and, for the report that started it, from Adrián's Windows machine. + +![The Agent mode on Windows, as reported](visual-audit/00-reported-windows.png) + +## 1. What the reference IDEs have in common + +| Trait | VS Code | Cursor | Zed | Code-XR before | +|---|---|---|---|---| +| Type scale | 11 / 12 / 13 px, 13 body | same as VS Code | 3 sizes | 11 sizes from 9 to 24 px | +| Control height | 26 px buttons and inputs | 26-28 px | 24-28 px | 20, 22, 24, 26, ~30 px, and native inputs | +| Radius | 2-4 px controls, 6 px cards | 4-8 px | 4-6 px | 2, 3, 4, 5, 6, 7, 8, 9, 10 px | +| Column headers | 35 px, all aligned | 35 px | aligned | tabs 35 px, dock ~33 px, scene header ~93 px | +| Filled buttons | dark blue, white text | brand fill, white text | quiet | `#2fb0ff` with near-white text (about 2.1:1) | +| Colours | theme tokens only | theme tokens | theme tokens | 30+ hex values outside the theme block | +| Errors | one notice, tinted | one notice | one notice | red bar plus a second red "The turn failed." | + +## 2. Findings + +Severity: **high** breaks readability or looks broken, **medium** is visibly inconsistent, **low** is polish. + +### Foundations (V1, V2) + +| # | Finding | Severity | Where | +|---|---|---|---| +| F1 | No type scale: 9, 10, 11, 12, 13, 14, 15, 16, 18, 22, 24 px are all in use. | medium | every stylesheet | +| F2 | Nine border radii for the same kinds of element (badges at 8, 9 and 10 px). | low | every stylesheet | +| F3 | Hard-coded colours: the "added" green `#3fb950`/`#1a7f37` in 10 rules (each with its own light override), debugger reds and yellows, the Restricted Mode text, image viewer checkerboard. | medium | git, debug, agentFirst, viewers | +| F4 | Primary buttons put `--status-fg` (`#e6f3fc`) on `--accent` (`#2fb0ff`): about 2.1:1 contrast in the dark theme. | **high** | New chat, Analyse project, Add provider, Commit | +| F5 | Five shadows written by hand, black even in the light theme. | low | menus, palette, notifications | +| F6 | Text fields and selects have no shared style: some use `--panel` (invisible on the side bar), some 22, 24 or 26 px, and the chat's selects and the agent picker fall back to Chromium's native look on Windows. | **high** | Agents view, Agent mode, panels | +| F7 | Buttons of four heights (padding-driven), primary full-width by default next to secondary auto-width ones. | medium | Analysis, Agents, notifications | +| F8 | The monospace stack is written 25 times, in two variants; one rule uses an undefined `--mono`. | low | everywhere | + +### Agent mode (V3, V4) + +| # | Finding | Severity | +|---|---|---| +| A1 | With no agent installed the agent picker beside New chat is an empty box: nothing says why New chat is disabled. | medium | +| A2 | The Agent/Classic switch looks like two table cells, not a segmented control. | low | +| A3 | Agent cards: uneven padding, no top separator, buttons with mixed heights (Claude Subscription / Check / Update / Remove on Windows). | medium | +| A4 | Composer options are bare values ("Auto", "Haiku 5.5", "Medium", "Off", "Auto"): nothing says which is the mode, the model or the effort. | **high** | +| A5 | A failed turn shows a red-edged notice and then a second red line, "The turn failed.". | medium | +| A6 | The send button and the done-step marker use the low-contrast accent fill (F4). | medium | + +### Columns, dock and scene header (V5) + +| # | Finding | Severity | +|---|---|---| +| C1 | The scene header is three loose rows (~93 px) whose first row does not line up with the editor tabs; the dock head is ~33 px. | medium | +| C2 | In a narrow dock the XR buttons are cut ("On a hea" in the Windows report) instead of wrapping. | **high** | +| C3 | Close buttons are a text "×" in the scene header, the dock and notifications, an SVG X in tabs: different weight and size. | low | + +### Welcome view (V6) + +| # | Finding | Severity | +|---|---|---| +| W1 | The first thing under the logo is a developer table (Version, Platform, Electron, Chromium, Node.js, Mode) and "Sandboxed renderer, context isolation on, strict CSP.". | medium | + +### Side-bar views (V7) + +| # | Finding | Severity | +|---|---|---| +| S1 | Agents view: the "Usage and budget" summary touches the side bar's left edge (no gutter). | medium | +| S2 | Agents view: the keychain information note is a red error box. | medium | +| S3 | Analysis view: "Ready" badge is neutral; the LivePanel button wraps onto two lines. | low | +| S4 | Status-bar items are not vertically centred in some states. | low | + +## 3. What changed + +### V1 Design tokens (#301) + +`styles.css` now opens with the token set, with light values where they differ: + +| Group | Tokens | +|---|---| +| Surfaces | `--chrome`, `--panel`, `--editor`, `--raised`, `--line`, `--line-strong`, `--hover`, `--active` | +| Text and roles | `--fg`, `--muted`, `--accent`, `--ok`, `--crit`, `--warn`, `--on-warn`, `--symbol`, `--button-bg`, `--button-hover`, `--on-accent`, `--status`, `--status-fg`, `--status-debug`, `--breakpoint`, `--debug-frame` | +| Type | `--font-ui`, `--font-mono`, `--fs-2xs` 10, `--fs-xs` 11, `--fs-sm` 12, `--fs-md` 13 (body), `--fs-lg` 14, `--fs-xl` 16, `--fs-2xl` 22 | +| Shape | `--radius-sm` 3, `--radius` 4, `--radius-md` 6, `--radius-lg` 8, `--radius-pill` | +| Depth | `--shadow-sm`, `--shadow-md`, `--shadow-lg` (lighter and tinted in the light theme) | +| Layout | `--control-h` 26, `--control-h-sm` 22, `--header-h` 35 | + +Every stylesheet of the renderer was rewritten onto them (about 270 values). `test/designTokens.test.ts` fails on a hex colour, a px font size (icon glyphs excepted), a px radius, an rgba shadow or a hand-written monospace stack outside the token blocks, so the drift cannot come back silently. + +Filled buttons use `--button-bg` (`#0b6fab` dark, `#0073bd` light) with white text: 5.4:1 and 5.0:1. + +### V2 Controls (#302) + +- `.primary-button` and `.secondary-button` share one rule: 26 px, 4 px radius, 12 px padding, icon slot, disabled at 50%. Danger is a secondary button with a red border that tints on hover. +- One rule styles every input and select (13 classes): editor surface, `--line-strong` border, muted placeholder, accent border plus a 1 px outline on focus. Native look is gone on every platform. +- Checkboxes and radios take `--button-bg`. + +### V3 Agent sessions column (#303) + +- The mode switch is a segmented control: a recessed track, the active segment raised with a 1 px outline. +- With no agent installed the picker reads "No agent yet" (disabled option) next to the disabled New chat button. +- Agent cards: 8 px 12 px padding, separators above and below, 22 px small buttons. + +![Sessions column, dark](visual-audit/08-sessions-column-dark.png) + +### V4 Chat and composer (#304) + +- Each composer option is a chip with its name: **Mode** Ask before edits, **Model** Sonnet 5.5, **Effort** Medium. The chip hides with its select when an agent has no modes. +- Warning and error notices are cards tinted with their colour and a 3 px edge; the turn-failed footer is now muted and small, so the error reads once. +- The send button uses `--button-bg`; the composer gains a soft shadow on focus. + +![Agent chat, dark](visual-audit/02-agent-chat-dark.png) + +### V5 Column headers (#305) + +- `--header-h` drives the editor tab strip, the panel header, the dock head and the scene header's first row, so the top edge is one line across the three columns. +- The scene header sits on `--chrome` like the tab strip; its rows wrap, its labels are small caps, its buttons are 22 px and the share button stays at the right. +- A shared `closeIcon()` (`renderer/dom.ts`) draws the same SVG X for the scene, the dock and notifications. + +![Scene header, light](visual-audit/03-scene-header-light.png) + +### V6 Welcome view (#306) + +The build table and the sandbox line are folded into an **About this build** disclosure, closed by default and opened by a start-up error. `data-ready` is unchanged, so the smoke run's welcome check still holds. + +![Agent mode home, dark](visual-audit/01-agent-home-dark.png) + +### V7 Side-bar views (#307) + +- The usage summary keeps the 12 px gutter; the keychain note is an amber notice. +- Python "Ready" is a green pill; LivePanel fits on one line with the new button padding. +- Status-bar items are centred. + +![Agents view, light](visual-audit/05-agents-view-light.png) +![Analysis view, dark](visual-audit/06-analysis-view-dark.png) +![Source Control, light](visual-audit/07-scm-light.png) +![Classic mode, dark](visual-audit/04-classic-editor-dark.png) + +## 4. Not changed, and next candidates + +- The agent cards still print the vendor's install sentence with the `npm install -g ...` command; a code chip with a copy button would be clearer. That text comes from `agentSetupModel.ts`, which the sign-in and chat-import work (#299) is changing, so it waits for that to land. +- Tool rows in the chat repeat the path in the title and in the link. +- The XR scene itself (A-Frame) and Monaco's theme are outside this epic; the scene could not be rendered in the cloud container (no WebGL), so its screenshots show an empty slot. +- A high-contrast theme would now be a token block, not a rewrite. + +## 5. How to check by hand + +1. `npm run ide:dev`, open a folder, switch Help > Toggle theme (or the OS theme) between light and dark. +2. Agent mode: the picker without agents, a chat with an agent (option chips, a failed turn), the dock and scene header at a narrow width (drag the sash until the XR buttons wrap). +3. Classic mode: editor tabs, scene header and panel tabs on one line; Analysis, Agents, Source Control, Settings views. +4. Welcome view: About this build is closed and opens. diff --git a/docs/ide/visual-audit/00-reported-windows.png b/docs/ide/visual-audit/00-reported-windows.png new file mode 100644 index 00000000..b8d81959 Binary files /dev/null and b/docs/ide/visual-audit/00-reported-windows.png differ diff --git a/docs/ide/visual-audit/01-agent-home-dark.png b/docs/ide/visual-audit/01-agent-home-dark.png new file mode 100644 index 00000000..9ba4c044 Binary files /dev/null and b/docs/ide/visual-audit/01-agent-home-dark.png differ diff --git a/docs/ide/visual-audit/02-agent-chat-dark.png b/docs/ide/visual-audit/02-agent-chat-dark.png new file mode 100644 index 00000000..ebbc3069 Binary files /dev/null and b/docs/ide/visual-audit/02-agent-chat-dark.png differ diff --git a/docs/ide/visual-audit/03-scene-header-light.png b/docs/ide/visual-audit/03-scene-header-light.png new file mode 100644 index 00000000..900fae5a Binary files /dev/null and b/docs/ide/visual-audit/03-scene-header-light.png differ diff --git a/docs/ide/visual-audit/04-classic-editor-dark.png b/docs/ide/visual-audit/04-classic-editor-dark.png new file mode 100644 index 00000000..4696165e Binary files /dev/null and b/docs/ide/visual-audit/04-classic-editor-dark.png differ diff --git a/docs/ide/visual-audit/05-agents-view-light.png b/docs/ide/visual-audit/05-agents-view-light.png new file mode 100644 index 00000000..cc214bf0 Binary files /dev/null and b/docs/ide/visual-audit/05-agents-view-light.png differ diff --git a/docs/ide/visual-audit/06-analysis-view-dark.png b/docs/ide/visual-audit/06-analysis-view-dark.png new file mode 100644 index 00000000..fb0959cd Binary files /dev/null and b/docs/ide/visual-audit/06-analysis-view-dark.png differ diff --git a/docs/ide/visual-audit/07-scm-light.png b/docs/ide/visual-audit/07-scm-light.png new file mode 100644 index 00000000..b50286fb Binary files /dev/null and b/docs/ide/visual-audit/07-scm-light.png differ diff --git a/docs/ide/visual-audit/08-sessions-column-dark.png b/docs/ide/visual-audit/08-sessions-column-dark.png new file mode 100644 index 00000000..4642b84c Binary files /dev/null and b/docs/ide/visual-audit/08-sessions-column-dark.png differ