Skip to main content
skill CX Codex

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

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add spences10/svelte-skills-kit --skill svelte-styling -a claude-code
Open on GitHub

What 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-code

2Manually: put the files in place

~/.claude/skills/svelte-styling/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/svelte-styling/

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.

Similar skills

All skills for Frontend and UI →

From the same set10

The whole set →
sveltekit-structure sveltekit-structure — a Claude Code skill, also available for five other platforms. It feeds the agent SvelteKit routing, layouts, error boundaries and SSR notes. CX Codex +1 1,100installs svelte-components Tells your agent how to build Svelte components: headless libraries, custom elements, and forms that cannot wrap their inputs. CX Codex +1 572installs svelte-template-directives svelte-template-directives is a Claude Code skill for Svelte template directives. It comes into play when working with DOM elements, dynamic markup, or third-party libraries. CX Codex +1 550installs sveltekit-data-flow Teaches your AI coding assistant proper SvelteKit data flow patterns, from form actions and load functions to serialization and cache invalidation. CX Codex +1 516installs sveltekit-remote-functions sveltekit-remote-functions teaches your agent the query(), form(), command() and prerender() patterns for *.remote.ts files. Useful once remote functions are switched on in your SvelteKit app. CX Codex +1 432installs svelte-deployment The svelte-deployment skill for Claude Code provides notes for shipping SvelteKit apps: choosing an adapter, fixing pnpm and Vite versions, publishing a library, and adding PWA support. CX Codex +1 253installs ecosystem-guide ecosystem-guide is a Claude Code skill for choosing MCP servers, managing skill activation, and preserving context. CX Codex +1 205installs svelte-layerchart svelte-layerchart — a skill for Svelte 5 chart work with LayerChart, covering tooltip snippets, chart context, gradients, highlights, and axes. CX Codex +1 111installs

Project sponsors

Companies that keep this analytics open