Docs

Cinder UI

Typography.typography

Server-rendered

Shadcn-inspired typography recipe for semantic headings and text treatments.

typography/1 is intentionally small: it applies token-based Tailwind classes to a single semantic element and does not style arbitrary prose descendants. Use as when the visual treatment should render as a different HTML tag.

Article heading stack

Delivering across the galaxy

Meet the Planet Express crew and their circle of humans, robots, and aliens.

From New New York to Omicron Persei 8, every delivery starts with a clear manifest and a crew ready for the unexpected.

  <div class="max-w-2xl">
  <.typography variant={:h1}>Delivering across the galaxy</.typography>
  <.typography variant={:lead} class="mt-4">
    Meet the Planet Express crew and their circle of humans, robots, and aliens.
  </.typography>
  <.typography>
    From New New York to Omicron Persei 8, every delivery starts with a clear manifest
    and a crew ready for the unexpected.
  </.typography>
</div>

Inline UI copy

Delivery checklist

Keep each package below 30kg.

Manifest reviewed by Hermes Conrad.

  <div class="max-w-md space-y-3">
  <.typography variant={:h3}>Delivery checklist</.typography>
  <.typography variant={:muted}>
    Keep each package below <.typography variant={:inline_code}>30kg</.typography>.
  </.typography>
  <.typography variant={:small} as="p">Manifest reviewed by Hermes Conrad.</.typography>
</div>

List recipe

  • Check Leela's flight plan.
  • Load the delivery-manifest.
  • Ask Bender to secure the cargo.
  <.typography variant={:list}>
  <li>Check Leela's flight plan.</li>
  <li>Load the <.typography variant={:inline_code}>delivery-manifest</.typography>.</li>
  <li>Ask Bender to secure the cargo.</li>
</.typography>

Attributes

Name Type Default Values Global Includes
as :string — nil , "h1" , "h2" , "h3" , "h4" , "p" , "div" , "small" , "blockquote" , "code" , "ul" , "h5" , "h6" , "ol" , "span" —
class :string — — —
rest :global — — —
variant :atom :p :h1 , :h2 , :h3 , :h4 , :p , :lead , :large , :small , :muted , :blockquote , :inline_code , :list —

Slots

Slot Slot Attributes
inner_block Required —