leather-ui
БесплатноБез исполняемых скриптовНе проверенBuild or change Leather UI in apps/extension, apps/web, apps/mobile, packages/ui or packages/features. Use when adding or editing a screen, sheet, row, card…
от leather-io★ 29 звёзд на GitHubОб этом скилле
Leather UI
Leather's UI comes from @leather.io/ui (web), @leather.io/ui/native (mobile) and
@leather.io/tokens. Prefer composing what exists over adding new markup. When this skill and
the code disagree, the code wins. Note the mismatch in the PR so it can be fixed here.
Where to look
docs/design/i-need-to.md: each job ("confirm a risky action", "show an address") mapped to one component, with a working snippet. Read the matching section before writing JSX.docs/design/never.md: the things lint rejects, and what to use instead.packages/tokens/README.md: the ink text ladder.packages/ui/src/exports.web.tsandpackages/ui/src/native.ts: everything the ui package exports.docs/design/recipes.md: page shells, rows, review sheet, amount, section header and inline info. Compose screens from these. Use typed page actions and notices; spacing belongs to the recipes. Variants are for consequential workflow or UX trade-offs, not cosmetic differences.docs/design/explore.md: the protocol for exploring a feature (today's flow first, recreated faithfully, then one coherent feature with its states for a fixed brief; alternatives only for consequential choices).apps/extension/AGENTS.md,apps/web/AGENTS.md: platform sizes, input and what to verify.
When no pattern fits, don't invent a one-off. Follow the escalation step in explore.md:
bring the missing pattern and a focused proposal to design, with alternatives only for
consequential choices. The answer becomes a recipe or a component.
Specs
Colour. Use semantic tokens only: ink.*, red.*, green.*, yellow.*, blue.*,
orange.*. Each one already switches between light and dark.
| Need | Token |
|---|---|
| Page background | ink.background-primary |
| Raised or grouped surface | ink.background-secondary |
| Component fill (inputs, chips) | ink.component-background-default |
| Hover / pressed fill | ink.component-background-hover / -pressed |
| Divider, border | ink.border-default (or border="default") |
| Error, warning, success, info | red, yellow, green, blue + .background-secondary |
Text colour: the ink ladder. Pick the step by how much the reader depends on the text:
ink.text-primary for the content itself, ink.text-secondary for text that informs a decision,
ink.text-subdued for metadata someone can skip (only on ink.background-primary), and
ink.text-non-interactive for disabled. The full rules are in packages/tokens/README.md.
If you're unsure, use ink.text-secondary. Don't use opacity to make an in-between shade.
An icon next to text matches the text's ink or is lighter, never darker: use InlineIcon.
Use exported Leather icons for UI symbols, including CheckmarkIcon for selection; never
substitute a font glyph.
Type. Web textStyle values are display.01–02, heading.01–05, label.01–03,
body.01–02, caption.01–02, code and address. Native Text variant uses the same names
without the dot (label01).
- Sheet titles:
heading.05 - Row titles:
label.01(useTitle) - Buttons and values:
label.02 - Captions:
caption.01(useCaption) - Addresses:
address. Mono (address,code) is for full addresses and code only, never an amount, total or fee (lintno-mono-amount; on web that includestabular-nums).
display.*, heading.02 and heading.03 are Marche and already uppercase. Don't set
textTransform yourself. Keep a small area (a row, a card, a review group) to about three text
styles; nested numbers and labels go a size smaller than their parent.
Spacing. Use space.01–space.11, which are 4, 8, 12, 16, 24, 32, 40, 48, 64, 72 and 128px.
Use them for padding, gaps and margins. Radii are xs, sm, md, lg and round. A page has
one horizontal gutter (space.05 in the popup): rows, inputs and header icon glyphs all sit on it.
Compositions. In the web Playground, build screens from the recipes in
docs/design/recipes.md. Page shells take typed actions and a notice, and the inline
ReviewSheet is a visual demo, so product code uses the real Sheet + SheetHeader. The
descriptor shapes and the Sheet footer are in docs/design/i-need-to.md ("Place the screen's
actions", "Open a focused task").
Components.
| Job | Web (@leather.io/ui) |
Native (@leather.io/ui/native) |
|---|---|---|
| Action with a label | Button (solid once per view, then outline, ghost) |
Button |
Установить leather-ui в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл leather-ui?
Build or change Leather UI in apps/extension, apps/web, apps/mobile, packages/ui or packages/features. Use when adding or editing a screen, sheet, row, card, button, toast, empty or loading state, or any styling, colour, text style or spacing. Covers which @leather.io/ui component to use, the token and ink-ladder specs, and how to check the result.
Как установить скилл leather-ui?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл leather-ui запускает скрипты?
Нет, скилл состоит только из инструкций (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