Add spacing to an element with margin (m), padding (p) and offset (o) utilities.
Pattern: <prefix><location>-<size>@<breakpoint>
- Prefixes:
mmarginppaddingooffset
- Locations:
ttoprrightbbottomlleftxleft & rightytop & bottomaall
- Sizes:
1through20
- Add
hfor half values. Examples: 0h0.5 rem3h3.5 rem12h12.5 rem
- Breakpoints:
xssmmdlgxlxx
Example a: mx-2@md (margin left & right 2rem at the medium breakpoint)
Example b: mt-14h@lg (margin top 14.5rem at the large breakpoint)
Flexbox Vertical Positioning
Set vertical positioning on flexbox elements.
+equalsets element to height of heighest sibling+middlevertically align children to the middle+bottomvertically align children to the bottom
Responsive Floats
Set floats by breakpoint.
f--l@mdLeft: float left at medium breakpointf--r@mdRight: float right at medium breakpointf--n@mdNone: kill all floats at medium breakpoint
Responsive Flexbox Ordering
Responsively set display order of responsive elements.
- (default order is defined by markup)
order--1@mdoverrides element's display order to appear first at the medium breakpointorder--2@mdoverrides element's display order to appear second at the medium breakpoint- etc
Sticky
Set an element to be sticky
pos--sticky
See Grid page for visual examples.
Font Sizes
Override a text element's size with the font-size (fs) utility:
fs-xsextra smallfs-smsmallfs-rootroot sizefs-d1–fs-d7one through seven scale degrees above root
Font Families
Override a font family style with font-family (ff) utility:
ff-sanssans (default): Sans serifff-slabslab: Slabff-serifserif: Serifff-monomono: Monospace
Font Styles and Weights
Override a text's font style (fs) and/or weight (fw):
fs-leadapplies the “lead“ classfw-100–fw-900sets font weight to 100 through 900
List Styles
Specify a list style with these...
ls--nonemakes an unstyled listls--inlinemakes an inline listls--defaultresets a nested list to bullets when parent list styled is overridden
Text Alignment
Override a text element's alignment
ta-lalign leftta-ralign rightta-calign center
Optionally add a breakpoint:
- Example:
ta-l@mdalign left at medium screen sizes - Example:
ta-r@lgalign right at large screen sizes
See Typography page for more examples.
Background Image Positions
bg-ltleft top |
bg-tcenter top |
bg-rtright top |
bg-lleft center |
default: center center |
bg-rright center |
bg-lbleft bottom |
bg-bcenter bottom |
bg-rbright bottom |
Background Color
Assign a color to a text element (or child text of an element).
Pattern: bg-<color>
bg-blue-dark: Dark Bluebg-yellow: YellowOther Background Utilities
bg-fixed: fixed image backgroundbg-none: remove background completely
Text Color
Assign a color to a text element (or child text of an element).
Pattern: tc-<color>
- Example a:
tc-tealTeal Text - Example b:
tc-redRed Text
See Color Palette page for more examples.
Borders & Corners
coming soon...
Shadows
coming soon...