Toolverse
All skills

design-system-patterns

by wshobson

Build scalable design systems with design tokens, theming infrastructure, and component architecture patterns. Use when creating design tokens, implementing theme switching, building component libraries, or establishing design system foundations.

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
wshobson
Category
UX / Design
Views
46

About this skill

Build scalable design systems with design tokens, theming infrastructure, and component architecture patterns. Use when creating design tokens, implementing theme switching, building component libraries, or establishing design system foundations.

How to use

  1. Zainstaluj skill w swoim projekcie agenta, dodając referencję do wtyczki design-system-patterns z repozytorium.

  2. Zdefiniuj tokeny projektowania w strukturze primarne (surowe wartości: kolory, rozmiary, czcionki), semantyczne (znaczenie kontekstowe: text-primary, surface-elevated) i komponentowe (użycie specificzne: button-bg, card-border).

  3. Skonfiguruj infrastrukturę tematyzacji, ustawiając CSS custom properties i dostawcę kontekstu React do dynamicznego przełączania motywów, w tym obsługę preferencji systemowych (prefers-color-scheme).

  4. Zbuduj bibliotekę komponentów, stosując wzorce compound components, komponenty polimorficzne (prop as) i systemy wariantów oraz rozmiarów.

  5. Jeśli używasz Figmy, skonfiguruj synchronizację tokenów za pomocą Style Dictionary, aby automatycznie generować tokeny dla CSS, iOS i Android.

  6. Zintegruj pipeline tokenów z CI/CD, aby aktualizacje tokenów były wdrażane automatycznie w całym projekcie.

Related skills