Skip to content

Text Elements

Elevate features three properties responsible for styling text elements: text, font, and format. Text is responsible for defining how text is presented and flows within a container, while font focuses on the characteristics of the typeface itself, and format is used to control the spacing between lines of text as well as other general formatting options.

text Property Modifiers

The following table describes the supported tokens and rules for the text property, along with the expected options and their output CSS.

ModifierExpected ValuesExample
colorColorToken (e.g., purple+1)text:purple+1
text-alignleft, center, right, justifytext:left
max-widthnote (20ch),
brief (45ch),
blog (65ch),
book (70ch),
essay (75ch),
full (80ch)
text:book
text-decorationnone, underline, overline, line-through, underline-overline, underline-line-through, overline-line-through, underline-overline-line-throughtext:underline
line-heightnone, hug, snug, normal, relaxed, loose, spacious, extra-spacioustext:spacious

font Property Modifiers

The following table describes the supported tokens and rules for the font property, along with the expected options and their output CSS.

ModifierExpected ValuesExample
font-sizetiny, small, base, h6, h5, h4, h3, h2, h1, eyebrowfont:small
font-familysans, serif, monofont:sans
font-weightthin (100),
extra-light (200),
light (300),
regular (400),
medium (500),
semibold (600),
bold (700),
extra-bold (800),
black (900)
font:bold
letter-spacingextra-tight, tight, normal, wide, wider, widestfont:widest

format Property Modifiers

The following table describes the supported tokens and rules for the format property, along with the expected options and their output CSS.

ModifierExpected ValuesExample
text-transformleft,center,right,justifyformat:uppercase
hyphensnone,manual,autoformat:auto
white-spaceno-wrap,normal,pre-line,pre-wrap,pre,break-spacesformat:pre
word-breaknormal,all,keep,wordformat:word
overflow-wrapnormal,break-word,anywhereformat:anywhere