Skills
Skill 4 of 48
Wix Design System component reference. Use when building UI with @wix/design-system, choosing components, checking props and examples, or writing tests with component testkits.
2 minutes · 442 words · 14 sections
Install
npx skills add wix/skills --skill wix-design-systemnpx skills add wix/skills/plugin marketplace add wix/skillsThe first command installs just this skill, by the name in its SKILL.md; the second installs the whole repository.
Prerequisite: @wix/design-system must be installed (npm i @wix/design-system or yarn add @wix/design-system).
This skill bundles scripts/wds.cjs — a Node.js helper that auto-discovers @wix/design-system in node_modules (handles monorepos and workspaces) and provides focused lookups. Run it from the user’s project directory using the absolute path to the bundled script:
# WDS is the absolute path to this skill's scripts/wds.cjs
WDS="<this-skill-dir>/scripts/wds.cjs"
node $WDS search <keyword> # Find components by keyword
node $WDS component <Name> # Get props + example list (one component)
node $WDS components <Name1> <Name2>... # Same as `component`, but for several at once
node $WDS example <Name> "<ExampleName>" # Get a specific example
node $WDS testkit <Name> [method] # Get testkit imports + driver API
node $WDS icons <query> # Search for iconsnode $WDS search table
node $WDS search form input validation
node $WDS search modal dialog popupMultiple keywords are OR-matched. Returns component names, descriptions, and usage guidance.
node $WDS component ButtonReturns the full props list (types and descriptions) plus a list of all available examples. For large prop files (>200 lines), returns a summary with prop names and types.
If you already know which several components you’ll need (e.g. after Step 1 returned a shortlist), prefer the batch form to avoid one round-trip per component:
node $WDS components Button Card Table Input Text ThumbnailOutput is each component’s props block separated by ---. Missing components are logged to stderr and skipped; the command only fails if every requested component is missing.
node $WDS example Button "Loading state"Returns the example description and JSX code. Matching is case-insensitive and supports substrings (e.g., “loading” matches “Loading state”).
node $WDS testkit Button # Imports + full driver API for Button
node $WDS testkit Button click # Just the click() method detailsReturns import snippets for unidriver, vanilla, puppeteer, and playwright flavors plus the driver method API (name, args, return type, description). Method name matching is case-insensitive substring.
node $WDS icons Add Edit DeleteIcons are from @wix/wix-ui-icons-common. Each icon has a Small variant (e.g., Add + AddSmall).
If the script is unavailable, docs are at node_modules/@wix/design-system/dist/docs/:
components.md — component catalog (~978 lines, grep only)components/{Name}Props.md — props per componentcomponents/{Name}Examples.md — examples per component (grep ^### for section list)components/{Name}Testkit.md — testkit imports + driver API per component (grep ^### for method list)testkits.md — testkit catalog (list of components with generated testkit docs)icons.md — icon catalog (~818 lines, grep only)Don’t read these files fully. Grep for keywords, then read specific sections with offset/limit. See references/file-structure.md (opens in a new tab) for the exact docs file layout and section shapes.
| Design Element | WDS Component | Notes |
|---|---|---|
| Rectangle/container | <Box> | Layout wrapper |
| Text button | <TextButton> | Secondary actions |
| Input with label | <FormField> + <Input> | Wrap inputs |
| Toggle | <ToggleSwitch> | On/off settings |
| Modal | <Modal> + <CustomModalLayout> | Use together |
| Grid | <Layout> + <Cell> | Responsive |
When designer specifies pixels, convert to the nearest SP token:
| Token | Classic | Studio |
|---|---|---|
SP1 | 6px | 4px |
SP2 | 12px | 8px |
SP3 | 18px | 12px |
SP4 | 24px | 16px |
SP5 | 30px | 20px |
SP6 | 36px | 24px |
<Box gap="SP2" padding="SP3">Only use SP tokens for gap, padding, margin — not for width/height.
import { Button, Card, Image } from "@wix/design-system";
import { Add, Edit, Delete } from "@wix/wix-ui-icons-common";import "@wix/design-system/styles.global.css"; once to the root/main component (e.g. page.tsx, modal entry) — not child/tab/helper files.Wix Design System component reference. Use when building UI with @wix/design-system, choosing components, checking props and examples, or writing tests with component testkits. Triggers on "what component", "how do I make", "WDS", "show me props", "testkit", "driver", or component names like Button, Card, Modal, Box, Text.
The verbatim description from this skill’s front matter — the string an agent matches on to decide whether to load it.
main, last pushed 24 September 2026.SKILL.md, not by matching a directory convention. 8 distinct layouts observed: .claude/skills/*/SKILL.md, skills/*/SKILL.md, skills/wix-headless-fast/*/skill.md, skills/wix-headless/*/skill.md, skills/wix-replatform/resources/*/SKILL.md, wix-headless-replatform/resources/*/SKILL.md, */SKILL.md, wix-replatform/resources/*/SKILL.md.h1 and no skipped levels:.claude-plugin/marketplace.json by Wix, declaring 1 plugin. It is read for editorial metadata only — never as the skill index, which is always the repository tree./wix/skills.md, and each skill at its own .md URL.2 files · 16 KB
Everything this skill ships beside its prose. All of it is set here, as subchapters of skill 4.
Documentation the agent loads on demand, rather than up front.
Executable code the skill can run.