Style like lesswrong

merged…
osebo56d ago

Can you style threads ide like lesswrong? Go to their website for reference

IMG_8253.jpeg
IMG_8253.jpeg
5 repliesoldestnewest
Osebotfable-5-156d ago

Plan: restyle Thread IDE to match LessWrong's look (from the screenshot + lesswrong.com):

  • Palette: warm parchment page background (LW uses #f8f4ee), pure white full-width cards with a thin grey border and soft shadow, no rounded corners; dark near-black text; LW green (#5f9b65) as the accent instead of orange.
  • Typography: serif titles/body (LW uses Warnock Pro → fall back to Palatino/Georgia stack), condensed sans (Gill Sans/Calibri-ish stack) for metadata/UI chrome. Bigger thread titles (~20px serif), grey meta line underneath.
  • Thread list: LW-style rows — title on top, then a meta line (author · repo · age) with a square grey "comment count" bubble on the right, like the screenshot. Status badge kept but toned down.
  • Header: white bar, "LESSWRONG"-style small-caps serif wordmark, grey nav links.
  • Dark mode: keep it working, remapped to LW's dark palette.

I'll keep all class names / responsive behaviour (hamburger nav, 2-line clamp, compose dock) intact — this is a CSS pass plus small markup tweaks on the thread list to expose the reply count. Screenshots at 390px and 900px to follow.

Osebotfable-5-156d agothreadide@9d332d6

Restyled Thread IDE after LessWrong. Pushed to thread/de6053b1 (threadide @ 9d332d6) — open a PR from that branch when you're happy with it.

What changed

  • threadide/app/globals.css — full theme pass, palette and font stacks taken from lesswrong.com's own stylesheet:
    • parchment page #f8f4ee, flat white panels with square corners and LW's 0 1px 5px rgba(0,0,0,.1) shadow
    • serif (warnock-pro → Palatino → Georgia) for headings, thread titles and post bodies; condensed sans (Calibri / Gill Sans stack) for meta, badges, nav and buttons
    • LW green #5f9b65 replaces the orange accent; buttons are uppercase small sans with 3px radius, nav links uppercase with a green underline on the current page
    • header is a flat white bar with a "THREAD IDE" small-caps serif wordmark
    • dark mode remapped to LW's greys (#1b1b1b / #262626 / #363636)
  • threadide/components/thread-list.tsx (new) — LW post-item layout: serif title, grey meta line (status · author · workspace · repos · age), and the square grey reply-count speech bubble on the right, like the screenshot. Shared by the home page and the workspace page (both previously had their own inline markup).
  • threadide/lib/data.ts — listThreads gains a replyCount extra (count(posts) − 1, the pinned original doesn't count).
  • threadide/app/page.tsx, threadide/app/workspaces/[id]/page.tsx — use ThreadList.

Kept intact: hamburger nav ≤560px, 2-line title clamp, docked composer, the input:where(:not([type]),…) compose rule, all class names. tsc --noEmit passes.

Notes / judgement calls

  • The dark bar in your screenshot is iOS Safari's URL bar, not LW's header — LW's real header is white, so that's what I matched.
  • Status badges sit where LW puts the karma number (first item of the meta line); on phones the "workspace · repos" segment is hidden so author + age always fit.
  • Screenshots are from a static mockup of the real markup (app needs Postgres + GitHub OAuth). The sandbox has no Palatino, so they render in DejaVu Serif — on a Mac/iPhone it'll be Palatino and look closer to LW.
  • If you'd rather the bubble show all posts instead of replies, drop the - 1 in lib/data.ts.
Thread list at 390px, LessWrong style (static mockup of the real markup + globals.css)
Thread list at 390px, LessWrong style (static mockup of the real markup + globals.css)
Thread page at 1000px: pinned task, Claude reply, docked composer
Thread page at 1000px: pinned task, Claude reply, docked composer
oseboasked Osebot56d ago

Get rid of that green border

Osebotfable-5-156d ago

Removing the 3px green top border on the pinned (original task) card — .post.pinned .card in app/globals.css. Pinned posts will just be a plain white card like the replies. Nothing else changes.

Osebotfable-5-156d agothreadide@878a771

Removed the green border. Pushed to thread/de6053b1 (threadide @ 878a771, on top of the restyle commit 9d332d6).

Change — threadide/app/globals.css: .post.pinned .card no longer has the 3px solid var(--accent) top stripe. The pinned task card keeps its slightly darker grey outline (--border-strong) so it's still distinguishable from replies, but nothing green.

-.post.pinned .card { border-color: var(--border-strong); border-top: 3px solid var(--accent); }
+.post.pinned .card { border-color: var(--border-strong); }

Other places green still appears, in case you meant one of those instead: the 2px underline under the current nav link (.nav-links a[aria-current="page"]), the running / done status badges, buttons, and the input focus ring. Say which and I'll pull it too.

Diff · 1 files
--- a/threadide/app/globals.css
+++ b/threadide/app/globals.css
@@ -166,7 +166,7 @@
 details.diff pre { font-size: 12px; }
 .refs { margin-top: 8px; font-size: 12px; color: var(--muted); }
 .refs a { margin-right: 8px; }
-.post.pinned .card { border-color: var(--border-strong); border-top: 3px solid var(--accent); }
+.post.pinned .card { border-color: var(--border-strong); }
 
 /* ---- forms ---- */