Under the Hood: Redesign Highlights

CSS-Tricks has soft-launched a redesign, with a fuller write-up planned for Monday. Here are the key changes, in brief.

Theme cleanup and tooling

The theme has accumulated content from 19 years, so it went through an excavation pass to clear out legacy "ghosts." The development workflow, unchanged for five years, was also replaced: Prettier, Stylelint, GitHub Actions and automatic cache-busting are now in place.

Security review

For a holistic audit, Claude was asked to review recent WordPress security release notes and flag places where the theme could be hardened to match what WordPress itself is doing.

Smaller CSS footprint

The Sass rewrite reduced overall CSS size:

CSS-Tricks star logo

The savings are modest — not hugely significant, but not insignificant either.

Tokens and theming

A "design-ish" system now enforces broad consistency, with semantic tokens for colors, fonts, font sizes and other reused values. A theme toggle was added as well: because the site had predominantly been dark despite white-backed content, a "dark" mode was assumed to exist already. The newly added counterpart is a creamy light theme.

Texture and content pages

  • "Jawbreaker" texture: splattered throughout the site; named for the candy of the same name.
  • New Almanac index: a true index of CSS features that quickly gets readers where they need to go, inspired in spirit by a CSS periodic table.
  • New Guides index: a featured guide, a widget of newly added and updated guides, and a categorized grid of everything below.
  • Author pages: the right sidebar moved left, with the author image and bio moved in so articles rise to the top.
  • WordPress admin styles: minimal styling for fonts and text styles that reflects the front end.

Sponsor CSS-Tricks!

We've got lots of ways to help you connect with the greatest front-end community in all the land.

CSS-Tricks Newsletter

Sign up to get front-end roundups, browser updates, and exclusive content sent to your inbox bi-weekly.

Ads are self-hosted.