Typography Utilities
Control the appearance and formatting of text.
Font Family
Set the font family of text.
Available classes:
sb-font-sans: System UI sans-serifsb-font-serif: Serif fontssb-font-mono: Monospace fonts
Font Size
Control text size.
Available classes:
sb-text-xs: 0.75remsb-text-sm: 0.875remsb-text-base: 1remsb-text-lg: 1.125remsb-text-xl: 1.25remsb-text-2xl: 1.5remsb-text-3xl: 1.875remsb-text-4xl: 2.25rem
Font Style
Control the style of text.
Available classes:
sb-italic: Italic textsb-bold: Bold text
Line Height
Control leading (line height).
Available classes:
sb-leading-none: 1sb-leading-tight: 1.25sb-leading-snug: 1.375sb-leading-normal: 1.5sb-leading-relaxed: 1.625sb-leading-loose: 2
Letter Spacing
Control tracking (letter spacing).
Available classes:
sb-tracking-tighter: -0.05emsb-tracking-tight: -0.025emsb-tracking-normal: 0sb-tracking-wide: 0.025emsb-tracking-wider: 0.05emsb-tracking-widest: 0.1em
Text Alignment
Control text alignment.
Available classes:
sb-text-left: Left alignsb-text-center: Center alignsb-text-right: Right alignsb-text-justify: Justify text
Text Decoration
Control text decoration.
Available classes:
sb-underline: Underlined textsb-line-through: Strikethroughsb-no-underline: Remove decorationssb-decoration-dotted: Dotted underlinesb-decoration-dashed: Dashed underlinesb-decoration-wavy: Wavy underline
Text Transform
Control text casing and capitalization.
Available classes:
sb-uppercase: ALL CAPSsb-lowercase: all lowercasesb-capitalize: First Letter Capsb-normal-case: Normal text
Word Break
Control word wrapping and breaks.
Available classes:
sb-break-normal: Break at normal pointssb-break-words: Break within wordssb-break-all: Break at any charactersb-whitespace-normal: Normal whitespacesb-whitespace-nowrap: Prevent wrappingsb-whitespace-pre: Preserve whitespace
Common Pattern: Article Heading
<h1 class="sb-font-sans sb-text-3xl sb-tracking-tight sb-leading-tight sb-text-center sb-capitalize">
Your Article Title Here
</h1>
Your Article Title Here