Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 10 additions & 39 deletions apps/cockpit/src/app/cockpit.css
Original file line number Diff line number Diff line change
@@ -1,34 +1,5 @@
@import "tailwindcss";

@theme inline {
--color-background: var(--background);
--color-foreground: var(--foreground);
--color-primary: var(--primary);
--color-primary-foreground: var(--primary-foreground);
--color-card: var(--card);
--color-card-foreground: var(--card-foreground);
--color-muted: var(--muted);
--color-muted-foreground: var(--muted-foreground);
--color-border: var(--border);
--color-input: var(--input);
--color-ring: var(--ring);
}

:root {
/* shadcn semantic vars — light palette */
--background: #f8f9fc;
--foreground: #1a1a2e;
--primary: #004090;
--primary-foreground: #ffffff;
--card: rgba(255, 255, 255, 0.45);
--card-foreground: #1a1a2e;
--muted: rgba(0, 64, 144, 0.06);
--muted-foreground: #555770;
--border: rgba(0, 64, 144, 0.15);
--input: rgba(0, 64, 144, 0.15);
--ring: #004090;
}

/* Shiki code blocks — preserve dark background from theme */
pre.shiki {
padding: 1rem;
Expand All @@ -41,8 +12,8 @@ pre.shiki {
/* ── Doc components ────────────────────────────────────────── */

.doc-summary {
background: rgba(0, 64, 144, 0.04);
border: 1px solid rgba(0, 64, 144, 0.12);
background: var(--ds-accent-surface);
border: 1px solid var(--ds-accent-border);
border-radius: 0.5rem;
padding: 0.75rem 1rem;
margin-bottom: 1.5rem;
Expand All @@ -67,8 +38,8 @@ pre.shiki {
}
.doc-callout__content { color: var(--ds-text-secondary); }
.doc-callout--tip {
background: rgba(0, 64, 144, 0.04);
border: 1px solid rgba(0, 64, 144, 0.12);
background: var(--ds-accent-surface);
border: 1px solid var(--ds-accent-border);
}
.doc-callout--tip .doc-callout__label { color: var(--ds-accent); }
.doc-callout--note {
Expand Down Expand Up @@ -105,7 +76,7 @@ pre.shiki {
.doc-step__line {
width: 2px;
flex: 1;
background: rgba(0, 64, 144, 0.15);
background: var(--ds-accent-border);
margin: 0.375rem 0;
min-height: 1rem;
}
Expand All @@ -127,7 +98,7 @@ pre.shiki {
.doc-step__content pre.shiki { margin: 0.5rem 0; border-radius: 0.5rem; }

.doc-codeblock {
border: 1px solid rgba(0, 64, 144, 0.12);
border: 1px solid var(--ds-accent-border);
border-radius: 0.5rem;
overflow: hidden;
margin: 0.75rem 0;
Expand All @@ -139,14 +110,14 @@ pre.shiki {
gap: 0.5rem;
padding: 0.4rem 0.75rem;
border-bottom: 1px solid rgba(138, 170, 214, 0.12);
background: rgba(26, 27, 38, 0.95);
background: var(--ds-surface);
font-size: 0.7rem;
}
.doc-codeblock__file { color: #a9b1d6; font-family: var(--font-mono); }
.doc-codeblock__lang {
padding: 0.1rem 0.35rem;
border-radius: 0.2rem;
background: rgba(0, 64, 144, 0.15);
background: var(--ds-accent-border);
color: var(--ds-accent-light);
font-size: 0.6rem;
}
Expand Down Expand Up @@ -220,11 +191,11 @@ pre.shiki {
font-size: 0.65rem;
text-transform: uppercase;
letter-spacing: 0.06em;
border-bottom: 1px solid var(--border);
border-bottom: 1px solid var(--ds-border);
}
.doc-api-table td {
padding: 0.5rem 0.75rem;
border-bottom: 1px solid rgba(0, 64, 144, 0.08);
border-bottom: 1px solid var(--ds-accent-border);
color: var(--ds-text-secondary);
}
.doc-api-table code {
Expand Down
3 changes: 1 addition & 2 deletions apps/cockpit/src/components/api-mode/api-mode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,9 @@ function DocArticle({ section }: { section: DocSection }) {
}}
>
<div
className="px-4 py-3 border-b"
className="px-4 py-3 border-b border-[var(--ds-accent-border)]"
style={{
background: 'var(--ds-accent-surface)',
borderBottomColor: 'var(--ds-accent-border)',
}}
>
<div className="flex items-baseline gap-2">
Expand Down
5 changes: 2 additions & 3 deletions apps/cockpit/src/components/cockpit-shell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,9 @@ export function CockpitShell({
onClose={() => setIsSidebarOpen(false)}
/>

<section className="grid grid-rows-[auto_1fr] gap-2 p-4 overflow-hidden bg-[var(--ds-surface)]">
<section className="grid grid-rows-[auto_1fr] overflow-hidden bg-[var(--ds-surface)]">
<header
className="flex flex-col gap-2 md:flex-row md:items-center md:justify-between pb-3"
style={{ borderBottom: '1px solid var(--ds-border)' }}
className="flex flex-col gap-2 md:flex-row md:items-center md:justify-between px-4 py-3 border-b border-[var(--ds-border)]"
>
<div className="flex items-center gap-3">
<button
Expand Down
5 changes: 3 additions & 2 deletions apps/cockpit/src/components/code-mode/code-mode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,14 @@ function CodeFileContent({ path, content }: { path: string; content: string | un
boxShadow: 'var(--ds-shadow-sm)',
overflow: 'hidden',
}}>
<div style={{
<div
className="border-b border-[var(--ds-border)]"
style={{
display: 'flex',
justifyContent: 'space-between',
alignItems: 'center',
padding: '6px 12px',
background: 'rgba(26, 27, 38, 0.95)',
borderBottom: '1px solid rgba(255,255,255,0.06)',
}}>
<span style={{ fontFamily: 'var(--ds-font-mono)', fontSize: '0.7rem', color: '#a9b1d6' }}>{path}</span>
<button
Expand Down
3 changes: 1 addition & 2 deletions apps/cockpit/src/components/mobile-nav-overlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ export function MobileNavOverlay({
>
{/* Header */}
<header
className="flex items-center justify-between px-4 py-3"
style={{ borderBottom: '1px solid var(--ds-border)' }}
className="flex items-center justify-between px-4 py-3 border-b border-[var(--ds-border)]"
>
<p
className="font-mono text-xs font-semibold uppercase tracking-wide"
Expand Down
3 changes: 1 addition & 2 deletions apps/cockpit/src/components/sidebar/cockpit-sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,11 @@ export function CockpitSidebar({
return (
<aside
aria-label="Cockpit sidebar"
className="flex flex-col gap-4 py-6 px-0 border-r bg-[var(--ds-surface-tinted)] overflow-y-auto"
className="flex flex-col gap-4 py-6 px-0 border-r border-[var(--ds-border-strong)] bg-[var(--ds-surface-tinted)] overflow-y-auto"
style={{
position: 'sticky',
top: 0,
minHeight: '100vh',
borderRightColor: 'var(--ds-border-strong)',
}}
>
<header className="flex items-center justify-between px-4">
Expand Down
4 changes: 2 additions & 2 deletions apps/cockpit/src/components/sidebar/navigation-groups.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,15 @@ function ProductGroup({
key={`${entry.product}-${entry.topic}`}
href={toCockpitPath(entry)}
aria-current={isActive ? 'page' : undefined}
className={isActive ? 'border-l-2 border-[var(--ds-accent)]' : 'border-l-2 border-transparent'}
style={{
display: 'block',
padding: isActive ? '5px 16px 5px 14px' : '5px 16px',
padding: '5px 16px 5px 14px',
margin: '0 8px',
borderRadius: 6,
fontSize: '0.825rem',
color: isActive ? 'var(--ds-accent)' : 'var(--ds-text-secondary)',
background: isActive ? 'var(--ds-accent-surface)' : 'transparent',
borderLeft: isActive ? '2px solid var(--ds-accent)' : 'none',
textDecoration: 'none',
transition: 'all 0.15s',
}}
Expand Down
Loading
Loading