Skip to content
City ofSpringfield live site

Deliverable 07 · Design

Design System & Style Guide

The theme.json palette, typography, block patterns, components, imagery and civic voice.

Brand foundations

A city seal, a three-line wordmark and a tagline. Everything else in the theme (color, type, photography) is chosen to support those three.

The seal · assets/img/seal.svg

City of Springfield seal: green leaves over a river inside a navy circle

A 64 × 64 SVG of under 1 KB. The dashed line shows minimum clear space.

1Leaves rising over the river, in fern and leaf greens: the “Parks” in People. Parks. Possibilities.

2A white wave and river-blue water across the base: the river that runs through town.

3A navy field inside a white ring with a navy keyline, so the seal reads on white and on navy-deep.

City ofSpringfieldEst. 1847
City ofSpringfieldEst. 1847

Wordmark & usage

  • Lockup: “City of” and “Est. 1847” in tracked uppercase Source Sans 3; “Springfield” in Playfair Display 700. This is live HTML text, not an image, so it scales and translates.
  • Sizes: 64px seal in the masthead, 52px in the footer, 48px on phones under 600px.
  • Backgrounds: navy lockup on white; white lockup on navy-deep (footer). The seal itself never changes color.
  • Never stretch the seal, recolor its greens, or set the name in the script face.

Tagline

People. Parks. Possibilities.

Set as the WordPress site tagline (blogdescription) by setup.sh, and in the hero with the three-segment gold rule from site.css.

Brand attributes

Four words every template is checked against.

  • Civic

    Navy, a round seal and a serif wordmark: the look of a city hall, not a startup. Springfield has been here since 1847.

  • Trustworthy

    Every demo is labelled as a demo. Contrast is calculated, not eyeballed. We never ask for data we don’t need.

  • Welcoming

    Real photos of the river, the parks and neighbors. A script flourish on the hero, used once and only there.

  • Clear

    Six services above the fold, plain words, one action per card. Residents come to get something done.

Color

Thirteen colors, defined once in theme.json. WordPress turns each into a --wp--preset--color--{slug} variable and a has-{slug}-color class, and editors see exactly these thirteen in the Site Editor. The default WordPress palette, gradients and duotones are switched off.

Civic navy

The color of City Hall: header, headings, links, footer and deep bands.

  • 12.4:1white

    navy

    #1a3557

    Header, headings, primary surfaces

  • 14.6:1white

    navy-deep

    #11294a

    Utility bar, footer, deep bands

  • 6.6:1white

    river

    #2e5f93

    Links and pay-bill icon

Gold

The accent. Buttons and eyebrows use gold; gold-light is for rules and decoration only.

  • 5.0:1white

    gold

    #8a6a26

    Buttons with white text (darkened for AA)

  • 7.9:1ink

    gold-light

    #d9b86c

    Decorative rules and accents only

Text & neutrals

Ink for reading, slate for secondary text, mist and line for surfaces and dividers.

  • 15.0:1white

    ink

    #1f2733

    Body text

  • 5.9:1white

    slate

    #5b6573

    Secondary text

  • 13.7:1ink

    mist

    #f3f4f6

    Section backgrounds

  • 12.0:1ink

    line

    #e3e6ea

    Borders and dividers

  • 15.0:1ink

    white

    #ffffff

    Cards and page surface

Service colors

One color per quick-service tile, so a returning resident finds “the green one” fast.

  • 6.3:1white

    fern

    #3d6b35

    Report-a-problem and parks icons

  • 9.3:1white

    brick

    #7d2b2b

    Permit icon

  • 8.6:1white

    pine

    #1f5540

    Trash & recycling icon

The gold decision

The one color decision we changed during QA.

I Want To…Pass · AA

gold #8a6a26 · 5.04:1 with white. Every core/button in theme.json is white text on gold, so gold had to pass AA for normal-size text. The QA pass darkened it to this value.

Fail

gold-light #d9b86c · 1.91:1 with white. Lovely on navy, unreadable under white text. It stays in the palette for the hero rule, footer headings and the hero eyebrow on navy, and for focus outlines on dark bands. Never as a button.

Contrast pairs

Ratios are calculated on this page from the theme.json hex values with the WCAG 2.x relative-luminance formula. AA needs 4.5:1 for body text, 3:1 for large text (24px, or 19px bold) and for UI parts like focus outlines.

