Google

Gemini Color Design System Rules

Export a structured ai-color-rules.md file with your brand's 46 semantic color tokens, CSS variables, Tailwind mappings, and WCAG accessibility data — optimized for Gemini.

Gemini Markdown color rules for Google Gemini and Gemini Code Assist
ai-color-rules.md
Select a color to generate AI skill preview

Setup Guide for Gemini

Get your AI color rules working in under 2 minutes.

1

Export your skill file

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

2

Add to Gemini context

Paste the color rules into your Gemini conversation, Google AI Studio system instructions, or Gemini Code Assist workspace settings.

3

Generate on-brand code

Ask Gemini to build UI components — it will reference your exact brand tokens, CSS variables, and accessibility data.

Project Structure
Google AI Studio / Gemini
└── System Instructions
    └── Paste color rules here

— or —

your-project/
├── ai-color-rules.md  ← AI color rules
├── src/
└── ...

How Gemini Uses Color Design System Rules

When you place a ai-color-rules.md file in your project, Gemini 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. Gemini 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 Gemini Color Rules Now

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