01
Dark colors that belong to you
Every dark value comes from the same scales as your light theme, so your brand still looks like your brand at night.
Onefold builds your dark theme from the same color scales as your light one, checks the contrast and exports CSS variables and a Tailwind dark mode theme that switch the way your product does.
Create your DESIGN.mdDark values from your own scales
Ready for your Tailwind theme
@custom-variant dark (&:where(.dark, .dark *));
@theme { … }
@layer base {
.dark {
color-scheme: dark;
--color-background: …;
--color-action: …;
dark: overrides by hand.Ask an agent to add dark mode and it inverts your grays, picks a new accent by eye and sprinkles dark: classes across every component. Each screen looks a little different in dark, and some text becomes hard to read.
Dark mode holds together when it is a set of tokens, not a set of guesses. Onefold names a dark value for every role, from your own colors, and writes down how the theme turns on. If your product is light only, the file says so, and agents stop adding a dark theme nobody asked for.
01
Every dark value comes from the same scales as your light theme, so your brand still looks like your brand at night.
02
Text and button labels are checked against their dark backgrounds, and shadows get a faint ring so layers stay visible.
03
System setting, a .dark class or a data-theme attribute. CSS variables and the Tailwind dark variant follow your choice.
If your site already has a dark theme, Onefold reads it and how it switches. Otherwise it suggests one from your scales.
See light and dark side by side on a live preview. Change a background or accent, or decide your product stays light only.
Paste the CSS variables or Tailwind theme into your stylesheet. DESIGN.md tells agents to use roles, not hand-picked dark colors.