style guide page
Style Guide Page: What to Include and How to Build One
Build a style guide page for your website or app: what to include, how to organize it, and how to have your AI assistant publish it as a live page.

A style guide page is one page on your site that records your colors, type, spacing, buttons and other components, so every new page looks like it belongs to the same site. You don’t need a design team to make one. You need a short list of decisions and a place to keep them. With the AI web platform WebsitePublisher, your AI assistant (ChatGPT, Claude, Gemini, Mistral, Cursor and others) builds and publishes the page through the WebsitePublisher connector. The guide is a live page on a full-stack platform, so the rules sit next to the site they govern.
TL;DR
- A style guide page documents the visual rules of one site or app. A design system is the larger set of standards, components and patterns that a style guide can belong to.
- Start small: color roles, type scale, spacing, buttons, forms, icons and accessibility rules. Expand it as the project grows.
- Write down when to use each component, not only how it looks.
- Publish it as a real page on your site, so you and your AI assistant work from the same reference.
- On WebsitePublisher every change goes live immediately, so edits to the guide and the site never fall out of step.
Table of Contents
- What a style guide page is, and what it is not
- What to put on a website style guide page
- How to organize the page
- Document when to use a component
- How to build the page with your AI assistant
- Keep the guide useful as the site grows
- Build your style guide page on WebsitePublisher
- Our view: the guide belongs inside the site
- FAQ
- Sources
What a style guide page is, and what it is not
People use three terms for overlapping things. Here is the plain version.
Style guide. Nielsen Norman Group (NN/g), a well-known UX research firm, describes a style guide as narrower documentation with specific implementation guidelines, visual references and design principles. It answers: what does our blue look like, and which font do headings use?
Design system. The same NN/g article defines a design system as a complete set of standards for managing design at scale, with reusable components and patterns. In NN/g’s framing, a design system is the parent. Style guides, pattern libraries and component libraries are the smaller resources inside it.
Brand guide. This covers the identity itself: logo use, voice, photography. A website style guide page borrows from it, but it goes further into screen details such as hover states, form fields and spacing.
For a freelancer, a small business or an agency running several client sites, the style guide page is the right size. You can grow it later. Yale’s UX team says teams can begin with a simple style guide and let it grow into a full design system as needs evolve. If you reach that point, our piece on design systems for the web covers design tokens and how to share them across more than one product.

What to put on a website style guide page
Yale recommends documenting color roles and states, typography, spacing, components with their variations and states, icon and imagery rules, and accessibility standards. That list works as a template for a small site. Here it is as a table you can copy.
| Section | What to record | Example entry |
|---|---|---|
| Color | Primary, secondary and accent colors, their purpose, hex codes, plus hover, active and disabled colors | Primary: #1F4FD8, used for buttons and links only |
| Typography | Font families, heading sizes, body size, line height, weights | H1 40px bold, body 16px, line height 1.5 |
| Spacing | A fixed scale for margins, padding and gaps | 8, 16, 24, 32, 48 px |
| Buttons and links | Variants, when to use each, states | Primary for one main action per screen |
| Forms | Field styles, labels, error and success messages | Labels above fields, errors in red with text |
| Icons and images | Icon style, image ratios, alt text rules | Cards use 16:9 images with alt text |
| Accessibility | Contrast, focus indicators, keyboard navigation | Visible focus ring on every interactive element |
| Layout | Grid, breakpoints, page regions | Max content width 1120px |
Colors and states
Don’t list swatches alone. Yale’s guidance says to document primary, secondary and accent colors, their intended use, the color codes, and interaction-state colors such as hover, active and disabled. “Use this blue for links and buttons, never for headings” prevents more mistakes than a hex code does.
Buttons and links
Smashing Magazine recommends documenting how buttons and links behave, when each should be used, and states including hover, disabled and visited. Show each variant live on the page, not as a screenshot. When the sample is the real thing, you see immediately if it breaks.
Accessibility rules
Write contrast, focus indicators and keyboard navigation into the guide, as Yale advises. Then each new page inherits them. Component libraries can help, but they don’t guarantee the result. The NSW Digital Design System, for example, says its components are designed to comply with WCAG 2.2 AA, while noting that full compliance depends on correct use and configuration. The same is true of any site you build. For a test list you can run before launch, use our website accessibility checklist.
How to organize the page
Order matters, because the page should read from small building blocks up to whole layouts. The NSW Government’s design system follows this order: core styles such as color, typography, iconography, grid and layout, followed by UI components and design patterns.
For a small site, a good order is:
- Foundations: colors, type, spacing, grid.
- Components: buttons, forms, cards, navigation, footer.
- Patterns: a hero block, a pricing block, a contact block, built from the components above.
- Rules: accessibility, image handling, tone of microcopy.
The Singapore Government Design System says its component reference pages give usage instructions, examples and guidelines, and that components can be grouped into patterns and templates. Take the same habit: every component gets a live example and a short note.
Go past looks if your site is more than brochure pages. The UK Office for National Statistics documents its base page template with CSS and JavaScript, a skip link, header and footer, a favicon and Open Graph metadata. That is implementation-ready structure, not just visual rules. A short “page skeleton” section on your guide, listing the header, footer, favicon and social preview image every page needs, does the same job at your scale.
Document when to use a component
A button sample with no rule attached leads to five different buttons within a month. The NSW content-block guidance is a good model: it says to keep headlines and summaries concise, to use content blocks for several pieces of information or actions, and to avoid them when a large amount of explanatory text is needed. That is a use rule and a don’t-use rule in two lines.
For each component, write:
- Use it when: one sentence.
- Don’t use it when: one sentence, with the alternative.
- Variants and states: default, hover, focus, disabled, error.
- Content limits: for example, headline under 60 characters.
This also helps your AI assistant. A written rule is something you can paste into a prompt or point to, instead of re-explaining the look of your site every time.
How to build the page with your AI assistant
You don’t write HTML by hand. You describe the page and your AI assistant builds it. WebsitePublisher connects to AI assistants through an MCP connector (MCP is the Model Context Protocol, a standard way for an AI assistant to use outside tools). Here is the routine.
- Decide the basics first. Pick two or three colors, one or two fonts, and a spacing scale. Five minutes of decisions saves hours of fixing later. Write them in plain text so you can paste them into your prompt.
- Connect your AI assistant. Connect ChatGPT, Claude, Gemini, Mistral, Cursor or another supported assistant to WebsitePublisher through the connector. The supported AI platforms page lists what works today.
- Ask for the page. Give your AI assistant the table above, filled in with your values. Ask it to build a page named “Style guide” with live samples of each element: headings, body text, buttons in every state, form fields, cards, and color swatches with their hex codes and roles. Our prompt library has prompt templates to start from.
- Build the pieces as reusable components. A header, footer or card you define once can be reused across pages. Our guide to reusable web components walks through the approach, and the component library article covers choosing and testing them.
- Check the page in the browser. Tab through it with the keyboard. Look at every state. Check the contrast of each text and background pair.
- Adjust in the visual editor. The browser editor lets you change text and design details yourself without asking your AI assistant to regenerate the page. Every change is live immediately. There is no separate deploy step.
- Build the rest of the site from the guide. Point your AI assistant at the style guide page when you ask for new pages. The multi-page website guide shows how to build every page from one brief.
Where does this go wrong? Usually in step 1. People skip the decisions and ask the AI for “a modern look”. Each page then comes out slightly different. A written scale for color, type and spacing is what keeps pages consistent.
Keep the guide useful as the site grows
A style guide that nobody updates becomes a trap. Three habits help.
Start with the essentials. Yale’s guidance is to start a style guide with the essentials and expand it as the project grows. Seven components documented well beat thirty documented badly.
Add a component when you use it twice. The first use is a one-off. The second is a signal that it belongs on the page.
Change the guide first, then the pages. If you decide your accent color is changing, change it on the style guide page, then update the pages that use it. Reusable components make this a single change in many cases. Because WebsitePublisher keeps project memory and task history across sessions and assistants, you can switch from one AI assistant to another and keep working from the same project context.
Agencies get the most out of this. Keep one guide per client site, each with the same table structure, and any team member can open a project and know the rules in a minute.

