News

Our CSS guidelines are now in the handbook

Captain's log, stardate d322.y42/AB

Marta Armada
Tech Lead
The CSS guidelines page in the MarsBased Handbook, with its table of contents and the first rule on organising design tokens

The MarsBased Handbook has a new guide: CSS guidelines. It doesn't teach CSS. It sets out how we organise styles on our frontend projects, so that everyone working on a repository makes the same choices, including the AI agents we work with.

Like the rest of the handbook, it's public. Anyone, including the companies we work with, can see how we approach the frontend: organised, maintainable styles, with accessibility built in from the start.

What's inside

The guide has three parts. The first is a set of do's and don'ts for every project: design tokens in three tiers, themes built with custom properties, breakpoints defined once and mobile first, flat specificity and a single z-index scale. The second covers Tailwind v4, our default, configured directly in CSS. The third is for projects where Tailwind isn't an option, such as legacy stylesheets or server-rendered templates.

Accessibility throughout

Accessibility runs through the whole guide. Sizes in rem follow the font size each user sets in their browser. Focus stays visible for keyboard users. Hover styles only apply on devices that can hover. And movement only happens when the user's settings allow it.

Ready for agents

Language models still generate Tailwind v3 configuration by default, and the guide says so. Teams can point their coding agents at it, and it recommends linting styles after every edit an agent makes.

Thanks to Marta Armada for writing it, and to Anna Vidal and Carlos López for their input and reviews.

Share this article

More news

Handbook AI-Augmented Development

How we actually use AI to build software: what's in the Handbook's AI-Augmented Development page

A few months ago we quietly added a new section to the MarsBased Handbook laying out exactly how we use Claude Code day to day, from research to planning to implementation. We never wrote about it here, so we're fixing that now.

Read full article: How we actually use AI to build software: what's in the Handbook's AI-Augmented Development page
TailwindCSS frontend developer gliding the skies

Why we've added TailwindCSS to our tech stack

MarsBased long avoided TailwindCSS due to its missing component library and layout system. Here's what changed our mind and how we added it to our tech stack.

Read full article: Why we've added TailwindCSS to our tech stack
Handbook

Leveling up: The new MarsBased Handbook

The MarsBased Handbook got a major refresh: new design, better search, and faster access to all policies and benefits. Find answers more intuitively than ever.

Read full article: Leveling up: The new MarsBased Handbook