GitHub

GitHub Copilot Color Design System Rules

Export a structured .github/copilot-instructions.md file with your brand's 46 semantic color tokens, CSS variables, Tailwind mappings, and WCAG accessibility data — optimized for GitHub Copilot.

GitHub Copilot .github/copilot-instructions.md with palette context for Copilot
.github/copilot-instructions.md
Select a color to generate AI skill preview

Setup Guide for GitHub Copilot

Get your AI color rules working in under 2 minutes.

1

Export your skill file

Go to your palette → Export → AI Coding Rules → GitHub Copilot. Copy or download the markdown.

2

Create .github/copilot-instructions.md

Place the file at .github/copilot-instructions.md in your repository. Copilot reads this as custom instructions.

3

Start coding

Open your editor with Copilot enabled. When generating UI code, Copilot will reference your color tokens.

Project Structure
your-project/
├── .github/
│   └── copilot-instructions.md  ← AI color rules
├── src/
│   ├── components/
│   └── styles/
├── package.json
└── ...

How GitHub Copilot Uses Color Design System Rules

When you place a .github/copilot-instructions.md file in your project, GitHub Copilot reads it as part of its context window. This means every code suggestion, component generation, and refactoring task references your exact color tokens instead of guessing.

The exported file includes all 46 semantic color roles (brand, surface, text, status, border), their hex/RGB/HSL values, CSS custom properties, Tailwind class mappings, and WCAG contrast ratios. GitHub Copilot uses this data to:

  • Generate React/Vue/Svelte components with correct color tokens
  • Suggest accessible color pairs that meet WCAG AA/AAA standards
  • Apply consistent theming across light and dark modes
  • Write CSS/Tailwind code using your design system variables
  • Maintain visual consistency across your entire codebase

Export Your GitHub Copilot Color Rules Now

Create your brand palette, then export AI coding rules from the Export tab. GitHub Copilot will produce on-brand code from day one.