A design system keeps a brand consistent when its visual choices (colors, typography, spacing, shadows) are decided once, as tokens, and then reused by components shared across every page. With Tailwind CSS, those tokens are declared in the stylesheet itself and can become the only values available. The bento grid, a layout made of tiles of unequal sizes, is just one more component: useful for presenting several facets of an offer, counterproductive when it is used as decoration.
In short
- A brand loses consistency in small steps: a slightly different shade, a heading size or a shadow recreated by hand.
- A design system has three layers: tokens that carry the brand's values, components that use them, and written usage rules.
- Since version 4, Tailwind CSS declares tokens in CSS inside a
@themeblock and can remove the default palette in favor of the brand's own. - A bento grid suits a handful of items of unequal importance, provided the reading order stays logical and the mobile fallback is carefully designed.
- Consistency lasts thanks to an owner, a process for adding components and automated checks, not thanks to a brand guidelines PDF.
Why brands lose consistency online
A website rarely becomes inconsistent overnight. The drift comes from local decisions: a developer in a hurry picks an orange that is almost the brand's, a landing page gets bigger headings, a contractor adds their own buttons. Each choice makes sense on its own. A few years later, the stylesheet often holds many near-identical shades of gray and several card styles.
The cost is not just about image. Every new page forces the team to re-decide what should have been decided once, every color pairing has to be checked separately for accessibility, and changing a brand color means hunting down its variants across the whole codebase.
Brand guidelines, often delivered as a PDF, describe an intent (logo, colors, typefaces), not how to apply it to a form or an error message. It is in this gap between the document and the code that the brand gets diluted.
What a design system contains
A design system turns design decisions into something reusable, in three layers:
- design tokens: named values for colors, typefaces, text sizes, spacing, corner radii and shadows. A semantic token ("primary action color") ages better than a descriptive one ("orange 500") because it says what the value is for;
- components (button, card, section heading, form, table, bento grid tile), which use nothing but tokens and come in only a few variants;
- usage rules: which component for which need, which color pairings are allowed. Without them, good components get assembled badly.
On a content-led site, the system is editorial first: a tight heading scale, a comfortable line length, predefined styles for quotes and tables. Drift happens fast there, because content is entered in the CMS (content management system) by non-specialists: removing the free choice of text colors and offering predefined blocks protects the brand better than any guideline.
The right level of tooling depends on the context:
| Context | Suitable level | Minimum content | Upkeep |
|---|---|---|---|
| Brochure site of a few pages, one contributor | Tokens and core components | Colors, typography, about ten components | Occasional |
| Editorial site, several contributors | Editorial system | Tokens, components, limited CMS blocks, written rules | Regular, one go-to person |
| Marketing site and app under the same brand | Shared theme | Common token file, component catalog | Ongoing, a named owner |
| Several products, teams or countries | Full design system | Versioned package, contribution process, automated checks | Significant, often a dedicated role |
Aim for the lightest level that holds up: a full system would be overkill for a few pages, but having no system comes at a cost as soon as several people publish.
Laying the foundations with Tailwind CSS
Tailwind CSS is a "utility-first" framework: you style an element by combining small classes (bg-paper, rounded-card) rather than writing a stylesheet per component. Among the new features of Tailwind CSS 4, a version released in January 2025, the most useful one here is CSS-based configuration: tokens are declared in a @theme block, from which Tailwind generates the utility classes and the CSS variables.
@import "tailwindcss";
@theme {
--color-*: initial;
--color-ink: oklch(0.22 0.02 260);
--color-paper: oklch(0.98 0.01 85);
--color-muted: oklch(0.50 0.02 260);
--color-action: oklch(0.70 0.16 35);
--font-display: "Fraunces", serif;
--text-display: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
--text-display--line-height: 1.1;
--radius-card: 1rem;
--shadow-raised: 0 8px 24px oklch(0.2 0 0 / 0.08);
}
Three details matter. The --color-*: initial line removes the default palette: bg-blue-600 no longer exists, and only the brand's colors remain. The names describe a role (action, muted) rather than a hue: changing a color does not require editing a single page, and a dark mode mostly comes down to redefining these values. Finally, this block can live in a file shared by the website and the application.
Contrast, too, is handled at the token level. WCAG 2.2, the accessibility guidelines published by the W3C, require at level AA a contrast ratio of at least 4.5:1 for body text and 3:1 for large text. Checking each allowed text and background pair once saves you from re-checking page by page: a bright brand color, coral or yellow, often fails as text on a light background but works as a button background under dark text.
Tailwind does not make a design system on its own, though: if everyone assembles their own class lists, drift returns. Two habits prevent it: grouping recurring combinations into components, and banning arbitrary values in square brackets (bg-[#e8603c], p-[13px]), which bypass the tokens and which an automated check run on every code change catches easily.
The bento grid: a component, not decoration
A bento grid arranges content in tiles of different sizes, like the compartments of a Japanese bento lunch box. It shows several facets of an offer at a glance, with the largest tile carrying the main message. The flip side is that every tile needs strong content: without genuinely distinct items, the grid fills up with empty phrases.
| Layout | Suitable when | Avoid when |
|---|---|---|
| Bento grid | A few strengths of unequal importance, to grasp at a glance | Content is thin or must be read in a set order |
| Regular card grid | Items of the same kind: articles, projects | One item needs to stand out clearly |
| Numbered steps | A process, a method, a timeline | The items have no natural order |
| Table | A comparison across several criteria | There are too many columns for a phone |
| Alternating text and image sections | A few arguments, each needing explanation | There are many arguments |
Within the system, the bento grid is a component with two or three planned tile sizes, not a collage reinvented on every page. With Tailwind, it relies on CSS grid:
<section class="grid gap-4 md:grid-cols-4">
<article class="@container rounded-card bg-paper p-6 shadow-raised md:col-span-2 md:row-span-2">
<div class="grid gap-4 @md:grid-cols-2">...</div>
</article>
<article class="@container rounded-card bg-paper p-6 md:col-span-2">...</article>
<article class="@container rounded-card bg-paper p-6">...</article>
<article class="@container rounded-card bg-paper p-6">...</article>
</section>
On mobile, tiles stack in source order. The @container class, built into Tailwind since version 4, turns each tile into a container: its content adapts to the width of the tile, not to that of the screen.
Mistakes to avoid:
- a visual order that differs from the source order: grid placement and dense packing (
grid-flow-dense) move tiles on screen, but not along the path followed by a screen reader or the Tab key. The W3C's CSS Grid specification itself says to reserve placement for visual reordering, never logical reordering; - an endless stack on mobile, to be anticipated at the mockup stage by merging or shortening tiles;
- text placed over a photo without checking contrast;
- tiles that are too heavy: autoplay videos and large images slow down rendering, and media without reserved space shift the layout, two problems measured by the Google metrics covered in our Core Web Vitals guide. Reserve space for media (
aspect-*classes) and respect the reduced motion preference (motion-reduce:variant).
Keeping the system alive without drift
A design system is not an end-of-project deliverable but an internal product that evolves with the site. For an SME, four mechanisms cover the essentials:
- A named owner, a designer or a front-end developer, who rules on requests. Without a suitable in-house profile, an external UX/UI design team can take on this role, provided the tokens and components stay in your own code repository.
- A process for adding components: check that no existing component fits, then design the new one with the tokens, document it and have it reviewed.
- A component catalog (Storybook or a simple internal page) so that everyone can see what exists before building something new.
- Automated checks: arbitrary values, contrast and, if the site warrants it, screenshot comparison to flag any unplanned visual change.
Finally, keep the same token names in the design tool (Figma variables, for example) and in the code: when the designer says action and the developer says bright-orange, drift starts in the conversation.
Frequently asked questions
No. Tokens can live in plain CSS variables and components in any framework. What Tailwind mainly brings is a constraint: when only token-based classes exist, straying from the brand becomes visible. The trade-off is HTML that carries more classes, which makes it important to split components well.
Yes, and it is often the safest route. You inventory the colors, text sizes and components actually in use, consolidate them into a reduced set of tokens, then migrate the most visited page templates first. The old values are only removed once the migration is complete.
Not in itself: to a search engine, it is HTML like any other. The risks come from what goes into it: text embedded in images, headings without hierarchy, media that slows the page down. Tiles that each carry a real heading and real text remain readable by search engines and AI assistants alike.
It covers part of them: contrast, visible focus, the size of clickable areas and semantic structure are set once in the components, but work on the content itself (alt text, heading hierarchy) is still needed. The stakes are real: the European Accessibility Act (Directive (EU) 2019/882) has applied since June 28, 2025 to a range of digital services aimed at consumers, including e-commerce, with an exemption for microenterprises providing services.
Conclusion
A brand's online consistency depends less on a designer's talent than on a few decisions made once and applied everywhere: semantic tokens, components that use nothing else, written usage rules and someone to enforce them. Tailwind CSS makes these constraints concrete; the bento grid is just one component among others, to be chosen when the content suits it.
If your site is piling up variants and you are unsure which level of system fits, let's talk about your context: an inventory of what already exists is often enough to decide.