Skip to content

dark mode website to Figma

Dark Mode Website to Figma: Light and Dark Variable Modes

Bring a dark mode website to Figma with both themes in one import: one variable collection with Light and Dark modes, plus a dark copy of each screen.

  • Captures the page in light and dark (prefers-color-scheme) in one import
  • One variable collection with Light and Dark modes
  • A "· Dark" copy of each screen, switched to the Dark mode
  • Switch any frame between themes from Figma's right panel

EUREKA! · · 5 min read

Dark Mode Website to Figma: Light and Dark Variable Modes

Bringing a dark mode website to Figma usually means choosing: you import the light theme or the dark one and get one design. But the site itself ships dark mode as a second set of values for the same colors, and that link is what a design system needs, so surface is white in one theme, near-black in the other, and both are the same variable.

With Color scheme set to Light + Dark, HTML to Frames captures the page in both themes and builds one variable collection with Light and Dark modes. Every screen comes in twice, light and dark, and both copies use the same variables. Change a token once and both themes follow.

What Light + Dark does

In a single import you get:

  • One color variable collection, Colors · <domain>, with two modes: Light and Dark. Each variable holds the light value in one mode and the dark value in the other.
  • The light screens, built as usual and linked to those variables.
  • A dark copy of each screen, named like example.com — Desktop · Dark (1440), placed right next to its light twin and set to the Dark mode.

The dark frames are copies of the light ones with a different mode, so their colors are never separate values. Edit a variable's Dark value and every dark frame updates; edit its Light value and every light frame does. Layout edits are not mirrored between the copies, but you can switch any single frame between themes whenever you like.

One set of variables, two modes

How it works

  1. Light read. The page is rendered and read in its light theme, as a normal visitor sees it.
  2. Dark read. The capture service then switches the browser to prefers-color-scheme: dark and reads the same elements again, without reloading the page. For each element it records the background, text, border and SVG fill and stroke colors in both themes.
  3. Pair the colors. Every light color is paired with the dark color it most often turns into across the page. Using the majority keeps one odd element from deciding a token's dark value.
  4. Make variables. Every color that changes between themes gets a variable, even if it's used only once, so the Dark mode switches the whole design rather than most of it. Colors that stay the same are handled as usual.
  5. Add the modes. The collection's default mode is renamed Light and a Dark mode is added with the paired values.
  6. Build and copy. Each screen is built once in light. A copy is placed next to it and switched to the Dark mode for that collection.

The results screen confirms it: "Light + Dark: … color variables have a Dark mode — the '· Dark' frames use it. Switch any frame in the right panel (Layer → mode)."

With Responsive set, this happens for every screen: Desktop, Tablet and Mobile each get a dark twin.

Why it's different

Theme support in HTML-to-Figma tools isn't new. In the public docs we reviewed (October 2026), html.to.design offers a light or dark theme on its Free plan, and Codia lists light and dark imports. What those docs describe is importing the page in one theme at a time.

HTML to Frames brings both themes in as modes of the same variables. That's the structure a design-system team would build by hand in Figma: one collection, two modes, frames that switch. The difference shows up after the import:

Two separate theme importsLight + Dark in HTML to Frames
Color tokensTwo unrelated sets of valuesOne collection, Light and Dark modes
Change a brand colorEdit it in both designsEdit one variable (per mode)
Preview the other themeFind the other frameSwitch the frame's mode
Relationship between themesLostKept in the variables

How to use it

  1. Open HTML to Frames and add a source: Link, Multiple or Local file.
  2. Under Options, set Color scheme to Light + Dark. The other choices are Light (the default) and Dark, which import one theme.
  3. Choose your screens, for example Responsive set.
  4. Press Import.
  5. Select any imported frame and use the mode control in Figma's right panel to switch it between Light and Dark.
Options list with the Color scheme setting
Color scheme: Light, Dark or Light + Dark

Light + Dark is a Pro and Team feature. It builds the color variables even if Styles & variables is off. Pro is $7/month at launch and is bought inside Figma.

When it helps most

  • Design-system teams documenting an existing product's theming: the variables show exactly which colors change and to what.
  • Agencies redesigning a site that already has dark mode: start from tokens that switch, not two static mockups.
  • Theme audits. Put light and dark side by side and spot elements that don't follow the theme, such as a logo or a gradient that stays light.
  • Developers adding dark mode: import the current state and review the dark values in Figma before shipping.

Good to know

  • Figma Free files allow one mode per collection. In that case the light design is imported, the Dark mode is skipped, and the results screen says: "Dark mode was not added: your Figma plan allows only one mode per variable collection."
  • The page needs a real dark theme. If it doesn't respond to prefers-color-scheme, you'll see "This page has no dark color scheme — only one design was created."
  • Theme toggles that only run in JavaScript (a button that adds a class) and ignore prefers-color-scheme won't produce a dark design. For those, capture the toggled page with the Chrome extension as a separate import.
  • Images and gradients don't switch. A dark-only logo image or gradient keeps its light-theme look in the dark copy.
  • Snap doesn't apply to colors in a Light + Dark import, because only the site's own collection can switch modes. Text styles still snap.
  • Light + Dark is a Pro and Team feature.

Get the plugin, set Color scheme to Light + Dark, and import a site you use at night.

Frequently asked questions

Can I import a website's dark mode into Figma?
Yes. Set Color scheme to Dark to import the dark theme only, or to Light + Dark to import both. Light + Dark builds one variable collection with Light and Dark modes and places a dark copy of each screen next to the light one.
How does HTML to Frames find the dark colors?
It reads the page in light, switches the browser to prefers-color-scheme: dark and reads the same elements again. Each light color is paired with the dark color it most often becomes, and those pairs become the Light and Dark values of one variable.
Why was the Dark mode not added?
Figma Free files allow only one mode per variable collection, so the dark mode is skipped and the results screen explains why. It can also happen when the page has no dark theme, or when its theme switch only runs in JavaScript and ignores prefers-color-scheme.
How do I switch an imported frame between light and dark?
Select the frame and change the mode of the Colors collection in Figma's right panel. The dark copies are already set to the Dark mode, and any light frame can be switched the same way.
Which plan includes Light + Dark?
Light + Dark is included in Pro and Team. Pro is $7 per month at launch and is bought inside Figma. Your Figma file also needs to allow more than one mode per variable collection.

Stop redrawing the web.

Paste a link and get real, editable, responsive Figma layers in seconds. Free to start — 10 imports every month.

Stop redrawing the web.

Paste a link and get real, editable, responsive Figma layers in seconds. Free to start — 10 imports every month.

No credit card. Pro is bought inside Figma.

Coming soon to Figma Community