Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Figma 17 min read Opinion mediumAdept

The shared language of props

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.

Related posts

  • Design system annotations, part 2: Advanced methods of annotating components

    GitHub Engineering mediumAdept

    Design system teams can build their own "Preset annotations": Figma annotation components that carry accessibility details not conveyed visually, in component properties, or in code. GitHub picked ten Primer components using usage data from its Primer Query tool, audit frequency, React availability and org priorities. It then mapped the missing properties by cross-referencing Primer docs, Storybook demos, Figma asset properties, team experience and audit findings. Presets help newer teams most but need ongoing maintenance as components change, and the property mapping is groundwork for automated annotation. Figma Code Connect with hidden layers (e.g. an aria-label text property on IconButton) can bypass annotations entirely, with tips on consistency, branching and visual regression testing.

  • Design system annotations, part 1: How accessibility gets left out of components

    GitHub Engineering mediumAdept

    Accessible design system components don't guarantee accessible designs: heading hierarchies break when components are composed, alt text and labels depend on context, and Figma components can't convey implementation details like link-vs-button or form submission. GitHub's Accessibility Design team built Preset annotations for ten frequently used Primer components in its open-sourced Figma Annotation Toolkit. Designers annotate only the per-instance details, such as accordion heading levels, while everything already built into the component is skipped, and each preset links to component docs and Storybook demos.

  • A tale of two parameter architectures—and how we unified them

    Figma mediumAdept

    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.

  • 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 Thumbtack structures their design system

    Figma mediumAdept

    Thumbtack's Thumbprint design system is organized in three layers: design tokens shared by web and native, an atomic CSS library built on the tokens, and accessible React components on top. Higher layers trade flexibility for productivity, accessibility and consistency. When a component doesn't fit, developers drop to a lower layer, such as the unstyled ModalCurtain under the styled Modal. That lets teams adopt the system incrementally and gives maintainers a way to spot popular workarounds without making one-off API changes. Publishing and documentation overhead is handled with a monorepo (Yarn Workspaces, Lerna), a GraphQL API over the tokens, and docs that make the happy path prominent and the escape hatches subtle.

The quest for software engineering knowledge.

Look:
Layout: