Guide · 9 min read

Creating a website style guide: colour, type, components, voice

By the Red Balloon team · Updated · Part of UI/UX design

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.

DocumentCoversMain users
Brand guidelinesLogo, brand colours, typefaces, imagery style, tone and use across print, packaging, social and signageMarketing team, agencies, printers
Website style guideHow brand rules apply on screen: colour roles, type scale, spacing, components, interaction states, voice for web copyWeb designers, developers, content editors
Design systemThe style guide plus a coded component library and design tokens that keep design files and the live site in syncProduct 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.

ComponentWhat to document
ButtonsPrimary, secondary and text styles; sizes; default, hover, focus, pressed, disabled and loading states
Form fieldsLabels, help text, placeholder rules, error and success states, required field marking
CardsImage ratios, heading and text limits, whole-card or button links
NavigationDesktop and mobile menus, active states, breadcrumbs, footer structure
Alerts and bannersSemantic colours, icons, dismiss behaviour
Tables and listsHeader 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.

FAQ

Questions people also ask

Straight answers from the practice lead. Highlighted text marks Red Balloon figures we confirm before publishing.

How long should a website style guide be?

As short as it can be while still answering the questions people ask. For many business websites that means a few pages per section, heavy on examples and light on prose. Length matters less than format: a guide built into Figma libraries, coded components and CMS blocks gets used, while a long PDF tends to be forgotten soon after it is approved.

    Who should create the style guide, the agency or our team?

    Usually the agency or design team building the site creates the first version, because the decisions happen during design. Your team should own it afterwards. Ask for it as a named deliverable in the proposal, in an editable format, together with the design files and component library, so you are not dependent on the agency to interpret it later.

      Can we create a style guide for an existing website without redesigning it?

      Yes. Start with an audit of what already exists, choose the best version of each element and document it. Then retire the duplicates gradually as pages are updated. This often improves consistency and speeds up page building noticeably, and it is a sensible first step before deciding whether a full redesign is needed at all.

        Do we need design tokens?

        If developers and designers both work on the site regularly, tokens are worth it. They store values such as colours, spacing and type sizes once, under role-based names, and feed both the design tool and the code. For a small site maintained by one person, a clearly named set of CSS variables does the same job without extra tooling.

          How often should the style guide be updated?

          Update it whenever a component is added, changed or retired, and log the change. Beyond that, a review after each major campaign or redesign phase keeps it honest. If people are building things the guide does not cover, treat that as a sign the guide needs a new component rather than as a reason to ignore it.

            Start with an audit

            Ready for
            lift?

            A paid two-week Growth Audit covers your funnel, ads, site, tracking and automation gaps, and ends with a 90-day plan you can run with or without us. The fee is credited against your next engagement.

            Prefer to talk? Call +91 97114 48083, or email info@redballoon.in.

            A person from the team replies to every enquiry.

            What do you need?
            Your details are sent over a secure, encrypted connection and only used to reply to you.