Tailwind Dark Mode Helper
Suggest dark color counterparts with paired native previews and unsupported utility warnings.
Enabling local controls…
Tailwind v4 workbench
Preview uses native CSS, not a Tailwind runtime. Every change updates the result locally. Text and settings stay in page memory.
Limits: 16,000 UTF-8 bytes per text area, 1,000 classes, 24 layout items, 8 cards/shadow layers, 20 × 12 table cells. No input HTML, scripts, URLs or commands execute.
Converters use common documented rules. Arbitrary values and modifier characters are preserved, but unknown tokens are marked unsupported. Real cascade, custom themes and plugins require a Tailwind build.
References checked: · Theme · Responsive design · v4 upgrade guide · Colors
Preview & output
Result updated locally. Review before using in your project.
Review notes
- Shade flipping is a heuristic; review contrast and brand colors. Preview palette is a curated sRGB subset. Use the .dark class on an ancestor with this custom variant.
Mappings / reference (3)
| Light | Dark suggestion |
|---|---|
bg-white | dark:bg-slate-950 |
text-slate-900 | dark:text-slate-100 |
border-slate-200 | dark:border-slate-800 |
Classes
Preview: first 32,000 characters. Copy, download and expanded text retain all content. Select complete text if copying fails.
bg-white text-slate-900 border-slate-200 p-6 rounded-lg dark:bg-slate-950 dark:text-slate-100 dark:border-slate-800
Expand complete selectable text
bg-white text-slate-900 border-slate-200 p-6 rounded-lg dark:bg-slate-950 dark:text-slate-100 dark:border-slate-800
HTML
Preview: first 32,000 characters. Copy, download and expanded text retain all content. Select complete text if copying fails.
<div><div>Light sample content</div><div>Dark sample content</div></div>
Expand complete selectable text
<div><div>Light sample content</div><div>Dark sample content</div></div>
CSS
Preview: first 32,000 characters. Copy, download and expanded text retain all content. Select complete text if copying fails.
@import "tailwindcss"; @custom-variant dark (&:where(.dark, .dark *));
Expand complete selectable text
@import "tailwindcss"; @custom-variant dark (&:where(.dark, .dark *));
How to use this tool
Edit the labelled controls to update a native CSS preview and copy or download Tailwind v4 output. Examples and reset stay in page memory.
When not to use it
No Tailwind runtime or full compiler. Converters support a documented common subset and list unknown utilities. Class conflicts and dark colors are suggestions requiring review in your built project. Input 16,000 UTF-8 bytes, 1,000 classes; no scripts or input HTML execute.