/wideset:wideset-craftfrom wideset
Provides composition and taste decisions for Wideset UI: spacing, alignment, sizing, and visual direction. Use when generating or reviewing screens built with @wideset/react to achieve polished, coherent layouts.
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.
Read when SKILL.md points to them.
Most generated UI is technically fine and still forgettable: every component is real, every class is a token, and the screen still looks assembled rather than designed. The difference is a small set of decisions made the same way every time. This skill holds those decisions for Wideset.
It sits on top of wideset-build and never contradicts it:
wideset-build skill.One screen, one focal point, one size, one accent: calm, scannable, consistent to the pixel.
The goal is a composition that is right, not rules that were followed. Judge it optically: blur the rendered screen until no word is legible. The masses that remain must be coherent: one focal point, weight that matches importance, an even rhythm of gaps, even density, shared edges, space that is meant. If the blurred screen is coherent the sharp one almost always is; if it is not, no correct token fixes it. How to run the blur test and what to look for: composition.md.
The rules below are knowledge that usually produces that coherence, with the reason for each. When the blurred screen shows a rule making the composition worse, change it and say why. Fixed are only the system's own decisions: tokens, text colour by job, status colour only for meaning, one control height, the type styles that exist.
Before the first screen of a new app or a new kind of screen, ask the person the choices only they can make, in one short message, each with your recommended default so they can answer "defaults":
wideset-build names.divider).Skip the questions the request already answers. If you cannot ask (a batch run, no one to answer), take the defaults and list them at the top of your report so a person can overrule them in one sentence. Ask once per app, not before every screen.
Write this down before any code, in three or four lines:
If you cannot name the job, ask instead of filling the page.
Each rule has a reference file with the why, the exact Wideset classes and props, and do/don't code. Read the reference before you apply a rule for the first time in a session.
| # | Rule | Reference |
|---|---|---|
| 1 | One control size per screen: sm (32px). Every button, field, filter and segmented control on a screen shares one height, as Figma's Screens draw them. Go md (40px) or lg only when the person asks or the screen type demands it. | sizing.md |
| 2 | Pass size="sm"; never mix sizes. Button, IconButton, SplitButton, the fields and SegmentedControl default to md (40px), so they take size="sm"; FilterButton, Chip and Tabs are 32px at their defaults. | sizing.md |
| 3 | Flat type scale. Body and labels at 14px, card and section titles 16px, one 32px page title. Hierarchy comes from weight and colour, not size jumps. | typography.md |
| 4 | Spacing has a hierarchy. Tight inside a control, medium between fields, wide between sections; the gap grows with the size of what it separates. Only ws steps. | spacing.md |
| 5 | Choose width deliberately. Reading and form columns stop around 40rem; only data-dense tables and boards run full width. Never stretch a composed screen edge to edge. | spacing.md |
| 6 | One left axis. The page title, the section titles and the content start on the same vertical line. | spacing.md |
| 7 | One accent: the primary action. Brand colour appears on one filled primary button per view. A selected row looks like the active Sidebar.Item (neutral fill), never a brand tint. Everything else is neutral; status uses status colours only. | surfaces.md |
| 8 | Pick one surface language per screen. A white page (like the Sidebar) with bordered cards, or one flat surface separated by space. Not both, never cards inside cards. | surfaces.md |
| 9 | The right component and container for the job. Checkbox for a setting saved later, Switch for one that applies now; Modal for something short, Sidepanel for detail in context, a page for a flow. | components-and-actions.md |
| 10 | Action hierarchy. One primary per view, secondary as border, the rest ghost; actions sit where the eye ends (top right of a page, bottom right of a form or modal). | components-and-actions.md |
| 11 | States are part of the design. Every list, table and panel has its empty, loading and error state designed with the same care as the full one. | components-and-actions.md |
| 12 | Data reads in columns. Numbers right-aligned with tabular-nums, consistent decimals and units, text left, status as a badge. | data.md |
| 13 | Motion belongs to the components. Do not add your own transitions; the components animate with Wideset's motion tokens and respect reduced motion. | motion.md |
| 14 | Colour by job. Text that is looked for is strong, text that is read is base, text that only labels is subtle; brand, status and chart highlight colours each appear only for a reason in the data. | text-colour.md |
Four more habits apply to every screen:
text-ws-static-base
or -subtle; numbers and names outrank their labels. See hierarchy.md.When nothing in the request says otherwise, use exactly these:
| Decision | Default |
|---|---|
| Control height | sm (32px): size="sm" on Button, IconButton, SplitButton, TextInput, Select, MultiSelect, ComboBox, Textarea, SegmentedControl; FilterButton, Chip at their defaults |
| Page tabs | Tabs at their default sm, on the page and inside a card or panel |
| Page surface | Set once per app by AppShell direction (the question above); the page is white like the Sidebar, cards on it Card bordered; only canvas leaves it grey |
| Page title | typography-title-md text-ws-static-strong (32px), one per page |
| Section title | typography-subtitle-xs (16px); a card title is Card.Title (16px) |
| Body / description | typography-body-md text-ws-static-base; labels and metadata -subtle |
| Text colours | text-ws-static-strong (headings, key values), -base (body), -subtle (secondary, metadata) |
| Page padding | p-ws-12 (24px); page sections gap-ws-16 (40px); inside a card gap-ws-12 (24px) |
| Composed side rail | w-[20rem] (never under 18rem), p-ws-12; items gap-ws-11, parts of an item gap-ws-3; nothing touches the edge |
| Content width | forms and reading max-w-[40rem]; composed pages max-w-[80rem] mx-auto; tables may fill |
| Wide windows | past 1440px the frame (sidebar, top bar, edge panels) keeps filling the window; the content column stops at its cap and centres |
| Side panel | sections stack from the top with a section gap; never spread over the panel's height (justify-between, mt-auto) |
| Trailing edge | counts, shortcuts, a section's "+" and arrows in one column end on one right edge: the suffix slot or the row's own flex, never absolute |
| Shortcut hints | shown on hover and keyboard focus (Sidebar.Item suffixOnHover), never all the time |
| Row targets | a row that does one thing is one button or link across the whole row: hover fill on the whole row, inset focus ring; never only its text |
| Primary action | <Button size="sm"> (primary, filled), one per view |
| Secondary action | <Button size="sm" variant="secondary" preset="border"> |
| Tertiary / in-row | preset="ghost" or IconButton with an aria-label |
| Icon button size | the height of the controls beside it, one height per bar: the screen's size (sm, where Sidebar.Trigger already is; md in a comfortable screen); xs only for actions inside a row, card or column header |
| Selected row | the active Sidebar.Item look in every column: bg-ws-dynamic-tertiary-alpha-strong-default text-ws-static-strong; one selected style per screen, no brand tint. The open item (its detail beside it) takes aria-current="true"; a row picked to act on takes aria-selected in a listbox or grid, or a Checkbox |
| List row | a title (strong) and at most one line of subtle metadata, a status badge at its start; ids and tags live in the detail (hierarchy.md) |
| Status colour | only for states that ask for action now (failure, firing, the top severity); lifecycle states are neutral badges (surfaces.md) |
| Nested corners | a shape around a round one is a pill, and its curve shares the centre: inset the round item by the same padding on every side (a coin in a picker, an avatar in a chip) |
| Round controls | a round control is round in every state: give the button itself the full radius, never a round wrapper around a square hover, press or focus ring |
| Shadows in flow | cards inside a grey column or board take the lightest shadow (shadow-ws-forms-base); Elevation/Low and up are for raised surfaces (an inset page, a floating panel or bar) |
| Product mark | one mark in every screen, its size set by the place (32px in a sidebar or top bar, 36px in a larger switcher), drawn with tokens so it inverts in dark |
| Icons | Remix line icons (Ri…Line), passed to the component; size comes from the control |
Pass size="sm" explicitly to the components in the first row that name it: their default is md.
Each screen gets a limited amount of loudness:
| Emphasis | Allowance per view |
|---|---|
| Filled primary button | 1 |
| Coloured status or danger fill | Only where state requires it |
Page title, typography-title-md | 1 |
Elevated surface (shadow-ws-medium or higher) | Only while it floats |
When something new has to stand out, take the emphasis from something else.
The defaults are deliberate, so change them only when asked, and then change them everywhere on the screen at once:
md
(40px), FilterButton size="md", Chip size="lg", page Tabs size="lg". See
sizing.md.lg (48px), body
typography-body-lg, page padding one step up. See sizing.md.sm, gaps one step down, cell-by-cell
data in a Spreadsheet. See sizing.md.Never mix modes on one screen. A compact table inside a default page is fine (the table is the
data tool); a sm button next to a md field is not.
These mark a screen as generated. Remove them on sight:
text-ws-static-strong (names, values, list items all near-black), or every label in uppercasereview.md adds the tells that show in layout and sizing.
wideset-build references; start from the rules
above.wideset-review.references/components-and-actions.md (opens in a new tab)references/composition.md (opens in a new tab)references/data.md (opens in a new tab)references/foundations.md (opens in a new tab)references/hierarchy.md (opens in a new tab)references/layout-scaffolds.md (opens in a new tab)references/motion.md (opens in a new tab)references/review.md (opens in a new tab)references/sizing.md (opens in a new tab)references/spacing.md (opens in a new tab)references/surfaces.md (opens in a new tab)references/text-colour.md (opens in a new tab)references/typography.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
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-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./wideset-setupInstall and configure the Wideset design system in a React app. Use when adding Wideset to a project, choosing between the npm package and the registry, wiring stylesheets, Tailwind v4, Next.js Server Components or fonts, rebranding with --ws-colors-* tokens, or when Wideset imports or styles do not resolve.Other plugins' skills for the same job