/wideset:wideset-setupfrom wideset
Installs and configures the Wideset design system in React apps. Covers npm vs registry mode, stylesheet wiring, Tailwind v4, Next.js Server Components, fonts, and rebranding with CSS tokens.
Ships in wideset. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Start by finding out what the project already has:
@wideset/react in package.json means package mode. npx wideset info --json reports the version, registry, aliases, Tailwind version and installed skills.components/ui/wideset/ in the source, or a @wideset entry under registries in components.json, means registry mode.Package (npm) | Scaffolding (registry) | |
|---|---|---|
| Install | npm install @wideset/react | npx wideset init, then npx wideset add button |
| Code | In node_modules, not editable | Copied into the repo, yours to edit |
| Updates | Through semver | None; the code is yours from then on |
| Import | from '@wideset/react' | from '@/components/ui/wideset/button/Button' |
Use the mode the project already uses. Never mix both in one app. For a new project, prefer the package when it should receive fixes, and the registry when it needs heavy custom branding.
Import once, in the app entry (main.tsx, or app/layout.tsx in Next.js):
| Export | What it is | When |
|---|---|---|
@wideset/react/styles | Compiled tokens, component CSS and the classes components use | Always |
@wideset/react/preflight | Tailwind's browser reset | Only when the app does not use Tailwind |
@wideset/react/theme | Source @theme tokens and @utility classes | To write *-ws-* classes in your own code |
Without Tailwind:
import '@wideset/react/styles';
import '@wideset/react/preflight';
With Tailwind v4, keep the JS import and add the theme to the entry CSS. This is what makes p-ws-4 and bg-ws-static-container work in your own components:
@import 'tailwindcss';
@import '@wideset/react/theme';
The theme entry ships tokens and utilities only. To use radix-* or animate-* variants in your own code, also add the tailwindcss-radix and tailwindcss-animate plugins.
Use the Wideset CLI. npx wideset init writes components.json (or registers @wideset in an existing one), adds the @/* alias and imports the stylesheet; npx wideset add button select copies components with what they depend on, and runs init first if needed. npx wideset list shows every component.
Without the Wideset CLI, the shadcn CLI does the copying; you do not need shadcn's components or theme, or shadcn init. Add this components.json to the project root (Vite shown; for Next.js use "rsc": true, "css": "app/globals.css" and @/ at the project root). The @/* alias must exist in tsconfig.json, and in vite.config.ts for Vite. This needs shadcn 3.2 or later (npx shadcn@latest). With shadcn 3.0 or 3.1, add "registries": { "@wideset": "https://wideset.co/r/{name}.json" } to components.json; shadcn 2.x cannot install @wideset items, so upgrade it.
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "radix-nova",
"tsx": true,
"rsc": false,
"tailwind": {
"config": "",
"css": "src/index.css",
"baseColor": "neutral",
"cssVariables": true
},
"aliases": {
"components": "@/components",
"ui": "@/components/ui",
"lib": "@/lib",
"hooks": "@/hooks",
"utils": "@/lib/utils"
}
}
A project already using shadcn keeps its components.json as it is.
Every component brings styles/wideset.css. Import it once in the app entry:
import '@/styles/wideset.css';
Apps without Tailwind also add @wideset/preflight and import @/styles/wideset-preflight.css first. For your own Tailwind build, add @wideset/theme and import ./styles/wideset-theme.css after tailwindcss in the entry CSS.
Shared code comes along with the components that need it. The list of items is https://wideset.co/r/registry.json.
In registry mode wideset init adds Inter for you: styles/wideset-font.css, imported last in the app entry (--no-font skips it). Check that the file and its import are there before adding a font yourself. If text looks heavier than the design, no variable font is loaded.
In npm mode, or after --no-font, the stylesheets load no font. They ship --font-ws-sans (Inter with a system fallback), and components inherit the font from the page:
body {
font-family: var(--font-ws-sans);
}
Use a variable font: Wideset's weights are not round numbers (font-ws-medium is 520), and a static family rounds them to the nearest cut. @fontsource-variable/inter or next/font both work. Fontsource registers the family as Inter Variable.
Every component module carries 'use client', so you can import components straight into a Server Component. Accessing Card.Header on a client reference does not work on the server, so in Server Components use the named export of every subcomponent:
import { Card, CardContent, CardHeader, CardTitle } from '@wideset/react';
export default function Page() {
return (
<Card>
<CardHeader>
<CardTitle>Usage</CardTitle>
</CardHeader>
<CardContent>12 of 20 seats</CardContent>
</Card>
);
}
The dotted form (Card.Header) is fine in client components. Every member has a named export: Component + Member.
create-next-app turns on cacheComponents, and a prerender stops at code that reads the clock while rendering. Calendar placed directly on a page and DateRangePicker with defaultDatePreset need today's date: pass today or wrap them in <Suspense>. Other components prerender as they are.
Wideset's CSS is in cascade layers, and a rule outside any layer beats every layer. Read the app's global stylesheet before judging a broken layout:
* (* { margin: 0; padding: 0 }, in create-next-app without Tailwind) removes the padding of every component. Move it into @layer base { … }, or delete it when preflight is imported. A new layer name of your own does not work: it is declared after Wideset's and wins again.@media (prefers-color-scheme: dark) on the page (also from create-next-app) gives a dark page with light components, because Wideset turns dark only with the dark class. Remove the block, or set the class from the system setting: https://wideset.co/docs/theming.md.Mount these once, high in the tree, only when needed:
ToastProvider: required before anything calls useToast()MotionProvider: only to turn built-in motion off or on for a subtreeThere is no theme provider. Dark mode is the dark class on <html> or on any wrapper; useTheme() reads and sets it.
Everything visual resolves from CSS variables, so rebrand with a stylesheet loaded after Wideset's:
:root {
--ws-colors-light-brand-600: #4f46e5;
}
.dark {
--ws-colors-dark-brand-600: #818cf8;
}
Override primitives (--ws-colors-*) first: every role and class built on them follows. Use className for a one-off instance, and composition to change structure. Check the primitive names at https://wideset.co/docs/theming.md before overriding.
Button. It should show the brand fill, not a browser-default button.className="bg-ws-static-container" to a div in your own code. If it has no background, the theme is not imported into your Tailwind build.dark on <html>. Surfaces should flip without further code.Button's padding with the docs. Zero padding means an unlayered reset in the app's CSS.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
design-system, react-setup, tailwind-config, component-library
npx claudepluginhub widelab-co/wideset --plugin wideset4 skills in this plugin
/wideset-buildBuild or change screens with Wideset. Use before writing any UI in a project that uses Wideset, when choosing between similar components (Modal or Sidepanel, Select or RadioButton, Tag or StatusBadge), when combining components into a form, a filterable table or a confirmation, or when a Wideset screen compiles but behaves wrong./wideset-craftThe composition and taste layer for any UI built with Wideset, the judgement that turns a correct screen into a sharp one. Use it whenever you generate, design, compose or review a screen, page, flow, form, dashboard, modal or template with `@wideset/react`, even when the request only says "build a screen" or "make it look good". The component references say which component and token exists; this skill says which one to pick, at which size, how to space, align and stack it, and how to check the result. Also use it when someone asks for "bigger", "denser", "calmer", "more premium" or "less generic" Wideset UI./wideset-reviewReview UI built with Wideset before calling it done. Use when finishing a screen, when asked to review or audit a Wideset page or component usage, or on any change to theming. Gives a verdict with concrete fixes, using reviewer agents when available.Other plugins' skills for the same job