figma.com · Free post · Execution, roadmaps & process · Product design & UX

Illuminating dark mode

FigmaJul 20, 202214 min
Sourcefigma.com
KindFree post
PublishedJul 20, 2022
Originalfigma.com ↗
N:

Figma's dark mode implementation reveals how a seemingly simple feature request demands sophisticated engineering systems. Rather than swapping colors, the team built a semantic token schema to support dynamic theming across 5,100+ instances of color variables. By organizing engineers from ten product teams into a coordinated "Dark Mode Week," Figma achieved 80% completion in one week and established a scalable foundation for future themes—demonstrating how feature work can become systems work.

01Key takeaways

  • Semantic tokens (not literal color names) enable dynamic theming at runtime and scale across teams and future features.
  • Distribute large refactoring work across feature-owning teams to parallelize effort and catch edge cases faster than centralized teams.
  • Build tooling (debug mode, search, linters) to reduce friction during migration and prevent regressions in production.
  • Distinguish UI surfaces by behavior (always dark vs. theme-toggling) to avoid over-complicating token schemas.
  • Simple user requests often hide complex technical decisions; invest upfront in systematic design to avoid costly rework.
  • Coordinate cross-functional projects by establishing clear naming conventions and onboarding processes for distributed teams.

02Key sections

The scope challenge
Dark mode required decisions beyond UI color swaps: which surfaces to support, whether user-generated canvas content should shift, and how to handle engine-rendered elements. The sheer complexity across ten product teams and thousands of UI states demanded a systematic, cross-functional approach rather than isolated engineering effort.
Semantic token schema design
The team replaced literal color variables (figmaBlue) with semantic tokens (color-bg-menu-secondary-hovered) using a structured naming convention. This schema distinguished between surfaces that toggle themes versus those that stay dark, and enabled dynamic color assignment at runtime via CSS custom properties instead of build-time substitution.
Dark Mode Week execution
Forty engineers from across product teams refactored color usage in parallel, completing 80% of in-scope surfaces in one week. This distributed approach was more efficient than a small dedicated team and ensured feature owners understood their own surfaces, reducing the risk of missed edge cases.
Tooling and regression prevention
The team introduced four theme modes (Legacy, Light, Dark, Debug) with CSS fallbacks to prevent regressions, built a token search tool mapped to perceptual color space, and added a linter to enforce semantic token usage in new code—ensuring dark mode support for future features.
From feature to system
Dark mode evolved from a user request into a reusable design system used by hundreds of engineers daily. The semantic token library, synced across code and design systems, provides a foundation for future themes and demonstrates how coordinated cross-team work can build lasting infrastructure.
“One of the hardest things about dark mode is that people think it's easy.”Jacob Miller and Ryhan Hassan (Product Manager and Designer, Figma) · figma.com
“The simplest requests might have the most complex answers.”Shirley Miao · figma.com

03Frameworks mentioned

Summary and takeaways written by PM Atlas; quotes are short excerpts. © the original author.