maket_charte
Manage brand style guides (chartes) to keep design tokens, voice, and rules consistent across HTML pages: list, view, create, overwrite, or delete them.
Instructions
When to use: manage brand style guides (chartes). view is a prerequisite for any charte-aware HTML edit — it returns the context_token required by maket_html set/patch.
Design tokens become CSS variables (--charte-color-primary, etc.) injected into every page. Voice and rules guide content composition. maket_mermaid automatically consumes canonical diagram tokens and documented fallbacks from color/font groups; its tokenRefs option can target any existing safe token explicitly. list — list all chartes with a short colour-palette preview. view — read one charte; returns tokens, voice, rules, and context_token. set — create or overwrite a charte. delete — remove a charte.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Required for view/set/delete. Unique charte name. | |
| rules | No | For set: composition rules (titles, photos, layout). Extra keys allowed. | |
| voice | No | For set: voice guidelines (personality, formality, do/dont, vocabulary, examples). | |
| action | Yes | Operation to run. See the tool description for the action table. | |
| tokens | No | For set: design tokens grouped by category. Become CSS variables --charte-<group>-<key>. Diagram roles can use a canonical "diagram" group (bg, fg, line, accent, muted, surface, border, font, padding, nodeSpacing, layerSpacing, transparent). Example: {"color":{"primary":"#2563EB"},"font":{"body":"Montserrat"},"diagram":{"surface":"#EFF6FF","nodeSpacing":"32px"}}. | |
| description | No | For set: one-line human description. |