Docs

CSS tokens

1 min readUpdated November 29, 2026

The templates set CSS variables that follow the brand color, framework presets, the advanced colors and dark mode. Use them, and your markup matches in every theme.

Variables#

VariableMeaning
--wcx-accentBrand color
--wcx-accent-softBrand tint
--wcx-on-accentText on brand buttons
--wcx-linkLinks
--wcx-inkHeadings and totals
--wcx-textBody text
--wcx-mutedSmall text
--wcx-surfaceCard background
--wcx-tintSoft background
--wcx-line, --wcx-line-softBorders
--wcx-ok, --wcx-ok-soft, --wcx-ok-inkSuccess
--wcx-danger, --wcx-danger-soft, --wcx-danger-inkErrors
--wcx-radius, --wcx-radius-s, --wcx-radius-lCorners
--wcx-space-s, --wcx-space-lSpacing

Root classes#

ClassPage
.wcckCart
.wccoCheckout
.wctyThank you
.nbwt-mcMini cart

Right-to-left pages carry dir="rtl". Use logical properties such as margin-inline-start.

Add your CSS#

Append rules with the nbwt_design_css filter, so they load only where the templates load:

add_filter( 'nbwt_design_css', function ( $css ) {
	return $css . '.acme-badge{background:var(--wcx-accent-soft);color:var(--wcx-accent);border-radius:var(--wcx-radius-s)}';
} );

Site owners can add CSS without code under Theme with AI and custom CSS.