glaze
Installation
SKILL.md
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.