> Agent-readable docs index: /llms.txt. Download /docs.zip to grep all markdown files locally.

---
title: "manageColorStyle"
sidebarTitle: "manageColorStyle"
description: "Creates or updates a color style in the project. The style path must start with \"/\" and can include folder structure (e.g., \"/Brand/Primary\"). The display name will be automatically derived from the l"
tag: "TOOL"
tagColor: "purple"
gridGap: 30
---

<Aside full>
  <RequestExample>
    ```json lines=false
    {
      "method": "tools/call",
      "params": {
        "name": "manageColorStyle",
        "arguments": {
          "type": "create",
          "stylePath": "string",
          "properties": {
            "name": "string",
            "light": "string",
            "dark": "string"
          }
        }
      }
    }
    ```
  </RequestExample>
</Aside>

<MCPTool {...{"name":"manageColorStyle","description":"Creates or updates a color style in the project.\n\nThe style path must start with \"/\" and can include folder structure (e.g., \"/Brand/Primary\").\nThe display name will be automatically derived from the last segment of the path.\nFor example, \"/Brand/Primary\" will create a style named \"Primary\" in the \"Brand\" folder.\n\n- When type is \"create\": Creates a new color style. Will fail if style already exists.\n- When type is \"update\": Updates an existing color style. Will fail if style doesn't exist.\n\nAfter creating, you can reference this style in XML nodes using color=\"/path/to/style\".","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"type":{"type":"string","enum":["create","update"],"description":"Operation type: \"create\" to make a new style, \"update\" to modify an existing style"},"stylePath":{"type":"string","description":"The path of the color style. Must start with /. The name is derived from the last path segment."},"properties":{"type":"object","properties":{"name":{"description":"The display name of the color style","type":"string"},"light":{"description":"Light theme color in any CSS color format (e.g., \"rgb(255, 0, 0)\", \"#FF0000\", \"red\")","type":"string"},"dark":{"description":"Dark theme color in any CSS color format, or null to remove dark variant","anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false,"description":"Properties for the color style. For create, light color is required. For update, only specified properties will be changed."}},"required":["type","stylePath","properties"],"additionalProperties":false},"annotations":{"idempotentHint":true}}} />
