PaneUI

Design skill

Design rules and checks for consistent interfaces.

Installation

npx skills add taimatsuorg/paneui --skill paneui-design
Download

Or through the shadcn CLI, into .agents/skills:

pnpm dlx shadcn@latest add @paneui/design-skill

Check

Run it before you commit. It exits with an error when a rule breaks; allow-list a deliberate exception in paneui-design.config.json with its reason.

For what only the rendered page shows, open the screen and paste scripts/radius-probe.js (nested corners) or scripts/polish-probe.js (hit areas, image edges, live numbers) into the browser console.

Colour and elevation

1.Colour with theme tokens

Tokens follow the theme, the accent preset and dark mode; palette classes and hex values don't.

Recommended
Deployed2 minutes ago
Avoid
Deployed2 minutes ago

2.Put text on a solid in its foreground token

The neutral accent's solid is near-white in dark mode, so text-white disappears on it.

Recommended
Changes saved
Avoid
Changes saved

3.Fill for state, surface for panels

secondary, muted and accent are translucent fills; anything that floats or holds content needs an opaque surface.

Recommended
Copy link
Download
Delete
Avoid
Copy link
Download
Delete

4.Elevate with shadow tokens, not borders plus shadows

Each shadow level already carries its own hairline, so a CSS border on top doubles the edge.

Recommended
Workers
Deployed 4 minutes ago
Avoid
WorkersDeployed 4 minutes ago

5.Keep series on the chart palette

Eight fixed hues read the same under every accent, in both modes, and keep neighbours apart.

Recommended
RequestsErrorsCacheBots
Avoid
RequestsErrorsCacheBots

Radius

6.Keep nested radii concentric

A child corner that doesn't follow its container's curve reads as a mistake against --radius.

Recommended
Rename
Duplicate
Archive
Avoid
Rename
Duplicate
Archive

7.Stay at or under 22px

Past the radius cap containers turn into blobs and nested parts can't stay concentric.

Recommended
Invite people
Avoid
Invite people

8.Derive every radius from the base radius

Tokens built on --radius keep one cohesive scale, never literal pixel radii.

Recommended
tsx
Avoid
tsx

Type

9.Use the UI type scale

One compact scale keeps dense screens even; arbitrary sizes drift.

Recommended
BillingNext invoice on 1 NovemberUpdated 2 hours ago
Avoid
BillingNext invoice on 1 NovemberUpdated 2 hours ago

10.Semibold titles, medium labels

Two weights carry the hierarchy; heavier text shouts in a dense layout.

Recommended
Account settingsDisplay name
Avoid
Account settingsDisplay name

11.Keep the font's tracking

The type is spaced for its size; tightening small text makes it harder to read.

Recommended
Usage this monthAcross all projects
Avoid
Usage this monthAcross all projects

12.Use tabular numbers for numbers that change or align

Proportional digits make columns and counters jump.

Recommended
Compute$1,118.40
Storage$71.11
Bandwidth$910.07
Avoid
Compute$1,118.40
Storage$71.11
Bandwidth$910.07

Density and layout

13.Size controls for desktop density

Desktop screens hold more per view; touch-sized controls waste it.

Recommended
Avoid

Spacing groups content before any border does.

Recommended
Web analyticsMeasure traffic without changing your code.
Avoid
Web analyticsMeasure traffic without changing your code.

15.Start navigation text on one left edge

Indents and guide lines widen the sidebar and break the column the eye follows.

Recommended
Components
Button
Menu
Tabs
Avoid
Components
Button
Menu
Tabs

Components and icons

16.Compose the library, don't restyle it

A component's variants and sizes are its design; overriding them per screen forks the style.

Recommended
tsx
Avoid
tsx

17.Keep a menu label inside its group

The label names the group for assistive tech, and the primitive label throws outside one.

Recommended
tsx
Avoid
tsx

18.Chevron and folder icon for folders, file icons for files

Folders show the expand chevron, then an open or closed folder icon; files skip the chevron's column, so file icons line up under the folder icons at the same level.

19.Draw icons from one family per group

Two glyph families in one group look like two different products.

Recommended
Inbox
Calendar
Terminal
Avoid
Inbox
Calendar
Terminal

20.Use real brand marks for other products

Redrawn or approximated logos look wrong to anyone who knows the brand.

Recommended
Avoid
V

21.Show people and workspaces as avatars

An avatar says "who"; a generic icon in that spot says nothing.

Recommended
QWNNorthwind
Avoid
Northwind

Motion and focus

22.Answer a press with a fill

Native controls don't shrink when pressed; scaling every button makes the screen feel springy.

Recommended
Avoid

23.Transition named properties, briefly

transition-all animates layout you didn't mean to, and slow hovers feel laggy.

Recommended
tsx
Avoid
tsx

24.Gate movement on reduced motion

Movement, scale and blur can make some readers ill; an opacity fade carries the same change.

Recommended
tsx
Avoid
tsx

25.Show a ring on keyboard focus

Keyboard users need to see where they are; a hover style doesn't help them.

Recommended
Focus ring
Avoid
No ring

Copy and upkeep

26.Let the preview explain

A live preview already shows the look, layout and states; text that repeats it is noise.

Recommended
Switch
Avoid
SwitchA toggle in three sizes: sm, default and lg, with labels, descriptions and disabled states.

27.Keep descriptions to one plain sentence

A registry description is the page lede, the search text and the meta tag at once.

Recommended
Date Picker
Picks a single date or a range.
Avoid
Date Picker
A fully accessible picker with keyboard support, presets, ranges, time zones and min/max dates. Renders in a popover (rounded-2xl, 12px) and works in forms.

28.Never write colon lists or stacked adjectives

"X: a, b, c and d" and "powerful, seamless" read as filler.

Recommended
Button
Triggers an action or submits a form.
Avoid
Button
A powerful, seamless button in six variants: default, secondary, outline, ghost, destructive and link.

29.Describe what it does, not where it came from

Copy names the job, not the projects behind it.

Recommended
Block Editor
Edits documents in blocks with slash commands.
Avoid
Block Editor
A port of the editor everyone knows, inspired by its slash menu.

30.Name template parts apart from registry items

A part file named like an item (parts/avatar.tsx next to the avatar item) collides on install and in imports.

Recommended
text
Avoid
text

31.Run the upgrade check after a theme update

The CLI adds and updates theme variables but never deletes one, so removed tokens linger.

Recommended
bash
Avoid
bash

Polish

32.Give every target 24px to land on

A 16px checkbox or close button is hard to hit with a trackpad and harder with a finger.

Recommended
tsx
Avoid
tsx

33.Trim the icon side of a button

An icon's side bearing adds space, so equal padding pushes the content off centre.

Recommended
tsx
Avoid
tsx

34.Outline images with a neutral hairline

Without an edge a pale photo melts into a white card; a grey border picks up the surface tint.

Recommended
tsx
Avoid
tsx

35.Cross-fade icon swaps

A glyph that cuts from copy to check is easy to miss; one that changes in place reads as a new state.

Recommended
tsx
Avoid
tsx

36.Transition states, keyframe one-offs

A transition retargets when a state flips mid-way; a keyframe restarts and snaps.

Recommended
tsx
Avoid
tsx

37.Leave quieter than you arrive

The eye has moved on to what comes next; a big exit pulls it back.

Recommended
tsx
Avoid
tsx

38.Recolour icons with CSS, keep their stroke and grid

A thicker stroke, an off-grid size or a baked-in fill makes one glyph look like another set.

Recommended
tsx
Avoid
tsx

39.Name every icon-only button

A screen reader announces an unnamed icon button as "button" and nothing else.

Recommended
tsx
Avoid
tsx

40.Match the icon stroke to the text weight

A regular stroke beside semibold type looks faint, as if the icon were disabled.

Recommended
tsx
Avoid
tsx

41.Fill the active glyph where there's no row fill

Colour alone is a weak signal for where you are, especially on a phone in sunlight.

Recommended
tsx
Avoid
tsx

42.Align text to the reading direction

text-left stays left in Arabic and Hebrew, where the text starts on the right.

Recommended
tsx
Avoid
tsx