ui-ux-craft
БесплатноБез исполняемых скриптовНе проверенUse when designing or building any screen, section or component that a user sees — visual hierarchy, typography, colour, spacing, states, forms and how to…
от makifbaysal★ 123 звезды на GitHubОб этом скилле
UI/UX Craft
Overview
Visual design is not decoration bolted on at the end — hierarchy, spacing, and states are load-bearing parts of the UI. The two most common failures are structural sameness (every screen reads as the same generic SaaS template) and a happy-path-only build (no loading/empty/error states).
Core principle: Decide the mode first — Marketing or App — then build to the quality floor: one primary action, systematic spacing, semantic tokens, and every state designed, never just the happy path.
Pick the mode first
| Marketing / landing | App / product UI | |
|---|---|---|
| Visitor wants to | decide and act | complete a task |
| Optimise for | one strong idea per section, a visual direction grounded in the product's actual subject matter, generous whitespace, real imagery | density appropriate to the task, predictability, consistency over novelty |
| Call to action | a single primary CTA, repeated | no persuasion chrome — tables/forms/filters done right |
Ground the direction in the real subject (industry, materials, audience) — a toy brand's landing page and a financial dashboard should never default to the same look.
Rules
Hierarchy
- One primary action per view. Emphasise with size → weight → colour, in that order; de-emphasise secondary content instead of shouting the primary one louder.
- Squint test: if you can't tell what matters most with eyes half-closed, the hierarchy isn't set yet.
Spacing & rhythm
- Use the token scale:
gap-1 gap-2 gap-3 gap-4 gap-6 gap-8 gap-12 gap-16 gap-24(4px steps). - Proximity: tight spacing inside a group, ≥2× that spacing between sections.
- More space above a heading than below it; align everything to one left edge or grid.
Typography
text-xs…text-6xl; body istext-base(16px); line-height 1.5–1.7 for body, 1.1–1.25 for display.- Measure 60–75ch (
max-w-prose); max two font families; weights 400/500/600/700 only. text-balanceon headings,text-prettyon body paragraphs;tabular-numson prices and stats.- No letter-spacing hacks except a sparing uppercase small label — never a decorative eyebrow (see below).
Colour
- Semantic tokens only (
bg-primary,text-muted-foreground,border-border) — never raw palette classes or hex. - Neutrals carry ~90% of the UI; one accent colour per view.
- Contrast ≥4.5:1 body text, ≥3:1 large text; status is never colour-only (pair with icon + text).
- Dark mode comes from the tokens, never a manual
dark:override. On a coloured surface, tint secondary text from that hue — never grey-on-colour.
Depth & shape
- One radius family (
--radius,rounded-md/rounded-lg/rounded-full); a nested radius is ≤ its parent's. - Shadows by elevation (
shadow-sm/shadow-md/shadow-lg); borders useborder-border. - Avoid "everything is a card" as the page structure, and never nest a card inside a card.
States — non-negotiable for every data view and every control
- Loading: a skeleton that mirrors the final layout — never a spinner-only full page.
- Empty: explain why, give one next action.
- Error: say what happened and how to recover, shown where it happened.
- Success: visible feedback (toast, inline confirmation, or state swap).
- Every control styles hover,
focus-visible, active, disabled, and pending. - Destructive actions go through
AlertDialogor an undo window — never a silent delete.
Forms
- Visible
<label>for every field — a placeholder is not a label. Helper text under the field, not hidden in a tooltip, unless the field is self-explanatory. - Inline error next to the field, plus
aria-invalid+aria-describedbypointing at it. - Validate on blur/submit, not on every keystroke; never block paste.
- Correct
type/inputmode/autocomplete; on submit, focus the first invalid field. - The submit button keeps its label and shows a spinner while pending (compose
Spinner, don't swap the text to "Loading…").
Copy & content
- UI copy in the app's locale. Buttons name the action ("Aboneliği başlat", not "Gönder"/"Submit").
- Errors state the problem and the fix, and don't apologise. No lorem ipsum — use realistic content.
- Numbers and currency through
Intl.NumberFormat, dates throughIntl.DateTimeFormat, both locale-aware.
Imagery & icons
- One icon library for the whole app (e.g.
lucide-react); consistent size and stroke width. aria-hiddenon decorative icons; never emoji standing in for an icon.- A placeholder visual is a tasteful SVG/illustration, not a grey box, in shipped UI.
Motion
- Only
transform/opacity; ≤200ms for interaction feedback; nevertransition-all. motion-reduce:respected. Prefer no animation over a gratuitous one; at most one purposeful moment per marketing page, not a fade-up on every section.
Anti-generic-look list — refuse these unless the brief explicitly asks for them
- No eyebrow/kicker label above a heading — the heading carries its own weight.
- No gradient text;
Установить ui-ux-craft в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл ui-ux-craft?
Use when designing or building any screen, section or component that a user sees — visual hierarchy, typography, colour, spacing, states, forms and how to avoid the generic AI look.
Как установить скилл ui-ux-craft?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ui-ux-craft запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic