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
23 changes: 18 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
24 changes: 12 additions & 12 deletions src/app/brand.css
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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 {
Expand All @@ -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;
Expand All @@ -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) ──────────────────── */
Expand Down
8 changes: 4 additions & 4 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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 = {
Expand Down Expand Up @@ -47,7 +47,7 @@ export default function RootLayout({
<html
lang="en"
suppressHydrationWarning
className={`${plexSans.variable} ${plexMono.variable} ${plexSerif.variable}`}
className={`${plexSans.variable} ${plexMono.variable} ${display.variable}`}
>
<body className="flex flex-col min-h-screen">
<RootProvider>
Expand Down
Binary file modified src/app/opengraph-image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading