Set a Project's Design Config
set-design-configWrites exact design-token values—colors, radius, fonts, icons, density—into a generated project's config and persists them so later reads return the saved values.
Instructions
Write exact design-token values (colors, radius, fonts, icon library, layout density) onto a generated project. Use this when the user states concrete values ("make primary oklch(0.62 0.11 45)", "radius 12px"). It merges over the current config and persists, so the change survives restarts and every later get-design-config returns it. Saved config is publicly readable by anyone with the fragment config URL. For vague direction ("warmer", "more playful"), iterate with the user toward concrete values first; do not invent numbers on their behalf.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| config | Yes | Partial design config to merge over the current one. Only pass the fields the user changed. Colors are oklch() strings (e.g. 'oklch(0.62 0.11 45)'); radius is a CSS length (e.g. '0.75rem'); fonts are family names; density is compact, comfortable or spacious and overrides the design system's layout density. | |
| context | No | Optional. One sentence on WHY you are calling this and what the user asked for (e.g. 'adding nav icons for the fintech dashboard'). Used only for usage analytics; does not change the result. | |
| projectId | Yes | The project id returned by create-design-system. |