bricks_update_color_palette
Update the Bricks Builder color palette by adding, modifying, or replacing colors. Generate dark mode variants automatically using OKLCH color science.
Instructions
Update the Bricks Builder color palette. Can add, modify, or replace colors. Bricks 2.3: Supports auto-generating dark mode variants from light colors using OKLCH color science.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| merge | No | If true (default), merge with existing palette. If false, replace entirely. | |
| colors | Yes | Array of color definitions. Each needs at minimum: {id, name, raw} | |
| generate_dark_variants | No | Bricks 2.3: Auto-generate dark mode variants for each color using OKLCH. Adds "-dark" suffixed colors with inverted lightness. |