[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CD5CB7WCRGT7Q9GWAJHJB2":3,"skill-same:01M6CD5CB7WCRGT7Q9GWAJHJB2":69},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":36,"linkOnly":37,"markdownContent":38,"markdownBody":39,"frontMatter":40,"refName":41,"commitSha":42,"skillDirectory":43,"forksCount":44,"repositoryHtmlUrl":45,"repositoryHomepageUrl":17,"ownerHtmlUrl":46,"ownerBlogUrl":47,"ownerDescription":17,"updatedAt":48,"install":49,"resources":62},"01M6CD5CB7WCRGT7Q9GWAJHJB2","wcag-audit-perceivable-color-contrast","WCAG 色彩对比度计算","Calculate WCAG contrast ratios for text and non-text elements","计算文本和非文本元素的 WCAG 对比度比率","Jkense\u002Fagent-skills-wcag","Jkense","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F44931777?v=4","01M6CD4YE9ZDK9FQ5RTQH178KA","Jasper Kense","01M6CD4YJ48WGRZXVJ2TGSQ90K",1,"MIT",null,"https:\u002F\u002Fgithub.com\u002FJkense\u002Fagent-skills-wcag\u002Fblob\u002Fmain\u002Fskills\u002Fwcag-audit-perceivable-color-contrast\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQMKHSMFVQHR2KYAEVN","界面设计师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C0KXSTFVNZCAY3CD7ATQM3","无障碍合规检查","SCENARIO","使用场景",[31,32,33,34,35],"audit","WCAG","wcag audit perceivable color contrast","text","calculate","2026-11-10 10:12:30",false,"---\nname: wcag-audit-perceivable-color-contrast\ndescription: Calculate WCAG contrast ratios for text and non-text elements\n---\n\n## When to Use\nUse this tool when checking color combinations for WCAG compliance, testing text readability, or validating non-text contrast ratios.\n\n## Usage\n\n### Command Line\n```bash\nnode scripts\u002Fcalculate.js --foreground \"#000000\" --background \"#FFFFFF\"\nnode scripts\u002Fcalculate.js --fg \"rgb(0,0,0)\" --bg \"rgb(255,255,255)\"\nnode scripts\u002Fcalculate.js --fg \"#FF0000\" --bg \"#00FF00\" --type \"non-text\"\n```\n\n### JSON Input\n```bash\nnode scripts\u002Fcalculate.js --json '{\"foreground\": \"#000000\", \"background\": \"#FFFFFF\"}'\n```\n\n### Parameters\n- `--foreground`, `--fg`: Foreground color (hex, rgb, hsl)\n- `--background`, `--bg`: Background color (hex, rgb, hsl)\n- `--type`: \"text\" (default) or \"non-text\"\n- `--json`: JSON input with color properties\n\n### Output\nReturns JSON with contrast ratio and WCAG compliance levels:\n\n```json\n{\n  \"contrastRatio\": 21.0,\n  \"compliance\": {\n    \"AA\": {\n      \"normal\": true,\n      \"large\": true\n    },\n    \"AAA\": {\n      \"normal\": true,\n      \"large\": true\n    }\n  },\n  \"colors\": {\n    \"foreground\": \"#000000\",\n    \"background\": \"#FFFFFF\"\n  }\n}\n```\n\n## Examples\n\n### Text Contrast Check\n```bash\n$ node scripts\u002Fcalculate.js --fg \"#000000\" --bg \"#FFFFFF\"\nContrast Ratio: 21.0:1\n✅ AA Large Text: PASS\n✅ AA Normal Text: PASS\n✅ AAA Large Text: PASS\n✅ AAA Normal Text: PASS\n```\n\n### Non-Text Contrast Check\n```bash\n$ node scripts\u002Fcalculate.js --fg \"#FF6B35\" --bg \"#F7F3E9\" --type \"non-text\"\nContrast Ratio: 3.2:1\n✅ Non-text contrast: PASS\n```\n\n## WCAG Standards\n\n- **Text AA**: 4.5:1 for normal text, 3:1 for large text (18pt+ or 14pt+ bold)\n- **Text AAA**: 7:1 for normal text, 4.5:1 for large text\n- **Non-text**: 3:1 minimum contrast ratio\n\n## Learn More\n\nFor more information about [Agent Skills](https:\u002F\u002Fagentskills.io\u002Fwhat-are-skills) and how they extend AI capabilities.","## When to Use\nUse this tool when checking color combinations for WCAG compliance, testing text readability, or validating non-text contrast ratios.\n\n## Usage\n\n### Command Line\n```bash\nnode scripts\u002Fcalculate.js --foreground \"#000000\" --background \"#FFFFFF\"\nnode scripts\u002Fcalculate.js --fg \"rgb(0,0,0)\" --bg \"rgb(255,255,255)\"\nnode scripts\u002Fcalculate.js --fg \"#FF0000\" --bg \"#00FF00\" --type \"non-text\"\n```\n\n### JSON Input\n```bash\nnode scripts\u002Fcalculate.js --json '{\"foreground\": \"#000000\", \"background\": \"#FFFFFF\"}'\n```\n\n### Parameters\n- `--foreground`, `--fg`: Foreground color (hex, rgb, hsl)\n- `--background`, `--bg`: Background color (hex, rgb, hsl)\n- `--type`: \"text\" (default) or \"non-text\"\n- `--json`: JSON input with color properties\n\n### Output\nReturns JSON with contrast ratio and WCAG compliance levels:\n\n```json\n{\n  \"contrastRatio\": 21.0,\n  \"compliance\": {\n    \"AA\": {\n      \"normal\": true,\n      \"large\": true\n    },\n    \"AAA\": {\n      \"normal\": true,\n      \"large\": true\n    }\n  },\n  \"colors\": {\n    \"foreground\": \"#000000\",\n    \"background\": \"#FFFFFF\"\n  }\n}\n```\n\n## Examples\n\n### Text Contrast Check\n```bash\n$ node scripts\u002Fcalculate.js --fg \"#000000\" --bg \"#FFFFFF\"\nContrast Ratio: 21.0:1\n✅ AA Large Text: PASS\n✅ AA Normal Text: PASS\n✅ AAA Large Text: PASS\n✅ AAA Normal Text: PASS\n```\n\n### Non-Text Contrast Check\n```bash\n$ node scripts\u002Fcalculate.js --fg \"#FF6B35\" --bg \"#F7F3E9\" --type \"non-text\"\nContrast Ratio: 3.2:1\n✅ Non-text contrast: PASS\n```\n\n## WCAG Standards\n\n- **Text AA**: 4.5:1 for normal text, 3:1 for large text (18pt+ or 14pt+ bold)\n- **Text AAA**: 7:1 for normal text, 4.5:1 for large text\n- **Non-text**: 3:1 minimum contrast ratio\n\n## Learn More\n\nFor more information about [Agent Skills](https:\u002F\u002Fagentskills.io\u002Fwhat-are-skills) and how they extend AI capabilities.",{"name":5,"description":7},"main","7fc6eec6adfe1b5509b9e022a163c0a70d6618b5","skills\u002Fwcag-audit-perceivable-color-contrast",0,"https:\u002F\u002Fgithub.com\u002FJkense\u002Fagent-skills-wcag","https:\u002F\u002Fgithub.com\u002FJkense","https:\u002F\u002Fwww.jasperkense.com\u002F","2026-01-19 23:32:34",{"source":9,"skillName":5,"commands":50,"prompt":60,"zipAvailable":61},[51,54,57],{"tool":52,"command":53},"npx","npx skills add Jkense\u002Fagent-skills-wcag --skill wcag-audit-perceivable-color-contrast",{"tool":55,"command":56},"bunx","bunx skills add Jkense\u002Fagent-skills-wcag --skill wcag-audit-perceivable-color-contrast",{"tool":58,"command":59},"pnpm","pnpm dlx skills add Jkense\u002Fagent-skills-wcag --skill wcag-audit-perceivable-color-contrast","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FJkense\u002Fagent-skills-wcag\u002Fblob\u002Fmain\u002Fskills\u002Fwcag-audit-perceivable-color-contrast\u002FSKILL.md",true,[63],{"path":64,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":67,"sourceHtmlUrl":68},"scripts\u002Fcalculate.js","SCRIPT","脚本",5220,"https:\u002F\u002Fgithub.com\u002FJkense\u002Fagent-skills-wcag\u002Fblob\u002Fmain\u002Fskills\u002Fwcag-audit-perceivable-color-contrast\u002Fscripts\u002Fcalculate.js",[70,85,100,114,128,140],{"skillNo":71,"name":72,"nameZh":73,"description":74,"descriptionZh":75,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":76,"categories":77,"keywords":80,"publishedAt":36},"01M6CD5Y5BQZP9HA5JM9D0AP0J","wcag-audit-understandable-forms","表单输入无障碍审计","Route form input and data collection accessibility requirements","路由表单输入与数据收集的无障碍需求","https:\u002F\u002Fgithub.com\u002FJkense\u002Fagent-skills-wcag\u002Fblob\u002Fmain\u002Fskills\u002Fwcag-audit-understandable-forms\u002FSKILL.md",[78,79],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[81,32,31,82,83,84],"wcag audit understandable forms","data","collection","accessibility",{"skillNo":86,"name":87,"nameZh":88,"description":89,"descriptionZh":90,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":91,"categories":92,"keywords":95,"publishedAt":36},"01M6CD5WEYJVXV3J612QNT4V2E","wcag-audit-understandable-forms-deep","表单设计无障碍深度审计","Form design accessibility rules for user input and data collection","面向用户输入与数据收集的表单设计无障碍规则","https:\u002F\u002Fgithub.com\u002FJkense\u002Fagent-skills-wcag\u002Fblob\u002Fmain\u002Fskills\u002Fwcag-audit-understandable-forms-deep\u002FSKILL.md",[93,94],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[96,32,31,97,98,83,82,84,99],"wcag audit understandable forms deep","user","Rules","design",{"skillNo":101,"name":102,"nameZh":103,"description":104,"descriptionZh":105,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":106,"categories":107,"keywords":110,"publishedAt":36},"01M6CD5TJRRHTRVNK3VFRHVMTX","wcag-audit-perceivable-text","文本排版无障碍设计审计","Route typography accessibility design decisions and requirements","路由排版无障碍设计决策与需求","https:\u002F\u002Fgithub.com\u002FJkense\u002Fagent-skills-wcag\u002Fblob\u002Fmain\u002Fskills\u002Fwcag-audit-perceivable-text\u002FSKILL.md",[108,109],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[111,34,32,31,112,113,84,99],"wcag audit perceivable text","typography","decisions",{"skillNo":115,"name":116,"nameZh":117,"description":118,"descriptionZh":119,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":120,"categories":121,"keywords":124,"publishedAt":36},"01M6CD5RJBBE74VF2XDA88PYBA","wcag-audit-perceivable-text-size","字体单位无障碍换算","Convert between px, pt, em, rem units with accessibility context","结合无障碍上下文，在 px、pt、em、rem 单位之间进行转换","https:\u002F\u002Fgithub.com\u002FJkense\u002Fagent-skills-wcag\u002Fblob\u002Fmain\u002Fskills\u002Fwcag-audit-perceivable-text-size\u002FSKILL.md",[122,123],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[125,34,32,31,84,126,127],"wcag audit perceivable text size","context","convert",{"skillNo":129,"name":130,"nameZh":131,"description":132,"descriptionZh":133,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":134,"categories":135,"keywords":138,"publishedAt":36},"01M6CD5PHW0BWTXETYCCEB8F6W","wcag-audit-perceivable-text-deep","文本排版无障碍深度审计","Comprehensive typography accessibility rules for text design and readability","面向文本设计与可读性的全面排版无障碍规则","https:\u002F\u002Fgithub.com\u002FJkense\u002Fagent-skills-wcag\u002Fblob\u002Fmain\u002Fskills\u002Fwcag-audit-perceivable-text-deep\u002FSKILL.md",[136,137],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[32,31,34,139,99,84,98,112],"wcag audit perceivable text deep",{"skillNo":141,"name":142,"nameZh":143,"description":144,"descriptionZh":145,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":146,"categories":147,"keywords":152,"publishedAt":36},"01M6CD5N1KA8EBEP98VATEFFKY","wcag-audit-perceivable-media","音视频多媒体无障碍审计","Route audio, video, and multimedia accessibility requirements","路由音频、视频和多媒体无障碍需求","https:\u002F\u002Fgithub.com\u002FJkense\u002Fagent-skills-wcag\u002Fblob\u002Fmain\u002Fskills\u002Fwcag-audit-perceivable-media\u002FSKILL.md",[148,151],{"categoryNo":149,"categoryName":150,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD5WG86P4AQ5GPSSKBFR","测试工程师",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[31,153,32,154,84,155,156],"wcag audit perceivable media","Media","Video","Audio"]