Accessing Global Styles

Open Global Styles with the Styles icon in the Site Editor.

  1. Navigate to Appearance → Editor to open the Site Editor.
  2. Click the Styles icon (half-filled circle) in the top-right toolbar.
  3. The Styles panel opens on the right side.

Styles Panel Overview

The Global Styles panel contains the following sections:

SectionWhat It Controls
Browse stylesStyle variation selector
TypographyFont families, sizes, weights, line heights
ColorsPalette, backgrounds, text, links, buttons
LayoutContent width, padding, block gap
BlocksPer-block type style overrides

Typography Settings

Set site-wide typography for each element.

Global Typography

Configure site-wide text settings:

  1. Click Typography in the Styles panel.
  2. Choose an element to configure:
    • Text — Body text defaults.
    • Links — Link appearance and hover states.
    • Headings — All heading levels (H1–H6).
    • Captions — Image and block captions.
    • Buttons — Button text styling.

Available Typography Options

OptionDescription
Font familyChoose from Lexend (lexend, body), Lexend Deca (lexend-deca, headings), or JetBrains (jetbrains, code).
SizeSelect from the 27 fluid sizes (8px to 96px with clamp()), or Inherit.
AppearanceFont weight (thin through black) and style (normal or italic).
Line heightRelative line height value.
Letter spacingAdditional space between characters.
Text decorationUnderline, strikethrough, or none.
Text transformUppercase, lowercase, capitalize, or none.

See Typography for the full type scale and font details.

Color Settings

Palette

Aegis provides a comprehensive color palette based on the Tailwind CSS v3 scale:

The Aegis color palette in Global Styles.

See Color Palette for the complete color reference.

Color Elements

Configure colors for specific elements:

ElementWhat It Affects
BackgroundPage and section backgrounds
TextDefault body text color
LinksAnchor text color and hover state
HeadingsHeading text color (H1–H6)
CaptionsCaption text color
ButtonsButton background and text color

Custom Colors

To add a custom color:

  1. In the Colors section, click Palette.
  2. Switch to the Custom tab.
  3. Click the + button to add a new color.
  4. Use the color picker or enter a hex/RGB value.
  5. Name the color for easy reference.

Layout Settings

Configure content dimensions and spacing:

SettingDefaultDescription
Content size720px (max)Maximum width for standard content.
Wide size1200px (max)Maximum width for wide-aligned blocks.
Paddinglg spacing step (24–48px), left and rightSpace between content and viewport edges.
Block spacingsm spacing step (20–24px)Vertical gap between blocks.

See Layout for detailed layout configuration.

Per-Block Styling

Global Styles allows you to set default styles for specific block types:

Style every instance of a block from Styles → Blocks.

  1. In the Styles panel, scroll to the Blocks section.
  2. Click Blocks or search for a specific block type.
  3. Configure typography, colors, dimensions, and spacing for that block.
  4. These settings become the default for all instances of that block type.

Example: Styling All Buttons

  1. Navigate to Styles → Blocks → Button.
  2. Set the background color, text color, border radius, and padding.
  3. Save — all Button blocks across your site will use these defaults.

Individual blocks can still override these defaults through their own block settings.

Exporting and Importing Styles

Exporting Your Styles

The Site Editor does not provide a direct export button, but your style customizations are stored in the database as a wp_global_styles custom post type. You can export them by:

  1. Copying the relevant portions of your customized theme.json structure.
  2. Using the WordPress REST API to retrieve the global styles object.

Resetting Styles

To clear all style customizations and return to the theme defaults:

  1. Open the Styles panel.
  2. Click the Options menu (three dots at the top).
  3. Select Reset to defaults.
  4. Confirm the action.

This removes all your custom overrides but does not change which style variation is active.

Styles and Theme.json

Global Styles in the editor correspond directly to the theme.json configuration:

When you make changes in the Styles panel, WordPress stores them as overrides on top of the theme.json file shipped with Aegis. The original file is never modified.

Tips for Working with Global Styles

Next Steps