Skip to content
Corex

The Design Language System

Corex has a WordPress-native Design Language System — its UI organized into six categories (Foundations, Components, Blocks, Patterns, Templates, Guidelines), all token-driven and accessible. It lives in corex-ui (one home, no separate plugin).

The full DLS — foundations (all token groups incl. motion/focus/z-index), every component with when-to-use / when-not-to-use, patterns, templates, the client-readiness matrix, and the evidence-based gap analysis — is in the dedicated Design System section. This page is the short orientation.

CategoryWhat it isExamples
Componentssmall UI atomsalert, badge, breadcrumbs, copyright
Blockscomposed corex/* sectionshero, call-to-action, stat, testimonial, pricing, accordion, tabs, team, gallery, posts
Patternscomposed sectionshero section, content section, pricing table
TemplatesFSE templatesfront page, page, single, archive, 404
Guidelinesthe rulesdesign tokens, accessibility, RTL

The DesignSystemCatalog (in corex-ui) enumerates these, and a drift test guarantees every listed Block maps to a real registered corex/* block — the catalog can never list something that doesn’t exist.

The client-readiness matrix maps minimum company-site needs to existing Corex or WordPress-native mechanisms. It is the scope guard for the first client sites: native-first, token-only, RTL-ready, accessible, and not a final Corex visual redesign.

The component layer covers feedback/status atoms, including:

  • corex/alert — an accessible role="alert" message with an info / success / warning / error variant.
  • corex/badge — a small labelled, token-styled span.

Every component is server-rendered (dynamic), token-only (no hardcoded color/size), escaped, i18n-ready, and RTL-correct via logical properties — the same rules as the rest of the library.

  • Tokens are the single source of truth — theme.json (+ per-site brand.json), exposed as CSS custom properties. No component hardcodes a color, size, or font.
  • Accessibility — WCAG 2.2 AA: roles, labels, focus, and status announced to assistive tech.
  • RTL — logical CSS properties (margin-inline, inset-inline, …) so Arabic is correct by default.