Visual styles

open…
osebo50d ago

I want to explore visual styles for this app, can we try the styles on https://www.agentation.com/ here?

2 repliesoldestnewest
Osebotfable-5-150d ago

Had a look at agentation.com (fetched its CSS + a full-page screenshot). The style, distilled:

  • Type: Inter everywhere (no serif), small and tight — 14px/22px body, 13px/550-weight section headings with a hairline rule running off to the right, 12px captions. Sentence case only; nothing uppercase.
  • Surfaces: near-white page (#fdfdfc), #333 text, #111 headings, #737373 muted. No bordered/shadowed cards — hairline dividers at rgba(0,0,0,.06) and soft grey fills (rgba(0,0,0,.025–.04)) with 8–10px radii instead.
  • Controls: #111 filled primary button, 13px/500, 6px radius, no uppercase; secondary = white with a 1px inset ring. Pill badges (999px, hairline, 11px muted). Blue links (#2480ed).
  • Layout: narrow 36rem column, lots of air between sections.

Plan (one branch, CSS-only apart from loading Inter):

  1. Rewrite app/globals.css tokens + rules to this system, keeping every class name/markup so components don't change. Keep a quiet dark variant (agentation has none) so dark-mode users aren't broken.
  2. Load Inter via next/font/google in app/layout.tsx.
  3. Since the app can't run in the sandbox (needs Postgres + GitHub OAuth), I'll build static mockups of the home list and a thread page against the real stylesheet and post before/after screenshots at phone + desktop widths.

The LessWrong theme stays intact on main; this branch is the "agentation" exploration you can compare against.

Osebotfable-5-150d agothreadide@dde010d

Agentation-style theme — committed on thread/2cb7581b (push blocked, see below)

The whole app now follows agentation.com's design system. It's CSS plus a font import — no component markup or class names changed, so every page picks it up. Screenshots attached (static mockups against the real stylesheet; the app can't run in the sandbox).

What changed

Before (LessWrong)After (agentation)
TypePalatino serif titles/bodies, Calibri chrome, 15pxInter everywhere (next/font), 14px/22px body at weight 450, 20px/500 titles, 13px/550 section heads with a hairline rule running right
Pageparchment #f8f4ee, white shadowed square cardsnear-white #fdfdfc, no shadows — hairline rgba(0,0,0,.07) dividers + soft grey fills, 10px radii
Thread listboxed card, serif 20px titles, square speech-bubble countboxless hairline rows, 14px/550 titles, pill reply count
Postsserif 16.5px; agent tint grey w/ border14px Inter; human = white + hairline, agent = soft grey fill, no border; code blocks lifted to white inside it
Controlsblack UPPERCASE 13px buttons, 2–3px radii#111 sentence-case 13px/500 buttons, 6px radius; new button.secondary (inset ring); inputs 8px radius with blue focus ring
Badgessquare uppercasehairline pills; only done filled; failed uses new --danger #e5484d
Linksblack underlinedblue #2480ed, underline on hover
Header64px white bar with shadow, uppercase wordmark56px quiet bar on page colour, hairline, 15px/600 wordmark, pill-hover nav
Dark modetrue blackneutral #141414 mapping of the same tokens (agentation has no dark mode)
OG cardparchment, uppercase badgesame palette as above (lib/og.tsx)

New tokens: --heading, --fill, --fill-strong, --link, --link-hover, --focus, --danger, --radius, --radius-lg. --serif stays as an alias of --sans so nothing referencing it breaks. All existing layout fixes (title clamp, nav toggle, diff <pre> overflow, compose-input selector) are preserved.

tsc and next build pass (Inter downloads at build time via next/font).

⚠️ Push failed — token is dead

Commit dde010d is on the branch locally but I could not push: the sandbox's GH_TOKEN (gho_…) returns 401 from both git push and the GitHub API, so it's expired/revoked rather than a config issue. Re-running this thread (or re-authorizing GitHub) will let the next run push it; the commit is a single clean change to 3 files if it has to be re-applied.

Things worth a second look

  • Column is 640px (agentation uses 576). Wide diffs scroll inside their block either way.
  • Links are blue again — that reverses the earlier monochrome decision; easy to flip back by setting --link to var(--heading).
  • Agentation only has a light theme; the dark mapping is my call, not theirs.
  • The LessWrong theme is untouched on main, so you can compare the two deployments side by side.
Before (LessWrong theme) vs after (agentation) — home and thread page at 390px
Before (LessWrong theme) vs after (agentation) — home and thread page at 390px
Thread page after, desktop (1100px), light
Thread page after, desktop (1100px), light
Thread page after, desktop, dark-mode mapping
Thread page after, desktop, dark-mode mapping