A website style guide records the small design decisions you want to repeat. It tells you which colors have which jobs, how headings should look and what belongs in a callout, button or article card. For a solo website owner, it can be one working Page in a private document rather than a large brand manual.
The benefit appears when you build the next Page. You can reuse a tested pattern instead of choosing a new shade, font and spacing rule every time. That makes the website easier to maintain and gives readers familiar signals as they move between articles.
This guide uses an illustrative purple palette to show the method. It is not a request to replace your current branding, and the sample colors are not a complete accessibility audit. Start by documenting the design you already use, then change only the choices that create a real problem.
Give each color a job
Begin with roles: main text, page background, primary action, soft section background and border. A list of attractive hex codes is less useful than a rule saying where each one belongs. You might use a vivid accent on the main button, but not for a full paragraph of small text.
Record both the color and its allowed partner. “Purple” is incomplete. “White text on a purple primary button” is something you can check and repeat. A pale accent might work beautifully as a panel background while becoming difficult to read when used as text on white.
Limit the initial set. A dark neutral, a light background and one main accent can support a complete website. Add another accent only when it serves a real category or action. If three adjacent blocks each introduce a different bright hue, the page can lose its visual priority even when each block looks attractive alone.
For an example palette, use dark ink #241F45, primary purple #6236FF, pale lavender #EDF0FE and white #FFFFFF. The dark ink can carry body copy on white or lavender. The purple can identify a primary action. Lavender creates a quieter band around a checklist or example.
Check the actual foreground and background pair
Color contrast is a relationship between two colors. Check the text against the background on which it is actually displayed, including hover states and text over photographs. A button that passes on a white design canvas may fail if the theme changes its text color on hover.
The W3C explanation of minimum contrast describes a 4.5:1 threshold for ordinary text and 3:1 for qualifying large text, with specified exceptions. Using 4.5:1 as your initial text check avoids guessing whether a particular heading qualifies as large.
The sample pairs below are calculated from their stated hex values. Ratios are rounded for display; they apply to solid colors, not to a photograph, translucent layer or gradient. A passing text-color pair does not establish that an entire website meets accessibility requirements.
| Pair | Sample | Ratio | Result |
|---|---|---|---|
| Dark ink on white | Sample text | 15.48:1 | Passes 4.5:1 text check |
| Dark ink on lavender | Sample text | 13.63:1 | Passes 4.5:1 text check |
| White on primary purple | Sample text | 6.02:1 | Passes 4.5:1 text check |
| Lavender text on white | Sample text | 1.14:1 | Fails 4.5:1 text check |
Do not rely on color alone to communicate meaning. A selected filter can have a visible label and checkmark. An error should have explanatory text near the field. A link in a paragraph can retain an underline so readers do not have to distinguish one hue from another to find it.
Keep the test record alongside the color rule. That lets you notice when a later change creates a new combination. If you darken the panel background, recheck the text and links within it rather than assuming the original result still applies.
Choose a readable type system
Your style guide needs a body font, a heading approach and a small number of sizes. It rarely needs a different font for every section. If your theme already has a readable system, document it before importing additional font files or changing global settings.
Use a real paragraph when evaluating body type. A few attractive words in a heading do not show whether the font is comfortable across several hundred words. Check bold, italic, numbers and punctuation. If the lighter weight disappears against the background, use a stronger weight before increasing the size of every element.
Record a practical starting point, such as a body size around 17 or 18 pixels with generous line spacing, then inspect it in your actual layout. That size is a design starting point, not an accessibility guarantee. The reader should be able to enlarge the page without losing content or controls.
Avoid fixed-height text boxes when the amount of copy varies. A title that fits on two desktop lines may need five lines on a phone. If the box clips those lines, choosing a smaller font merely hides the underlying layout problem. Let the component grow and check the neighboring spacing.
Separate visual size from heading meaning
A heading level describes the structure of the content. It is not simply a font-size selector. Use the page's main title, then section and subsection headings in a sensible hierarchy. If an H3 looks better than an H2, adjust the presentation rather than choosing a heading level only for its appearance.
Your style guide can state: the Page title is the main heading, major article sections use H2 and nested steps use H3. Short card labels do not all need to become major document headings. The W3C heading tutorial provides a useful explanation of headings as document organization and navigation.
Write an example of each level in the guide. Include a long heading so you can see how it wraps. Test ordinary capitalization, bold emphasis and a link within nearby body copy. A typography rule should survive real content, not just a carefully selected sample.
Use a small spacing scale
Spacing becomes easier when the choices are related. You could start with 8, 16, 24, 32 and 48 pixels as a working set. Use the smaller steps inside a card and the larger steps between major sections. Those numbers are an example system, not a rule every website must follow.
Record the relationships that matter: a heading stays close to its following paragraph; a separate topic receives a larger gap; a button has comfortable space around its label. If two sections look unrelated, check their spacing before adding a divider, shadow and extra background color.
On narrow screens, large desktop padding can consume most of a card's usable width. Reduce the outer spacing where necessary while preserving the content order. Long URLs, table cells and button labels need particular attention because they may overflow even when the paragraphs wrap correctly.
Define three reusable content patterns
Start with the patterns you use repeatedly: an article introduction, an information callout and a next-step panel. For each one, record its purpose, content and visual treatment. This prevents a warning box and a promotional box from becoming indistinguishable.
Article introduction: One clear title, a short explanation of the reader's outcome and a relevant image if it adds context. Keep the opening useful without requiring someone to scroll past a long animation. If the image is illustrative, do not present it as a screenshot or evidence of a test.
Information callout: A soft background, strong text and a short label such as “Before you start.” Keep essential information in normal reading order. Do not hide the only copy of an important instruction inside a hover effect or a collapsed decorative panel.
Next-step panel: One primary destination with a label that says what happens next. “Open the launch checklist” is clearer than “Click here.” Add a secondary destination only when the reader has a meaningful alternative. Put any relevant commission disclosure beside an affiliate recommendation.
Once those patterns work, add a comparison table or resource card. A pattern is ready to reuse only after you have tried it with a long title, an ordinary amount of text and a narrow display. Save the successful version rather than repeatedly rebuilding a similar-looking approximation.
Apply the guide through the tools your theme supports
WordPress does not give every theme the same global design controls. Its Styles documentation describes the Styles feature for block themes. A classic theme or a page builder may offer different controls. Find the relevant setting in your current setup rather than switching themes just to match a tutorial.
Before making a global change, record the current value and preview a small set of representative pages. Include the homepage, a long article, a contact form and any comparison page. A global link color can affect all of those places at once.
If your editor supports reusable patterns, save a clean version with sensible default text. Do not embed page-specific claims, prices or dates in a general component unless you also have a reliable way to keep every use current. Design consistency should not spread stale information.
Make a one-page style record
Create a table with the following fields. Use actual decisions from your website, not aspirational rules you have not implemented.
- Color roles: Hex values, allowed text/background pairs and contrast-check notes.
- Typography: Body and heading fonts, weights, sizes and line spacing.
- Heading structure: How the main title, sections and nested sections are marked up.
- Spacing: The working scale and where you use the smaller and larger gaps.
- Buttons and links: Labels, default and hover treatment, focus visibility and disclosure placement.
- Images: Typical dimensions, cropping approach, alternative-text responsibility and permission record.
- Patterns: The approved introduction, callout, resource card and next-step panel.
- Review: Pages checked, date of the check and any unresolved exception.
Give the record a version or date so you can tell which decision is current. If you share the work with someone else, add a short instruction to reuse the established pattern before creating a new one. Keep unusual campaign artwork separate from the core rules.
Test a complete reader journey
Finish by moving through a real task: open an article, follow a related link and use the next-step button. Can you identify links without hunting? Can you read the callout comfortably? Does the button label match its destination? Use the keyboard as well as the mouse and inspect a narrow screen before calling the pattern finished.
For a wider review, use the site's beginner accessibility checklist. For the content that goes into the design, make a content brief first. A consistent visual system works best when the words, structure and next step are equally clear.
For the words that accompany your visuals, use the practical image-alt-text guide to distinguish information, decoration, controls and complex graphics.
