The one and only agent harness for complex codebases. Project memory, planning, execution, and verified completion inside Codex.
JavaScript aiai-agentsclaudeclaude-codeclicodexdeveloper-toolslazylazycodexoh-my-openagentomoopenaiorchestrationtypescript
feat(web): adopt green design system and clean brand mark
YeonGyu-Kimd7d055f05db1
diff --git a/packages/web/DESIGN.md b/packages/web/DESIGN.mdindex eed7af44..f5fda84e 100644--- a/packages/web/DESIGN.md+++ b/packages/web/DESIGN.md@@ -1,125 +1,69 @@# LazyCodex Design System## 1. Core Philosophy-- **Complex-Codebase Harness Tone**: The page uses a near-black canvas (`#0a0a0a`) with a centered, glowing teal card that presents LazyCodex as the Codex agent harness for serious repositories.-- **Card-in-Canvas Architecture**: The main content lives inside a 1200x630px card with a complex radial gradient, and the OpenGraph image mirrors that HTML card instead of using a separate visual language.-- **Typography**: Clean, geometric sans-serif (Geist Sans) for the wordmark and tagline, with monospace (Geist Mono) for eyebrows and footers.+- **Complex-Codebase Harness Tone**: A near-black canvas with a faint cool-green undertone, centered on a glowing emerald card that presents LazyCodex as the Codex agent harness for serious repositories. The brand color is green — emerald/mint — not the earlier teal.+- **Card-in-Canvas Architecture**: The hero content lives inside a 1200x630px card with a complex radial gradient; the OpenGraph image mirrors that HTML card instead of using a separate visual language.+- **Typography**: A native system grotesk (`ui-sans-serif, system-ui, …`) for the wordmark and body so the LCP paint has zero webfont dependency and lands at FCP; monospace (`ui-monospace, …`) for eyebrows, code, labels, and kbd hints.## 2. Color Palette-- `--surface-base`: `#0a0a0a` (Near-black canvas)-- `--card-base`: `#0E1115` (Panel and hero card base)-- `--brand-core`: `#008385` (Teal gradient core)-- `--brand-mid`: `#006668` (Gradient mid)-- `--brand-outer`: `#004d4e` (Gradient outer)-- `--text-primary`: `#ffffff` (White)-- `--text-secondary`: `#99A1AF` (Muted gray)-- `--text-tertiary`: `#8A93A2` (Soft gray)-- `--text-muted`: `rgba(255, 255, 255, 0.72)` (Translucent white)-- `--text-soft`: `#E4FFFF` (Soft cyan-white)-- `--accent-cyan`: `#87F0F2` (Primary accent)-- `--accent-teal`: `#008385` (Secondary accent)-- `--accent-mint`: `#B3FEFF` (Highlight accent)-- `--accent-glow`: `#ABF5F7` (Glow accent)+Surfaces (near-black, cool-green undertone):+- `--surface-base` / `--surface-night` / `--surface-0`: `#0a0c0b`+- `--surface-1`: `rgba(255,255,255,0.018)` · `--surface-2`: `rgba(255,255,255,0.035)` · `--surface-3`: `rgba(255,255,255,0.055)`+- `--card-base` / `--surface-panel`: `#0E1411` · `--surface-panel-alt`: `#0C1310` · `--surface-panel-deep`: `#0D1310`-## 3. Typography Scale-- **Wordmark**: `clamp(64px, 12vw, 168px)`, medium weight, tight tracking (`-0.03em`).-- **Tagline**: `clamp(20px, 3vw, 34px)`, normal weight, tight tracking (`-0.005em`).-- **Eyebrow**: `15px`, medium weight, wide tracking (`0.32em`), uppercase, monospace.-- **Footer URL**: `22px`, medium weight, tracking (`0.02em`), monospace.+Brand (emerald core):+- `--brand-core`: `#10b981` · `--brand-mid`: `#059669` · `--brand-outer`: `#065f46`-## 4. Layout & Spacing-- **Canvas**: Full viewport (`min-h-[100dvh]`), flex column, centered.-- **Card**: Max width 1200px, aspect ratio 1200/630 on large screens. Rounded corners (`16px`).-- **Outer Elements**: The canvas may carry small co-brand labels outside the card when needed, but the current public landing page leads with installable Codex setup instead of launch timing.--## 5. Gradients & Effects-- **Base Gradient**: Radial gradient from `#008385` through `#006668` and `#004d4e` into `#0a0a0a`.-- **Beam**: Screen blend mode, soft white light pouring from top-left.-- **Sheen**: Screen blend mode, diagonal linear gradients with blur.-- **Pools**: Screen blend mode, subtle teal/cyan pools at bottom-left and top-right.-- **Grain**: Overlay blend mode, SVG fractal noise.--## 6. Co-brand layer (Sisyphus Labs)--Sisyphus Labs colors are used as accents across the landing page while the black/teal Codex card stays the hero centerpiece.--- **Cyan**: `#87F0F2`-- **Teal**: `#008385`-- **Mint**: `#B3FEFF`-- **Glow**: `#ABF5F7`-- **Night**: `#0A0A0A`-- **Panel**: `#0E1115`--Where they appear:-- GitHub stars pill in the sticky header-- Command-card accents (borders, icons, hover states)-- The `verified completion` keyword glow inside the hero tagline-- CTA and link accents (hover underlines, button fills)-- Footer co-brand strip--## 7. Landing IA--The landing page is a single scrollable document with the following sections, top to bottom:+Accent (the live-wire green):+- `--accent-primary`: `#34d399` · `--accent-primary-soft`: `rgba(52,211,153,0.1)` · `--accent-primary-border`: `rgba(52,211,153,0.22)`+- `--accent-mint`: `#6ee7b7` · `--accent-glow`: `#6ee7b7`+- Legacy aliases `--accent-cyan` / `--accent-teal` are mapped to the green values for compatibility; new code uses `--accent-primary` / `--accent-mint`.-1. **Sticky header**- - Boulder mark (small, 32px) + wordmark- - GitHub stars pill (Sisyphus Labs cyan accent)- - "Docs" link- - "by Sisyphus Labs" co-brand+Text:+- `--text-primary`: `#ffffff` · `--text-secondary`: `#9aa6a0` · `--text-tertiary`: `#7a857f`+- `--text-muted`: `rgba(255,255,255,0.72)` · `--text-soft`: `#d1fae5` (mint-tinted)-2. **Hero luminous card**- - Eyebrow: "AGENT HARNESS FOR COMPLEX CODEBASES"- - H1 wordmark- - Tagline: "The one and only agent harness for complex codebases. / Project memory, planning, execution, and verified completion."- - The `planning,` placeholder uses Geist Mono and pulses subtly+Borders / status:+- `--border-subtle`: `rgba(255,255,255,0.06)` · `--border-default`: `rgba(255,255,255,0.1)`+- `--status-success`: `#10b981` · `--status-warning`: `#f59e0b` · `--status-error`: `#ef4444`-3. **Install block**- - Copyable bash snippet: `npx lazycodex-ai install`- - One-line note: equivalent OmO install command- - Secondary line for the autonomous variant: `npx lazycodex-ai install --no-tui --codex-autonomous`+## 3. Brand Mark+- A rounded-square emerald mark with an "L" stroke and a mint dot — a clean geometric identity replacing the earlier boulder. Inline SVG in the header (zero network bytes), mirrored in the favicon and OG image.+- `app/icon.svg` is the canonical scalable favicon; `app/apple-icon.png` at 180x180 for Apple touch surfaces.-4. **Three command cards**- - `$ulw-loop` — self-referential loop- - `$ulw-plan` — Prometheus planner- - `$start-work` — plan executor- - Each card has a monospace command header, a one-line description, and a syntax example--5. **Harness workflows + skill coverage**- - The existing three command cards remain the main pillars and appear before this guide- - Explains the installed LazyCodex workflows: `/init-deep`, `$ulw-plan`, `$start-work`, and `$ulw-loop`- - Calls out project memory, planning, execution, and verified completion- - Lists built-in skill coverage such as `review-work`, `remove-ai-slops`, `frontend-ui-ux`, `programming`, LSP, AST-grep, rules, and comment-checker--6. **Ultrawork explainer**- - Short paragraph on what `ultrawork` means (OmO discipline mode, parallel agents, auto-verification)- - Link to the docs deep-dive--7. **Docs CTA**- - Large button: "Read the docs"- - Secondary link: "View on GitHub"--8. **Footer**- - Sisyphus Labs co-brand strip (night + panel colors)- - Links: GitHub, OmO, sisyphuslabs.ai- - MIT license note--## 8. Docs system--- **Markdown source**: `content/docs/*.md`-- **Build-time compilation**: `marked` parses each `.md` file into HTML strings and TypeScript exports at `lib/docs-content.generated.ts`-- **Static navigation**: `lib/docs-sections.ts` defines the section order, slugs, and titles; no runtime file-system access-- **Server rendering**: Each docs page is server-rendered (SSR) so the content is readable with JavaScript disabled-- **Client docs-shell**: A lean React layer adds:- - Search (filters sections by title and heading text)- - Scroll-spy (highlights the current heading in the nav)- - Mobile menu (collapsible section list)--## 9. Image pipeline+## 4. Layout & Spacing+- **Landing canvas**: Full viewport (`min-h-[100dvh]`), flex column, centered. Hero card max width 1200px, aspect ratio 1200/630 on large screens, `16px` radius.+- **Docs**: three-column grid on desktop — `260px` sidebar | fluid content | `220px` right ToC. Collapses to two columns (hide ToC) under 1100px and to a single column with a mobile menu toggle under 768px. Every container uses `min-h-[100dvh]` (never `h-screen`) and `dvh` for iOS Safari stability. No flexbox percentage math; CSS Grid for multi-column.-- **OpenGraph / Twitter card**: `app/opengraph-image.tsx` and `app/twitter-image.tsx` use `next/og` and inline the same black/teal tokens, gradient layers, wordmark, harness tagline, planning pill, pillar chips, URL, and install command seen in the HTML hero.-- **Boulder art**: Generated via `imagegen` on a chroma background, keyed to alpha so it composites cleanly on the dark canvas without a visible bounding box-- **Delivery format**: Served as AVIF / WebP / PNG via a `<picture>` element using the `BrandImage` component-- **Dimensions**: Explicit `width` and `height` attributes on every image to prevent CLS-- **Favicon / app-icon**: The simplified boulder mark from the sticky header is the canonical site icon so browser chrome, pinned tabs, and the in-page wordmark read as one identity:- - `app/icon.svg` for the scalable browser favicon- - `app/apple-icon.png` at 180x180 for Apple touch surfaces, generated from the same mark+## 5. Gradients & Effects+- **Base Gradient**: radial from `#10b981` through `#059669` and `#065f46` into `#0a0c0b`.+- **Beam**: screen blend mode, soft mint light pouring from top-left.+- **Sheen**: screen blend mode, diagonal linear gradients with blur.+- **Pools**: screen blend mode, subtle emerald/mint pools at bottom-left and top-right.++## 6. Docs Information Architecture (vibetip-inspired)+The docs are a single richly-sectioned page with a grouped sidebar, ⌘K search, a per-section right-side table of contents, and prev/next navigation cards — inspired by the lzx.vibetip.help docs layout.++- **Sidebar groups** (ordered): Install · Getting started · Commands · Concepts · Skills · Reference.+- **⌘K / Ctrl-K** focuses the search field from anywhere; typing filters sidebar entries by title.+- **Right ToC ("On this section")** lists the active section's `h2`/`h3` headings with scroll-spy highlighting.+- **Prev/next cards** at the end of every section link to the neighboring section.+- **Docs hero** carries a version badge (`SITE_CONFIG.version`), title, and tagline.+- Content is authored as `content/docs/*.md`, compiled to HTML at build time by `scripts/generate-docs-content.mjs`, which also injects heading ids and emits a per-section TOC (`DOC_TOC`) alongside `DOC_SOURCES`.++## 7. Motion+- Hero uses a `splash-reveal` keyframe (opacity + translate) gated by `prefers-reduced-motion`.+- All interactive transitions (nav links, ToC links, prev/next cards, buttons) are short color/transform tweens, disabled under `prefers-reduced-motion`. No layout-property animation; no full `framer-motion` import.++## 8. Performance & SEO Posture+- System font stack for the LCP wordmark so the largest paint has no webfont download and lands at FCP under any throttle.+- Image-free hero (pure CSS gradients) keeps the hero text as the LCP element.+- Explicit `width`/`height` on every `<img>` to prevent CLS; `loading`/`fetchPriority`/`decoding` driven by `priority`.+- Per-route `metadata`, JSON-LD `SoftwareApplication`, `sitemap.ts`, `robots.ts`, and OG/Twitter image routes.++## 9. Anti-Patterns+- Generic AI-SaaS slop copy. Use concrete product language.+- Teal/cyan brand colors (replaced by emerald/mint). The earlier teal identity is gone; green is the brand.+- `export const runtime = "edge"` (incompatible with `@opennextjs/cloudflare`).+- Animating `width / height / top / left / margin / padding`.+- Importing the full `framer-motion` package.diff --git a/packages/web/app/globals.css b/packages/web/app/globals.cssindex a32abaf3..fc68e398 100644--- a/packages/web/app/globals.css+++ b/packages/web/app/globals.css@@ -13,24 +13,47 @@@layer base {:root {- --surface-base: #0a0a0a;- --card-base: #0E1115;- --brand-core: #008385;- --brand-mid: #006668;- --brand-outer: #004d4e;+ /* Surfaces — near-black canvas with a faint cool-green undertone. */+ --surface-base: #0a0c0b;+ --surface-0: #0a0c0b;+ --surface-1: rgba(255, 255, 255, 0.018);+ --surface-2: rgba(255, 255, 255, 0.035);+ --surface-3: rgba(255, 255, 255, 0.055);+ --card-base: #0E1411;+ --surface-night: #0a0c0b;+ --surface-panel: #0E1411;+ --surface-panel-alt: #0C1310;+ --surface-panel-deep: #0D1310;++ /* Brand — green core (green-500 family), clearly green not teal. */+ --brand-core: #22c55e;+ --brand-mid: #16a34a;+ --brand-outer: #15803d;++ /* Text. */--text-primary: #ffffff;- --text-secondary: #99A1AF;- --text-tertiary: #8A93A2;- --text-muted: rgba(255, 255, 255, 0.72);- --text-soft: #E4FFFF;- --accent-cyan: #87F0F2;- --accent-teal: #008385;- --accent-mint: #B3FEFF;- --accent-glow: #ABF5F7;- --surface-night: #0A0A0A;- --surface-panel: #0E1115;- --surface-panel-alt: #0C1217;- --surface-panel-deep: #0D1117;+ --text-secondary: #b8c2bc;+ --text-tertiary: #8b9690;+ --text-muted: rgba(255, 255, 255, 0.74);+ --text-soft: #dcfce7;++ /* Accent — the live-wire green (green-400/300, unambiguously green). */+ --accent-primary: #4ade80;+ --accent-primary-soft: rgba(74, 222, 128, 0.1);+ --accent-primary-border: rgba(74, 222, 128, 0.24);+ --accent-cyan: #4ade80;+ --accent-teal: #22c55e;+ --accent-mint: #86efac;+ --accent-glow: #86efac;++ /* Borders. */+ --border-subtle: rgba(255, 255, 255, 0.06);+ --border-default: rgba(255, 255, 255, 0.1);++ /* Status. */+ --status-success: #22c55e;+ --status-warning: #f59e0b;+ --status-error: #ef4444;}html {@@ -58,33 +81,33 @@:focus-visible {border-radius: 6px;- outline: 2px solid var(--text-primary);+ outline: 2px solid var(--accent-primary);outline-offset: 3px;}}@layer utilities {.card-gradient-base {- background: radial-gradient(120% 100% at 60% 65%, #008385 0%, #006668 35%, #004d4e 70%, #0a0a0a 100%);+ background: radial-gradient(120% 100% at 60% 65%, #22c55e 0%, #16a34a 35%, #15803d 70%, #0a0c0b 100%);}.card-gradient-beam {- background: radial-gradient(55% 55% at 38% -8%, rgba(179,254,255,0.62) 0%, rgba(135,240,242,0.22) 35%, rgba(255,255,255,0) 65%),- radial-gradient(32% 28% at 55% -5%, rgba(171,245,247,0.42) 0%, rgba(255,255,255,0) 70%);+ background: radial-gradient(55% 55% at 38% -8%, rgba(134,239,172,0.55) 0%, rgba(74,222,128,0.22) 35%, rgba(255,255,255,0) 65%),+ radial-gradient(32% 28% at 55% -5%, rgba(134,239,172,0.38) 0%, rgba(255,255,255,0) 70%);mix-blend-mode: screen;}.card-gradient-sheen {- background: linear-gradient(118deg, transparent 18%, rgba(179,254,255,0.16) 26%, rgba(179,254,255,0.30) 30%, rgba(179,254,255,0.12) 35%, transparent 45%),- linear-gradient(112deg, transparent 8%, rgba(135,240,242,0.12) 15%, transparent 28%);+ background: linear-gradient(118deg, transparent 18%, rgba(134,239,172,0.16) 26%, rgba(134,239,172,0.30) 30%, rgba(134,239,172,0.12) 35%, transparent 45%),+ linear-gradient(112deg, transparent 8%, rgba(74,222,128,0.12) 15%, transparent 28%);filter: blur(20px);mix-blend-mode: screen;opacity: 0.85;}.card-gradient-pools {- background: radial-gradient(55% 50% at 8% 95%, rgba(0,131,133,0.26), transparent 70%),- radial-gradient(45% 45% at 95% 40%, rgba(135,240,242,0.20), transparent 70%);+ background: radial-gradient(55% 50% at 8% 95%, rgba(34,197,94,0.26), transparent 70%),+ radial-gradient(45% 45% at 95% 40%, rgba(134,239,172,0.20), transparent 70%);mix-blend-mode: screen;}diff --git a/packages/web/app/icon.svg b/packages/web/app/icon.svgindex a68c5e55..12631620 100644--- a/packages/web/app/icon.svg+++ b/packages/web/app/icon.svg@@ -1,27 +1,12 @@-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" role="img" aria-label="LazyCodex boulder favicon">- <title>LazyCodex boulder favicon</title>- <rect width="256" height="256" rx="52" fill="#14154d"/>- <path- d="M55 153C41 99 88 38 145 40c53 2 89 45 82 98-7 53-55 82-103 74-38-6-58-24-69-59Z"- fill="#2a2dbf"- stroke="#87f0f2"- stroke-width="14"- stroke-linejoin="round"- />- <path- d="M95 115l35 27-32 35M150 178h42"- fill="none"- stroke="#87f0f2"- stroke-width="16"- stroke-linecap="round"- stroke-linejoin="round"- />- <path- d="M69 82c34-29 95-33 126 7"- fill="none"- stroke="#b3feff"- stroke-width="8"- stroke-linecap="round"- opacity=".45"- />+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" role="img" aria-label="LazyCodex mark">+ <title>LazyCodex mark</title>+ <defs>+ <linearGradient id="lc-green" x1="0" y1="0" x2="1" y2="1">+ <stop offset="0%" stop-color="#4ade80" />+ <stop offset="100%" stop-color="#16a34a" />+ </linearGradient>+ </defs>+ <rect x="28" y="28" width="200" height="200" rx="48" fill="#0E1411" stroke="url(#lc-green)" stroke-width="14" />+ <path d="M88 96 V160 H152" fill="none" stroke="url(#lc-green)" stroke-width="20" stroke-linecap="round" stroke-linejoin="round" />+ <circle cx="168" cy="96" r="18" fill="#86efac" /></svg>diff --git a/packages/web/app/manifest.ts b/packages/web/app/manifest.tsindex 6401d356..0643780e 100644--- a/packages/web/app/manifest.ts+++ b/packages/web/app/manifest.ts@@ -8,7 +8,7 @@ export default function manifest(): MetadataRoute.Manifest {start_url: "/",display: "standalone",background_color: "#0a0a0a",- theme_color: "#008385",+ theme_color: "#22c55e",// No icons array: the browser favicon comes from the app/icon.svg file// convention; duplicating it here triggers a second eager favicon fetch// that lands on the Lantern LCP critical path. PWA installability isn't adiff --git a/packages/web/app/og-brand-mark.tsx b/packages/web/app/og-brand-mark.tsxindex ee5028fc..1313dfea 100644--- a/packages/web/app/og-brand-mark.tsx+++ b/packages/web/app/og-brand-mark.tsx@@ -8,19 +8,25 @@ interface OgBrandMarkProps {export function OgBrandMark({ fill, stroke }: OgBrandMarkProps): JSX.Element {return (<svg width="18" height="18" viewBox="0 0 24 24" fill="none" aria-hidden="true">- <path- d="M5.2 14.6C4.1 10.3 8 4.8 12.6 5 17 5.2 20 8.8 19.4 13.2 18.8 17.6 14.8 20 10.8 19.4 7.6 18.9 6.1 17.4 5.2 14.6Z"+ <rect+ x="3.2"+ y="3.2"+ width="17.6"+ height="17.6"+ rx="4.4"fill={fill}stroke={stroke}strokeWidth="1.3"/><path- d="M9.2 11.4 11.6 13.2 9.4 15M13 15.4H15.4"+ d="M8 9 V15.2 H14.6"+ fill="none"stroke={stroke}- strokeWidth="1.3"+ strokeWidth="1.7"strokeLinecap="round"strokeLinejoin="round"/>+ <circle cx="15.6" cy="9" r="1.6" fill={stroke} /></svg>)}diff --git a/packages/web/app/og-image-theme.ts b/packages/web/app/og-image-theme.tsindex 6c03892f..74051c71 100644--- a/packages/web/app/og-image-theme.ts+++ b/packages/web/app/og-image-theme.ts@@ -1,29 +1,29 @@export const OG_SIZE = { width: 1200, height: 630 } as constexport const OG_PALETTE = {- surfaceBase: "#0a0a0a",- cardBase: "#0E1115",- brandCore: "#008385",- brandMid: "#006668",- brandOuter: "#004d4e",+ surfaceBase: "#0a0c0b",+ cardBase: "#0E1411",+ brandCore: "#22c55e",+ brandMid: "#16a34a",+ brandOuter: "#15803d",textPrimary: "#ffffff",- textSecondary: "#99A1AF",- textSoft: "#E4FFFF",- textMuted: "rgba(255, 255, 255, 0.72)",- accentCyan: "#87F0F2",- accentGlow: "#ABF5F7",+ textSecondary: "#b8c2bc",+ textSoft: "#dcfce7",+ textMuted: "rgba(255, 255, 255, 0.74)",+ accentCyan: "#4ade80",+ accentGlow: "#86efac",border: "rgba(255, 255, 255, 0.08)",} as constexport const OG_GRADIENTS = {base: `radial-gradient(120% 100% at 60% 65%, ${OG_PALETTE.brandCore} 0%, ${OG_PALETTE.brandMid} 35%, ${OG_PALETTE.brandOuter} 70%, ${OG_PALETTE.surfaceBase} 100%)`,beam:- "radial-gradient(55% 55% at 38% -8%, rgba(179,254,255,0.62) 0%, rgba(135,240,242,0.22) 35%, rgba(255,255,255,0) 65%), " +- "radial-gradient(32% 28% at 55% -5%, rgba(171,245,247,0.42) 0%, rgba(255,255,255,0) 70%)",+ "radial-gradient(55% 55% at 38% -8%, rgba(134,239,172,0.55) 0%, rgba(74,222,128,0.22) 35%, rgba(255,255,255,0) 65%), " ++ "radial-gradient(32% 28% at 55% -5%, rgba(134,239,172,0.38) 0%, rgba(255,255,255,0) 70%)",sheen:- "linear-gradient(118deg, transparent 18%, rgba(179,254,255,0.16) 26%, rgba(179,254,255,0.30) 30%, rgba(179,254,255,0.12) 35%, transparent 45%), " +- "linear-gradient(112deg, transparent 8%, rgba(135,240,242,0.12) 15%, transparent 28%)",+ "linear-gradient(118deg, transparent 18%, rgba(134,239,172,0.16) 26%, rgba(134,239,172,0.30) 30%, rgba(134,239,172,0.12) 35%, transparent 45%), " ++ "linear-gradient(112deg, transparent 8%, rgba(74,222,128,0.12) 15%, transparent 28%)",pools:- "radial-gradient(55% 50% at 8% 95%, rgba(0,131,133,0.26), transparent 70%), " +- "radial-gradient(45% 45% at 95% 40%, rgba(135,240,242,0.20), transparent 70%)",+ "radial-gradient(55% 50% at 8% 95%, rgba(34,197,94,0.26), transparent 70%), " ++ "radial-gradient(45% 45% at 95% 40%, rgba(134,239,172,0.20), transparent 70%)",} as const