/officialunofficial-skills:defaultsfrom Official Unofficial Skills
Applies interface defaults for scroll edges, shadows, surfaces, focus, hit areas, mobile viewport, forms, type, loading states, sound, hotkeys, and dialogs. Use when building or reviewing a screen, form, dialog, overlay, scroll container, loading state, or mobile layout.
Ships in Official Unofficial Skills. 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.
These defaults apply on every screen. Use the project's token wherever one exists for a value below. Where none exists, the values here are exact. In any visual style, a hard scroll cut or a clipped shadow is a finding.
Neighbouring skills own the rest. copy owns words and punctuation. reuse owns building these with the project's primitive. restraint decides whether a sound or an animation should exist. motion owns how things move. color owns colour and contrast. alignment owns concentric radii, optical nudges and icon alignment.
Each rule ends with its rule id. Cite that id in a finding.
mask-image gradient, not a hard cut (defaults-fade-not-cut, recipe).defaults-no-clipped-shadow, recipe).defaults-scroll-not-wrap, recipe).overscroll-behavior: contain, so the page behind stays still (defaults-contain-overscroll).defaults-sticky-border).scroll-padding-block-start to the height of the sticky header, so anchors and focused fields land below it (defaults-clear-sticky-chrome).border. Keep border: 1px solid transparent under the ring, so forced-colours mode still draws an edge (defaults-ring-not-border).defaults-layered-shadows, recipe).box-shadow (defaults-fade-the-shadow, recipe).defaults-image-outline, recipe).defaults-no-nested-cards).border-radius: 9999px (defaults-rounded-not-pill).defaults-no-decoration).color-scheme: dark on the root, so scrollbars and native controls follow it. Set one theme-color tag per colour scheme, matched to the top of the page (defaults-color-scheme).defaults-quiet-theme-switch, recipe).:focus-visible and outline, so a click does not draw it (defaults-focus-keyboard-only).<dialog> opened with showModal() handles the trap (defaults-trap-and-return-focus).defaults-hit-area, recipe).aria-label that says what it does (defaults-name-icon-buttons).defaults-not-color-alone).<a href>, so new-tab clicks, middle clicks and copy link all work (defaults-links-are-links).defaults-state-in-url).defaults-no-stacked-dialogs).The viewport tag and the base CSS for this section are in the mobile baseline.
maximum-scale=1 or user-scalable=no (defaults-allow-zoom).-webkit-tap-highlight-color: transparent once on the root, and give every tappable element its own :active state (defaults-no-tap-highlight).touch-action: manipulation, so a tap fires without a 300ms wait for a second tap (defaults-fast-tap).@media (hover: hover) and (pointer: fine). Without it, a tap leaves them stuck on a touch screen (defaults-hover-capable-only).100dvh. A first screen uses min-height: 100svh. With 100vh, the URL bar hides the bottom controls (defaults-dynamic-viewport).viewport-fit=cover to the viewport tag. Then pad fixed headers, tab bars, toasts and sheets with env(safe-area-inset-*) (defaults-safe-areas).user-select: none, so a long press does not select the label. Content text stays selectable (defaults-controls-not-selectable).defaults-keys-ignore-inputs, recipe).defaults-enter-submits).defaults-accept-messy-input).type, inputmode and autocomplete, so the keyboard and autofill fit it (defaults-input-types).defaults-input-16px).defaults-label-hit-area).defaults-validate-on-submit).defaults-loading-button).defaults-undo-destructive).font-variant-numeric: tabular-nums (defaults-tabular-numbers).text-wrap: balance. Body paragraphs take text-wrap: pretty (defaults-balanced-wrap).-webkit-font-smoothing: antialiased and -moz-osx-font-smoothing: grayscale once, on the root (defaults-antialiased-root).0.9em (defaults-inline-mono).defaults-truncate-with-way-back).min-width: 0. Fixed boxes such as avatars take flex-shrink: 0. Emails and URLs take overflow-wrap: anywhere (defaults-survives-long-content).defaults-omit-empty-fields).Intl.NumberFormat, Intl.DateTimeFormat and Intl.PluralRules (defaults-locale-format).role="status". Render the region empty before its text changes (defaults-announce-updates).null (defaults-instant-feedback).defaults-no-flicker-loading, recipe).defaults-sound-has-a-twin).defaults-no-sound-on-repeat).0.3 (defaults-sound-optional, recipe).Write one finding per root cause:
file:line - [rule-id] what is wrong
Then add a Rule | Count | Severity summary. Take the severity from checks.md. The verdict is Block while any HIGH finding remains, and Approve otherwise.
Approve only files you read. Open the screen when a check depends on layout. Mark each check you could not run as Not verified.
What SKILL.md sets; muted values are Claude Code's defaults
85 skills in this plugin
/alignmentMeasures a running page for edges, gaps, centres and radii that miss by a pixel or two, judges visual weight, and returns a numbered report with proof./animateBuilds a web animation from scratch and writes the code. Decides in order whether it should animate at all, its purpose, the tool, the properties, the easing and duration or spring, how it interrupts and exits, and reduced motion. Use when asked to animate something, add motion, build a transition, or make a component feel alive. For React Native or Expo use animate-expo. To critique existing motion use review-animations. To audit a whole codebase use improve-animations./animate-expoOther plugins' skills for the same job
npx claudepluginhub officialunofficial/skills --plugin officialunofficial-skills