Problem: Fake terminal.

Solution#

html
<div class="overflow-hidden rounded-xl border bg-slate-950">
  <div class="flex gap-1.5 border-b border-white/10 px-4 py-2.5"><span class="size-3 rounded-full bg-red-500"></span><span class="size-3 rounded-full bg-yellow-500"></span><span class="size-3 rounded-full bg-green-500"></span></div>
  <pre class="p-4 text-sm text-green-400">$ npm install -D @nakshora/core</pre>
</div>

Why this works#

Traffic lights + mono body.

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