[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AVB6VNNQTNEB9B9KDW1Z5C":3,"skill-same:01M7AVB6VNNQTNEB9B9KDW1Z5C":81},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":32,"ownerHtmlUrl":33,"ownerBlogUrl":34,"ownerDescription":35,"updatedAt":36,"install":37,"resources":50},"01M7AVB6VNNQTNEB9B9KDW1Z5C","ui-color",null,"bonc-ai\u002Fcogseed","bonc-ai","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F313335383?v=4","01M7AV826PEZKTFGW9MCPBERA7","东方国信 BONC","01M7AV827DEZPMD30Y94T1ZFKQ",19,"MIT","https:\u002F\u002Fgithub.com\u002Fbonc-ai\u002Fcogseed\u002Fblob\u002Fmain\u002Fresources\u002Fbuiltin\u002Fmarketplace\u002Fagents\u002Fbcfcb4921dce\u002Fskills\u002Fui-color\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nownerAgent: bcfcb4921dce\nname: ui-color\ndescription_zh: \"构建和审查 UI 配色，覆盖 OKLCH\u002FOKLAB、调色板、语义色、对比度、图表色、暗色模式和可访问性色彩规则。\"\ndescription_en: \"Build and review UI color systems across OKLCH\u002FOKLAB, palettes, semantic color, contrast, chart color, dark mode, and accessible color rules.\"\ncategory: rnd\n---\n\n# ui-color\n\nUse this skill when creating or reviewing palettes, contrast, semantic color, dark mode, or chart colors. It adapts Color Expert-style color reasoning into practical UI work.\n\n## Color Roles First\n\nStart with roles before choosing hues:\n\n- `bg`: page background.\n- `surface`: panels, rows, cards, inputs.\n- `surface-raised`: dialogs, menus, popovers.\n- `text`: primary content.\n- `text-muted`: metadata and helper text.\n- `border`: dividers, input outlines, table rules.\n- `accent`: primary action, selection, active state.\n- `focus`: visible keyboard focus.\n- `danger`, `warning`, `success`, `info`: semantic states.\n- `chart-*`: data series, separate from action colors.\n\nDo not use the same accent for primary action, warning, and chart series.\n\n## OKLCH And Perceptual Rules\n\nWhen authoring new palettes:\n\n- Prefer OKLCH\u002FOKLAB reasoning for even lightness and chroma steps.\n- Keep neutral surfaces low-chroma.\n- Use accent chroma deliberately; high chroma should be rare in work tools.\n- Build light and dark variants by role, not by automatic inversion.\n- Keep semantic colors distinct in hue and lightness.\n\nWhen the codebase uses hex, HSL, RGB, or CSS variables, implement in the local format while preserving the role logic.\n\n## Contrast Rules\n\nCheck contrast for:\n\n- Body text on page and panel backgrounds.\n- Muted text on surfaces.\n- Buttons in default, hover, pressed, and disabled states.\n- Inputs, focus rings, and validation messages.\n- Table row selection and hover.\n- Status chips and alerts.\n- Chart labels and legends.\n\nDo not rely on color alone for state. Pair semantic colors with text, icon shape, position, or pattern.\n\n## Palette Construction\n\nFor product UI:\n\n- Use 1 primary accent.\n- Add at most 1 secondary accent unless data visualization requires more.\n- Keep neutral scale broad enough for hierarchy.\n- Keep borders visible but quiet.\n- Reserve saturated colors for action, selection, and status.\n\nFor dashboards:\n\n- Separate categorical chart colors from UI actions.\n- Avoid too many similar blues or purples.\n- Make critical alerts readable in both color and text.\n\nFor brand\u002Feditorial pages:\n\n- Color may be more expressive, but the product\u002Fplace\u002Fobject must stay inspectable.\n\n## Dark Mode\n\nDark mode is not inverted light mode:\n\n- Raise surfaces through lightness differences, not heavy shadows.\n- Keep text contrast high without pure white everywhere.\n- Lower accent chroma if it blooms.\n- Re-check semantic colors; red and yellow often need separate dark-mode values.\n\n## Review Output\n\nWhen reporting color decisions:\n\n- List role tokens.\n- Explain accent and semantic usage.\n- Note contrast risks.\n- Note one-hue or over-saturation risks.\n- State whether chart\u002Fdata colors are separate from action colors.\n","# ui-color\n\nUse this skill when creating or reviewing palettes, contrast, semantic color, dark mode, or chart colors. It adapts Color Expert-style color reasoning into practical UI work.\n\n## Color Roles First\n\nStart with roles before choosing hues:\n\n- `bg`: page background.\n- `surface`: panels, rows, cards, inputs.\n- `surface-raised`: dialogs, menus, popovers.\n- `text`: primary content.\n- `text-muted`: metadata and helper text.\n- `border`: dividers, input outlines, table rules.\n- `accent`: primary action, selection, active state.\n- `focus`: visible keyboard focus.\n- `danger`, `warning`, `success`, `info`: semantic states.\n- `chart-*`: data series, separate from action colors.\n\nDo not use the same accent for primary action, warning, and chart series.\n\n## OKLCH And Perceptual Rules\n\nWhen authoring new palettes:\n\n- Prefer OKLCH\u002FOKLAB reasoning for even lightness and chroma steps.\n- Keep neutral surfaces low-chroma.\n- Use accent chroma deliberately; high chroma should be rare in work tools.\n- Build light and dark variants by role, not by automatic inversion.\n- Keep semantic colors distinct in hue and lightness.\n\nWhen the codebase uses hex, HSL, RGB, or CSS variables, implement in the local format while preserving the role logic.\n\n## Contrast Rules\n\nCheck contrast for:\n\n- Body text on page and panel backgrounds.\n- Muted text on surfaces.\n- Buttons in default, hover, pressed, and disabled states.\n- Inputs, focus rings, and validation messages.\n- Table row selection and hover.\n- Status chips and alerts.\n- Chart labels and legends.\n\nDo not rely on color alone for state. Pair semantic colors with text, icon shape, position, or pattern.\n\n## Palette Construction\n\nFor product UI:\n\n- Use 1 primary accent.\n- Add at most 1 secondary accent unless data visualization requires more.\n- Keep neutral scale broad enough for hierarchy.\n- Keep borders visible but quiet.\n- Reserve saturated colors for action, selection, and status.\n\nFor dashboards:\n\n- Separate categorical chart colors from UI actions.\n- Avoid too many similar blues or purples.\n- Make critical alerts readable in both color and text.\n\nFor brand\u002Feditorial pages:\n\n- Color may be more expressive, but the product\u002Fplace\u002Fobject must stay inspectable.\n\n## Dark Mode\n\nDark mode is not inverted light mode:\n\n- Raise surfaces through lightness differences, not heavy shadows.\n- Keep text contrast high without pure white everywhere.\n- Lower accent chroma if it blooms.\n- Re-check semantic colors; red and yellow often need separate dark-mode values.\n\n## Review Output\n\nWhen reporting color decisions:\n\n- List role tokens.\n- Explain accent and semantic usage.\n- Note contrast risks.\n- Note one-hue or over-saturation risks.\n- State whether chart\u002Fdata colors are separate from action colors.\n",{"name":5,"category":23,"ownerAgent":24,"description_en":25,"description_zh":26},"rnd","bcfcb4921dce","Build and review UI color systems across OKLCH\u002FOKLAB, palettes, semantic color, contrast, chart color, dark mode, and accessible color rules.","构建和审查 UI 配色，覆盖 OKLCH\u002FOKLAB、调色板、语义色、对比度、图表色、暗色模式和可访问性色彩规则。","main","6afb98b7a438d4b993ba23f3af1494c862d80378","resources\u002Fbuiltin\u002Fmarketplace\u002Fagents\u002Fbcfcb4921dce\u002Fskills\u002Fui-color",10,"https:\u002F\u002Fgithub.com\u002Fbonc-ai\u002Fcogseed","https:\u002F\u002Fcogseed.ai","https:\u002F\u002Fgithub.com\u002Fbonc-ai","https:\u002F\u002Fwww.bonc.com.cn\u002F","北京东方国信科技股份有限公司开源组织 · Enterprise open source by BONC","2026-11-13 21:46:31",{"source":7,"skillName":5,"commands":38,"prompt":48,"zipAvailable":49},[39,42,45],{"tool":40,"command":41},"npx","npx skills add bonc-ai\u002Fcogseed --skill ui-color",{"tool":43,"command":44},"bunx","bunx skills add bonc-ai\u002Fcogseed --skill ui-color",{"tool":46,"command":47},"pnpm","pnpm dlx skills add bonc-ai\u002Fcogseed --skill ui-color","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fbonc-ai\u002Fcogseed\u002Fblob\u002Fmain\u002Fresources\u002Fbuiltin\u002Fmarketplace\u002Fagents\u002Fbcfcb4921dce\u002Fskills\u002Fui-color\u002FSKILL.md",true,[51,57,61,65,69,73,77],{"path":52,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":55,"sourceHtmlUrl":56},"artifact.yaml","REFERENCE","参考文档",736,"https:\u002F\u002Fgithub.com\u002Fbonc-ai\u002Fcogseed\u002Fblob\u002Fmain\u002Fresources\u002Fbuiltin\u002Fmarketplace\u002Fagents\u002Fbcfcb4921dce\u002Fskills\u002Fui-color\u002Fartifact.yaml",{"path":58,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":59,"sourceHtmlUrl":60},"evals\u002Fevals.json",245,"https:\u002F\u002Fgithub.com\u002Fbonc-ai\u002Fcogseed\u002Fblob\u002Fmain\u002Fresources\u002Fbuiltin\u002Fmarketplace\u002Fagents\u002Fbcfcb4921dce\u002Fskills\u002Fui-color\u002Fevals\u002Fevals.json",{"path":62,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":63,"sourceHtmlUrl":64},"references\u002Fbusiness-ontology.yaml",63,"https:\u002F\u002Fgithub.com\u002Fbonc-ai\u002Fcogseed\u002Fblob\u002Fmain\u002Fresources\u002Fbuiltin\u002Fmarketplace\u002Fagents\u002Fbcfcb4921dce\u002Fskills\u002Fui-color\u002Freferences\u002Fbusiness-ontology.yaml",{"path":66,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":67,"sourceHtmlUrl":68},"references\u002Fsecurity-manifest.yaml",2318,"https:\u002F\u002Fgithub.com\u002Fbonc-ai\u002Fcogseed\u002Fblob\u002Fmain\u002Fresources\u002Fbuiltin\u002Fmarketplace\u002Fagents\u002Fbcfcb4921dce\u002Fskills\u002Fui-color\u002Freferences\u002Fsecurity-manifest.yaml",{"path":70,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":71,"sourceHtmlUrl":72},"references\u002Fskill-spec.yaml",316,"https:\u002F\u002Fgithub.com\u002Fbonc-ai\u002Fcogseed\u002Fblob\u002Fmain\u002Fresources\u002Fbuiltin\u002Fmarketplace\u002Fagents\u002Fbcfcb4921dce\u002Fskills\u002Fui-color\u002Freferences\u002Fskill-spec.yaml",{"path":74,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":75,"sourceHtmlUrl":76},"references\u002Fvalidation-contract.yaml",49,"https:\u002F\u002Fgithub.com\u002Fbonc-ai\u002Fcogseed\u002Fblob\u002Fmain\u002Fresources\u002Fbuiltin\u002Fmarketplace\u002Fagents\u002Fbcfcb4921dce\u002Fskills\u002Fui-color\u002Freferences\u002Fvalidation-contract.yaml",{"path":78,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":79,"sourceHtmlUrl":80},"schemas.json",40,"https:\u002F\u002Fgithub.com\u002Fbonc-ai\u002Fcogseed\u002Fblob\u002Fmain\u002Fresources\u002Fbuiltin\u002Fmarketplace\u002Fagents\u002Fbcfcb4921dce\u002Fskills\u002Fui-color\u002Fschemas.json",[82,89,96,103,110,117],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":18},"01M7AVTAEJDDZ3YFV85AK28FWN","sample-supply-chain","供应链样本：安装钩子 + 拼写伪装 + 源覆盖。","https:\u002F\u002Fgithub.com\u002Fbonc-ai\u002Fcogseed\u002Fblob\u002Fmain\u002Fresources\u002Fguardrail\u002Fskill-sentry\u002Ftests\u002Ffixtures\u002Fv2-samples\u002Fsample-supply-chain-skill\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":18},"01M7AVT84YQ5GZDMB9PRTEBV8V","sample-prose-only","纯散文安全守则样本：禁止某行为的说明不等于该行为。","https:\u002F\u002Fgithub.com\u002Fbonc-ai\u002Fcogseed\u002Fblob\u002Fmain\u002Fresources\u002Fguardrail\u002Fskill-sentry\u002Ftests\u002Ffixtures\u002Fv2-samples\u002Fsample-prose-only-skill\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":18},"01M7AVT59NWX4M2EZJKRXMEPGB","sample-obfuscated","混淆载荷样本：解码与执行共现。","https:\u002F\u002Fgithub.com\u002Fbonc-ai\u002Fcogseed\u002Fblob\u002Fmain\u002Fresources\u002Fguardrail\u002Fskill-sentry\u002Ftests\u002Ffixtures\u002Fv2-samples\u002Fsample-obfuscated-skill\u002FSKILL.md",[],[],{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":18},"01M7AVT246DRNSJ5D9JQRK4QKP","sample-hidden-content","隐藏内容载荷样本：用于回归「不可见字符不做上下文降权」这一不变量。","https:\u002F\u002Fgithub.com\u002Fbonc-ai\u002Fcogseed\u002Fblob\u002Fmain\u002Fresources\u002Fguardrail\u002Fskill-sentry\u002Ftests\u002Ffixtures\u002Fv2-samples\u002Fsample-hidden-content-skill\u002FSKILL.md",[],[],{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":18},"01M7AVSYR91DFC262VQ23BAZA1","sample-evasion","反规避样本：危险内容只以「不可见字符切断」与「编码后」两种形式出现。","https:\u002F\u002Fgithub.com\u002Fbonc-ai\u002Fcogseed\u002Fblob\u002Fmain\u002Fresources\u002Fguardrail\u002Fskill-sentry\u002Ftests\u002Ffixtures\u002Fv2-samples\u002Fsample-evasion-skill\u002FSKILL.md",[],[],{"skillNo":118,"name":119,"nameZh":6,"description":120,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":121,"categories":122,"keywords":123,"publishedAt":18},"01M7AVSVMGH458JZC3Q454QWTK","sample-agentic","代理运行时风险样本：配置篡改 + 隐蔽指令。","https:\u002F\u002Fgithub.com\u002Fbonc-ai\u002Fcogseed\u002Fblob\u002Fmain\u002Fresources\u002Fguardrail\u002Fskill-sentry\u002Ftests\u002Ffixtures\u002Fv2-samples\u002Fsample-agentic-skill\u002FSKILL.md",[],[]]