Global Styles
Jalpi Page Builder includes a centralized Design System and Global Styles engine. Manage atomic design tokens for site colors, typography families, font scales, line heights, letter spacing, corner radius, box shadows, and container layouts from a unified panel.
Global Styles Overview#
While Global Classes provide reusable bundles of CSS styles for specific components, Global Styles establish the foundation of your website's visual identity. Color swatches appear inside every color picker across the builder, and typography presets drive text headings throughout your pages.
Token Architecture & Categories#
The Design System organizes tokens into eight atomic categories:
Colors (Palette Swatches)
Manage Primary, Secondary, Accent, Dark, Light, and custom brand colors. Injected as CSS variables such as --jalpi-color-primary.
Typography Presets
Configure font families, standard sizes, modular line heights, and letter spacing for H1βH6 and body text.
Corner Radius & Shadows
Standardize small, medium, and large border radii and elevation shadows across cards, buttons, and popups.
Layout & Container Widths
Define default container max-widths, column gaps, and section vertical padding scales.
The Global Styles Panel#
In the editor's right-hand inspector, click the Global tab to open the GlobalStylesPanel. Sub-tabs provide direct control over Colors, Typography, Effects, Layout, and Button styles. Responsive overrides can be edited per breakpoint.
CSS Custom Properties Injection#
Jalpi outputs global tokens as standard CSS custom properties on the :root selector, making them accessible in custom CSS, child themes, or widget controls:
:root {
--jalpi-color-primary: #6366f1;
--jalpi-color-secondary: #0f172a;
--jalpi-font-family-base: 'Inter', sans-serif;
--jalpi-radius-md: 8px;
--jalpi-container-width: 1200px;
}Design System Import & Export#
Design systems can be exported as portable JSON files via GET /wp-json/jalpi-page-builder/v1/design-system and imported into new client websites with a single click, instantly replicating brand presets.
Last updated: November 2026