Skip to content

Load only the design system CSS the site and bench use - #210

Merged
lwwmanning merged 1 commit into
mainfrom
wm/prune-system-css
Nov 7, 2026
Merged

lwwmanning merged 1 commit into
mainfrom
wm/prune-system-css

Conversation

@lwwmanning

Copy link
Copy Markdown
Contributor

The site and bench now load only the design system CSS they use. Nothing on the page changes.

The system's copy tool can now drop a rule when no file under src names a class that the rule needs. It also drops the tokens that only those rules read. The rules that went are for the docs search box, data tables, cards, and large display text, plus some chart and status tokens. The copies go from 14.5 KB to 13.7 KB gzipped.

To check, I took screenshots before and after of the homepage, the blog, a post, the 404, bench, its Filters panel, and its methodology page. I did this in both themes at 1440px and 390px. All 28 pairs have the same pixels. Biome, the unit tests, and bench's tests pass.

🤖 Generated with Claude Code

The design system's copy tool now drops a rule when no file under src
names a class the rule needs, and drops the tokens that only such rules
read. The copies go from 14.5 KB to 13.7 KB gzipped. Screenshots of
the homepage, the blog, a post, the 404, bench, its Filters panel, and
its methodology page, in both themes at 1440px and 390px, are the same
pixels before and after.

Signed-off-by: Will Manning <will@willmanning.io>
@vercel

vercel Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
vortex.dev Ready Ready Preview Nov 7, 2026 3:04pm UTC

Request Review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-07T15:05:50.124974Z a7ced53 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown

🔦 Lighthouse audit

URL Perf A11y Best practices SEO
/ 🟢 100 🟢 100 🟢 100 🟢 100
/bench 🟢 100 🟢 100 🟢 100 🟢 100
/bench/chart/ct.eyJrIjoiQ29tcHJlc3Npb25UaW1lIiwiZGF0YXNldCI6ImFyYWRlIiwiZGF0YXNldF92YXJpYW50IjpudWxsfQ 🟢 100 🟢 100 🟢 100 🟢 100
/blog 🟢 100 🟢 100 🟢 100 🟢 100
/blog/btrblocks-compressor 🟢 100 🟢 100 🟢 100 🟢 100

Run 42384593722 · 2026-11-07 15:07 UTC

@lwwmanning
lwwmanning merged commit 4172386 into main Nov 7, 2026
20 checks passed
@lwwmanning
lwwmanning deleted the wm/prune-system-css branch November 7, 2026 15:09

This branch was successfully deployed

1 active deployment
Preview — a7ced539 Deployed Nov 7, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant