Rampancy

Rampancy Blog

Generate a Linked Dark Mode Palette from Your Light Theme

Updated July 19, 20264 min read
  • dark mode
  • groups
  • OKLCH
Generate a Linked Dark Mode Palette from Your Light Theme

Name a group Light, click one button, and Rampancy builds the matching Dark group from the values you already tuned. The two groups stay linked while you keep editing, so a curve change in one theme lands in the other at the same moment. This tutorial walks through the whole flow, from grouping ramps to unlinking when the themes need to part ways.

What You'll Need

  • A free Rampancy account. Building palettes works as a guest, but generating and linking counterpart groups is a signed-in feature.
  • A palette with a few ramps. I'm using five from the built-in Tailwind preset: Slate, Rose, Amber, Emerald, and Blue.
  • About five minutes.

Step 1: Group your light ramps

Create a group and name it Light. The name is the trigger: Rampancy checks for the names Light and Dark (case doesn't matter) to offer the counterpart button. Drag your ramps into the group, or add new ones straight from the group header.

The Light group in the sidebar holding the Slate, Rose, Amber, Emerald, and Blue ramps

Step 2: Generate the Dark counterpart

The group header now shows a moon button labeled Generate Linked Dark Group. Click it.

The Light group header with the Generate Linked Dark Group moon button

Rampancy creates a Dark group holding a mirrored copy of every ramp: identical values, step order reversed. The deepest shade of Blue becomes the dark theme's step 100 and the lightest one moves to the far end. Nothing gets recolored or approximated, so the new theme starts from exactly the colors you spent time on.

The generated Dark group with mirrored ramp previews

Step 3: Edit both themes at once

The two groups are now linked. Drag a point on a lightness curve in the Light group and the Dark partner updates during the same drag, mirrored to the matching step. It works in the other direction too: fine-tune a ramp in the Dark group and the Light side follows.

The link goes beyond curves. Step locks land on the mirrored position, a master ramp stays master on both sides, and adding, renaming, duplicating, or deleting a ramp replays in the partner group. Easing settings stay per group on purpose, since a dark theme often wants its values distributed differently than its light twin.

The lightness curve of the Blue ramp with its drag handles on the canvas

Step 4: Check contrast per group

APCA scores how readable text is on a given background, and Rampancy shows those scores under every step. The generated Dark group checks them against the flipped pair of your foreground and background, which is the surface a dark theme actually renders on. Select a ramp in the Dark group and the Accessibility panel shows the flipped pair. The Switch Colors button flips it back and forth for whichever group is selected, and only for that group.

The Accessibility panel showing the Dark group's flipped foreground and background above the Switch Colors button

Both group headers carry an Unlink Groups button. One click and the groups become independent. Every ramp, curve, and lock stays exactly where it is; the edits just stop mirroring. There's no relink button, so if you want the link back, delete the counterpart group and generate it again.

The Dark group header with the Unlink Groups button

FAQ

Do I need an account to generate a dark counterpart?

Yes. Generating the counterpart group and the live link between the two are signed-in features, and a free account is enough. Building and exporting the light palette itself works as a guest.

What exactly ends up in the generated Dark group?

A mirrored copy of every ramp in the source group: the same values with the step order reversed, plus a flipped foreground and background pair for contrast checks.

Nothing visible. Both groups keep their ramps, curves, locks, and masters; they simply stop mirroring each other. Regenerating the counterpart is the only way to create a new link.

A linked dark mode takes one click once your light ramps sit in a group. Create a free account and try it on your own palette.

Continue Reading

View All Posts