svelte-styling — Claude Code skill for Svelte CSS
svelte-styling is a Claude Code skill that guides Svelte component styling with scoped CSS, custom properties, and style:. It covers runtime values and styles for child components.
no license 137 installs ★ 96 updated 2026-10-12
npx skills add spences10/svelte-skills-kit --skill svelte-styling -a claude-codeWhat svelte-styling does
Svelte <style> blocks are scoped to their component by default. The skill shows how to pass a JavaScript value into a CSS custom property with style: and then use that property in a layout, such as a grid.
For child components, it favors passing custom properties as props. When that approach does not fit, such as with a library component, :global is an alternative. That distinction matters: global selectors are presented as a fallback. More techniques are in references/styling-patterns.md, and dynamic values should use style: rather than inline style strings.
What it helps with
- bind a JavaScript value to a CSS custom property
- keep component styles scoped
- pass color or spacing values to a child component
- target a heading inside a library component
Example prompts for the agent
- Make the grid column count dynamic with a CSS custom property and
style:. - Pass a color and spacing value to the child component as CSS custom properties.
- Style the heading inside the library component using
:global.
How to install svelte-styling
1Skills CLI (Vercel)
npx skills add spences10/svelte-skills-kit --skill svelte-styling -a claude-code2Manually: put the files in place
~/.claude/skills/svelte-styling/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/svelte-styling/
1Skills CLI (Vercel)
npx skills add spences10/svelte-skills-kit --skill svelte-styling -a codex2Manually: put the files in place
.agents/skills/svelte-styling/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add spences10/svelte-skills-kit --skill svelte-styling -a cursor2Manually: put the files in place
.cursor/skills/svelte-styling/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install spences10/svelte-skills-kit plugins/svelte-skills/skills/svelte-styling2Manually: put the files in place
.github/skills/svelte-styling/SKILL.md1Skills CLI (Vercel)
npx skills add spences10/svelte-skills-kit --skill svelte-styling -a gemini-cli2Platform CLI
gemini skills install https://github.com/spences10/svelte-skills-kit --path plugins/svelte-skills/skills/svelte-stylingManually: put the files in place
.devin/skills/svelte-styling/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add spences10/svelte-skills-kit --skill svelte-styling -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about svelte-styling
How do I install svelte-styling in Claude Code?
Run npx skills add spences10/svelte-skills-kit --skill svelte-styling -a claude-code. The skill file is at ~/.claude/skills/svelte-styling/SKILL.md.
What does svelte-styling do?
It guides CSS work in Svelte components, covering scoped styles, custom properties, the style: directive, and :global.
What is the recommended way to style a child component?
Pass CSS custom properties through component props. Use :global as a fallback when that is not suitable, for example with a library component.