component-variants

Installation
SKILL.md

Component Variants Pattern

Create matching light and dark variants of UI components using a systematic color token approach.

Pattern Overview

  1. Create paired components: ComponentLight and ComponentDark
  2. Mirror the structure exactly between variants
  3. Map colors systematically using the token table below
  4. Export a unified component that renders both or accepts a variant prop

Color Token Mapping

Basic Tokens

Semantic Use Light Mode Dark Mode
Card background bg-[#f8f8f8] bg-zinc-800
Card border border-zinc-200/80 border-zinc-700/80
Related skills
Installs
4
GitHub Stars
4
First Seen
Feb 21, 2026