Last updated: November 19, 2026
Key Takeaways
- Start with states first so each mode matches one product need.
- Split values into collections, then map modes to those product states.
- Name the function, not the pigment, for semantic color mapping.
- Density modes should change spacing values, not component meaning.
Figma Variables help you switch a product interface between light mode, dark mode, density, and brand themes without rebuilding the same screen four times. For How to Use Figma Variables for Multi-Mode Product Interfaces, the right setup is one variable collection with modes mapped to real UI states. The steps below show how to structure that system without turning your file into a token glossary.
Start with the interface states you actually need
Picture this: you’re about to build a settings page, a dashboard, or a checkout flow, and the same layout needs to work in light mode, dark mode, compact density, and maybe one brand theme. Start by listing the states first, because Figma Variables work best when each mode answers one concrete product state.
If you skip this part, you usually end up with duplicate layers and random overrides. That is the fast path to confusion. You want one screen structure and a small set of modes that match how the product really behaves.
Make a short state list before you touch the Variables panel:
- Theme states — light and dark, or brand A and brand B.
- Density states — comfortable and compact, if the interface changes spacing.
- Platform states — desktop and mobile, only if the same component needs different spacing or sizing rules.
- Exception states — disabled, danger, success, or alert, if those colors change across themes.

A good test is simple: if a state does not change the design system’s values, it probably does not deserve a mode. If it only changes one button’s text, use a component override instead. That keeps modes from turning into a junk drawer.
How do you structure Figma Variables for multi-mode UI?
You structure them by splitting values into collections, then assigning modes that map to product states. One collection usually handles one type of decision, such as color, spacing, or radius, and each mode stores the values for that state.
Here is the cleanest order to set it up in Figma:
- Create collections by meaning. Make a color collection, a spacing collection, and a radius collection if those values need different modes. You should see each collection listed separately in the Variables panel, not one giant pile of numbers.
- Add modes that match the product. Name them Light, Dark, Compact, Brand A, or Brand B. You should see the same variable listed across modes with different values in each column.
- Use primitive values where possible. Put the raw color or spacing value in one variable, then reference it from semantic variables like text/default or surface/raised. You should see fewer direct hex values scattered through the file.
- Map semantics to UI meaning. Set text, background, border, and spacing variables to the values your components actually use. You should see a button or card component react when a mode changes, not only the variable sheet.
- Bind variables to components and styles. Apply them to fills, strokes, text, corner radius, and auto layout gaps. You should see the component update across instances without manual edits on each copy.
The catch is this: if you mix spacing, color, and brand decisions in one collection, mode switching gets harder to reason about. Separate collections give you cleaner control and fewer accidental edits.
Set up semantic color mapping without making a mess
Picture this: you’re holding a design with three grays, two accent blues, and four danger reds, and every component uses a different one. Semantic color mapping fixes that by naming the job, not the pigment.
Use names that describe purpose, such as surface/default, text/primary, border/subtle, and action/primary. Then connect those semantic variables to the actual values in each mode. In light mode, text/primary might point to a near-black value; in dark mode, it might point to a near-white value.
That structure matters because brand themes can change the pigment without changing the meaning. A warning button still means warning. A card background still means card background. The component stays stable while the palette shifts.
A practical rule helps here:
- Primitive variables store raw values like
#FFFFFFor8. - Semantic variables store meaning like
surface/defaultorspace/card-padding. - Modes swap the primitive values underneath without changing the semantic label.
This also helps when a product team asks for a new brand theme six months later. You can swap the color layer without rewriting every button, input, and panel. The work is still real, though. If your semantic labels are vague, like blue-1 or gray-3, the whole system becomes harder to maintain.
One more detail: keep contrast decisions in the color system, not hidden inside component overrides. If text colors, borders, and fills all respond to the same mode, the interface feels coherent. If one button is hand-edited, that button will drift. For practical implementation guidance, the Figma Help Center explains variables and modes in the product itself, and Web Content Accessibility Guidelines (WCAG) gives the contrast rules teams use to check readable color combinations.
Build density modes that change spacing, not behavior
Density modes should change spacing values, not the meaning of the component. A compact table, a tighter toolbar, or a roomier form can all use the same structure if the spacing variables do the work.
This is where Figma Variables get useful for product UI that feels different on desktop and tablet. A comfortable mode might use larger vertical padding, wider gaps, and more breathing room around labels. A compact mode might reduce those values while keeping the same text sizes and icon positions.
Set this up with spacing variables such as:
- space/xxs
- space/s
- space/m
- space/l
Then assign each one a mode value. For example, a card padding variable might be 16 in comfortable mode and 12 in compact mode. The component still reads the same way. It just fits more or less content.
The mistake to avoid is changing density by hand inside each component instance. That creates tiny differences across the file, and those differences spread. Mode-based spacing gives you a single control point.
This is also where a clear naming rule pays off. If a variable is used in gaps, padding, and stack spacing, give it one meaning and keep it there. Don’t reuse a padding variable as a text indent. That makes future edits ugly.
What should change in a brand theme mode?
A brand theme mode should change the values a user can see immediately, not the layout skeleton. Colors are the obvious one, but border color, icon color, and surface color usually belong in the same theme pass.
If your product supports multiple brands, the common pattern is to keep the semantic names fixed and swap the underlying palette per brand mode. Brand A can use one accent color, Brand B another, while buttons, alerts, and links keep the same semantic roles. The UI language stays the same.
Here is a useful split:
- Theme mode changes: fill colors, text colors, border colors, icon colors, surface colors.
- Theme mode usually does not change: component names, content hierarchy, interaction states, or layout rules.
- Theme mode may change: spacing only when the brand has a very different density standard.
This is the part many generic guides miss. A brand theme is not a style dump. It is a controlled value swap. If you let brand modes alter everything, you will not know whether a broken screen came from layout, spacing, or color.
Use one collection for brand-sensitive values and keep the labels neutral. A variable called brand/accent is less useful than action/primary, because the second name still makes sense when the next brand arrives. That saves you from a renaming round every time the palette changes.
When should you use modes in Figma?
Picture this: you’re staring at a component set and wondering if every variant deserves a mode. Use modes when the same interface needs more than one value set for the same design decision, such as light and dark color values or compact and comfortable spacing.
Modes are a good fit for repeated, system-level shifts. They are not a good fit for one-off fixes. If a single alert card needs a special background, that is usually a component variant or an override, not a new mode.
A simple rule keeps the file healthy:
- Use a mode when the same UI state needs a consistent value swap across many components.
- Use a component variant when the structure, label, or state of one component changes.
- Use a local override when only one instance needs a quick exception.
That separation matters because a mode affects the whole collection. If you create too many modes, your file gets hard to scan and harder to trust. The reader of your file should know, in about 10 seconds, what each mode means.
The truth is, not every team needs every possible mode. A product with two themes and one spacing system may need only four or five modes total. That is enough to keep the system useful without turning it into a maze. The Figma Release Notes are useful when you want to track how variable support evolves over time.
Common mistakes that break variable systems
The biggest mistake is making variables too literal. A variable named blue-600 tells you nothing about where it belongs. A variable named button-primary-fill tells you what happens when the mode changes. That naming difference saves time every week.
Another mistake is putting too much logic into one collection. If color, spacing, and radius all live together, mode editing becomes slow and risky. Separate collections keep each decision type clean. That matters even more once a file has dozens of components.
Watch for these failure points:
- Too many modes: the file becomes hard to compare, and no one remembers which mode does what.
- Direct color use inside components: one-off hex values bypass the system and drift from the rest of the product.
- Semantic names that are too broad: labels like
primaryorsecondarybecome fuzzy fast. - Spacing values reused everywhere: a “small” value in one place can become a layout mess in another.
You also need to watch the handoff between design and dev. If the variable names do not match the product logic, the implementation team will have to infer intent. That slows everything down. A clear system is steady in the best way.
Use the Figma Variables panel to keep the system readable
Picture this: you’re returning to a file a month later, and you need to know why a surface color changed in dark mode. The Variables panel should answer that in seconds if the structure is clean.
Keep the collections few, the mode names plain, and the semantic labels readable. A designer opening the file should see Light, Dark, Compact, and Brand A without decoding a secret language. If a mode needs a note, add one in the file naming or documentation outside the variable name itself.
This is where a direct link to the broader team guide helps: the Figma for Product Teams hub should sit beside this system so new teammates can find the right setup without guessing. Use that hub for the bigger workflow, then keep this page focused on mode structure.
A readable system usually has three signs:
- each collection has one job,
- each mode has one meaning,
- each semantic variable points to one clear UI role.
That is what makes the setup maintainable over time. The goal is not to make the Variables panel look impressive. The goal is to make it obvious.
How do Figma variables differ from styles?
Figma Variables store values that can change by mode, while styles are better for fixed design choices that stay the same across the interface. Variables are the better fit when light mode, dark mode, or density needs different values. Styles can still work for simpler files, but they do not carry the same mode logic.
When should I use modes in Figma?
Use modes when one interface needs different value sets for the same design system decision. Light and dark color themes, compact and comfortable spacing, and brand-specific palettes are the clearest cases. If only one component changes, a variant or override is usually cleaner than a new mode.
How do variables support dark mode?
Variables support dark mode by swapping the values behind semantic labels like text/primary and surface/default. The component keeps the same structure while the values underneath change for the dark theme. That lets the interface stay consistent across screens instead of relying on manual color edits.
Drafted with AI; not yet reviewed by a person.
