Marketers Delight declares all of its design tokens as CSS custom properties on :root. Every --md-* variable is set during compilation and reflects the values you entered in the Edit Theme screen. You can read them in a child theme stylesheet or override them in a scoped selector.
Typography
Variable
What it holds
--md-font-size
Body font size, fluid between desktop and mobile values
--md-font-size-small
Body font size at mobile breakpoint (the Small token)
--md-font-size-tiny
Body font size minus 2px (the Tiny token)
--md-font-size-intro
Intro text size: body × 1.2, fluid
--md-line-height
Body line height, fluid
--md-line-height-small
Body line height at mobile breakpoint
--md-line-height-tiny
Body line height minus 1px
--md-bold
The bold font weight set on the Typography screen
Headings
Each level has a size variable and a line-height companion.
Variable
What it holds
--md-huge
Display / huge size, fluid
--md-huge-line-height
Display line height, fluid
--md-h1 through --md-h6
Heading sizes, each fluid
--md-h1-line-height through --md-h6-line-height
Heading line heights, each fluid
Spacing
All spacers derive from the body line height. Desktop values are fixed pixels; the -x variants are fluid, scaling toward --md-half at a 600px viewport.
Variable
Derived from
--md-small
Line height ÷ 6
--md-third
Line height ÷ 3
--md-half
Line height ÷ 2
--md-single
One line height
--md-mid
1.5× line height
--md-double
2× line height
--md-triple
3× line height
--md-quad
4× line height
--md-single-x
Fluid --md-single
--md-mid-x
Fluid --md-mid
--md-double-x
Fluid --md-double
--md-triple-x
Fluid --md-triple
--md-quad-x
Fluid --md-quad
Widths
Variable
What it holds
--md-width-site
Maximum site container width
--md-width-content
Main content column width
--md-width-alignwide
Wide-aligned block breakout width
--md-width-post
Post text column width
--md-width-sidebar
Sidebar width
--md-width-panel
Panel width
--md-width-site-wide
Full-bleed container width
Effects
Variable
What it holds
--md-border-radius
Rounded corner radius
--md-box-shadow
Default box shadow
--md-box-shadow-small
Small shadow
--md-box-shadow-medium
Medium shadow
--md-box-shadow-large
Large shadow
--md-box-shadow-huge
Huge shadow
--md-transition
Standard transition duration (0.3s)
--md-transition-slow
Slow transition duration (0.5s)
Palette colors
Set in Design → Color Palette.
Variable
Palette color
--md-color-background
Background
--md-color-surface
Surface
--md-color-primary
Primary
--md-color-secondary
Secondary
--md-color-tertiary
Tertiary
--md-color-divider
Divider
--md-color-highlight
Highlight
--md-color-text
Text Main
--md-color-text-secondary
Text Secondary
--md-color-warning
Warning status color
--md-color-danger
Danger status color
--md-color-white
White
Site-level resolved colors
Set individually in Design → Site Colors (or inherited from the palette).
Variable
What it holds
--md-site-background
Site background color
--md-site-text
Site text color
--md-site-text-muted
Muted text color
--md-site-text-contrast
Text that contrasts with the background
--md-site-links
Site link color
--md-site-links-muted
Muted link color
--md-site-headlines
Headline color
--md-site-headline-links
Linked headline color
Semantic context variables
These aliases point to the current context's resolved colors. Inside a box-style section they switch to box values; inside the header they switch to header values. Override them in a scoped selector to re-theme a component.