A tale of two parameter architectures—and how we unified them
Figma replaced the separate architectures behind component properties (scoped, layer-level parameters) and variables (global, library-level parameters) with one parametrization system. At the data model level, both systems now share a single parameter typespace and a single binding store, so each layer property can bind to at most one parameter and cross-system bindings such as component property to variable become possible. At runtime, every parameter system follows the same pipeline: usage tracking, property-level invalidation, transitive resolution across aliases and system boundaries, and a consolidated update/re-render path. That shared foundation is meant to support future parameter systems such as a CMS without rebuilding binding infrastructure.
Related posts
- The making of the Figma Pattern Library
Figma mediumAdept
Figma rebuilt its fragmented internal design system as the Figma Pattern Library (FPL) ahead of the UI3 redesign, with a small team of designers and engineers working in a paired style. Color tokens moved out of a Google Sheet into Figma variables: primitive color ramps are aliased by semantic variables that have modes for light/dark themes and for each product. A GitHub Action uses the REST API to open pull requests that sync published variable changes into code tokens. Every component must have Code Connect support before it counts as done, which maps design components to code even when their structures differ. After five months the library had 680+ tokens and 22 component sets with 670+ variants.
- How we rebuilt the foundations of component instances
Figma mediumAdept
Figma replaced its decade-old Instance Updater, a self-contained runtime that resolved component instances and also did its own layout and variable evaluation, with Materializer, a generic framework for deriving subtrees of the document tree from feature-defined blueprints. Materializer uses push-based invalidation with automatic dependency tracking recorded during materialization. It was paired with a shared runtime orchestration layer that runs systems in a predictable order and eliminates "back-dirty" feedback loops. The rewrite was validated by running old and new runtimes side by side on hundreds of thousands of production files. Variable mode changes in large files got 40–50% faster, and Materializer now underpins rich text and slots.
- The shared language of props
Figma mediumAdept
Figma component properties and codebase component props share names but serve different purposes: design props mark visual differences, while code props also carry behaviour, events and data. A case study from a React/TypeScript app built on Material UI shows two Figma button components mapping to five code components layered over a ButtonPrimitive, which used types to make aria-label required for icon-only buttons. The practical advice is to align variant names and casing where possible, mark Figma-only concepts like interaction state with a prefix such as ":state", and accept differences like disabled being a boolean prop in code.
- How we built a custom permissions DSL at Figma
Figma mediumAdept
Figma replaced a sprawling Ruby `has_access?` permissions function with a custom, JSON-serializable permissions DSL and a cross-platform policy engine, inspired by AWS IAM policies. Each policy declares a resource type, an allow/deny effect, granular permissions and boolean conditions written as ExpressionDef triples that reference data fields such as `file.deleted_at`. Because policies are pure data, the same rules run in both the Ruby/Sinatra backend and the TypeScript LiveGraph realtime layer, and data dependencies can be extracted statically. That separation decouples policy logic from data loading, letting rules be written and debugged independently and reducing database load from permission checks, which had been about 20% of total load.
- Illuminating dark mode
Figma mediumAdept
Figma built dark mode by replacing roughly 5,100 build-time PostCSS color variables with runtime CSS custom properties based on a semantic token schema (Type | UI Element | Color role | Prominence | Interaction), so new themes only require reassigning token values. Tokens are exported in the Design Tokens Format Module spec and compiled to CSS, Swift and XML. To spread the mostly manual refactor, forty engineers covered about 80% of in-scope surfaces in a single 'Dark Mode Week'. Supporting tooling included CSS fallbacks to the legacy variables to prevent regressions, a debug theme with random saturated colors to reveal unconverted surfaces, and a CIELAB-based search tool for finding the closest matching token.