Pierre styles

ready…
osebo41d ago

What if this app was styled like https://pierre.computer/

2 repliesoldestnewest
Osebotfable-5-141d ago

What pierre.computer actually ships (I read its HTML and the @pierre/ui CSS that code.storage uses, which the site's comments say it matches):

  • One typeface for everything: Berkeley Mono (variable), 12px / 20px line-height, antialiased. Headings are not bigger, they are font-weight: 700; text-transform: uppercase with a literal # / ## prefix drawn in the muted grey. Links are rendered as markdown source: [label](url).
  • Palette is one cool grey, oklch(65% 0.01 286) (≈ #8e8e95), and everything else is color-mix of that grey with white/black: page #f7f7f8 light / #151516 dark, text = gray980 / gray100, muted = the grey itself, borders = fg at 5/8/10/15 %. Accents in the UI kit: blue #008df4, green #0dbe4e, red #ff3240, yellow #feca00, indigo #7b43f8.
  • ::selection is pure yellow on black. The wordmark ends in a blinking █ cursor. Radii are 2–3px, no shadows, box-shadow: 0 0 0 1px border for card edges.

Plan (same shape as the earlier theme branches: app/globals.css + fonts in app/layout.tsx, no component changes):

  1. app/layout.tsx: drop Inter / Newsreader / Grenze Gotisch; load JetBrains Mono as the single face (Berkeley Mono is commercial and not fetchable, same situation as Areal; --font-sans/--font-serif/--font-display all alias the mono so nothing else needs to change).
  2. app/globals.css: rewrite the token block + type rules to Pierre: 12/20 mono grid, uppercase 700 headings with a # prefix via ::before, [ ] brackets on body links, grey-mix palette with the two identical dark blocks, yellow selection, blinking cursor after the wordmark, 2px radii, hairline (0 0 0 1px) panels instead of fills. Status cues stay solid using Pierre's blue/green/red/yellow/indigo.
  3. Keep lib/terminal-themes.ts paletteVars in sync for any token I add or drop.
  4. Static mockups at 390 / 900px, light + dark, screenshots attached.
Osebotfable-5-141d agothreadide@4b198de

Done: the app in Pierre's clothes, pushed as 4b198de on thread/4da240f8. Screenshots attached (static mockups over the real globals.css; the app itself can't run in the sandbox).

What changed (app/globals.css, app/layout.tsx, lib/terminal-themes.ts; no component markup touched)

  • One typeface, one size. JetBrains Mono at 12px on a 20px line for chrome, headings, post bodies and code alike. Berkeley Mono is commercial, so JetBrains Mono is the stand-in; the real thing is a one-line swap in app/layout.tsx (comment there explains). --sans / --serif / --display now alias --mono, so the blackletter page titles and the Newsreader reading face are gone on this branch.
  • Hierarchy by markdown, not size. Page titles render as # THREADS █ with Pierre's blinking cursor (still under reduced motion); the thread title is # Pierre styles (sentence case, no cursor); section heads are ## PULL REQUESTS; post headings get # … #### ; list rows start with - ; nav/crumb/body links are [bracketed]; inline code is wrapped in half-strength backticks.
  • Palette. Pierre's one cool grey #8e8e95 mixed with white/black: page #f7f7f8, white hairline cards, text gray980; dark is #151516 / gray920 panels / gray100 text, like their light-dark() pair. Yellow-on-black ::selection.
  • Status cues stay solid but carry black ink on the kit's bright blue/green/red/yellow (their selection logic); merged indigo keeps white. New tokens --signal-ink / --merged-ink (also in paletteVars, so /themes palettes are unchanged).
  • Geometry. 2/3/4px radii, hairline-framed cards; the floating sidebar now has the same 1px edge as a card (Pierre's card recipe). The opening post is framed in the text colour.

Things to decide, @osebo

  1. 12px everywhere is the most Pierre thing and also the most debatable for a reading app. If it's too small, bumping only .post .body and the textarea to 13px keeps the look.
  2. The blackletter .page-title face is dropped on this branch (one family is the whole idea). Say so if you'd rather keep it.
  3. [bracketed] links: currently on nav, crumbs, post bodies, refs and text buttons. Easy to narrow to post bodies only.

Checks: tsc --noEmit clean, next build passes. Not eyeballed: /themes, /faces, workspace manage page, the phone nav panel (they only get the generic size/colour rules).

Home, light, 1200px: # THREADS with cursor, bracketed nav, "- " rows, solid status fills with black ink
Home, light, 1200px: # THREADS with cursor, bracketed nav, "- " rows, solid status fills with black ink
Thread page, light: "# title", fg-framed opening post, backticked inline code, "## " post headings, [bracketed] links
Thread page, light: "# title", fg-framed opening post, backticked inline code, "## " post headings, [bracketed] links
Home, dark, 390px: #151516 page, 400-shade signal fills
Home, dark, 390px: #151516 page, 400-shade signal fills
Thread page, dark, 390px
Thread page, dark, 390px