Design systems · Theming · Accessibility

Designing dark mode
with Figma variables.

The Sedona design system already powered the Nextiva agent workspace in light mode. My task was to design a complete dark theme built entirely on variable modes, not new components and to put every surface through extensive accessibility checks before it shipped.

Role
Product Designer
Design systems & theming
Scope
Dark theme for the
full agent workspace
Surface
Web app + Microsoft
Teams embedded app
Partners
Eng · Accessibility
review · PM
200+
Semantic variables mapped across two modes
WCAG AA
Verified on every text + UI surface
0
Components forked — one library, two themes
01 / ContextWhere this started

A mature, light-only system — and a request to make it work in the dark.

Sedona is the design system behind a Nextiva-style contact-center workspace: live calls, tickets, contact directory, and the NextIQ AI assistant. It was already deployed in light mode, with a deep neutral scale and a single brilliant action blue. The library was healthy. What it didn't have was a second theme.

Sedona.figFigma · variable collections
Designing dark mode inside the Sedona Figma file — variable collections each with a Light and Dark mode
The entire effort lived in Figma variables. Every collection — global colours, semantic tokens, component colours, typography, corner radius carries a Light and a Dark mode, so the whole system flips theme from a single switch.
Light mode · shipped
Sedona ticket workspace in light mode
The existing light-mode workspace — the agent's home for live calls, the conversation thread, NextIQ, and patient context.
The system
~80 components
Buttons, cards, menus, fields, avatars, the NextIQ panel all light-only
The colour story
Midnight ink + one blue
High-contrast text on white, with #005FEC reserved for action
The ask
Add a dark theme
Without forking components, and without losing meaning in the AI panel
AThe foundation that already existed

A documented light system global colours, semantic roles, and a tokenization model.

Sedona already had a 140-strong global palette, a semantic layer mapping colour to meaning, and a naming convention that aliased primitives → semantic tokens → component tokens. That existing discipline is exactly what made a second theme tractable there was a clean seam to add modes behind.

FoundationsGlobal colours
Sedona global colour palette
140 global colour variables — the primitive layer.
FoundationsSemantic colours
Sedona semantic colours grouped by role
Colour grouped by role — status, action, neutral.
FoundationsToken naming
Token naming convention and tokenization model
The aliasing model: primitive → semantic → component.
02 / ProblemThe real challenge

Dark mode isn't an inverted palette. It's a second source of truth that has to mean the same thing.

The naïve version — flip the background, invert the text — breaks immediately. Shadows vanish, brand blue stops passing contrast, status colours glow, and the AI panel's carefully tuned "this is a suggestion, not a fact" cues fall apart. The problem was building a dark theme that was structurally identical to light so it could ride the same components, while being perceptually re-tuned so nothing lost its meaning.

The framing that unlocked it
Treat colour as a variable, never a value. If every component referenced a semantic token — surface, foreground, border, action — then a theme is just a second set of values behind those same names.
03 / ResearchWhy dark, why now

Two findings made dark mode a requirement, not a nicety.

Before touching a single token, I needed to know this was worth doing well. Two lines of evidence — one from our own users, one from the platform we were shipping into turned dark mode from a backlog wish into a committed deliverable.

User behaviour

Most agents already live in dark mode.

Contact-center agents run long shifts, often in dimmed rooms, staring at a single workspace all day. When we looked at our base, the majority had set their operating system to a dark appearance by default — and our bright, light-only app was the one window forcing them back into glare. The demand for a dark theme wasn't speculative; it was the most consistent piece of qualitative feedback we had.

Majorityof users on a system-default dark appearance — fighting a light-only app all shift
Platform requirement

Microsoft Teams certification demanded theme parity.

We were publishing the Nextiva app inside the Microsoft Teams ecosystem. Teams apps must respect the host's appearance — Default, Dark, and High-contrast — and theme support is part of the store's design guidelines for certification. An app that stayed bright white inside a dark Teams window would feel broken and would not pass review. Dark mode stopped being optional the moment Teams became a distribution channel.

