solid-glass
БесплатноЗапускает вложенные скриптыНе проверенApply deeplethe/solid-glass, a physical, tactile, technical glass design system stylesheet and component registry for AI applications built on shadcn/ui…
от akillness★ 63 звезды на GitHubОб этом скилле
Solid Glass
When to use this skill
Use when styling an AI application built with React 19 + Tailwind CSS 4 + shadcn/ui (Base UI) using deeplethe/solid-glass — an MIT-licensed stylesheet and 13-item registry designed around restrained, legible glass materiality ("the finish is at the edge; heavy, not airy; depth is thickness; one state").
Route-outs
- For self-contained React 19 agent components with zero Tailwind/CSS dependencies, use
affectui. - For OpenUI Lang 1.0 generative UI streaming apps, use
open-intelligent-ui. - For broader multi-brand design token governance or non-shadcn systems, use
design-system. - For validating
SKILL.mdformat or catalog metadata, useskill-standardization.
Instructions
1. Run offline project preflight
Before adding the stylesheet or registry components, inspect the target frontend workspace for React 19, Tailwind CSS 4, Base UI, components.json, and CSS import collisions:
python3 "$SKILL_DIR/scripts/preflight.py" --workspace "/absolute/path/to/frontend-app" --json
The preflight script inspects package.json, components.json, and CSS files (solid-glass.css, @import order, and duplicate :root/.dark tokens) offline without running npx or opening network sockets.
2. Install the stylesheet and AI components via shadcn CLI
Initialize a shadcn/ui project (React 19, Tailwind CSS 4, Base UI), then install Solid Glass's stylesheet:
npx shadcn@latest add deeplethe/solid-glass/solid-glass
Import ./solid-glass.css after Tailwind and shadcn's base CSS, and delete the :root and .dark color blocks written by shadcn init (Solid Glass defines the same shadcn variable names):
@import "tailwindcss";
@import "tw-animate-css";
@import "shadcn/tailwind.css";
@import "./solid-glass.css";
Install Solid Glass's AI-native components as needed:
npx shadcn@latest add deeplethe/solid-glass/status-glyph
npx shadcn@latest add deeplethe/solid-glass/composer
npx shadcn@latest add deeplethe/solid-glass/tool-steps
3. Apply the four material rules consistently
- Let shadcn surfaces carry glass automatically: Elements using
bg-card,bg-popover, orbg-sidebarinherit Solid Glass rim highlights, hairline edges, and blur viadata-slotrules outside Tailwind layers. Useglass-panelfor plain glass containers. - Respect edge-only border rules: Rim and shade are inset shadows inside borders. Do not keep extra border utilities on
bg-card,bg-popover, orglass-panel(it causes a double ring). - Use one unified interactive state: Apply
glass-chosen,glass-held,glass-control, orglass-armedinstead of custom gradients or raised shadows on list rows. Use<Button variant="glass">(anddata-strongfor primary emphasis in a group). - Support dark-first and reduced transparency: Dark mode is the primary surface; light mode uses the same tokens. For performance-sensitive or dense text regions, opt out of backdrop blur via
<aside data-glass="opaque">while keeping rims and shadows.
4. Customize brand hue and radius without breaking contrast
- Override
--brand,--brand-foreground, and--brand-mutedonce in:rootand.dark(kept sparingly for accent signals; primary ink and charts remain monochrome). - Adjust
--radius(0.875remdefault) rather than overriding per-component radii manually.
Examples
Audit CSS order and add Solid Glass AI turn primitives
# 1. Check React 19, Tailwind 4, and CSS import order offline
python3 "$SKILL_DIR/scripts/preflight.py" --workspace /path/to/app --json
# 2. Add stylesheet + AI status/tool primitives
npx shadcn@latest add deeplethe/solid-glass/solid-glass
npx shadcn@latest add deeplethe/solid-glass/turn-status
npx shadcn@latest add deeplethe/solid-glass/diff-view
npx shadcn@latest add deeplethe/solid-glass/ask-card
<div className="glass-panel rounded-md p-3">
<Button variant="glass" data-strong>Rerun now</Button>
</div>
Best practices
- Always remove
shadcn init:root/.darkcolor variables after importingsolid-glass.cssso stock variables do not shadow glass surface tokens. - Reserve motion for live execution: Use
status-glyph,turn-statusglint, and activetagstates strictly while work is running; keep completed states still. - Avoid double rings: Never stack Tailwind
borderclasses ontoglass-panel,bg-card, orbg-popoverelements. - Use
data-glass="opaque"for heavy scroll regions when backdrop blur reduces legibility or frame rate.
References
- Material System, Classes & Tokens: CSS variables,
glass-*classes, 13 registry components, and Base UI conventions. - Sources and Provenance: Upstream pin (
6e8903e494a15491ceda38fafea5056c95a74d44), MIT license, and stack boundaries. - Evaluation Scenarios: Five behavioral
Установить solid-glass в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
BashReadGrepGlobВложенные файлы
FAQ
Что делает скилл solid-glass?
Apply deeplethe/solid-glass, a physical, tactile, technical glass design system stylesheet and component registry for AI applications built on shadcn/ui (React 19, Tailwind CSS 4, Base UI). Use when installing `solid-glass.css` via shadcn CLI, removing duplicate `:root`/`.dark` theme tokens so Solid Glass variables take effect, configuring glass surface utilities (`glass-panel`, `glass-chosen`, `glass-held`, `glass-control`, `glass-armed`, `data-glass="opaque"`), customizing `--brand`/`--radius`, or adding AI interface primitives (`status-glyph`, `composer`, `tool-steps`, `diff-view`, `ask-card`, `context-ring`, `task-notice`, `reasoning`). Route zero-Tailwind standalone agent React cards to affectui, OpenUI Lang streaming to open-intelligent-ui, and SKILL.md linting to skill-standardization.
Как установить скилл solid-glass?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл solid-glass запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic