Skip to content

Expose color_settings.custom in design-theme-json#20

Merged
oxyc merged 1 commit into
masterfrom
theme-json-color-settings
May 27, 2026
Merged

Expose color_settings.custom in design-theme-json#20
oxyc merged 1 commit into
masterfrom
theme-json-color-settings

Conversation

@oxyc

@oxyc oxyc commented May 27, 2026

Copy link
Copy Markdown
Member

design-theme-json now reports whether the theme permits custom (hex) colours and gradients beyond the palette (theme.json settings.color.custom / customGradient):

"color_settings": { "custom": false, "custom_gradient": true }

So consumers (e.g. the assistant's live editor) can tell when only palette slugs are valid instead of hardcoding or guessing it. Test asserts the flags are present + boolean.

design-theme-json now reports whether the theme permits custom (hex) colors and
gradients beyond the palette (theme.json settings.color.custom /
customGradient). Consumers (e.g. the assistant's live editor) can tell when only
palette slugs are valid instead of guessing or hardcoding it.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@oxyc oxyc merged commit d02ff10 into master May 27, 2026
2 checks passed
@oxyc oxyc deleted the theme-json-color-settings branch May 27, 2026 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant