Skip to content

Fresh paint: Firefox fonts and purples, updated footer, accessible links - #512

Merged
stephaniehobson merged 9 commits into
mainfrom
468--fresh-paint
Nov 19, 2026
Merged

stephaniehobson merged 9 commits into
mainfrom
468--fresh-paint

Conversation

@stephaniehobson

Copy link
Copy Markdown
Collaborator

Restyles the site with Mozilla's current brand. Each commit is one decision and can be reviewed on its own.

Fixes #468, fixes #491, fixes #462.

Commits

  1. Switch to Mozilla Headline and Mozilla Text, and enlarge the type. Removes Fira Sans (Fira Sans is still used #468) and adds the Mozilla variable fonts plus static Mozilla Text italics, copied from springfield as woff2 only. Body text becomes 16px, section headings 32px, and dashboard section titles 1.5rem.
  2. Replace the yellow accents with Firefox purples. Soft purple #F1E7F8 replaces the yellow. Striped headers become a bold heading over an underline, and diagonal-line_yellow.png is removed. All headings use dark purple #210340 ($dark-purple), which is also the background of the .contrasted section headings.
  3. Replace the footer with a fork of Protocol's footer. Protocol's footer markup and styles are copied in without the mzp- prefix, so Protocol isn't a dependency. The footer gets a #210340 background, the 2026 Firefox logo, social accounts matching bedrock's footer, and updated Mozilla and Firefox link columns.
  4. Teach stylint about modern CSS instead of ignoring it inline. The empty mixins array in .stylintrc stopped customProperties from being read. With that fixed, and globalDupe turned off, most of the // @stylint ignore comments go away.
  5. Fix link contrast, add hover and focus states, restyle the next button (Links missing hover effects #491).
    • Link colour: links move from #0070ff (4.41:1 on white, below WCAG AA) to Protocol's #0060df (5.62:1).
    • Hover and focus: links get an underline on hover and keyboard focus, plus a focus outline. The header title and nav links get hover states too.
    • Next button: uses Flare's primary button with its forward arrow.
  6. Use the current Firefox logo for the favicon (Update the Firefox logo in the favicon #462). The icons come from springfield, and an Apple touch icon is added. The manifest's icon paths were relative, so they pointed at /icons/ instead of /img/icons/. They're now absolute.
  7. Draw single-metric charts in Firefox purples. Single-metric charts get a #7543E3 line over opaque #F1E7F8 shading, drawn beneath the axes and annotation markers.

Notes for review

Testing

  • npm run lint, npm run test:jest (121 tests), npm run build, and npm run test:playwright:recorded (101 tests) all pass. Every commit lints and builds on its own.
  • Every link meets WCAG AA contrast, checked by a script that reads the colours the browser computes, on the home page, the contact page, two dashboards and the 404 page.
  • Checked by screenshots in Firefox and Chromium: the footer at 375, 800 and 1400px, and hover and focus states.
  • New Playwright specs check the footer links and the link hover states. A new unit test checks the single-metric chart colours.

@stephaniehobson
stephaniehobson requested a balanced review from Copilot November 16, 2026 23:21
@stephaniehobson stephaniehobson changed the title Fresh paint: Mozilla fonts, Firefox purples, Protocol footer, accessible links Fresh paint: Firefox fonts and purples, updated footer, accessible links Nov 16, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues remain for the Firefox Public Data Report branding refresh.

No open issues 🎉

What changed in this PR

Refreshes the Firefox Public Data Report with Mozilla typography, Firefox colours, and a Protocol-derived footer. The changes address the font, link-hover, and favicon issues in #468, #491, and #462.

Changes:

  • Updates typography, headings, single-population charts, and navigation buttons to the current brand.
  • Replaces the footer and social assets, improves link contrast and focus states, and corrects icon references.
  • Adds visual-style and footer-link tests, updates asset documentation, and simplifies Stylus lint configuration.
File Description
tests/​playwright/​specs/​links.spec.js Tests link hover states and button colours.
tests/​playwright/​specs/​footer.spec.js Tests footer content, destinations, and new-tab behaviour.
src/​tests/​jest/​Chart.test.jsx Checks single-population colours and area layering.
src/​components/​views/​styl/​StripedHeader.styl Replaces yellow stripes with underlined headings.
src/​components/​views/​styl/​Spinner.styl Removes obsolete lint-suppression comments.
src/​components/​views/​styl/​NextButton.styl Adds purple button styling and interaction states.
src/​components/​views/​styl/​includes/​lib.styl Defines shared brand fonts and colours.
src/​components/​views/​styl/​Header.styl Adds header hover and keyboard-focus styling.
src/​components/​views/​styl/​Footer.styl Introduces responsive Protocol-derived footer styles.
src/​components/​views/​styl/​DashboardSection.styl Enlarges dashboard section titles.
src/​components/​views/​styl/​Chart.styl Removes an unnecessary lint suppression.
src/​components/​views/​styl/​Application.styl Updates fonts, typography, heading colours, and link states.
src/​components/​views/​NextButton.jsx Adds a decorative forward icon.
src/​components/​views/​img/​moz-wordmark-light-reverse.svg Removes the previous Mozilla wordmark.
src/​components/​views/​img/​icons/​forward-16.svg Adds the button’s forward-arrow asset.
src/​components/​views/​img/​footer/​youtube-white.svg Adds the YouTube footer icon.
src/​components/​views/​img/​footer/​tiktok-white.svg Adds the TikTok footer icon.
src/​components/​views/​img/​footer/​spotify-white.svg Adds the Spotify footer icon.
src/​components/​views/​img/​footer/​linkedin-white.svg Adds the LinkedIn footer icon.
src/​components/​views/​img/​footer/​instagram-white.svg Adds the Instagram footer icon.
src/​components/​views/​img/​footer/​firefox-logo-white.svg Adds the Firefox footer logo.
src/​components/​views/​img/​footer/​bluesky-white.svg Adds the Bluesky footer icon.
src/​components/​views/​Footer.jsx Replaces footer markup and updates link groups.
src/​components/​views/​fonts/​FiraSans/​firasansot-light-webfont.svg Removes the legacy Fira Sans SVG font.
src/​components/​views/​Chart.jsx Uses purple single-population colours and draws shading beneath axes.
public/​manifest.json Corrects icon paths and declares favicon sizes.
index.html Adds the Apple touch-icon reference.
docs/​architecture/​frontend.md Updates the font and image directory descriptions.
CONTRIBUTING.md Documents the replacement font families.
AGENTS.md Updates font and asset documentation.
.stylintrc Recognizes modern CSS properties and disables global duplicate checks.

Review effort: Balanced

@stevejalim stevejalim left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

robotstamp+

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The branding and link-interaction refresh has no active review issues.

No open issues 🎉

Review effort: Balanced

Replace Fira Sans with Mozilla's brand fonts, copied from springfield:
the Mozilla Headline and Mozilla Text variable fonts (weights 200-700)
plus static Mozilla Text italics, since the variable font has no italic
axis. Only woff2 is shipped. Body text uses Mozilla Text and headings
use Mozilla Headline, through new $font-family-text and
$font-family-headline variables based on springfield's tokens.

Set the type sizes for the new fonts: body text is 16px at every
width, section headings (.contrasted) are 32px with space above them,
and dashboard section titles are 1.5rem.
Swap the old #f5e14a yellow for Firefox's soft purple (#F1E7F8) on the
site title box and the next button. Striped headers drop the skewed
yellow stripe background for a bold heading over a solid underline,
so diagonal-line_yellow.png is no longer used and is removed.

Headings use Firefox's dark purple (#210340, a new $dark-purple
variable): as the text colour of every heading, which also colours the
striped headers' underline, and as the background of the white-text
section headings (.contrasted).
Port Protocol's footer markup and styles into Footer.jsx and
Footer.styl without depending on Protocol, dropping the mzp- prefix.
Sections stay expanded on small screens rather than porting Protocol's
collapse script, and the footer keeps the site's content width.

Restyle it for Firefox: a #210340 background, #C8B2F6 secondary text,
and the 2026 white Firefox logo in place of the Mozilla one. Social
accounts now match bedrock's footer and sit at the end of each org's
column. The outdated Firefox links become Download Firefox, Release
Notes, Support, and Firefox Privacy Notice; the Mozilla column gains
Mozilla.org and Data Privacy Principles and loses Contact Us.

Footer images now come from Protocol and springfield; the old
wordmark and PNG social sprite are removed.
stylint 2.0.0's list of valid properties predates gap, mask,
text-underline-offset, text-decoration-thickness, and contain. Its
customProperties option extends that list, but stylint reads
`mixins || customProperties`, so the empty mixins array meant
customProperties was never used. Drop mixins and list the properties.

Turn off globalDupe (stylint's default) so overriding a selector from
another file, as Spinner.styl does on purpose, isn't a warning.

Remove the inline ignores these two changes make unnecessary.
Body links move from #0070ff (4.41:1 on white, below WCAG AA) to
Protocol's link blue #0060df (5.62:1). They stay unadorned and gain an
underline and #0250bb on hover and keyboard focus, plus a focus
outline. Fixes the missing hover states in #491.

Header: the site title loses its shaded box and is underlined on
hover; nav links get a heavier, offset underline on hover and focus.

The "Proceed to" next button now uses Flare's primary button styles
with Flare's forward arrow icon, replacing the flat box and CSS arrow.

In the footer, the p/span/ul resets use :where() so the c-footer-*
rules override them without a .c-footer prefix, and the focus outline
is white so it shows on the dark background.
Replace the 2017 Firefox Quantum favicon with the current Firefox logo,
copied from springfield's favicons (the ones its Flare template uses):
favicon.ico now carries 48, 32, and 16px images, favicon-196.png is
updated, and a 180px apple-touch-icon is added and linked.

The manifest's icon paths were relative ("icons/favicon.ico"), which
resolve against /manifest.json to /icons/ rather than /img/icons/,
where the files are served. Make them absolute so the manifest finds
the icons, and list all three sizes in the .ico.
A chart with a single population now draws its line in Firefox purple
(#7543E3) over an opaque pale purple area (#F1E7F8), replacing the
first palette blue and a 20% blue fill. The same purple colours that
population's hover dot and readout.

The opaque area is drawn first, so the axis lines and the dashed
annotation markers stay visible on top of it.
The chart spinner's aspect-ratio, which arrived with #509, was the one
remaining property ignored inline because stylint 2.0.0 doesn't know it.
The short-page footer checks from #509 used a 375×1000 window, sized
for the old footer. The new footer keeps its sections expanded on small
screens and is about 1030px tall at that width, so no page fits; the
footer sitting below the window there is expected.
@stephaniehobson
stephaniehobson merged commit f44bef2 into main Nov 19, 2026
7 checks passed
@stephaniehobson
stephaniehobson deleted the 468--fresh-paint branch November 19, 2026 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Links missing hover effects Fira Sans is still used Update the Firefox logo in the favicon

3 participants