Fabric UI

Figma

Use Figma as the design source for Fabric UI implementation.

Fabric UI is designed to move cleanly between design intent and production code. Use Figma for visual direction, then implement with Fabric UI components, registry items, and theme tokens.

Design to Code

Start by identifying the Figma frame or component that represents the target UI.

Implement this Figma frame using Fabric UI.
Match spacing, hierarchy, and interaction states.
Reuse existing project components where possible.

What to Preserve

  • Layout structure and visual hierarchy.
  • Typography scale and weight.
  • Spacing rhythm.
  • Radius, shadows, and surface treatment.
  • Interaction states such as hover, active, and open.

What to Adapt

Figma output should be adapted to the project instead of copied blindly.

  • Use existing Fabric UI primitives.
  • Use theme variables and registry tokens.
  • Keep responsive behavior aligned with the app.
  • Avoid introducing duplicate components when a local component already exists.
  1. Fetch Figma context for the target node.
  2. Identify which Fabric UI components map to the design.
  3. Implement the page or component in the existing project structure.
  4. Preview in the browser and compare against the design.
  5. Tune spacing, motion, and responsive states.

Theme Customizer

The Theme customizer is a good example of a Figma-led Fabric UI interaction: the visual direction comes from Figma, while state, picker behavior, and styling are implemented with the project’s existing configuration system.

For AI-assisted implementation, combine this page with Skills and MCP.