design-system-conventions

Enforce semantic design tokens and UI styling rules across frontend codebases.

2|Updated Apr 9, 2023
One-click install
npx skills add https://github.com/Esdeveniments/esdeveniments-frontend --skill design-system-conventions
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: design-system-conventions
Source: https://github.com/Esdeveniments/esdeveniments-frontend/tree/main/.github/skills/design-system-conventions
Command: npx skills add https://github.com/Esdeveniments/esdeveniments-frontend --skill design-system-conventions

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill guides teams to replace ad-hoc color utilities and non-semantic classes with semantic design tokens, ensuring consistent visuals and reduced technical debt.

Core Features & Use Cases

  • Enforces semantic tokens for color, typography, spacing, and borders across UI components.
  • Provides migration guidance and examples to replace gray-* utilities with design tokens.
  • Supports teams in maintaining a cohesive design language across apps and features.

Quick Start

Start by auditing your styles to identify non-semantic color utilities and non-tokenized typography, then replace them with tokens and semantic classes as per the guidelines.

Frequently Asked Questions about design-system-conventions

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

FAQPage Schema
How do I replace literal color utilities with semantic design tokens?

Replace literal color utilities with semantic design tokens by auditing your styles to identify non-semantic classes like gray-*, then substituting them with semantic tokens and classes following the provided migration examples.

What are semantic design tokens and when do I need them in frontend projects?

Semantic design tokens are styling variables that replace ad-hoc color utilities and non-semantic classes to ensure consistent UI visuals. You need them in frontend projects adopting a design system to reduce technical debt and maintain a cohesive design language.

Does this design system conventions approach enforce typography and spacing rules?

Yes, this approach enforces semantic design tokens and UI styling rules across color, typography, spacing, and borders, ensuring consistent component styling and reducing technical debt across the codebase.

What's the best way to migrate an existing UI to use design tokens?

The best way to migrate an existing UI to use design tokens is to start by auditing your styles to identify non-tokenized typography and non-semantic color utilities, then replace them with tokens and semantic classes according to the established guidelines.

Why should I use semantic tokens instead of literal color utilities in my design system?

You should use semantic tokens instead of literal color utilities because they enforce consistent visuals, reduce technical debt, and support your team in maintaining a cohesive design language across apps and features.

Can I apply these UI styling rules to component styling scenarios across my codebase?

Yes, you can apply these UI styling rules to component styling scenarios across your codebase, as the rules target frontend projects adopting a design system and cover color, typography, spacing, and borders.