design-system-patterns

Provide design tokens, theming infrastructure, and component architecture patterns.

4|Updated Mar 3, 2026
One-click install
npx skills add https://github.com/AI-Foundry-Core/ril-agents --skill design-system-patterns-ai-foundry-core
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: design-system-patterns
Source: https://github.com/AI-Foundry-Core/ril-agents/tree/main/plugins/ui-design/skills/design-system-patterns
Command: npx skills add https://github.com/AI-Foundry-Core/ril-agents --skill design-system-patterns-ai-foundry-core

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Build scalable design systems by providing patterns for tokens, theming infrastructure, and component architectures to ensure consistency and faster delivery across teams.

Core Features & Use Cases

  • Design Tokens: manage primitive, semantic, and component tokens for cross-platform design.
  • Theming Infrastructure: implement light/dark and multi-brand themes with CSS variables.
  • Component Architecture: patterns for compound and polymorphic components to build scalable libraries.
  • Use Case: A design team wants to create a unified design system with token-driven theming across web and mobile apps.

Quick Start

Set up a starter design system with token definitions, theming, and a sample component library.

Frequently Asked Questions about design-system-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I structure design tokens for a cross-platform UI project?

Structure design tokens by separating them into primitive, semantic, and component levels to ensure cross-platform UI consistency. This tiered token pipeline allows teams to manage foundational values and apply them across web and mobile ecosystems.

What is the best way to implement light and dark theme switching with CSS variables?

Implement light and dark theme switching by defining semantic design tokens as CSS variables. This theming infrastructure allows you to swap variable values dynamically, enabling multi-brand themes without altering individual component styles.

How do I build a scalable component library using polymorphic components?

Build scalable component libraries using compound and polymorphic component architecture patterns. These patterns provide modular component APIs, allowing flexible composition and consistent behavior across your design system.

Can I use design token naming conventions for both web and mobile apps?

Yes, enforcing design-token naming conventions supports cross-platform delivery for both web and mobile apps. A unified token pipeline ensures that your theming strategy and component patterns remain consistent across different ecosystems.

When do I need semantic design tokens in a design system?

You need semantic design tokens when you want to decouple primitive values like raw colors from their functional purpose. This layer in your token pipeline allows you to change themes globally without modifying individual component code.

What are the limitations of using CSS variables for multi-brand theming?

Using CSS variables for multi-brand theming relies on browser support for variable cascading and inheritance. While effective for web UI, applying this theming strategy to mobile ecosystems requires a token pipeline that can translate variables into native platform formats.