Style Manager source code

By pixelgrade, on WordPress.org since 2018. 500+ active installs.

Browse code Download zip

Style Manager generates and coordinates colors, typography, and spacing for compatible WordPress themes and blocks. Below is its source code for every one of its 30 releases, what changed in the latest one, and how often it ships.

What changed in 2.7.0

Released Nov 26, 2026, 2 months after 2.6.0
  • New: use fonts installed through the WordPress Font Library (Appearance > Fonts) in Style Manager’s font fields. They are listed first, in a “Font Library” group, in both the Customizer and the Site Editor, and they load from your own site.
  • New: a Phone Heading Scale next to Font Sizing lets you decide how much headings shrink on phones, without changing any desktop size.
  • New: a quiet-text color role for secondary text such as meta, dates, terms and captions. On every palette variation it keeps at least 4.5:1 contrast against its background, and it works with palettes saved before this version without regenerating them.
  • New: a Small Rail setting in Layout sets the small rail width on its own, so a site that relied on Content Inset for its rail keeps it without moving the Medium and Large rails.
  • Improved: applying a font palette no longer replaces a type hierarchy preset you chose yourself. A palette applies its own hierarchy only while you haven’t picked one.
  • Improved: the Typography preview now shows per-element overrides such as weight and uppercase, so it matches the site.

37 files changed since 2.6.0: 33 modified, 4 added, 0 removed.

And 27 more.

Compare 2.6.0 with 2.7.0

Release history

30 releases since July 2018
  1. 2.7.0 Nov 26, 2026 New: use fonts installed through the WordPress Font Library (Appearance > Fonts) in Style Manager’s font fields. They are listed first, in a “Font Library” group, in both the Customizer and the Site Editor, and they load from your own site.
  2. 2.6.0 Sep 2, 2026 New: manage the whole design system from the command line with wp pixelgrade sm — read settings, write settings, inspect the structure, and export or import a site’s colors, typography and spacing as one document.
  3. 2.5.2 Aug 18, 2026 Fix: Prevent a fatal error when a Customizer text or textarea control receives a list of live-preview selectors instead of a boolean.
  4. 2.5.1 Aug 13, 2026 Fix: Load Carbon Fields editor styles through WordPress 7.1’s iframe asset pipeline so controls remain styled inside the editor canvas.
  5. 2.5.0 Jul 25, 2026 New: a Layout section that brings container width, content inset, rails, and vertical rhythm together in one place.
Full Style Manager changelog with diffs

Source of 2.7.0

913 files
Browse all Style Manager 2.7.0 files Browse trunk