Color Palette


The plugin uses a 9-slot semantic color palette to maintain consistent colors across all frontend blocks. Each slot maps to a CSS custom property (--global-palette1 through --global-palette9) available on both the frontend and admin.

Admin Menu: Settings & Tools > Settings (scroll to the Color Palette section)

🎨 The 9 Slots

SlotGroupDefault PurposeExample Usage
1AccentPrimary accentButtons, active states, links
2AccentSecondary accentHover states, secondary highlights
3TextHeading textH1-H6 headings, strong labels
4TextBody textParagraph text, table content
5TextCaption textSubtitles, secondary labels
6TextLight textMuted hints, timestamps, metadata
7Base / BGMain backgroundPage background
8Base / BGCard backgroundCard surfaces, content areas
9Base / BGAlt backgroundZebra striping, tinted surfaces

You can assign any color to any slot. The slot labels describe the intended purpose, but there are no technical restrictions.

Editing the Palette

  1. Go to Settings & Tools > Settings
  2. Scroll to the Color Palette section
  3. Click any color swatch to open the color picker
  4. Enter a hex value or use the visual picker
  5. Click Save Settings at the bottom of the page

Reset to Defaults restores all 9 slots to the plugin’s default colors.

Color Palette section in Plugin Settings showing 9 slots grouped as Accents, Text, and Base with hex values and color swatches. Kadence Theme badge shown when Kadence is active.

Kadence Theme Integration

When the Kadence theme is your active WordPress theme, the plugin automatically reads Kadence’s global palette. In this mode:

  • The palette editor is disabled (read-only) and shows a “Kadence Theme” badge
  • CSS variable output is skipped because Kadence already outputs --global-palette1 through --global-palette9
  • Any changes to Kadence’s palette are reflected in the plugin immediately

This means zero configuration is needed if you use Kadence. Your theme colors and plugin colors are always in sync. If you switch away from Kadence, the plugin’s own palette editor becomes active again.

Tip

Kadence is not required. The plugin works with any theme. When using a non-Kadence theme, the plugin outputs its own --global-palette CSS variables.

🖌️ Using Palette in Layout Builder

When editing blocks in the Layout Builder, each color field (background, text, border) offers a toggle between Palette and Custom modes.

Palette Mode

Shows 9 clickable swatches matching your palette slots. Selecting a swatch stores a palette reference (e.g., palette1) rather than a hardcoded hex value. The rendered CSS uses var(--global-palette1).

Advantage: If you later change the palette, all blocks using palette references update automatically.

Custom Mode

Shows a standard color picker with hex input. The selected color is stored as a literal hex value (e.g., #2563eb) and does not change when the palette is updated.

Best Practice

Use Palette mode when you want consistency across blocks. Use Custom mode for one-off colors that should not follow the palette (e.g., a specific brand color for a sponsored section).

🔧 Using Palette in Custom CSS

The 9 palette colors are available as CSS custom properties on :root. Reference them in any custom CSS:

/* Use accent color for custom borders */
.my-custom-section {
    border-left: 4px solid var(--global-palette1);
}

/* Use the alt background for a custom panel */
.my-stats-panel {
    background-color: var(--global-palette9);
    color: var(--global-palette4);
}

Available Variables

VariableMaps To
--global-palette1Slot 1 (Accent)
--global-palette2Slot 2 (Accent)
--global-palette3Slot 3 (Text)
--global-palette4Slot 4 (Text)
--global-palette5Slot 5 (Text)
--global-palette6Slot 6 (Text)
--global-palette7Slot 7 (Base)
--global-palette8Slot 8 (Base)
--global-palette9Slot 9 (Base)

These variables work in the WordPress Customizer “Additional CSS” field, in your child theme stylesheet, or in any CSS loaded on the frontend.

Other Design Tokens

In addition to the palette, the plugin outputs three more CSS custom properties:

VariableValuePurpose
--ahub-border-radius0-12px (configurable)Corner rounding for all blocks
--ahub-border-color#cdcfd1Structural border color
--ahub-bg-alt#f8f9faAlternate background tint

These tokens are always output regardless of theme. See CSS Customization for more styling options. The border radius is configurable in Plugin Settings under the Display section.

📚 Related