Problem: Docs file trees.

Solution#

html
<pre class="rounded-xl bg-slate-950 p-4 text-sm text-slate-300"><code>src/
├─ components/
│  └─ Button.tsx
└─ styles.css</code></pre>

Why this works#

Mono pre with tree glyphs.

Variants#

  • Responsive: add screen prefixes to the core classes
  • Dark: pair each color utility with its dark: twin
  • Animated: add transition + a state variant for motion

cookbook/index|Cookbook index · utilities/index|Utilities reference · patterns/index|Layout patterns