Skip to content

Want to skip the docs? Check out pandamastery.com - the best way to learn Panda CSS

Utility Reference

Typography

Panda's typography utilities.

Panda provides utilities and style properties for styling text.

Font Properties

<div className={css({ fontFamily: 'mono' })} />
PropCSS PropertyToken Category
fontFamilyfont-familyfonts
fontSizefont-sizefontSizes
fontWeightfont-weightfontWeights
letterSpacingletter-spacingletterSpacings
lineHeightline-heightlineHeights
textDecorationColortext-decoration-colorcolors
textEmphasisColortext-emphasis-colorcolors
textIndenttext-indentspacing
textShadowtext-shadowshadows
textWraptext-wrap

Line Clamp (Truncation)

How to truncate multi-line text

<div className={css({ lineClamp: 2 })}>Some long piece of text</div>
 
<div className={css({ lineClamp: 2 })}>Truncated text</div>
PropCSS PropertyToken Category
lineClampwebkit-line-clampnone
truncatetext-overflownone

Text Styles

Utilities for applying a composition of typography properties.

<h1
  className={css({
    textStyle: 'heading/marketing'
  })}
>
  Hello World
</h1>
PropConfig
textStyletextStyles

Full reference

Generated from @pandacss/preset-base, so this table always matches the utilities Panda ships.

Typography · 34
PropertyShorthandClassValues
fontFamilyfffonts
fontFeatureSettingsff-s
fontKerningfk
fontPalettefp
fontSizefsfontSizes
fontSizeAdjustfs-a
fontSmoothingfsmtantialiased | subpixel-antialiased
fontVariantfv
fontVariantAlternatesfv-alt
fontVariantCapsfv-caps
fontVariantNumericfv-num
fontVariationSettingsfv-s
fontWeightfwfontWeights
letterSpacinglsletterSpacings
lineClamplc
lineHeightlhlineHeights
textAlignta
textDecorationtd
textDecorationColortd-ccolors
textDecorationStyletd-s
textDecorationThicknesstd-t
textEmphasisColorte-ccolors
textIndenttispacing
textOverflowtov
textShadowtshshadows
textShadowColortextShadowColortsh-ccolors
textSizeAdjusttxt-adj
textTransformtt
textUnderlineOffsettu-o
textWraptw
truncatetrunctype
verticalAlignva
WebkitTextFillColorwktf-ccolors
wordBreakwb
Edit this page on GitHubView as markdown
Last updated on