Build your style guide page on WebsitePublisher
WebsitePublisher is the AI web platform for websites and apps. Your AI assistant builds and publishes through the WebsitePublisher connector, onto a full-stack backend that is already in place: hosting, auth, payments, forms, email, uploads and data. It snaps together 140+ tested integrations instead of generating untested glue code. So your style guide page can document the real form, checkout button and login screen your site uses, not mock-ups.
You can start on the free plan and see the plans on the pricing page. To see how the platform works with your assistant, visit the AI web platform page.

Our view: the guide belongs inside the site
Most style guides die in a shared document. The site moves on, the document doesn’t, and within months nobody trusts it.
We think the guide should be a page of the site itself, built from the same components the other pages use. If the button on the guide is the button on the checkout page, the two cannot drift apart.
That is also why we built WebsitePublisher as a full-stack platform for websites and apps. Your AI assistant publishes pages, and the forms, payments, email and data behind them are already there. The guide can show real elements, and you can edit them in the visual editor without regenerating the page.
Project memory matters here too. Design decisions are context. When they stay with the project across sessions and assistants, you can change AI assistant without explaining your colors and spacing again.
Keep the guide short, write down when to use each component, and update it when you update the site.
FAQ
What is the difference between a style guide and a design system?
A style guide is narrower: specific implementation guidelines, visual references and design principles for a site or brand. A design system is the complete set of standards, with reusable components and patterns, for managing design at scale. NN/g treats style guides as one resource inside a design system. For most freelancers and small businesses, a style guide page is enough to start.
What should a website style guide template include?
At minimum: colors with their roles and states, typography, spacing, buttons and links, forms, icon and image rules, and accessibility standards. Add layout rules and a short list of page elements such as header, footer and metadata as the site grows. The table earlier in this article works as a template you can fill in and paste into a prompt.
How long should a style guide page be?
As long as the people using it need it to be. Start with the essentials and add components as you reuse them. A page covering color, type, spacing, buttons and forms is a solid first version. Add usage notes where mistakes tend to happen.
Can my AI assistant build the style guide page for me?
Yes. Connect your AI assistant (ChatGPT, Claude, Gemini, Mistral, Cursor and others) to WebsitePublisher through the connector, give it your color, type and spacing decisions, and ask for a page with live samples of each element. You can then adjust details in the visual editor, and every change is live immediately.
Sources
- Design Systems vs. Style Guides, Nielsen Norman Group
- Style Guides, Yale Usability & Digital Accessibility
- Content blocks, NSW Digital Design System
- NSW Design System, NSW Government
- Layout: Base page template, ONS Service Manual
- Getting Started, Singapore Government Design System
- How To Design Style Guides For Brands And Websites, Smashing Magazine
Recommended
- Multi-Page Website With AI: Build Every Page From One Brief
- Choose, Implement, Test: Component Library for Websites, for Web Teams
- Content Modeling for a Website: A Practical Guide
- AI Product Page Design: Live Edits, Clear CTAs, No Fake Timers
Build your site the same way
Describe what you want. Your AI builds and publishes it — with the full stack behind it: data, auth, forms, payments, integrations and hosting.
See how it works →
Website