[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6F5N27D9TYFK4ZTVBCDS9JY":3,"skill-same:01M6F5N27D9TYFK4ZTVBCDS9JY":84},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":44,"linkOnly":45,"markdownContent":46,"markdownBody":47,"frontMatter":48,"refName":33,"commitSha":58,"skillDirectory":59,"forksCount":60,"repositoryHtmlUrl":61,"repositoryHomepageUrl":6,"ownerHtmlUrl":62,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":63,"install":64,"resources":77},"01M6F5N27D9TYFK4ZTVBCDS9JY","design-token-contrast",null,"Checks WCAG 2.2 contrast between the color tokens of a project (light and dark theme) and suggests the closest passing color that keeps the hue.","boisenoise\u002Fskills-collections","boisenoise","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F193180?v=4","01M6CDBDQK6BDN55ZMA6B6PKBM","01M6CDBDVSJ3JPTBYN26FZ7TZK",13,"MIT","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-design-token-contrast\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43],"design","design token","design token contrast","contrast","token","2026","frontend","dark","mode","dark-mode","design-tokens","theme","color","tokens","project","main","community","cursor","WCAG","https","license","code","github","gemini","safe","css","2026-11-10 10:12:30",false,"---\nname: design-token-contrast\ndescription: \"Checks WCAG 2.2 contrast between the color tokens of a project (light and dark theme) and suggests the closest passing color that keeps the hue.\"\ncategory: frontend\nrisk: safe\nsource: community\nsource_repo: Clagoss\u002Fclaude-code-para-disenadores\nsource_type: community\ndate_added: \"2026-10-19\"\nauthor: Clagoss\ntags: [accessibility, wcag, contrast, design-tokens, css, dark-mode]\ntools: [claude, cursor, gemini]\nlicense: \"MIT\"\nlicense_source: \"https:\u002F\u002Fgithub.com\u002FClagoss\u002Fclaude-code-para-disenadores\u002Fblob\u002Fmain\u002FLICENSE\"\n---\n\n# Design Token Contrast\n\n## Overview\n\nMeasures contrast on the **tokens**, not on screens: a problem fixed in a token is fixed\neverywhere it is used. A Node checker, shipped as source in\n[references\u002Fcontraste-checker.md](references\u002Fcontraste-checker.md), reads the CSS custom properties\nof the project, pairs text tokens with background tokens, measures each pair in the light theme\nand in dark mode, and, for every pair that fails, proposes the color with the same hue and the\nnearest lightness that passes. It also proposes **one value per token** that passes against every\nbackground it is measured on, so the fix is a single change.\n\nWCAG 2.2 AA minimums it applies: normal text **4.5:1** (1.4.3), large text **3:1**, and UI\ncomponents and graphics such as input borders, icons and focus rings **3:1** (1.4.11).\n\n## When to Use This Skill\n\n- Use when the palette changes, a color is added, or a light or dark theme is about to be approved.\n- Use when the user asks whether a text color is readable on its background.\n- Use when an accessibility audit flags contrast and you want the fix at the token level.\n\n## How It Works\n\n### Step 1: Run the measurement\n\nThe checker ships as source, not as a committed script: save the JavaScript block in\n[references\u002Fcontraste-checker.md](references\u002Fcontraste-checker.md) as `contraste.mjs` in a\nscratch directory (no dependencies, Node 18+), then run it:\n\n```bash\nnode contraste.mjs --tokens src\u002Fstyles\u002Ftokens.css\n```\n\nWithout `--tokens` it looks for `src\u002Fstyles\u002Ftokens.css` and other common locations. The script:\n\n- Reads `--color-*` variables in hex, `rgb()`, `hsl()` or `oklch()`, resolves `var(--other)`, and\n  separates the default theme from dark mode (`prefers-color-scheme: dark`, `.dark` or\n  `[data-theme=dark]`).\n- Pairs tokens by name: text tokens (`text`, `foreground`, `link`, `focus`…) over background tokens\n  (`background`, `bg`, `surface`, `card`, `canvas`…). Spanish token names (`texto`, `fondo`,\n  `superficie`, `tarjeta`) are recognized too.\n- Prints `OK` or `NO` per pair, with the ratio, the minimum and the suggestion.\n\nIf token names do not follow that pattern, write the real pairs to a JSON file and pass it with\n`--pares` (the keys are `texto`, `fondo` and `tipo`, where `tipo` is `texto` or `ui`):\n\n```json\n[{\"texto\": \"--color-gray-500\", \"fondo\": \"--color-white\", \"tipo\": \"texto\"},\n {\"texto\": \"--color-input-border\", \"fondo\": \"--color-white\", \"tipo\": \"ui\"}]\n```\n\nTo explore a new palette, `--todos` measures every color against every other. `--json out.json`\nwrites the results for further processing. The script's output is in Spanish; ratios and token\nnames read the same in any language.\n\n### Step 2: Check what the script cannot see\n\n- Text over **images or gradients**: capture the section and check the worst spot.\n- Text with **opacity**, or colors hard-coded outside the tokens (search for `#[0-9a-fA-F]{3,8}`,\n  `rgb(`, `text-[#`).\n- States: `hover`, `disabled` (exempt, but still distinguishable), and placeholders that carry\n  information.\n\n### Step 3: Report and propose\n\n| Pair | Now | Minimum | Suggestion | Where it is used |\n|---|---|---|---|---|\n\nSearch for the classes and `var(--color-...)` references to fill \"where it is used\".\n\n## Examples\n\n### Example 1: A gray that fails on white\n\n```text\n== tema claro (por defecto): 4 colores leídos ==\n  NO  3.54:1 (mín. 4.5) --color-text #888888 sobre --color-background #ffffff\n       sugerencia para --color-text: oklch(56.2% 0.000 89.9) (#757575) → 4.62:1\n```\n\nPropose `#767676` for `--color-text` (the single value that passes on all its backgrounds), apply\nit only after the user agrees, and run the script again to show it passes.\n\n## Best Practices\n\n- ✅ Fix the token once instead of patching each screen.\n- ✅ Offer options: darken the token, keep the color only for large text, or add a new token\n  (`--color-accent-text`) for small text and keep the original for fills and borders.\n- ❌ Don't change brand colors without asking.\n- ❌ Don't report a theme as passing without checking dark mode too.\n\n## Limitations\n\n- It measures tokens, not rendered pixels: images, gradients and opacity need a visual check.\n- Pairing by name is a heuristic; use `--pares` when names are unconventional.\n- This skill does not replace environment-specific validation, testing, or expert review.\n\n## Security & Safety Notes\n\n- The script only reads the CSS or JSON file you point it to and writes a file only with `--json`.\n  It makes no network requests and installs nothing. Requires Node 18+.\n- It never edits tokens by itself; changes are proposed and applied after the user approves.\n\n## Common Pitfalls\n\n- **Problem:** A dark-mode pair shows `OK` against the light background.\n  **Solution:** Make sure dark-mode variables live in a `prefers-color-scheme: dark`, `.dark` or\n  `[data-theme=dark]` block so the script can separate the themes.\n\n## Related Skills\n\n- `@wcag-audit-patterns` - For a full WCAG 2.2 audit beyond color contrast.\n\n## Parser and suggestion limits\n\nThis checker uses regular expressions rather than the browser CSS cascade: scoped selectors, specificity, nested rules, layers, imports and computed values can be misinterpreted. Review explicit pairs against computed rendered styles. A single suggestion is sought within each measured theme, not guaranteed across all themes or backgrounds. Lightness is searched on a discrete grid while chroma may be reduced; neither exact nearest color nor unchanged hue after sRGB clipping\u002Frounding is guaranteed. Re-measure the exact serialized color before applying it. Transparent backgrounds need their actual underlying composite; the checker refuses those pairs rather than assuming white.\n\nUnparsed tokens make coverage incomplete. The lightweight color parser is not a CSS validator and cannot certify color syntax or gamut mapping. Focus requirements also depend on state\u002Fcontext and other WCAG criteria. Read the source before running it on approved inputs; report output uses exclusive private file creation and will fail if the destination exists. No checker or rendered-page validation was executed during this review.\n","# Design Token Contrast\n\n## Overview\n\nMeasures contrast on the **tokens**, not on screens: a problem fixed in a token is fixed\neverywhere it is used. A Node checker, shipped as source in\n[references\u002Fcontraste-checker.md](references\u002Fcontraste-checker.md), reads the CSS custom properties\nof the project, pairs text tokens with background tokens, measures each pair in the light theme\nand in dark mode, and, for every pair that fails, proposes the color with the same hue and the\nnearest lightness that passes. It also proposes **one value per token** that passes against every\nbackground it is measured on, so the fix is a single change.\n\nWCAG 2.2 AA minimums it applies: normal text **4.5:1** (1.4.3), large text **3:1**, and UI\ncomponents and graphics such as input borders, icons and focus rings **3:1** (1.4.11).\n\n## When to Use This Skill\n\n- Use when the palette changes, a color is added, or a light or dark theme is about to be approved.\n- Use when the user asks whether a text color is readable on its background.\n- Use when an accessibility audit flags contrast and you want the fix at the token level.\n\n## How It Works\n\n### Step 1: Run the measurement\n\nThe checker ships as source, not as a committed script: save the JavaScript block in\n[references\u002Fcontraste-checker.md](references\u002Fcontraste-checker.md) as `contraste.mjs` in a\nscratch directory (no dependencies, Node 18+), then run it:\n\n```bash\nnode contraste.mjs --tokens src\u002Fstyles\u002Ftokens.css\n```\n\nWithout `--tokens` it looks for `src\u002Fstyles\u002Ftokens.css` and other common locations. The script:\n\n- Reads `--color-*` variables in hex, `rgb()`, `hsl()` or `oklch()`, resolves `var(--other)`, and\n  separates the default theme from dark mode (`prefers-color-scheme: dark`, `.dark` or\n  `[data-theme=dark]`).\n- Pairs tokens by name: text tokens (`text`, `foreground`, `link`, `focus`…) over background tokens\n  (`background`, `bg`, `surface`, `card`, `canvas`…). Spanish token names (`texto`, `fondo`,\n  `superficie`, `tarjeta`) are recognized too.\n- Prints `OK` or `NO` per pair, with the ratio, the minimum and the suggestion.\n\nIf token names do not follow that pattern, write the real pairs to a JSON file and pass it with\n`--pares` (the keys are `texto`, `fondo` and `tipo`, where `tipo` is `texto` or `ui`):\n\n```json\n[{\"texto\": \"--color-gray-500\", \"fondo\": \"--color-white\", \"tipo\": \"texto\"},\n {\"texto\": \"--color-input-border\", \"fondo\": \"--color-white\", \"tipo\": \"ui\"}]\n```\n\nTo explore a new palette, `--todos` measures every color against every other. `--json out.json`\nwrites the results for further processing. The script's output is in Spanish; ratios and token\nnames read the same in any language.\n\n### Step 2: Check what the script cannot see\n\n- Text over **images or gradients**: capture the section and check the worst spot.\n- Text with **opacity**, or colors hard-coded outside the tokens (search for `#[0-9a-fA-F]{3,8}`,\n  `rgb(`, `text-[#`).\n- States: `hover`, `disabled` (exempt, but still distinguishable), and placeholders that carry\n  information.\n\n### Step 3: Report and propose\n\n| Pair | Now | Minimum | Suggestion | Where it is used |\n|---|---|---|---|---|\n\nSearch for the classes and `var(--color-...)` references to fill \"where it is used\".\n\n## Examples\n\n### Example 1: A gray that fails on white\n\n```text\n== tema claro (por defecto): 4 colores leídos ==\n  NO  3.54:1 (mín. 4.5) --color-text #888888 sobre --color-background #ffffff\n       sugerencia para --color-text: oklch(56.2% 0.000 89.9) (#757575) → 4.62:1\n```\n\nPropose `#767676` for `--color-text` (the single value that passes on all its backgrounds), apply\nit only after the user agrees, and run the script again to show it passes.\n\n## Best Practices\n\n- ✅ Fix the token once instead of patching each screen.\n- ✅ Offer options: darken the token, keep the color only for large text, or add a new token\n  (`--color-accent-text`) for small text and keep the original for fills and borders.\n- ❌ Don't change brand colors without asking.\n- ❌ Don't report a theme as passing without checking dark mode too.\n\n## Limitations\n\n- It measures tokens, not rendered pixels: images, gradients and opacity need a visual check.\n- Pairing by name is a heuristic; use `--pares` when names are unconventional.\n- This skill does not replace environment-specific validation, testing, or expert review.\n\n## Security & Safety Notes\n\n- The script only reads the CSS or JSON file you point it to and writes a file only with `--json`.\n  It makes no network requests and installs nothing. Requires Node 18+.\n- It never edits tokens by itself; changes are proposed and applied after the user approves.\n\n## Common Pitfalls\n\n- **Problem:** A dark-mode pair shows `OK` against the light background.\n  **Solution:** Make sure dark-mode variables live in a `prefers-color-scheme: dark`, `.dark` or\n  `[data-theme=dark]` block so the script can separate the themes.\n\n## Related Skills\n\n- `@wcag-audit-patterns` - For a full WCAG 2.2 audit beyond color contrast.\n\n## Parser and suggestion limits\n\nThis checker uses regular expressions rather than the browser CSS cascade: scoped selectors, specificity, nested rules, layers, imports and computed values can be misinterpreted. Review explicit pairs against computed rendered styles. A single suggestion is sought within each measured theme, not guaranteed across all themes or backgrounds. Lightness is searched on a discrete grid while chroma may be reduced; neither exact nearest color nor unchanged hue after sRGB clipping\u002Frounding is guaranteed. Re-measure the exact serialized color before applying it. Transparent backgrounds need their actual underlying composite; the checker refuses those pairs rather than assuming white.\n\nUnparsed tokens make coverage incomplete. The lightweight color parser is not a CSS validator and cannot certify color syntax or gamut mapping. Focus requirements also depend on state\u002Fcontext and other WCAG criteria. Read the source before running it on approved inputs; report output uses exclusive private file creation and will fail if the destination exists. No checker or rendered-page validation was executed during this review.\n",{"name":5,"risk":42,"tags":49,"tools":52,"author":54,"source":34,"license":14,"category":24,"date_added":55,"description":7,"source_repo":56,"source_type":34,"license_source":57},[50,51,21,28,43,27],"accessibility","wcag",[53,35,41],"claude","Clagoss","2026-10-19","Clagoss\u002Fclaude-code-para-disenadores","https:\u002F\u002Fgithub.com\u002FClagoss\u002Fclaude-code-para-disenadores\u002Fblob\u002Fmain\u002FLICENSE","7bf2279c8a65758319526a721d5c4b75683aec9c","skills\u002Fantigravity-design-token-contrast",3,"https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections","https:\u002F\u002Fgithub.com\u002Fboisenoise","2026-11-14 14:18:11",{"source":8,"skillName":5,"commands":65,"prompt":75,"zipAvailable":76},[66,69,72],{"tool":67,"command":68},"npx","npx skills add boisenoise\u002Fskills-collections --skill design-token-contrast",{"tool":70,"command":71},"bunx","bunx skills add boisenoise\u002Fskills-collections --skill design-token-contrast",{"tool":73,"command":74},"pnpm","pnpm dlx skills add boisenoise\u002Fskills-collections --skill design-token-contrast","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-design-token-contrast\u002FSKILL.md",true,[78],{"path":79,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":82,"sourceHtmlUrl":83},"references\u002Fcontraste-checker.md","REFERENCE","参考文档",18246,"https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-design-token-contrast\u002Freferences\u002Fcontraste-checker.md",[85,94,102,111,119,127],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":89,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":93},"01M7B6HREHB53EHGGVZND7DDXN","scrapely-scrape","Collect web data with ready-made Scrape.ly scrapers: Google Maps places, Amazon products, LinkedIn jobs, reviews, social posts. Use when the user wants structured data from a site.","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-scrapely-scrape\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-scrapely-scrape\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":98,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":93},"01M7B6GDNNN4HE662KA6KPF7GW","lumify-odds","Lumify's hosted sports MCP\u002FREST API for sportsbook odds, line-movement history, public betting splits, and player props across MLB, NFL, NBA, NHL, soccer, tennis, NCAAF, NCAAB. Read-only market data.","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-lumify-odds\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-lumify-odds\u002FSKILL.md",[],[],{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":106,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":110},"01M743PZMJW2GEKG5J199GPSK7","sync-lipsync","Lip-sync an existing video of a real person to new audio or a typed script with sync. labs through its hosted MCP server, quoting the cost and waiting for approval first.","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-sync-lipsync\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-sync-lipsync\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":115,"sourceHtmlUrl":116,"categories":117,"keywords":118,"publishedAt":110},"01M743MMN3CKTJVNRSZMB684E5","music-for-robots","Optional music-inspired creative exercise for multimodal agents. Ingests an unquantized acoustic MP3 composition by Michael Luchtan (Music For Robots) into a private temporary directory, analyzing microtiming and texture to inspire creative writing, brainstorming, or technical tasks.","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-music-for-robots\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-music-for-robots\u002FSKILL.md",[],[],{"skillNo":120,"name":121,"nameZh":6,"description":122,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":123,"sourceHtmlUrl":124,"categories":125,"keywords":126,"publishedAt":110},"01M743KC2GN5WE11BSTWSSWD8B","imagera-media","Generate or edit images, video clips, voiceovers and music through the hosted Imagera MCP server, quoting the credit cost and getting approval before each paid call.","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-imagera-media\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-imagera-media\u002FSKILL.md",[],[],{"skillNo":128,"name":129,"nameZh":6,"description":130,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":131,"sourceHtmlUrl":132,"categories":133,"keywords":134,"publishedAt":110},"01M743HDJNZQA8A4VT68NWGWQJ","deja-history","Search this machine's past AI coding sessions across Claude Code, Codex, Cursor, Gemini CLI and thirty-nine other agents before editing, debugging, or denying something exists.","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-deja-history\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-deja-history\u002FSKILL.md",[],[]]