Skip to content

Typography Keywords

Typography utility keywords

Syntax

visual="[keyword]"

Values

ValueCSS OutputDescription
italicfont-style: italicItalic text
not-italicfont-style: normalNormal style
antialiased-webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscaleAntialiased text
subpixel-antialiased-webkit-font-smoothing: auto; -moz-osx-font-smoothing: autoSubpixel antialiasing
uppercasetext-transform: uppercaseUppercase text
lowercasetext-transform: lowercaseLowercase text
capitalizetext-transform: capitalizeCapitalize words
normal-casetext-transform: noneNormal case
underlinetext-decoration-line: underlineUnderline text
overlinetext-decoration-line: overlineOverline text
line-throughtext-decoration-line: line-throughStrikethrough
no-underlinetext-decoration-line: noneNo decoration
decoration-solidtext-decoration-style: solidSolid line
decoration-doubletext-decoration-style: doubleDouble line
decoration-dottedtext-decoration-style: dottedDotted line
decoration-dashedtext-decoration-style: dashedDashed line
decoration-wavytext-decoration-style: wavyWavy line
truncateoverflow: hidden; text-overflow: ellipsis; white-space: nowrapTruncate with ellipsis
text-ellipsistext-overflow: ellipsisEllipsis overflow
text-cliptext-overflow: clipClip overflow
text-wraptext-wrap: wrapWrap text
text-nowraptext-wrap: nowrapNo wrap
text-balancetext-wrap: balanceBalanced wrapping
text-prettytext-wrap: prettyPretty wrapping
whitespace-normalwhite-space: normalNormal whitespace
whitespace-nowrapwhite-space: nowrapNo wrap whitespace
whitespace-prewhite-space: prePreserve whitespace
whitespace-pre-linewhite-space: pre-linePre-line whitespace
whitespace-pre-wrapwhite-space: pre-wrapPre-wrap whitespace
whitespace-break-spaceswhite-space: break-spacesBreak spaces
break-normaloverflow-wrap: normal; word-break: normalNormal word break
break-wordsoverflow-wrap: break-wordBreak words
break-allword-break: break-allBreak all
break-keepword-break: keep-allKeep all
hyphens-nonehyphens: noneNo hyphens
hyphens-manualhyphens: manualManual hyphens
hyphens-autohyphens: autoAuto hyphens
align-baselinevertical-align: baselineBaseline align
align-topvertical-align: topTop align
align-middlevertical-align: middleMiddle align
align-bottomvertical-align: bottomBottom align
align-text-topvertical-align: text-topText top align
align-text-bottomvertical-align: text-bottomText bottom align
align-subvertical-align: subSubscript align
align-supervertical-align: superSuperscript align
list-nonelist-style-type: noneNo list style
list-disclist-style-type: discDisc bullets
list-decimallist-style-type: decimalDecimal numbers
list-squarelist-style-type: squareSquare bullets
list-insidelist-style-position: insideInside position
list-outsidelist-style-position: outsideOutside position

Examples

html
<span visual="italic">Italic text</span>
<span visual="uppercase">Uppercase</span>
<span visual="truncate">Truncated text...</span>

Preview

Typography Keywords

visual="italic" - Quick typography utilities without value syntax

italicupperunderlinestrike
View Code
html
<div layout="flex" space="g:medium p:medium" visual="bg:neutral-100 dark:bg:neutral-900 rounded:medium">
  <span visual="italic">italic</span>
  <span visual="uppercase">upper</span>
  <span visual="underline">underline</span>
  <span visual="line-through">strike</span>
</div>