Problem: Migration visuals.

Solution#

html
<div class="grid gap-4 md:grid-cols-2">
  <div class="rounded-xl border border-red-200 bg-red-50 p-4"><p class="text-xs font-semibold text-red-600">BEFORE</p><pre class="mt-2 text-sm">old code</pre></div>
  <div class="rounded-xl border border-emerald-200 bg-emerald-50 p-4"><p class="text-xs font-semibold text-emerald-600">AFTER</p><pre class="mt-2 text-sm">new code</pre></div>
</div>

Why this works#

Semantic tinted panes.

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