{"name":"site_design_system","title":"Настроить цвета и типографику","section":"Контент и оформление","mode":"write","url":"/tools/site_design_system","blurb":"Готовит и хранит правила оформления, включая шрифты, цвета, кнопки и мобильные состояния.","aliases":"","kind":"Инструмент","examples":[{"label":"Рабочая задача","prompt":"Подготовь тёмную тему для ателье с синими кнопками и читабельными подписями. Покажи CSS для кнопки, поля и состояния клавиатурного фокуса.","check":"Готовит и хранит правила оформления, включая шрифты, цвета, кнопки и мобильные состояния."},{"label":"Выбрать режим","prompt":"Для задачи «Настроить цвета и типографику» сравни режимы contract и get инструмента site_design_system. Какой подойдёт в моём случае и какие данные нужно подготовить?","check":"Сопоставить два режима и их аргументы."},{"label":"После сбоя","prompt":"При выполнении «Настроить цвета и типографику» связь прервалась после отправки. Для site_design_system проверь исходный ключ операции и текущее состояние объекта перед решением о повторе.","check":"Сопоставить результат с исходной операцией."}],"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","oneOf":[{"type":"object","properties":{"operation":{"type":"string","const":"contract"},"siteId":{"type":"string","pattern":"^[A-Za-z0-9_~:@+.-]{1,128}$"}},"required":["operation","siteId"],"additionalProperties":false},{"type":"object","properties":{"operation":{"type":"string","const":"get"},"siteId":{"type":"string","pattern":"^[A-Za-z0-9_~:@+.-]{1,128}$"}},"required":["operation","siteId"],"additionalProperties":false},{"type":"object","properties":{"operation":{"type":"string","const":"generate"},"siteId":{"type":"string","pattern":"^[A-Za-z0-9_~:@+.-]{1,128}$"},"name":{"type":"string","minLength":1,"maxLength":100},"primary":{"type":"string","pattern":"^#[a-fA-F0-9]{6}$"},"background":{"default":"#ffffff","type":"string","pattern":"^#[a-fA-F0-9]{6}$"},"text":{"default":"#181818","type":"string","pattern":"^#[a-fA-F0-9]{6}$"},"bodyFont":{"default":"system-ui, sans-serif","type":"string","pattern":"^[A-Za-z0-9 ,'-]{1,100}$"},"headingFont":{"default":"system-ui, sans-serif","type":"string","pattern":"^[A-Za-z0-9 ,'-]{1,100}$"},"style":{"default":"precise","type":"string","enum":["precise","soft","editorial"]},"expectedRevision":{"type":"integer","minimum":0,"maximum":9007199254740991},"idempotencyKey":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,128}$"}},"required":["operation","siteId","name","primary","background","text","bodyFont","headingFont","style","expectedRevision","idempotencyKey"],"additionalProperties":false},{"type":"object","properties":{"operation":{"type":"string","const":"save"},"siteId":{"type":"string","pattern":"^[A-Za-z0-9_~:@+.-]{1,128}$"},"tokens":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"colors":{"type":"object","properties":{"background":{"type":"string","pattern":"^#[a-fA-F0-9]{6}$"},"surface":{"type":"string","pattern":"^#[a-fA-F0-9]{6}$"},"text":{"type":"string","pattern":"^#[a-fA-F0-9]{6}$"},"muted":{"type":"string","pattern":"^#[a-fA-F0-9]{6}$"},"primary":{"type":"string","pattern":"^#[a-fA-F0-9]{6}$"},"onPrimary":{"type":"string","pattern":"^#[a-fA-F0-9]{6}$"},"border":{"type":"string","pattern":"^#[a-fA-F0-9]{6}$"}},"required":["background","surface","text","muted","primary","onPrimary","border"],"additionalProperties":false},"typography":{"type":"object","properties":{"body":{"type":"string","pattern":"^[A-Za-z0-9 ,'-]{1,100}$"},"heading":{"type":"string","pattern":"^[A-Za-z0-9 ,'-]{1,100}$"},"basePx":{"type":"integer","minimum":14,"maximum":22},"headingScale":{"type":"number","minimum":1.1,"maximum":1.6}},"required":["body","heading","basePx","headingScale"],"additionalProperties":false},"layout":{"type":"object","properties":{"maxWidthPx":{"type":"integer","minimum":800,"maximum":1800},"gapPx":{"type":"integer","minimum":8,"maximum":48},"mobileBreakpointPx":{"type":"integer","minimum":480,"maximum":900},"columns":{"type":"integer","minimum":2,"maximum":12}},"required":["maxWidthPx","gapPx","mobileBreakpointPx","columns"],"additionalProperties":false},"components":{"type":"object","properties":{"radiusPx":{"type":"integer","minimum":0,"maximum":40},"buttonMinHeightPx":{"type":"integer","minimum":44,"maximum":64},"cardPaddingPx":{"type":"integer","minimum":12,"maximum":48}},"required":["radiusPx","buttonMinHeightPx","cardPaddingPx"],"additionalProperties":false},"motion":{"type":"object","properties":{"durationMs":{"type":"integer","minimum":0,"maximum":500},"easing":{"type":"string","enum":["ease","ease-out","ease-in-out","linear"]}},"required":["durationMs","easing"],"additionalProperties":false}},"required":["name","colors","typography","layout","components","motion"],"additionalProperties":false},"expectedRevision":{"type":"integer","minimum":0,"maximum":9007199254740991},"idempotencyKey":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,128}$"}},"required":["operation","siteId","tokens","expectedRevision","idempotencyKey"],"additionalProperties":false},{"type":"object","properties":{"operation":{"type":"string","const":"check"},"siteId":{"type":"string","pattern":"^[A-Za-z0-9_~:@+.-]{1,128}$"},"versionId":{"type":"string","pattern":"^[A-Za-z0-9_~:@+.-]{1,128}$"}},"required":["operation","siteId","versionId"],"additionalProperties":false}]},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"},"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}},"argumentExample":{"operation":"contract","siteId":"site_demo"}}