[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F27YCP18CYDNKSZHZFPMHJ":3,"skill-same:01M7F27YCP18CYDNKSZHZFPMHJ":49},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":14,"repositoryHtmlUrl":29,"repositoryHomepageUrl":30,"ownerHtmlUrl":31,"ownerBlogUrl":32,"ownerDescription":33,"updatedAt":34,"install":35,"resources":48},"01M7F27YCP18CYDNKSZHZFPMHJ","slipway-design",null,"Restyle a Slipway site with design tokens and a preset, add CSS through the override slots, and keep light and dark contrast passing.","arminazimi\u002Fslipway","arminazimi","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F33401832?v=4","01M7F1ZTKSXGKQGEXS7MJAEB2N","Armin Azimi","01M7F26NCHMY6W6ZZT1YDRNGSV",2,"MIT","https:\u002F\u002Fgithub.com\u002Farminazimi\u002Fslipway\u002Fblob\u002Fmain\u002Fskills\u002Fslipway-design\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: slipway-design\ndescription: Restyle a Slipway site with design tokens and a preset, add CSS through the override slots, and keep light and dark contrast passing.\nmetadata:\n  version: \"0.3.0\"\n---\n\n# Restyle a Slipway site\n\nA Slipway site's look comes from the theme's design tokens and your own stylesheet, never from edited theme files. A restyle changes token values; the token names stay public across releases. If the site has an `AGENTS.md`, read it first; it wins where it differs.\n\n## Token names in the engine theme\n\nThe engine theme (`packages\u002Ftheme`) defines its tokens in `packages\u002Ftheme\u002Ftokens\u002F`. `names.json` is the registry: it freezes the token names, grouped as `color`, `type`, `space`, `radius`, `shadow`, `state`, `code`, and `motion`, with a placeholder value for each. Every other `tokens\u002F\u003Cgroup>.json` file sets the values of its group, such as `motion.json` for the motion durations and easings; a name missing from `names.json` is an error. `npm run tokens` in `packages\u002Ftheme` writes `styles\u002Ftokens.css` from these files. That file is generated; do not edit it by hand.\n\nEach token is a CSS custom property named `--\u003Cgroup>-\u003Cname>`:\n\n| Group | Examples |\n| --- | --- |\n| color | `--color-canvas`, `--color-text`, `--color-heading`, `--color-muted`, `--color-border`, `--color-accent`, `--color-link`, `--color-focus`, `--color-success`, `--color-warning`, `--color-danger`, `--color-info` |\n| type | `--type-font-body`, `--type-size-base`, `--type-leading-body`, `--type-weight-bold` |\n| space | `--space-1`, `--space-2`, `--space-4`, `--space-8` |\n| radius | `--radius-sm`, `--radius-md`, `--radius-full` |\n| shadow | `--shadow-sm`, `--shadow-md` |\n| state | `--state-hover-bg`, `--state-selected-bg`, `--state-focus-ring` |\n| code | `--code-bg`, `--code-fg`, `--code-border` |\n| motion | `--motion-fast`, `--motion-base`, `--motion-ease` |\n\nA color token has a light and a dark value. The dark value is set in `$extensions.lateen.dark` in `names.json`, and `tokens.css` joins the two with `light-dark()`, so one name works in both modes. Component CSS reads only these names; the component tests fail on a name that is not a token. Write your own CSS with the same names.\n\n## 1. Take a baseline\n\nBuild the site and run the doctor before you change anything, and keep the output: the restyle is done when it adds no finding and no failed contrast pair.\n\n```sh\nnpx slipway build\nnpx slipway doctor . --build dist\n```\n\n## 2. Choose the values\n\nChange a group of tokens as a whole, not one at a time, or the result drifts:\n\n- **Type.** `--type-font-body` for reading, `--type-font-heading` for headings. Name a family the page loads, or a system stack: a family the page does not load falls back silently.\n- **Color.** One accent and a canvas and text pair, each with a light and a dark value.\n- **Shape.** `--radius-sm`, `--radius-md`, `--radius-full`.\n- **Space and motion.** `--space-*` and `--motion-*`.\n\nEvery name is in `packages\u002Ftheme\u002Ftokens\u002Fnames.json`.\n\n## 3. Override the tokens\n\nPut your values in a stylesheet your site links after the theme's, for example `site.css`. Colors use `light-dark()` so one name works in both modes:\n\n```css\n:root {\n  --color-accent: light-dark(#4a5c2f, #b9c69b);\n  --color-link: light-dark(#3d4d27, #c5d1a8);\n  --radius-md: 0.5rem;\n}\n```\n\nLink the stylesheet from a theme option or the layout your site uses. The engine theme reads only token names, so a restyle needs no change to theme files.\n\n## 4. Check the contrast\n\nCheck every pair in both modes:\n\n- `--color-text`, `--color-heading`, `--color-muted`, and `--color-link`, each on `--color-canvas`: at least 4.5:1.\n- Large text and interface marks: at least 3:1.\n\nThe ratio is `(lighter + 0.05) \u002F (darker + 0.05)` on WCAG relative luminance; `contrastRatio` in `tools\u002Ftheme\u002Fcontrast.ts` is the function the theme's check uses. A palette that changes `--color-canvas`, `--color-text`, `--color-heading`, `--color-muted`, or `--color-border` must change and re-check all of them together.\n\n## 5. Write RTL-safe CSS\n\nUse logical CSS properties so right-to-left works: `margin-inline-start`, `padding-inline`, `border-inline-start`, `max-inline-size`, never `left`, `right`, or `width` alone. Every page must read without JavaScript: add `defer` to any script.\n\n## 6. Check the restyle\n\n```sh\nnpx slipway build\nnpx slipway doctor . --build dist\n```\n\nEach problem is printed as `file:line key: message`. Fix it at that line and run it again. The doctor must keep the level and finding count of your baseline; a finding that names your file is yours to fix. Look at one page in both modes: the theme toggle and the system setting each have to work.\n\n## Never\n\n- Never edit or copy the theme's layouts or components, or `styles\u002Ftokens.css`; override tokens.\n- Never give a changed color one value for both modes; set it with `light-dark()` and check both.\n- Never name a font family the page does not load; it falls back silently.\n- Never add a script that blocks rendering, or a control that shows without JavaScript.\n- Never lower the doctor's `level`, drop `--build`, or edit a built folder to make a check pass.\n- Never hard-code a color, space, radius, or duration in an engine component's CSS; read a token name from the table above.\n","# Restyle a Slipway site\n\nA Slipway site's look comes from the theme's design tokens and your own stylesheet, never from edited theme files. A restyle changes token values; the token names stay public across releases. If the site has an `AGENTS.md`, read it first; it wins where it differs.\n\n## Token names in the engine theme\n\nThe engine theme (`packages\u002Ftheme`) defines its tokens in `packages\u002Ftheme\u002Ftokens\u002F`. `names.json` is the registry: it freezes the token names, grouped as `color`, `type`, `space`, `radius`, `shadow`, `state`, `code`, and `motion`, with a placeholder value for each. Every other `tokens\u002F\u003Cgroup>.json` file sets the values of its group, such as `motion.json` for the motion durations and easings; a name missing from `names.json` is an error. `npm run tokens` in `packages\u002Ftheme` writes `styles\u002Ftokens.css` from these files. That file is generated; do not edit it by hand.\n\nEach token is a CSS custom property named `--\u003Cgroup>-\u003Cname>`:\n\n| Group | Examples |\n| --- | --- |\n| color | `--color-canvas`, `--color-text`, `--color-heading`, `--color-muted`, `--color-border`, `--color-accent`, `--color-link`, `--color-focus`, `--color-success`, `--color-warning`, `--color-danger`, `--color-info` |\n| type | `--type-font-body`, `--type-size-base`, `--type-leading-body`, `--type-weight-bold` |\n| space | `--space-1`, `--space-2`, `--space-4`, `--space-8` |\n| radius | `--radius-sm`, `--radius-md`, `--radius-full` |\n| shadow | `--shadow-sm`, `--shadow-md` |\n| state | `--state-hover-bg`, `--state-selected-bg`, `--state-focus-ring` |\n| code | `--code-bg`, `--code-fg`, `--code-border` |\n| motion | `--motion-fast`, `--motion-base`, `--motion-ease` |\n\nA color token has a light and a dark value. The dark value is set in `$extensions.lateen.dark` in `names.json`, and `tokens.css` joins the two with `light-dark()`, so one name works in both modes. Component CSS reads only these names; the component tests fail on a name that is not a token. Write your own CSS with the same names.\n\n## 1. Take a baseline\n\nBuild the site and run the doctor before you change anything, and keep the output: the restyle is done when it adds no finding and no failed contrast pair.\n\n```sh\nnpx slipway build\nnpx slipway doctor . --build dist\n```\n\n## 2. Choose the values\n\nChange a group of tokens as a whole, not one at a time, or the result drifts:\n\n- **Type.** `--type-font-body` for reading, `--type-font-heading` for headings. Name a family the page loads, or a system stack: a family the page does not load falls back silently.\n- **Color.** One accent and a canvas and text pair, each with a light and a dark value.\n- **Shape.** `--radius-sm`, `--radius-md`, `--radius-full`.\n- **Space and motion.** `--space-*` and `--motion-*`.\n\nEvery name is in `packages\u002Ftheme\u002Ftokens\u002Fnames.json`.\n\n## 3. Override the tokens\n\nPut your values in a stylesheet your site links after the theme's, for example `site.css`. Colors use `light-dark()` so one name works in both modes:\n\n```css\n:root {\n  --color-accent: light-dark(#4a5c2f, #b9c69b);\n  --color-link: light-dark(#3d4d27, #c5d1a8);\n  --radius-md: 0.5rem;\n}\n```\n\nLink the stylesheet from a theme option or the layout your site uses. The engine theme reads only token names, so a restyle needs no change to theme files.\n\n## 4. Check the contrast\n\nCheck every pair in both modes:\n\n- `--color-text`, `--color-heading`, `--color-muted`, and `--color-link`, each on `--color-canvas`: at least 4.5:1.\n- Large text and interface marks: at least 3:1.\n\nThe ratio is `(lighter + 0.05) \u002F (darker + 0.05)` on WCAG relative luminance; `contrastRatio` in `tools\u002Ftheme\u002Fcontrast.ts` is the function the theme's check uses. A palette that changes `--color-canvas`, `--color-text`, `--color-heading`, `--color-muted`, or `--color-border` must change and re-check all of them together.\n\n## 5. Write RTL-safe CSS\n\nUse logical CSS properties so right-to-left works: `margin-inline-start`, `padding-inline`, `border-inline-start`, `max-inline-size`, never `left`, `right`, or `width` alone. Every page must read without JavaScript: add `defer` to any script.\n\n## 6. Check the restyle\n\n```sh\nnpx slipway build\nnpx slipway doctor . --build dist\n```\n\nEach problem is printed as `file:line key: message`. Fix it at that line and run it again. The doctor must keep the level and finding count of your baseline; a finding that names your file is yours to fix. Look at one page in both modes: the theme toggle and the system setting each have to work.\n\n## Never\n\n- Never edit or copy the theme's layouts or components, or `styles\u002Ftokens.css`; override tokens.\n- Never give a changed color one value for both modes; set it with `light-dark()` and check both.\n- Never name a font family the page does not load; it falls back silently.\n- Never add a script that blocks rendering, or a control that shows without JavaScript.\n- Never lower the doctor's `level`, drop `--build`, or edit a built folder to make a check pass.\n- Never hard-code a color, space, radius, or duration in an engine component's CSS; read a token name from the table above.\n",{"name":5,"metadata":24,"description":7},{"version":25},"0.3.0","main","4ace9213edc3d1c6f4c08a1bc4f2f3aebcd70401","skills\u002Fslipway-design","https:\u002F\u002Fgithub.com\u002Farminazimi\u002Fslipway","https:\u002F\u002Farminazimi.github.io\u002Fslipway\u002F","https:\u002F\u002Fgithub.com\u002Farminazimi","https:\u002F\u002Fvelella.sh","I make codebases confess what they’ve been hiding.","2026-11-11 00:40:10",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add arminazimi\u002Fslipway --skill slipway-design",{"tool":41,"command":42},"bunx","bunx skills add arminazimi\u002Fslipway --skill slipway-design",{"tool":44,"command":45},"pnpm","pnpm dlx skills add arminazimi\u002Fslipway --skill slipway-design","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Farminazimi\u002Fslipway\u002Fblob\u002Fmain\u002Fskills\u002Fslipway-design\u002FSKILL.md",true,[],[50,57,64,71,78,85],{"skillNo":51,"name":52,"nameZh":6,"description":53,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":19},"01M7F28EHG0XQBYM34ECQ1YAWP","slipway-translate","Add a language to a Slipway site, translate pages, and keep every translation linked through lang and translation_key, then check it with slipway check.","https:\u002F\u002Fgithub.com\u002Farminazimi\u002Fslipway\u002Fblob\u002Fmain\u002Fskills\u002Fslipway-translate\u002FSKILL.md",[],[],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M7F28A1J1XNA5Z5P333SM3MT","slipway-site","Create a Slipway docs site, or customize an existing one through slipway.yml, navigation, languages, redirects, and theme options, then check it with slipway check.","https:\u002F\u002Fgithub.com\u002Farminazimi\u002Fslipway\u002Fblob\u002Fmain\u002Fskills\u002Fslipway-site\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M7F286GG3M7GQ2Q4D7V0J065","slipway-release-notes","Write a changelog entry and a release page from merged pull requests, for a site built with Slipway or for Slipway itself.","https:\u002F\u002Fgithub.com\u002Farminazimi\u002Fslipway\u002Fblob\u002Fmain\u002Fskills\u002Fslipway-release-notes\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M7F2820BADMX1S5SQA09TCC2","slipway-doctor","Check a static site with slipway doctor after you edit it, read the findings, and fix them until the site reaches its conformance level. Use for any Slipway site or any site that follows the agent-editable site spec.","https:\u002F\u002Fgithub.com\u002Farminazimi\u002Fslipway\u002Fblob\u002Fmain\u002Fskills\u002Fslipway-doctor\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M7F27TZM9YAAV5NZPAFBK233","slipway-deploy","Publish a Slipway site to GitHub Pages with the deploy Action, set a custom domain, and fix the common build, base path, theme, and permission failures.","https:\u002F\u002Fgithub.com\u002Farminazimi\u002Fslipway\u002Fblob\u002Fmain\u002Fskills\u002Fslipway-deploy\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M7F27Q214435H67M8296E2B2","slipway-content","Write or edit a page on a Slipway site, or translate one into another language, using the engine's front matter keys and directives, then check it with slipway check.","https:\u002F\u002Fgithub.com\u002Farminazimi\u002Fslipway\u002Fblob\u002Fmain\u002Fskills\u002Fslipway-content\u002FSKILL.md",[],[]]