diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0782fea..9f3ce90 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,14 +24,27 @@ jobs: # Paper & Phosphor brand tokens are an identical copy in both # site repos (no shared package yet — the sites build standalone - # in Docker). Fail fast when this copy drifts from the sibling's - # main branch. Skips while the sibling doesn't have the file yet. + # in Docker). Fail fast when this copy drifts from the sibling. + # Coordinated changes: open the sibling PR from the SAME branch + # name — the check prefers that branch over main. On main pushes + # the check is warning-only (the sibling may merge seconds later). - name: Brand tokens in sync with site run: | - if curl -fsSL https://raw.githubusercontent.com/agentproto/site/main/src/app/brand.css -o /tmp/sibling-brand.css; then - diff -u /tmp/sibling-brand.css src/app/brand.css + BRANCH="${{ github.head_ref }}" + URL_BASE="https://raw.githubusercontent.com/agentproto/site" + if [ -n "$BRANCH" ] && curl -fsSL "$URL_BASE/$BRANCH/src/app/brand.css" -o /tmp/sibling-brand.css; then + echo "comparing against site@$BRANCH" + elif curl -fsSL "$URL_BASE/main/src/app/brand.css" -o /tmp/sibling-brand.css; then + echo "comparing against site@main" else - echo "sibling brand.css not found on site main — skipping" + echo "sibling brand.css not found — skipping"; exit 0 + fi + if ! diff -u /tmp/sibling-brand.css src/app/brand.css; then + if [ "${{ github.event_name }}" = "push" ]; then + echo "::warning::brand.css drifted from site (sibling merge may be in flight)" + else + exit 1 + fi fi - name: Setup pnpm diff --git a/src/app/brand.css b/src/app/brand.css index 60256a6..ab7c01a 100644 --- a/src/app/brand.css +++ b/src/app/brand.css @@ -5,8 +5,8 @@ src/app/brand.css. CI diffs this file against the sibling repo's main branch — edit BOTH repos or the check fails. - The page is an engineering document: cool paper, ink, ultramarine - accent, IBM Plex serif display. The dark terminal panels are the + The page is an engineering document: cool paper, ink, azure + accent (IBM Blue), Newsreader display. The dark terminal panels are the only place the phosphor green / amber status colors appear — the paper ↔ phosphor contrast IS the brand ("the spec is a document, the daemon is alive"). Terminal tokens are theme-invariant. @@ -15,7 +15,7 @@ @theme inline { --font-sans: var(--font-plex-sans), system-ui, sans-serif; --font-mono: var(--font-plex-mono), ui-monospace, "SF Mono", Menlo, monospace; - --font-serif: var(--font-plex-serif), Charter, Georgia, serif; + --font-serif: var(--font-display), Charter, Georgia, serif; } :root { @@ -28,13 +28,13 @@ --color-fd-card: #ffffff; --color-fd-card-foreground: #171a1e; --color-fd-border: #dde0da; - --color-fd-primary: #2c46d8; + --color-fd-primary: #0f62fe; --color-fd-primary-foreground: #ffffff; --color-fd-secondary: #e9ebe6; --color-fd-secondary-foreground: #171a1e; - --color-fd-accent: #e7eaf9; - --color-fd-accent-foreground: #1b2b90; - --color-fd-ring: #2c46d8; + --color-fd-accent: #e0eaff; + --color-fd-accent-foreground: #0043ce; + --color-fd-ring: #0f62fe; /* runtime island — theme-invariant */ --term-bg: #0d1512; @@ -55,13 +55,13 @@ --color-fd-card: #16191d; --color-fd-card-foreground: #e8eaed; --color-fd-border: #272c33; - --color-fd-primary: #8296ff; - --color-fd-primary-foreground: #10141f; + --color-fd-primary: #4589ff; + --color-fd-primary-foreground: #0c1420; --color-fd-secondary: #1b1f24; --color-fd-secondary-foreground: #e8eaed; - --color-fd-accent: #232a3d; - --color-fd-accent-foreground: #c9d2ff; - --color-fd-ring: #8296ff; + --color-fd-accent: #1c2b47; + --color-fd-accent-foreground: #a6c8ff; + --color-fd-ring: #4589ff; } /* ── status blink (running dots, hero cursor) ──────────────────── */ diff --git a/src/app/layout.tsx b/src/app/layout.tsx index f5819e8..8127d66 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,5 +1,5 @@ import type { Metadata } from "next" -import { IBM_Plex_Mono, IBM_Plex_Sans, IBM_Plex_Serif } from "next/font/google" +import { IBM_Plex_Mono, IBM_Plex_Sans, Newsreader } from "next/font/google" import { RootProvider } from "fumadocs-ui/provider/next" import { BrandRibbon } from "@/components/brand-ribbon" import "./global.css" @@ -14,11 +14,11 @@ const plexMono = IBM_Plex_Mono({ weight: ["400", "600"], variable: "--font-plex-mono", }) -const plexSerif = IBM_Plex_Serif({ +const display = Newsreader({ subsets: ["latin"], weight: ["600", "700"], style: ["normal", "italic"], - variable: "--font-plex-serif", + variable: "--font-display", }) export const metadata: Metadata = { @@ -47,7 +47,7 @@ export default function RootLayout({