Marketers Delight compiles a set of utility classes into its stylesheet. They are available in any block, template, or custom HTML on your site. All spacing values use the MD spacer scale, so they stay proportional to your typography settings.
Text
Class
Effect
.underline
text-decoration: underline
.no-underline
text-decoration: none (also on child a elements)
.normal
Sets the body font weight
.bold
Sets --md-bold font weight
.italic
font-style: italic
.foot
Italic, muted color, and small size
.body-font
Applies the body font family
.h-font
Applies the headline (h1) font family
.text-left
Left-align text
.text-right
Right-align text
.text-center
Center text
.lh1
line-height: 1
.caps
text-transform: uppercase
.smooth-scroll
Applied to html to enable smooth scrolling (respects prefers-reduced-motion)
.font-size
Resets to body font size and line height
.small
0.9em size, 1.5em line height
.tiny
--md-font-size-tiny with matching line height
.intro
h6 font size and line height
.has-muted-color
Muted text color; muted link color on child links
.middot
Adds a centered dot before the element (not on the first child)
.highlight
Highlight background color with inline padding
.note
Rounded box with subtle shadow
.alert
Yellow rounded box with subtle shadow
.badge
Warning-color pill badge
.avatar
Circular image with a light shadow
Borders and radius
Class
Effect
.radius
border-radius: --md-border-radius
.circle
border-radius: 50%
.border
1px solid border on all sides
.border-tb
1px solid border on top and bottom
.border-bottom
1px solid border on the bottom only
Shadows
Class
Effect
.shadow
Default box shadow
.shadow-small
Small box shadow
.shadow-medium
Medium box shadow
.shadow-large
Large box shadow
.shadow-huge
Huge box shadow
.shadow-none
Removes box shadow
.shadow-grow
Transitions to medium shadow on hover
Icon shapes
Use .circle-icon or .square-icon to size and center an icon. The default size is --md-single.
Modifier
Size
(none)
--md-single
.mid
--md-mid + --md-small
.double
--md-double
.triple
--md-triple
Layout (flex)
Class
Effect
.fl
Flex row, vertically centered, --md-half gap
.stack
Flex column, --md-single gap between children
.auto
margin-inline: auto (center in block context)
.grow
flex: 1
.full-basis
flex-basis: 100%
.shrink
flex-shrink: 0
.relative
position: relative
.absolute
position: absolute
.reverse
flex-direction: row-reverse
.column
flex-direction: column
.wrap
flex-wrap: wrap
.justify-start
justify-content: flex-start
.justify-center
justify-content: center
.justify-end
justify-content: flex-end
.justify-between
justify-content: space-between
.items-start
align-items: flex-start
.items-center
align-items: center
.items-end
align-items: flex-end
.items-stretch
align-items: stretch
.self-center
align-self: center
These mobile-only variants apply at 900px and below: .column-mobile, .reverse-mobile, .wrap-mobile, .justify-center-mobile, .items-center-mobile, .items-stretch-mobile, .width-full-mobile, .text-center-mobile.
Widths
Class
Effect
.content-width
max-width: --md-width-content
.post-width
max-width: --md-width-post
.wide-width
max-width: --md-width-alignwide
.sidebar-width
max-width: --md-width-sidebar
.width-full
width: 100%
Columns (grid)
Class
Columns at desktop
.columns
1 column (base)
.columns-2
2 columns
.columns-3
3 columns (2 at 600–800px)
.columns-4
4 columns (2 at 600–800px)
.columns-5
5 columns (2 at 600–800px)
.columns-6
6 columns (2 at 600–800px)
.columns-fluid-2 through .columns-fluid-6
Auto-fit grid: minimum column width is calculated so the specified number fills the row
.col-full
Spans all columns (grid-column: 1 / -1)
Columns and stacks accept .gap-{size} to override the gap. Available sizes: small, third, half, single, mid, double, triple, quad, none.
Spacing
Margin and padding classes use the spacer scale. Sizes: small, third, half, single, mid, double, triple, quad.
Pattern
Effect
.mt-{size}
margin-block-start (skipped on the first child)
.mb-{size}
margin-block-end
.mb-none
Removes bottom margin
.mr-{size}
margin-inline-end (available for half, third, small)
.ml-{size}
margin-inline-start (available for half, third, small)
.block-{size}
Padding on all sides
.block-{size}-tb
Padding top and bottom
.block-{size}-lr
Padding left and right (fluid for single and larger)
.block-{size}-top
Padding top only
.block-{size}-bot
Padding bottom only
.block-{size}-x
Fluid padding on all sides (available for single, mid, double, triple, quad)
.pb-none
Removes bottom padding
.break-{size}
Negative bottom margin to pull the next element up by {size}
Mobile scroll container
.scroll-mobile — at 800px and below, converts a grid into a horizontal scroll container. Each child snaps to the start edge. Configure column width with --md-scroll-column and gap with --md-scroll-gap.
Editor colors
For each palette color (and any colors you add), three classes are generated:
Pattern
Effect
.has-{key}-color
Text color
.has-{key}-background-color
Background color
.has-{key}-border-color
Border color
The key is the palette color's key (for example primary, surface, or a key you set when adding a color).
Animations
Class
Effect
.animate-fade
Fades in
.animate-slide-up
Slides up and fades in
.animate-slide-down
Slides down and fades in
.animate-zoom
Scales up and fades in
All animations respect prefers-reduced-motion. Duration is --md-transition-slow (0.5s).