Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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

  1. 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.
  2. 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.
  3. 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.
  4. Frame the screen with the Page shell. If a token or component is missing, stop and say so. Do not invent one.
  5. 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.
  6. 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.
  7. Lint: install it once with npx shadcn@latest add https://design.how/r/glaze/lint.json, then run npx eslint -c glaze.eslint.config.mjs .. Each message names the fix.
  8. 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.

  1. Accessibility and keyboard behaviour
  2. Tokens by role, never raw values
  3. Existing components and recipes, never rebuilt
  4. The three signatures: glass on pressables, the shell card, pills for one-line controls
  5. Compact spacing and type

Global rules

  1. 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'
  2. 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>
  3. 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]">
  4. 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>
  5. 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">
  6. 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">
  7. 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"
Полный SKILL.md на GitHub

Установить glaze в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

README.mdai/action-receipt.tsxai/activity.tsxai/autonomy-rule.tsxai/conversation.tsxai/follow-ups.tsxai/mention.tsxai/message.tsxai/prompt-input.tsxai/prompt-input/attachment.tsxai/prompt-input/caret.tsai/prompt-input/codec.tsai/prompt-input/menu.tsxai/prompt-input/mic.tsxai/prompt-queue.tsxai/reasoning.tsxai/request-ticker.tsxai/response.tsxai/send-button.tsxai/tool-call.tsxbase.cssblocks/agent-plan.tsxblocks/agent-procedure.tsxblocks/assistant-limits.tsxblocks/booking-approval.tsxblocks/cited-answer.tsxblocks/conversation-insights.tsxblocks/experiment.tsxblocks/note-recap.tsxblocks/simulations.tsxblocks/today.tsxblocks/voice-capture.tsxicon.tsxlib/children.tslib/data.tslib/direction.tslib/overlay.tslib/portal.tslib/utils.tslint/classes.json

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 запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить glaze с