Documentation
Style

CSS Variables

From plugin v1.37.13

CSS Variables

MisePress styling is driven entirely by CSS custom properties. Override them in your theme, child theme, or Appearance → Customize → Additional CSS. Every value can also be set via MisePress → Settings → Frontend Appearance / Layout & Spacing (those settings ultimately write to the same variables).

Core color & surface tokens

VariablePurpose
--mp-color-bgCard and panel background
--mp-color-fgMain text
--mp-color-mutedSecondary text
--mp-color-accentButtons, highlights, prices
--mp-color-accent-softSoft accent surfaces
--mp-color-borderDividers and outlines
--mp-card-bgArchive card background
--mp-card-accentArchive card accent
--mp-filter-accentFilter highlight

Geometry tokens

VariablePurpose
--mp-radiusMain border-radius
--mp-radius-smSmall border-radius

Elevation tokens

VariablePurpose
--mp-shadow-xsSubtle hover lift
--mp-shadow-smCard resting elevation
--mp-shadowDefault card elevation
--mp-shadow-mdHover or selected state
--mp-shadow-lgModals, popovers

Focus / accessibility

VariablePurpose
--mp-focus-ringBrand-tinted focus outline applied to all interactive elements

prefers-reduced-motion users automatically receive a near-zero-duration override across MisePress UI animations.

Example overrides

:root {
  --mp-color-accent:      #b35d1f;
  --mp-color-accent-soft: rgba(179,93,31,.08);
  --mp-radius:            14px;
  --mp-shadow:            0 8px 24px -12px rgba(0,0,0,.18);
}

With Automatic.css

:root {
  --mp-color-accent:      var(--action);
  --mp-color-accent-soft: var(--action-light-trans-90);
  --mp-color-bg:          var(--base-ultra-light);
  --mp-color-fg:          var(--base-ultra-dark);
  --mp-color-muted:       var(--base);
  --mp-color-border:      var(--base-light);
  --mp-radius:            var(--radius-m);
}

See ACSS for full integration notes.

Product context

Need the high-level overview? Start with MisePress Recipes, the WordPress recipe plugin.