Style Guide

Updated

What it helps you do

See a site's whole look on one page, and take any value from it. The Style Guide reads the site's own settings, so it's always current: change a color or a font in the Customizer and the page shows it the next time you open it. Nothing on the page is a setting, so you can't break anything by clicking around.

Use it to answer a client's "what's our purple?", to check whether a color pair is readable before you use it, to hand a designer the logos and fonts, or to look up a CSS variable while writing Additional CSS.

Where to find it

Design → Style Guide in wp-admin, for Administrators. It used to be Site → Site Sheet; old links still open it.

What's on the page

  • Cover. The logo, the site's name in its heading font, the brand colors, and the fonts and button shape at a glance.
  • Color. Primary, Secondary, Accent and Variant with their hex, RGB, HSL and CSS variable; the base and status colors; the ten-step gray ramp. Click a swatch to copy its hex, or a value to copy that format.
  • Contrast. Every text color against every background, with the ratio and a verdict (see below).
  • Logos. Each logo on the background it's meant for, the site icon in a browser tab and the share image in a link preview, with file type and size. Download saves the file and Copy URL copies its address. Show transparency puts a checkerboard behind the logos.
  • Type. Each font family with what it's used for and every weight the site loads, then every text style (headings, paragraph, links, buttons, tags, form labels) beside its measured font, weight, size, line height and letter spacing. Type your own words to see them in every heading, and switch between Desktop and Phone sizes.
  • Components. Buttons in every style, text, a quote, tags and form fields, drawn by the site's real stylesheets, so they look exactly as they do on the site. Switch between Desktop and Phone, and try them on the Canvas, White, Gray and Dark backgrounds.
  • Layout and shape. The page widths drawn to scale, corner roundness, header and logo height, and the space between blocks.
  • Variables. Every CSS variable the theme sets for this site, with its value. Search by name or value, and click a name to copy it as var(--name).

Reading the contrast grid

Each cell shows "Aa" in one text color on one background. Under it are the contrast ratio between the two and a verdict:

  • AA: 4.5:1 or more. Fine for body text at any size.
  • Large: 3:1 or more. Only for large text (24px and up, or 19px and up when bold), and the minimum for button edges and icons.
  • Fails: under 3:1. Don't set text in this pair. These are drawn faint so the pairs you can use stand out; point at one to see it in its true colors.

The ratios follow WCAG 2.2 level AA, and are never rounded up: a pair at 4.49:1 shows as Large, not AA. Each brand color's card also shows how white text and the site's text color read on it, which is the quick answer to "white or dark text on this button?".

Copying and printing

Export, at the top of the page, has five options:

  • Copy CSS variables: a :root { … } block with every variable, for a stylesheet or a note to a developer.
  • Copy as JSON: the same values as data, for design tools.
  • Copy summary as text: the colors, fonts and type sizes in plain words, for an email or a brief.
  • Print: a brand sheet with the cover, colors, contrast, logos and type. Tiles with nothing set yet (no site icon, no share image) are left off.
  • Save as PDF: the site's brand guidelines as a PDF to send to a client, a designer or a print shop, saved straight to your downloads as " style guide.pdf". Ten Letter landscape pages: a cover, the whole brand on one page, then the colors with every value, which text and background colors to pair, the logo with the space to keep clear around it and its smallest size, each font with its weights, the type scale, and buttons, tags and a form field drawn from the site's settings. It's set in the site's own fonts, its text can be selected and copied, logos stay sharp at any zoom, and it comes out the same in every browser. The first time, it takes a moment to fetch what it needs. A font the PDF can't carry (an Adobe Fonts kit, or one only on your own computer) is shown in a stand-in font with a note saying so. If the PDF can't be made, the print window opens instead: choose Save as PDF there.

Things to know

  • The page shows what's saved. A change you're previewing in the Customizer appears here after you publish it.
  • To change anything, use the link at the top right of each section (Change colors, Change logos, Manage fonts, Change type, Change buttons, Change widths); they open the right part of the Customizer.
  • The form parameter names that used to be on this page are now under Forms → Parameters, and the changelog is behind What's new at the foot of Home.

Related

Built by Dirigible Studio. Get in touch