Layout & Utilities
Page Wrappers
- page-wrap
- main-wrap
Containers
- container--lg
- container--md
- container--sm
Max Widths
- max-width--full
- max-width--xxl
- max-width--xl
- max-width--lg
- max-width--md
- max-width--sm
- max-width--xs
- max-width--xxs
Margin
Direction
- margin--top
- margin--left
- margin--right
- margin--bottom
- margin--horizontal
- margin--vertical
Size
- margin--none
- margin--xxs
- margin--xs
- margin--sm
- margin--md
- margin--lg
- margin--xl
- margin--xxl
Spacing Guide
There's a bit of math going on here, below is a guide on how spacing works for Abacus.
𝞅 = 1.618 (golden ratio)
𝒙 = largest font size in container (1rem/16px)
𝒉 = line height of 𝒙
--gap--xs ÷ 𝞅
--gap--xs ÷ √𝞅
--gap--sm ÷ 𝞅
--gap--sm ÷ √𝞅
--gap--md ÷ 𝞅
--gap--md ÷ √𝞅
--gap--md × √𝞅
--gap--md × 𝞅
--gap--lg × √𝞅
--gap--lg × 𝞅
--gap--xl × √𝞅
--gap--xl × 𝞅
--gap--xxl × √𝞅
Padding
Direction
- padding--top
- padding--left
- padding--right
- padding--bottom
- padding--horizontal
- padding--vertical
Size
- padding--none
- padding--xxs
- padding--xs
- padding--sm
- padding--md
- padding--lg
- padding--xl
- padding--xxl
Section Padding
- section-padding--sm
- section-padding--md
- section-padding--lg
Spacing Guide
There's a bit of math going on here, below is a guide on how spacing works for Abacus.
𝞅 = 1.618 (golden ratio)
𝒙 = largest font size in container (1rem/16px)
𝒉 = line height of 𝒙
--gap--xs ÷ 𝞅
--gap--xs ÷ √𝞅
--gap--sm ÷ 𝞅
--gap--sm ÷ √𝞅
--gap--md ÷ 𝞅
--gap--md ÷ √𝞅
--gap--md × √𝞅
--gap--md × 𝞅
--gap--lg × √𝞅
--gap--lg × 𝞅
--gap--xl × √𝞅
--gap--xl × 𝞅
--gap--xxl × √𝞅
Gaps
Direction
- gap--column
- gap--row
Size
- gap--none
- gap--global
- gap--xxs
- gap--xs
- gap--sm
- gap--md
- gap--lg
- gap--xl
- gap--xxl
Spacing Guide
There's a bit of math going on here, below is a guide on how spacing works for Abacus.
𝞅 = 1.618 (golden ratio)
𝒙 = largest font size in container (1rem/16px)
𝒉 = line height of 𝒙
--gap--xs ÷ 𝞅
--gap--xs ÷ √𝞅
--gap--sm ÷ 𝞅
--gap--sm ÷ √𝞅
--gap--md ÷ 𝞅
--gap--md ÷ √𝞅
--gap--md × √𝞅
--gap--md × 𝞅
--gap--lg × √𝞅
--gap--lg × 𝞅
--gap--xl × √𝞅
--gap--xl × 𝞅
--gap--xxl × √𝞅
Border Radius
Direction
- radius--inherit
- radius--top
- radius--top-left
- radius--top-right
- radius--left
- radius--right
- radius--bottom
- radius--bottom-left
- radius--bottom-right
Size
- radius--none
- radius--xxs
- radius--xs
- radius--sm
- radius--md
- radius--lg
- radius--xl
- radius--xxl
- radius--full
Flexbox
Horizontal Flex
- flex-h--left-top
- flex-h--left-center
- flex-h--left-bottom
- flex-h--left-stretch
- flex-h--center-top
- flex-h--center-center
- flex-h--center-bottom
- flex-h--center-stretch
- flex-h--right-top
- flex-h--right-center
- flex-h--right-bottom
- flex-h--right-stretch
- flex-h--between-top
- flex-h--between-center
- flex-h--between-bottom
- flex-h--between-stretch
Vertical Flex
- flex-v--left-top
- flex-v--left-center
- flex-v--left-bottom
- flex-v--left-between
- flex-v--center-top
- flex-v--center-center
- flex-v--center-bottom
- flex-v--center-between
- flex-v--right-top
- flex-v--right-center
- flex-v--right-bottom
- flex-v--right-between
- flex-v--stretch-top
- flex-v--stretch-center
- flex-v--stretch-bottom
- flex-v--stretch-between
Other Flex Utilities
- flex-h--wrap
- flex-v--wrap
- flex--shrink
- flex--grow
- flex--no-shrink
Grid
- grid--global
- grid--1
- grid--2
- grid--3
- grid--4
- grid--5
- grid--6
- grid--custom
- grid--breakout
- grid--autofit
- grid--subgrid
Grid Columns
- column--1
- column--2
- column--3
- column--4
- column--5
- column--6
- column--7
- column--8
- column--9
- column--10
- column--11
- column--12
- column--custom
- column--full
- column--indent
Typography
Font Family
- font--displayInter 4.0Download
- font--bodyInter 4.0
Text Sizes
- font-size-displayDisplay
"Display work refers to words or type matter which is made to stand out from the rest of the text by specially striking arrangement or by the use of larger, bold, or italic faces."
- Josef Müller-Brockmann - font-size--title-1Title 1
- font-size--title-2Title 2
- font-size--title-3Title 3
- font-size--headlineHeadline
- font-size--bodyBody
- font-size--calloutCallout
- font-size--subheadSubhead
- font-size--footnoteFootnote
- font-size--caption
- All LinksLink
- All Ordered Lists
- Lorem ipsum dolor sit amet
- Lorem ipsum dolor sit amet
- Lorem ipsum dolor sit amet
- All Unordered Lists
- Lorem ipsum dolor sit amet
- Lorem ipsum dolor sit amet
- Lorem ipsum dolor sit amet
- All Quote Blocks
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat
Text Weight
- font-weight--100100 - Thin
- font-weight--200200 - Extra Light
- font-weight--300300 - Light
- font-weight--400400 - Normal
- font-weight--500500 - Medium
- font-weight--600600 - Semi Bold
- font-weight--700700 - Bold
- font-weight--800800 - Extra Bold
- font-weight--900900 - Black
Text Alignment
- text-align--left
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique.
- text-align--center
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique.
- text-align--right
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique.
- text-align--justify
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique.
Text Styling
- text-decoration--noneLorem ipsum dolor sit amet
- text-decoration--strikethroughLorem ipsum dolor sit amet
- text-decoration--underlineLorem ipsum dolor sit amet
- text-decoration--overlineLorem ipsum dolor sit amet
- text-style--italicsLorem ipsum dolor sit amet
- text-style--linkLorem ipsum dolor sit amet
- text-style--uppercaseLorem ipsum dolor sit amet
- text-style--lowercaseLorem ipsum dolor sit amet
- text-style--capitalizeLorem ipsum dolor sit amet
- text-wrap--balanceLorem ipsum dolor sit amet
- text-wrap--prettyLorem ipsum dolor sit amet
- text-wrap--noneLorem ipsum dolor sit amet
- line-clamp--1Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere.
- line-clamp--2Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere.
- line-clamp--3Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere.
- line-clamp--4Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere.
Rich Text
Heading 1
Link inside the rich text element
Heading 2
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat.
Heading 3
- Lorem ipsum dolor sit amet, consectetur adipiscing elit.
- Lorem ipsum dolor sit amet, consectetur adipiscing elit.
- Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Heading 4
- Lorem ipsum dolor sit amet, consectetur adipiscing elit.
- Lorem ipsum dolor sit amet, consectetur adipiscing elit.
- Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Heading 5
Blockquote: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat
Heading 6
Color
- background--base
- background--selected
- background--layer-1
- background--layer-2
- background--layer-3
Section Header
- shadow--none
- shadow--in-1
- shadow--in-2
- shadow--in-3
- shadow--in-4
- shadow--out-1
- shadow--out-2
- shadow--out-3
- shadow--out-4
Text Color
- text-color--blackThis is some text
- text-color--whiteThis is some text
- text-color--primaryThis is some text
- text-color--secondaryThis is some text
- text-color--brandThis is some text
- text-color--infoThis is some text
- text-color--successThis is some text
- text-color--warningThis is some text
- text-color--errorThis is some text
Gradients
- gradient--1
- gradient--2
- gradient--3
- gradient--4
- clip--textText Clip
- gradient--1Text Clip
- gradient--2Text Clip
- gradient--3Text Clip
- gradient--4Text Clip
Iconography
These are useful wether you are adding icons as images or as SVGs inside embeds. When adding as HTML embed, change the SVG's height and width properties to 100%, and the fill/stroke to currentColor (if you needed)
You can find the Icon library by visiting the Phosphor icons website.
Size
- icon--display
- icon--title-1
- icon--title-2
- icon--title-3
- icon--headline
- icon--body
- icon--callout
- icon--subhead
- icon--footnote
- icon--caption
Utilities
- data-icon-fill="true"
Components
- Icon
Images
Image Wrap
image-wrap is a generic base class that has overflow hidden, position relative, and width 100%. This is useful to avoid creating a new class for standard-sized images in columns. It is also aligned top to avoid stretching for the whole column (you can change that by placing it in a flex parent).
Use a combo class to give it full height.
If you have images with unique sizes and positioning, create a new class for it.
- image-wrap
Aspect Ratio
All Images are set to cover by default and has combo classes to control it's aspect ratio or set it to contain. You can add more or modify them.
- aspect-ratio--auto
- aspect-ratio--2x1
- aspect-ratio--16x9
- aspect-ratio--3x2
- aspect-ratio--4x3
- aspect-ratio--5x4
- aspect-ratio--1x1
- aspect-ratio--5x6
- aspect-ratio--3x4
- aspect-ratio--2x3
Object Fit
- object-fit--none
- object-fit--fill
- object-fit--contain
- object-fit--cover
Other Utilities
Display
- hide
- hide--tablet
- hide--mobile
Order
- order--first
- order--first-desktop
- order--first-tablet
- order--last
- order--last-desktop
- order--last-tablet
Overflow
- overflow--visible
- overflow--hidden
- overflow--clip
- overflow--scroll
- overflow--auto
Opacity
- opacity--muted
- opacity--disabled
Z-Index
- z-index--auto
- z-index--1
- z-index--2
- z-index--level-1
- z-index--level-2
- z-index--level-3
Miscellaneous
- border--none
- pointer-events--auto
- pointer-events--off
- clean-spacing
- align--left
- align--center
- align--right