3 themesDefault · Dark · High-contrast — required to honour the Teams host appearance
Eye strain

Low-light rooms plus an all-day bright surface is a fatigue problem, not a preference. Dark mode reduces glare during long shifts.

Parity, not divergence

Teams certification wants the app to feel native in every host theme — same layout, same components, theme-aware colour.

Accessibility baked in

Both Teams guidelines and our own bar required WCAG AA. Contrast had to be designed in from the first token, not patched later.

04 / Key decisionsHow it was built

Four decisions turned one light system into two themes.

Each one started in Figma variables and ended up encoded in the same tokens engineering shipped. The goal throughout: one component definition, two modes behind it.

01
Semantic variables, not raw colours — with two modes.

Every component was re-pointed from primitive colours (blue/800, dark-grey/50) to semantic aliases — surface/primary, text/primary, border/primary, surface/action-primary. In Figma I added a Dark mode to the semantic and component-colour collections, so a single component instance renders correctly in either theme just by switching the mode. Engineering mirrored it one-to-one as a :root[data-theme="dark"] token block — the Figma variable names and the CSS custom properties are identical.

surface/secondary · pagedark-grey/1000 · #02040F
surface/primary · carddark-grey/800 · #171C34
surface/elevated · pop-updark-grey/600 · #30344A
neutral/dark-700 · hoverdark-grey/700 · #23283F
Mode swapOne component · two modes
MethodMulti-theme component
Creating a multi-style, multi-theme component with variables
One component, four resolutions — style and theme are both just variable modes, never separate components.
02
Elevation through layered surfaces, not shadows.

On white, hierarchy comes from soft midnight-blue shadows. On the dark canvas those shadows are invisible. So depth in dark mode is carried by the surface ladder above: surface/secondary sits deepest, surface/primary cards lift one step, surface/elevated pop-ups lift again. Borders do the rest — border/primary steps up to dark-grey/200 so a 1px hairline separates planes that shadow no longer can.

AA Card #171C34 on page — surface step + hairline
AA Pop-up #30344A on card — one more step up
No Shadow alone — disappears against the dark canvas
03
Swap the action blue — and flip the ink on top of it.

Sedona's primary #005FEC is gorgeous on white but fails AA as a fill on a dark surface. Rather than darken it, the system swaps the action surface to the brighter blue/300 — #49B6FF — and does the thing most dark themes miss: it flips the label to dark ink. text/on-action moves from white to dark-grey/800 #171C34, the inverse of light mode. White text on #49B6FF fails; dark ink on it clears AA comfortably. Status colours each lift one luminous step and their fills drop to low-alpha transparents so they read as state, not decoration.

Semantic role
Light value
Dark value
Why it changed
Page background
surface/secondary
#F7F8FA
#02040F
→ dark-grey/1000 · deepest plane
Card surface
surface/primary
#FFFFFF
#171C34
→ dark-grey/800 · lifts one step
Elevated surface
surface/elevated
#FFFFFF
#30344A
→ dark-grey/600 · pop-ups & menus
Primary text
text/primary
#0B1029
#F2F4FA
Off-white, never pure #FFF — eases halation
Border / hairline
border/primary
#DEDFE4
#616576
→ dark-grey/200 · carries separation
Primary action
surface/action-primary
#005FEC
#49B6FF
→ blue/300 · brighter, not lower-contrast
Text on action
text/on-action
#FFFFFF
#171C34
→ dark-grey/800 · ink flips white→dark
Danger
surface/action-error
#DB3545
#FF5C6A
Lit one step so “end call” stays loudest
VARThe actual variable modes in Figma
VariablesSurface
Surface tokens mapped Light to Dark
Surface tokens — page, card, pop-up, elevated — remapped for dark.
VariablesText
Text tokens mapped Light to Dark
Text roles — body, action, status — re-pointed to lit values.
VariablesNeutrals
Neutral tokens mapped Light to Dark
Neutral scale inverts: light greys become dark-grey aliases.

Pulled straight from the Sedona variable tables — the Neutral-dark scale that every dark surface aliases to, and the component-token layer that points surfaces, text and borders at those neutrals. These are the actual names and values the theme resolves through.

Neutral-dark · global scaleprimitives
dark-grey/1000 neutral-14 · “Surface/Secondary”#02040F
dark-grey/900 neutral-13 · text, snackbars#0B1029
dark-grey/850 neutral · deep panel#151A31
dark-grey/800 neutral-12 · “Surface/primary”#171C34
dark-grey/700 neutral · hover#23283F
dark-grey/600 neutral-11 · elevated, message#30344A
dark-grey/200 neutral-10 · border, secondary text#616576
Component tokens · Dark modealiases
surface/secondary → dark-grey/1000page
surface/primary → dark-grey/800card
surface/elevated → dark-grey/600menu
text/body-primary → light-grey/0#F7F8FA
surface/action-primary → blue/300#49B6FF
text/on-action → dark-grey/800 (ink flips)#171C34
border/primary → dark-grey/200#616576
04
Preserve meaning in the NextIQ AI panel.

The hardest surface was the AI assistant. In light mode, a "suggested action" reads as tentative through a soft grey fill and de-emphasised text; a superseded suggestion is struck through but still legible. Those signals are load-bearing — they tell an agent what's a fact versus a draft. In dark mode I rebuilt the same hierarchy with surface steps and opacity rather than grey-on-grey, so the panel keeps saying "this is a suggestion — verify before you speak it."

Suggested action: Say this

Dr. Webb is available on Tuesday at 2 PM and Thursday at 10 AM. Please confirm which time slot works best?

Use script
05 / AnatomyComponents in the dark

The same components, re-tuned token by token.

Because nothing was forked, every component below is the light component rendered through the dark mode. Here is how the key surfaces of the workspace resolve once the variables flip — from the full workspace down to the button system.

Dark mode · shipped
Sedona ticket workspace in dark mode
The full workspace in dark mode — the exact same layout as the light shot above, resolved entirely through the dark variable set.
BThe button system · dark

Every button state, re-derived for dark.

Primary, secondary, tertiary, danger and their ghost variants — across resting, hover, click/focus and disabled. Each state pulls from component-colour tokens, so the whole matrix flipped theme without a single new component.

ComponentsButtons · dark mode states
Dark mode button states: standard, icon, and navigation buttons
The dark button anatomy — standard, icon, split and carousel-navigation buttons across every state.
ParityLight ↔ Dark
Light and dark button states side by side
Same component, two modes side by side — the proof that nothing forked.
CAcross surfaces

The theme holds across the whole product — desktop and mobile.

Ticket workspace · collaboration
Ticket and collaboration workspace in dark mode
A denser surface — ticket inbox, live chat, collaboration thread and ticket details — all on the dark variable set.
MobileMy hub
Mobile app My hub in dark mode
The same tokens drive the mobile app — dark mode is a system property, not a screen-by-screen redesign.
DComponent details
MMMelissa Murphy 05:23
Active call control bar
The live-call frame gets a 2px primary border + glow instead of light mode's drop shadow. The end-call red is lifted to #FF5C6A so it stays the loudest thing on screen.
Suggested action: Say this

Dr. Webb is available on Tuesday at 2 PM and Thursday at 10 AM. Please confirm which time slot works best?

