#color command opens a color picker and adds your chosen color as a named color in your Xcode asset catalog. This is the only toolkit command that opens a color picker instead of a file picker.
What It Does
When you use#color, the AI:
- Takes the color you picked and adds it to your asset catalog (Assets.xcassets) as a named Color Set
- Names it based on your description (e.g., “BrandBlue”, “BackgroundGray”)
- Applies it wherever you specify in your app
Color("BrandBlue"), keeping your color palette consistent and easy to manage.
How It’s Different
Every other toolkit command opens a file picker to let you select a file from your Mac.#color is different — it opens the macOS color picker so you can choose an exact color visually, enter hex values, or sample colors from your screen.
How to Use
Pick your color
The macOS color picker opens. Choose your color using the color wheel, sliders, hex input, or the eyedropper to sample from your screen.
Name and describe it
The color appears as an orange chip below the input. Tell the AI what to name the color and where to use it.
Example Prompts
Why Use Named Colors?
Named colors in the asset catalog give you several advantages over hardcoded hex values:| Approach | Flexibility | Dark mode support | Reusability |
|---|---|---|---|
| Hardcoded hex | Must find and replace everywhere | Manual | Low |
| Named color (asset catalog) | Change once, updates everywhere | Built-in | High |
Building a Color Palette
You can use#color multiple times to build out your app’s full color palette. A typical app might include:
- Primary — your main brand color for buttons and key actions
- Secondary — a supporting color for less prominent elements
- Background — the app’s base background color
- Surface — card and container backgrounds
- Text — primary text color
- TextSecondary — secondary/muted text color
- Accent — a highlight color for special elements
- Error — for error states and validation messages
You can attach multiple colors in a single message. Pick each color, give it a name, and describe where to use it. The AI will add all of them to your asset catalog at once.
Related
Toolkit Overview
See all available # commands and how the toolkit works.
Appearance
Learn about theming, dark mode, and visual customization.