Level 4 · UI/UX design · about 12 minutes · free

Design systems

A design system is the shared kit a team builds with: tokens, components and guidelines. It makes a product consistent, faster to build, and easier to change.

Design systems: the finished result in FigCraft
Start the interactive lesson: narrated demo, steps and quiz →

What you’ll learn

Step by step

  1. Start a new file called Trail DS with pages Foundations, Components and Examples.
  2. Create a variable collection Theme with Light and Dark modes.
  3. Add 8 colour roles: surface, surface-raised, text, text-muted, primary, on-primary, border, danger.
  4. Create a Sizes collection: radius-s 8, radius-m 12, radius-l 16, space 4, 8, 16, 24.
  5. Create text styles: Display, Heading L, Heading M, Body, Label.
  6. Build Button with auto layout, bound to variables. Variants: Kind=Primary/Secondary/Ghost × State=Default/Hover/Disabled.
  7. Build Input: Default, Focus, Error, with label and helper text.
  8. Build Card: title, text, action slot.
  9. On Examples, build a sign-in screen from only these parts. Duplicate it and set the copy to Dark.
  10. Export the tokens as DTCG and write two lines of usage notes on each component.

Tips

Check yourself

Why name tokens by role (Primary) instead of value (Green)?

Roles stay true when values change, like a rebrand or dark mode. Code using roles never needs editing.

← Product sense: metrics and experimentsProject: An accessibility audit →

FigCraft is an open-source project by its own authors. Craftpath is an independent, free learning resource.