WCAG contrast ratios for color pairs used in the Springfield theme
SampleText / backgroundWhere it’s usedRatioWCAG AA
ink / mistBody text on the page background (theme.json styles.color)13.67:1Pass · AAA
ink / whiteCard and sheet body text15.04:1Pass · AAA
navy / whiteHeadings, links and main navigation12.42:1Pass · AAA
slate / whiteNews dates, service-card subtitles, event meta5.91:1Pass · AA
slate / mistSecondary text on mist sections5.37:1Pass · AA
white / goldDefault button (theme.json elements.button)Gold was darkened to #8a6a26 so white text passes AA.5.04:1Pass · AA
white / navyButton hover state, I Want To… on hover12.42:1Pass · AAA
white / navy-deepUtility bar and footer links14.58:1Pass · AAA
gold-light / navy-deepFooter column headings, hero eyebrow, kicker7.66:1Pass · AAA
gold / whiteLink hover color, form eyebrows5.04:1Pass · AA
#5c4712 / #fbf3dfDemo-site banner text (site.css)8.03:1Pass · AAA
white / riverPay Utility Bill icon tile6.62:1Pass · AA
white / fernReport a Problem icon tile6.26:1Pass · AA
white / brickApply for a Permit icon tile9.32:1Pass · AAA
white / pineTrash & Recycling icon tile8.64:1Pass · AAA
river / whiteKeyboard focus outline (3px, non-text)6.62:1Pass · AA
white / gold-lightRuled out: white text on gold-lightDecorative only. Never a button background.1.91:1Fail
gold-light / whiteRuled out: gold-light text on whiteRules, underlines and accents only.1.91:1Fail

The demo-banner colors (#5c4712 on #fbf3df) live in site.css rather than theme.json, because the banner is a fixed notice, not something editors restyle.

Do & don’t

Pay My BillOur Community
Do. Use gold for buttons with white text and gold-light only on navy, for kickers and rules.
Pay My BillOur Community
Don’t. Put white text on gold-light, or set gold-light text on white or mist.

Typography

Three families, all registered in theme.json and loaded from Google Fonts by functions.php: Playfair Display for the civic voice, Source Sans 3 for everything people read and act on, and Dancing Script for one hand-written line on the homepage.

Aa

Playfair Display

--wp--preset--font-family--serif

Headings and the Springfield wordmark

Weights 600 · 700

Aa

Source Sans 3

--wp--preset--font-family--sans

Body, navigation, forms

Weights 400 · 600 · 700

Aa

Dancing Script

--wp--preset--font-family--script

Hero flourish (“A vibrant community…”) only

Weight 600 · used once

Welcome to the City of

Springfield

A vibrant community
for today and tomorrow.

The hero, recreated: eyebrow in tracked Source Sans 3, the name in Playfair Display at the huge size, and the .sf-hero__script flourish, which hides on screens under 900px.

Size scale

theme.json fontSizes. Default WordPress sizes are disabled, so editors pick only from these six. The three largest are fluid.

x-small · 0.8rem

Fixed · demo bar, utility bar

Demo website. Springfield is a fictional city.

small · 0.9rem

Fixed · captions, pills

Pay My Bill · Report a Problem · View the Calendar

medium · 1.05rem

Fixed · body text (styles.typography)

Council meets the first and third Tuesday of each month at 7:00 PM in City Hall.

large · 1.35rem

Fluid 1.2 → 1.35rem · intros

Everything you need to live well in Springfield.

x-large · 2.4rem

Fluid 1.8 → 2.4rem · H1 on inner pages

City Services A – Z

huge · 5.5rem

Fluid 3 → 5.5rem · hero “Springfield”

Springfield

Element styles

theme.json styles.elements: only H1 is serif. Section headings stay in bold sans so long civic headings remain easy to scan.

How theme.json styles each HTML element
ElementStyleWhere
h1Playfair Display · x-large · 700 · navyPage titles and the hero
h2Source Sans 3 · 1.6rem · 700 · navyPanel headings: Latest News, Upcoming Events
h3Source Sans 3 · 1.1rem · 700 · navyNews titles, card headings
bodySource Sans 3 · medium (1.05rem) / 1.55 · ink on mistEverything people read
linknavy, no underline → gold + underline on hoverInline links and “View All News →”
buttonSource Sans 3 · 600 · white on gold · 8px radiusDefault core/button style

Spacing & layout

Two widths, five spacing steps and one card shadow, all in theme.json so Group, Columns and Cover blocks inherit them.

Layout widths

contentSize
760px
wideSize
1180px
Root padding
clamp(1rem, 4vw, 2rem) left and right
Block gap
1.1rem between blocks
Breakpoints (site.css)
1200 · 1100 · 900 · 600px

Spacing sizes

  • 20XS · 0.5rem
  • 30S · 1rem
  • 40M · 1.5rem
  • 50L · clamp(2rem, 4vw, 3rem)
  • 60XL · clamp(3rem, 6vw, 5rem)

Editors see these as XS–XL in the block spacing controls. Inner pages use 50 on top and 60 below.

Corner radius

  • 6px

    Form fields, event date badge, form buttons

  • 8px

    Default button (theme.json)

  • 10px · --sf-radius

    Service cards, panels, sheets

  • 14px

    Service-form cards and asides

  • 999px

    Hero search, pills, pill buttons

Elevation

shadow · card

The only theme.json shadow preset: cards, panels, sheets.

service hover

Service tiles lift 2px with a deeper shadow on hover.

Both are tinted with navy-deep (rgba 17,41,74) rather than black. The hover lift is removed under prefers-reduced-motion.

Components

Recreated here from the theme’s real CSS (site.css and forms.css) and patterns. Labels name the class or block that produces each one on the live site.

Buttons

theme.json sets every core/button to white on gold with an 8px radius; hover turns it navy. Variants come from CSS classes on the Buttons block.

I Want To…Hover: navy

core/button · theme.json elements.button

Review reportFill with sample details

.sf-form-primary + secondary · forms.css

Pay My BillReport a ProblemView the Calendar

.sf-pills · hero quick links on the photo

.sf-btn-pill · Our Community card

Service cards

patterns/home-services.php. Six tiles overlap the hero by 3.4rem; 6 columns on desktop, 3 under 1200px, 2 under 600px. Each service keeps its own palette color.

.sf-service · icon tile .has-{color}-background-color: river · fern · brick · pine · navy · gold

Demo banner

A fixed notice above the utility bar on every page, from patterns/header.php. It is not editable in the Site Editor on purpose.

Demo website. Springfield is a fictional city created to showcase modern municipal web design. It is not a real government site. Learn more

.sf-demo-bar · #fbf3df background, #ecd9a8 rule, #5c4712 text

Form field & error

forms.css: bold labels above full-width fields, a 1px #8c9aaa border, 6px radius and a 3px gold focus outline. Today required fields use the browser’s built-in validation (reportValidity); the inline error below is the pattern we recommend adding.

In the theme today: native select, sample value.

Tell us where the problem is, for example a street address.

Recommended pattern

News item

front-page.html core/query: 110 × 72 thumbnail, uppercase date, linked title.

Event date badge

The [sf_events] shortcode in functions.php prints a real <time> element per event.

Upcoming Events

Alerts & confirmations

The confirmation is in the theme today (role=“status”, focus moves to it). Service alerts are a proposed block pattern for closures and holiday schedules.

Your preview is complete

Sample reference: SF-DEMO-7K2QX9

This confirmation is a demonstration. No request was sent to the City.

In the theme · .sf-form-success

Road work: Jefferson Avenue has weekday lane closures between 9:00 AM and 3:00 PM. Detours are posted. Proposed pattern

Holiday schedule: City Hall is closed Monday. Trash pickup moves one day later this week. Proposed pattern

Focus states

Visible focus was added in the QA pass: a 3px river outline offset 4px, switching to gold-light on the navy footer and the hero photo.

Pay My Bill

:focus-visible · 3px solid #2e5f93, offset 4px

Events Calendar

.sf-footer a:focus-visible · gold-light

Do & don’t

Report a Problem
Do. Keep each service’s color the same everywhere it appears, with the label always next to the icon.
Don’t. Recolor tiles per page, use status reds or gold-light behind white icons, or show icons without labels.

How it stays editable in WordPress

The design system is not a PDF. It lives in theme.json and block markup, so City staff change content in the WordPress editor without touching code, and can’t accidentally break the look.

  1. theme.json

    Palette, fonts, sizes, spacing, widths and the card shadow become Global Styles. Default WordPress colors, gradients and font sizes are off, so every color picker shows only Springfield colors.

  2. Templates & parts

    templates/*.html (front page, page, single, event archive, search, 404…) and parts/header + footer are block markup the Site Editor can open.

  3. PHP patterns

    patterns/*.php build the header, footer, hero, quick services, community card and resources strip. They are marked Inserter: no, so they stay in place rather than being copied around.

  4. Content types

    Pages, News posts, Events and Businesses are edited in the block editor. Event date, time and location are registered post meta, exposed to the REST API and the editor.

"elements": {
  "button": {
    "color": {
      "background": "var(--wp--preset--color--gold)",
      "text": "var(--wp--preset--color--white)"
    },
    "border": { "radius": "8px" },
    ":hover": {
      "color": { "background": "var(--wp--preset--color--navy)" }
    }
  }
}

1Change one value here and every button on every page follows, including buttons editors add later.

2site.css is loaded as an editor style too (add_editor_style), so what staff see in the editor matches the public site.

3Draft creation, update and block parsing were verified through the WordPress APIs. The interactive editor was not yet tested in a browser; that check is on the launch list.

Imagery & iconography

Photos of a real-feeling small city: its river, its parks, its people and its public work. All five are free-license photos recorded in assets/img/CREDITS.md.

The river and the old mill

The river and the old mill

Homepage hero, under a navy-deep overlay so white type stays readable

hero.jpg · Aaron Doucett · Unsplash

The park gazebo

The park gazebo

Our Community card, 60% navy-deep overlay

community.jpg · Alari Tammsalu · Pexels

Neighbors at a cleanup

Neighbors at a cleanup

News: Fall Community Cleanup Day

news-cleanup.jpg · Vitaly Gariev · Unsplash

The council chamber

The council chamber

News: FY2027 Capital Improvement Plan

news-council.jpg · Héctor Berganza · Pexels

Road closed, detour posted

Road closed, detour posted

News: Jefferson Avenue Improvement Project

news-roadwork.jpg · John Cardamone · Unsplash

Choose photos that

  • Show places and public life residents recognize: parks, Main Street, City Hall, work crews
  • Use natural light and true color; text over photos sits on a navy-deep overlay
  • Tell the story of the news item they illustrate
  • Have a free license and a line in CREDITS.md

Avoid

  • Real officials, real city logos or recognizable real places presented as Springfield
  • Generic skylines, handshakes and stock “business” imagery
  • Text baked into images; alt text carries meaning, decorative covers use alt=""
  • Uploading originals: today’s JPEGs run about 120 KB to 868 KB and should be compressed before launch

Iconography

inc/icons.php: thirteen inline SVG line icons on a 24px grid, 1.8 stroke, round caps, in the Lucide style. No icon font, no extra requests. All are aria-hidden and sit next to a text label.

  • search
  • arrow
  • chevron
  • card
  • wrench
  • file
  • trash
  • tree
  • people
  • building
  • map
  • chat
  • globe

In use: the resources strip

  • Meet Your City Council
  • City Services A – Z
  • Public Records & Documents
  • Interactive City Map
  • Contact Us

Voice & tone

A city website is read by everyone: new residents, seniors, business owners, people in a hurry. The voice is a helpful clerk at the front desk of City Hall.

  • Say what to do first

    “Pay your water bill online” before any history of the utility department.

  • Plain words for everyone

    Short sentences at a 6th–8th grade reading level. City terms only when needed, explained once.

  • Be honest about the demo

    Every preview says it is a preview. Nothing pretends to pay, file or submit.

  • Speak as neighbors

    “We” are the City, “you” are the resident. Not “constituents are advised”.

We say / We don’t say
We sayWe don’t say
Report a problemSubmit a service request
Trash pickup is on Monday this week because of the holiday.Solid waste collection schedules are subject to modification.
Council meets the first and third Tuesday at 7:00 PM in City Hall.Regular sessions of the governing body are convened bi-monthly.
This is a demo. Nothing is paid, filed or submitted.Your transaction has been processed successfully.
Expect lane closures on weekdays between 9:00 AM and 3:00 PM.Motorists may experience intermittent traffic impacts.
Plain-language glossary
Government termOn the website
Ad valorem taxProperty tax
Right-of-way obstructionSomething blocking the street or sidewalk
Solid waste collectionTrash pickup
Remit paymentPay
ConstituentResident
OrdinanceCity law (ordinance)
Capital Improvement PlanOur plan for roads, parks and buildings

Pothole on your street?

Report it online. Tell us where it is and we’ll give you a reference number.

Do. Name the problem the resident has, then the one thing to do about it.

Constituents wishing to report roadway surface deficiencies should submit a service request via the appropriate municipal portal.

Don’t. Write in the voice of the org chart, or make people translate government terms.
PreviousWireframesNext WordPress Build & QA