Creating a website style guide: colour, type, components, voice
A website style guide is the shared rulebook for how your site looks, reads and behaves: the colours and what each one is for, the typefaces and sizes, the spacing and grid, the reusable components such as buttons and forms, the tone of voice, and the accessibility standards everything must meet. It lets designers, developers, writers and agencies add new pages that feel like they belong, without reinventing decisions each time.
Without one, sites drift. Each campaign adds a slightly different button, a new shade of blue and a heading size someone liked. After a while the site feels inconsistent, pages take longer to build and accessibility problems creep in unnoticed.
This guide explains what a website style guide should contain, how to create one from an existing site or a new design, and how to keep it alive. It focuses on the website itself. For the wider brand rulebook covering logo use, print and packaging, see our page on creating brand identity guidelines.
Style guide, brand guidelines or design system?
These terms overlap and people use them loosely. The differences matter mainly for deciding who owns what.
| Document | Covers | Main users |
|---|---|---|
| Brand guidelines | Logo, brand colours, typefaces, imagery style, tone and use across print, packaging, social and signage | Marketing team, agencies, printers |
| Website style guide | How brand rules apply on screen: colour roles, type scale, spacing, components, interaction states, voice for web copy | Web designers, developers, content editors |
| Design system | The style guide plus a coded component library and design tokens that keep design files and the live site in sync | Product and engineering teams working at scale |
Most businesses need the middle row. A full design system pays off when several teams build on the same platform constantly. A website style guide is smaller, quicker to produce and still prevents most of the drift.
Before you start: audit and inputs
If you already have a site, begin with an inventory. Take screenshots of every distinct button, form, card, heading style, colour and icon you can find, and group them. Most teams are surprised by how many near-duplicates appear, such as several greys that were meant to be the same or a handful of button styles doing one job.
Then collect the inputs the guide must respect:
- Brand identity files: logo, brand colours, typefaces and any existing guidelines.
- The website's goals and audiences, ideally from a website design brief, because the guide should support them rather than only look tidy.
- Platform constraints, such as what your CMS or theme allows editors to change.
- Languages and scripts the site will use, including Hindi or other Indian languages if relevant.
- Accessibility commitments, normally WCAG at level AA.
Decide who owns the guide before writing it. Usually that is a lead designer working with a lead developer, with marketing approving voice and brand decisions.
Colour: define roles, not just swatches
A list of brand colours is not enough. The website style guide should say what each colour is for, so a developer knows which one to use without asking.
- Primary: the main action colour, used for key buttons and links. Keep it for actions so it stays meaningful.
- Secondary and accent: supporting colours for highlights and illustrations, used sparingly.
- Neutrals: a scale of greys or tinted neutrals for text, backgrounds, borders and dividers, from lightest to darkest.
- Semantic colours: success, warning, error and information, with consistent use in forms, alerts and status messages.
- Surface colours: page background, card background and raised elements, plus their dark mode equivalents if you support it.
Give each colour a token name based on its role, such as action-primary or text-muted, rather than its appearance, such as dark-blue. When the brand shade changes later, the role names stay the same and the update is one change rather than hundreds.
Check contrast as you go. WCAG asks for a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text and essential interface elements such as input borders and icons. Brand colours often fail on white, so the guide should state which combinations are approved for text. Our page on choosing a colour scheme for your website covers how to pick the palette in the first place.
Typography: a scale, not a list of fonts
Choose a small number of typefaces, usually one for headings and one for body text, or a single family with several weights. Then define a type scale: a fixed set of sizes for each heading level, body text, small text and captions, with line heights and weights for each, on both mobile and desktop.
Practical rules worth writing down:
- Body text large enough to read comfortably on a phone, with generous line height.
- A comfortable line length on desktop, so paragraphs do not stretch across the whole screen.
- One clear heading hierarchy, used for structure rather than for visual size, which also helps accessibility and search engines.
- Limits on weights and styles to keep font files small and pages fast.
- Rules for links in body text, which should be distinguishable by more than colour alone.
Indian scripts
If the site publishes in Hindi, Tamil, Bengali or other Indian languages, choose families with matching scripts, such as the Noto families or Mukta for Devanagari, and test real content. Indic scripts often need more line height than Latin text, and mixing a Latin display font with a mismatched Devanagari fallback looks careless.
Spacing, grid and components
A spacing scale, often built on multiples of a small base unit such as 4 or 8 pixels, keeps gaps consistent and makes layouts easier to build. Define the grid for each breakpoint, including column counts, gutters and maximum content width.
Components are the heart of the guide. For each one, document its purpose, its variants, every interactive state and short guidance on when to use it and when not to.
| Component | What to document |
|---|---|
| Buttons | Primary, secondary and text styles; sizes; default, hover, focus, pressed, disabled and loading states |
| Form fields | Labels, help text, placeholder rules, error and success states, required field marking |
| Cards | Image ratios, heading and text limits, whole-card or button links |
| Navigation | Desktop and mobile menus, active states, breadcrumbs, footer structure |
| Alerts and banners | Semantic colours, icons, dismiss behaviour |
| Tables and lists | Header styling, mobile behaviour, zebra rows or dividers |
Pair each component with a real example from the site. A guide with only abstract rules is quickly ignored; one that shows the component in context gets used.
Voice and content style
Visual consistency falls apart quickly if every page sounds different. The content section of a website style guide does not need to be long, but it should settle the decisions writers argue about.
- Voice: three or four traits with a short explanation of each, such as clear, warm and confident, not salesy, with an example sentence that fits and one that does not.
- Spelling and grammar: British and Indian spelling such as colour and optimise, sentence case or title case for headings, and how to write numbers, dates and phone numbers.
- Button and link labels: start with a verb and say what happens, such as book a consultation rather than submit.
- Error messages: say what went wrong and how to fix it, without blaming the user.
- Words to avoid: internal jargon, vague claims and anything legal or compliance teams have ruled out for your sector.
Include a few before-and-after rewrites of real copy from your site. They teach the voice faster than any list of adjectives.
Accessibility built into the guide
Accessibility is far cheaper to build into a style guide than to fix page by page later. Write the rules into each section rather than collecting them in a separate chapter nobody reads.
- Colour pairs approved for text, with contrast checked against WCAG.
- A visible focus style for every interactive element, so keyboard users can see where they are.
- Touch targets large enough to tap accurately on a phone.
- Rules for alt text: describe the purpose of an image, and mark purely decorative images so screen readers skip them.
- Form labels that stay visible, not placeholder text that disappears when typing starts.
- Respect for reduced motion settings, with animations that can be turned off or toned down.
Our page on web design accessibility goes further into testing and common failures.
Keeping your website style guide alive
Most style guides die quietly because they live in a PDF nobody opens. The ones that last are built into the tools people already use.
Designers should work from a shared component library in Figma or a similar tool, built from the guide. Developers should implement the same components and tokens in code, ideally with a living reference such as Storybook so everyone can see the real thing. Editors should get CMS blocks that only allow approved combinations, which enforces the guide without anyone having to police it.
Set a simple governance routine: one owner, a way to request new components, a review before anything is added and a changelog. When a campaign genuinely needs something new, add it properly or retire it afterwards, rather than letting one-off styles pile up.
Creating a website style guide is part of how our UI and UX design team works on every redesign, and it is usually the most reused deliverable long after launch. If your brand foundations need work first, our brand identity service covers the logo, palette and typefaces the website guide builds on.