glaze
БесплатноЗапускает вложенные скриптыНе проверенGlaze design system rules for this project's UI. Use when building or changing any screen, component, form or style, when porting an existing screen onto…
от arla6ka★ 650 звёзд на GitHubОб этом скилле
Glaze
Glaze is compact black and white for AI products: ink and paper, greys as ink at alphas, colour only for status, and glass only on the one action a group leads with; its secondaries stay flat. Build with these components before writing markup.
Setup
Once, in the root layout: put the "glaze" class on <body> or the root element of the UI, with GlazePortalProvider inside it. Glaze's styles and tokens apply only inside that class.
Menus, dialogs, popovers and toasts render at the end of the body; GlazePortalProvider keeps them inside the scope, and without it they lose every token. import {GlazePortalProvider} from '@/lib/glaze/portal'
<body className="glaze"><GlazePortalProvider>{children}</GlazePortalProvider></body>
Steps
- For a whole screen, start from a block under Blocks when one fits: install it, then swap its sample data and copy for the real ones.
- Pick the components the screen needs from the index below. Fetch each one's page before using it: it has the props, variants and that component's rules.
- Build only from those components and the tokens under Tokens, inside an element with the "glaze" class. Import each from the path in the index; support pieces are under Imports. Dark mode: put data-theme="dark" on the glaze element or any ancestor, such as . The theme does not follow the system setting (prefers-color-scheme) on its own.
- Frame the screen with the Page shell. If a token or component is missing, stop and say so. Do not invent one.
- Ask the person only when the screen needs a fact you were not given, such as a model name or a limit; decide everything else from these rules and say what you chose.
- Porting an existing screen: swap one piece at a time for its component, keep the behavior and copy, and delete the old styles once nothing uses them. For a whole app, run migrate-design-system when it is installed.
- Lint: install it once with
npx shadcn@latest add https://design.how/r/glaze/lint.json, then runnpx eslint -c glaze.eslint.config.mjs .. Each message names the fix. - Review before you finish: run the lint and fix every error, then render the screen at 390 and 1280 wide, check it against the global rules and the anti-slop list, fix the worst defect, and check again. Done when no MUST or NEVER is broken and no raw color, size or font is left. Run ui-review when it is installed.
Priority order
When rules conflict, the earlier item wins.
- Accessibility and keyboard behaviour
- Tokens by role, never raw values
- Existing components and recipes, never rebuilt
- The three signatures: glass on pressables, the shell card, pills for one-line controls
- Compact spacing and type
Global rules
- glaze-components-first MUST Use a Glaze component or recipe before writing markup; fetch its page before you build. Because each one already carries the focus ring, the states and the glass a hand-built copy forgets.
- Correct:
import {Button} from '@/components/glaze/ui/button'
- Correct:
- glaze-scope MUST Wrap Glaze UI in className="glaze" with GlazePortalProvider inside it, so overlays keep the tokens. Because a menu or dialog renders at the end of the body, outside the scope, and would lose every colour.
- Correct:
<div className="glaze"><GlazePortalProvider>{children}</GlazePortalProvider></div>
- Correct:
- glaze-tokens-only MUST Use only the roles Glaze defines, such as text-text-2, bg-paper and border-line-faint; never a hex, an arbitrary px or a dark: variant. Because the dark theme swaps the roles, and a raw value stays behind.
- Correct:
<p className="text-text-2"> - Wrong:
<p className="text-[#6c6c6c]">
- Correct:
- glaze-one-primary MUST Lead a card, footer, dialog or any group of actions with at most one primary Button (ink, coral or green glass); every other action beside it is variant="secondary", flat. Because two glass pills side by side split the eye and neither reads as the next step.
- Correct:
<Button variant="secondary">Not now</Button><Button>Join</Button> - Wrong:
<Button>Not now</Button><Button>Join</Button>
- Correct:
- glaze-glass-on-pressables NEVER Put glass on anything a person does not press: cards, headers, badges, fields, menus. Because glass is the one sign that a thing can be pressed, and glass everywhere turns it into a theme.
- Correct:
<div className="shell"><div className="panel p-3"> - Wrong:
<div className="glass glass-paper rounded-shell p-3">
- Correct:
- glaze-no-shadows NEVER Cast a shadow anywhere, overlays included; a card is a shell, an overlay is paper with a 1px ring. Because depth in Glaze is drawn inside the shape, and every shadow class draws nothing.
- Correct:
<div className="shell"> - Wrong:
<div className="shell shadow-md">
- Correct:
- glaze-pill-controls MUST Make every one-line control a pill: buttons, fields, selects, chips, the segmented control. Because the pill is how a Glaze control looks, and a squared field beside a pill button reads as another system.
- Correct: `<div className="field"
Установить glaze в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл glaze?
Glaze design system rules for this project's UI. Use when building or changing any screen, component, form or style, when porting an existing screen onto Glaze, or when checking UI against Glaze.
Как установить скилл glaze?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл glaze запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
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