Use script
NextIQ suggested-action card
The AI's signature component. Tentative copy sits on a raised surface; the primary "Use script" split-button anchors the action. Hierarchy survives the theme switch without grey-on-grey.
Appointments
UpcomingPast
No appointments to show.
Context card · Appointments
A standard card: #0F1224 surface lifted off the page, hairline border, blue-tinted icon chip. The same card renders Prescriptions, Tickets, and Notes — only the token values changed.
JM SN MK RP JB CA
Use script Cancel View all End
Avatars & buttons
Avatar tints were rebuilt as deep, saturated fills with light foregrounds — light mode's pastels blew out on black. Buttons keep primary / secondary / ghost / danger roles, each contrast-checked.
Help me find answers…
Focused state — 3px ring
Information
Calls are recorded for quality and training.
Success
The ticket was assigned to Dr. Webb's queue.
Warning
This number is on the Do-Not-Call list.
Error
The call dropped before notes were saved.
Alerts · status in the dark
Each status alias — info, success, warning, error — moves to a lit foreground on a low-alpha tint of its own colour. Read as state, never as a glowing fill, and every label/background pairing was contrast-checked to AA.
06 / ChallengesWhat was actually hard

The accessibility work lived in the edge cases.

Getting the obvious surfaces right was fast. The time went into the places where dark mode quietly breaks — translucency, glow, forced colours, and the things that are supposed to look faded but still need to be read.

Contrast on translucent tints
Status and primary tints are low-alpha fills, so their real colour depends on whatever surface sits behind them. A tint that passed on the page could fail on a raised card.
Fix: contrast was checked against every surface in the ladder, not just the page — tints were tuned to pass on the lightest surface they could land on.
Avatar colours blowing out
Light mode's friendly pastel avatars turned into glowing blobs on near-black, and the initials inside them dropped below readable contrast.
Fix: a parallel avatar ramp — deep saturated backgrounds with light, legible foregrounds — keeping each person's colour identity while passing AA on the initials.
"De-emphasised but still legible"
The NextIQ panel dims superseded suggestions. On dark, "dimmed" easily becomes "invisible" — but agents still need to read what was replaced.
Fix: dimming was capped at an opacity that still cleared the minimum contrast for text, so faded never meant unreadable.
Teams high-contrast mode
Beyond Default and Dark, Teams certification covers a forced high-contrast theme where the OS overrides colour entirely.
Fix: components were built to respect forced-colors — never relying on colour alone for state, so icons, borders, and labels still carry meaning when the palette is stripped.
A11YThe accessibility work, in evidence

Every colour pairing was measured, not eyeballed.

Each label, alert and surface pairing went through a contrast checker until it cleared WCAG AA. Where a colour couldn't pass at full strength, the trade-off was made in the variables — desaturating labels and dropping status fills to transparent tints rather than compromising legibility.

AccessibilityContrast-ratio checks
Dark mode alerts checked with foreground and background contrast ratios
Info, success, warning and danger alerts — each measured foreground-on-background until it cleared AA (4.5:1).
Trade-offDesaturated labels
Label colour variables remapped for dark mode
Label backgrounds and text re-mapped per role so initials and chips stay legible on dark.
Trade-offTransparent status fills
Error and status tokens using transparent fills in dark mode
Status fills moved to low-alpha transparents so they read as state without glowing.
07 / ImpactWhere it landed

One library, two themes, zero forks — and it passed review.

2
Themes shipping from a single component library
200+
Semantic variables mapped across light and dark modes
AA
WCAG 2.1 contrast verified on every text and UI surface
0
Components forked or duplicated to support the new theme

For users

  • Less glare on long shifts. The workspace finally matches the dark appearance most agents already run all day.
  • Meaning preserved. AI suggestions, statuses, and call states read the same in either theme — no relearning.

For the platform

  • Teams-ready. The app honours Default, Dark, and High-contrast — clearing the design bar for store certification.
  • Native in any host. No more bright-white panel inside a dark Teams window.

For the system

  • Theming is now free. Future surfaces inherit dark mode automatically by using semantic tokens.
  • Design ↔ code parity. Figma variable modes and the code token block share one set of names.
The takeaway
Dark mode was never a colour exercise. It was proof that the system was built on meaning — and once colour is a variable, a new theme is a configuration, not a redesign.