Problem: Editorial images.

Solution#

html
<figure class="rounded-xl overflow-hidden border">
  <img class="w-full" src="chart.png" alt="Build time comparison" />
  <figcaption class="border-t bg-slate-50 px-4 py-2 text-xs text-slate-500">Fig 1. Nakshora builds 3× faster.</figcaption>
</figure>

Why this works#

figure semantics + caption bar.

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