design-system
Create or modify coherent visual tokens and reusable component rules for color, typography, spacing, radius, elevation, controls, and interaction states.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-15
- Stars
- ★ 827
- Forks
- 573
01 前言 Front Matter
- name
- design-system
- description
- Create or modify coherent visual tokens and reusable component rules for color, typography, spacing, radius, elevation, controls, and interaction states.
03 SKILL.md 正文
Design system
Build a small system before styling individual nodes.
- Put shared values in CSS custom properties under
:root: semantic colors, type scale, spacing, radii, shadows, borders, and motion durations. - Name tokens by purpose (
--surface-raised,--text-muted,--space-3), not by a one-off component or raw color. - Define reusable classes for repeated patterns such as buttons, fields, cards, navigation items, badges, and overlays. Keep state styles adjacent to their base component.
- Maintain readable contrast and a visible keyboard focus ring. Color alone must not communicate state.
- Use a restrained type scale and spacing rhythm. A design becomes coherent by repeating decisions, not by adding decoration.
When the inspector scope is design-system, find the token or reusable rule
behind the selected node and change that source of truth. Update every
semantically matching instance and verify that unrelated components did not
regress. Do not solve a system-wide request with a new inline style.
04 同仓库更多 Skills
whoami
Show current Xyne Claw auth identity.
sessions
List Xyne Claw sessions.
run
Run a Xyne Claw agent.
login
Log the user into Xyne Claw.
agents
List available Xyne Claw agents.
explanation-document
Structure a codebase/schema explanation as a self-contained HTML document ordered for a READER — mental model and flows first, deep per-component reference last — not in the order you explored it.