Skip to content

xinetzone/SpecWeave / .agents/skills/21th-design

21th-design

Verified

Use this skill to generate well-branded interfaces and assets for 21th — an analytics dashboard system with light/dark themes, mono-led typography, square geometry, offset shadows, and restrained electric-blue accents. Contains token CSS, parsed token JSON, component specs, and preview HTML for dashboard UI work. Use when the user needs 21th-style UI, dashboards, or design assets, or asks to apply the 21th tokens and components.

FileKindSize
README.mdmarkdown12.2 KB
SKILL.mdskill md4.0 KB
assets/icons/arrow-down.svgother289 B
assets/icons/arrow-left.svgother289 B
assets/icons/arrow-right.svgother290 B
assets/icons/arrow-up.svgother284 B
assets/icons/box.svgother410 B
assets/icons/check.svgother260 B
assets/icons/chevron-down.svgother271 B
assets/icons/chevron-left.svgother273 B
assets/icons/chevron-right.svgother274 B
assets/icons/chevron-up.svgother269 B
assets/icons/chevrons-down-up.svgother304 B
assets/icons/chevrons-up-down.svgother304 B
assets/icons/circle-alert.svgother359 B
assets/icons/circle-check.svgother304 B
assets/icons/circle-minus.svgother298 B
assets/icons/circle-pause.svgother355 B
assets/icons/circle-play.svgother381 B
assets/icons/circle-plus.svgother315 B
assets/icons/circle-question-mark.svgother365 B
assets/icons/external-link.svgother361 B
assets/icons/file.svgother388 B
assets/icons/folder-open.svgother434 B
assets/icons/folder.svgother365 B
assets/icons/funnel.svgother393 B
assets/icons/grip.svgother504 B
assets/icons/heart.svgother394 B
assets/icons/house.svgother400 B
assets/icons/mail.svgother331 B
assets/icons/map-pin.svgother380 B
assets/icons/message-circle-more.svgother461 B
assets/icons/mouse-pointer-click.svgother496 B
assets/icons/pen-line.svgother399 B
assets/icons/send-horizontal.svgother414 B
assets/icons/star.svgother607 B
assets/icons/tag.svgother443 B
assets/icons/thumbs-down.svgother428 B
assets/icons/thumbs-up.svgother425 B
assets/icons/trash-2.svgother397 B
assets/icons/triangle-alert.svgother376 B
assets/icons/user.svgother314 B
colors_and_type.cssother9.8 KB
components/button.jsonconfig1.1 KB
components/card.jsonconfig998 B
components/chart-panel.jsonconfig1.1 KB
components/data-table.jsonconfig1.0 KB
components/index.jsonconfig1.8 KB
components/input.jsonconfig973 B
components/sidebar-nav.jsonconfig1.1 KB
css.jsonconfig4.0 KB
css/colors_and_type.cssother4.0 KB
metadata.jsonconfig82 B
preview/component-button.htmlother2.2 KB
preview/component-card.htmlother2.7 KB
preview/component-chart-panel.htmlother4.7 KB
preview/component-data-table.htmlother3.2 KB
preview/component-input.htmlother2.3 KB
preview/component-sidebar-nav.htmlother3.8 KB
ui_kits/dashboard/index.htmlother23.2 KB
---
name: 21th-design
description: Use this skill to generate well-branded interfaces and assets for 21th — an analytics dashboard system with light/dark themes, mono-led typography, square geometry, offset shadows, and restrained electric-blue accents. Contains token CSS, parsed token JSON, component specs, and preview HTML for dashboard UI work. Use when the user needs 21th-style UI, dashboards, or design assets, or asks to apply the 21th tokens and components.
user-invocable: true
source: "镜像自 Trae IDE design_libraries(源镜像已清理,原路径 external/dao/xinzo/.trae-cn/design_libraries/dl_builtin_21th)"
---

# 21th Design Skill

Use this skill for dense analytics dashboard work in the 21th visual language. Read the available files, then build static HTML prototypes or production UI that stays square, compact, and contrast-heavy.

If the user invokes this skill without much direction, ask what dashboard surface they need, then propose an on-brand layout using the existing token and component files.

## Quick map

- `SKILL.md` — agent entry point for the 21th library
- `colors_and_type.css` — live light/dark tokens for color, type, radius, shadow, spacing, and semantic aliases
- `css.json` — parsed hex, font, shadow, radius, and spacing values
- `components/index.json` — component inventory plus cross-component patterns
- `components/button.json` — action control guidance and sample labels
- `components/card.json` — panel surface guidance
- `components/chart-panel.json` — chart container guidance
- `components/data-table.json` — reporting grid guidance
- `components/input.json` — filter and search field guidance
- `components/sidebar-nav.json` — dashboard navigation shell guidance
- `preview/component-button.html` — rendered button states and sizes
- `preview/component-card.html` — rendered card treatments
- `preview/component-chart-panel.html` — rendered chart panel treatments
- `preview/component-data-table.html` — rendered data table treatments
- `preview/component-input.html` — rendered input and select-like field states
- `preview/component-sidebar-nav.html` — rendered sidebar navigation treatments

## Essentials at a glance

- Working primary is `#111111`, while the brand signal is `#0040ff`: use black for core controls and reserve the electric blue for charts, highlights, and one emphasized action per row.
- Light mode runs on `#c5c9c9` page background, `#d8dada` cards, and `#111111` text; dark mode flips to `#0a0a0a` page, `#1a1a1a` panels, and `#ffffff` text for the same high-contrast dashboard read.
- Typography is deliberately code-leaning: `Geist Mono` drives both `--font-sans` and `--font-mono`, while `Geist` is the serif-side support face; the interface should feel technical, compact, and editorial rather than friendly.
- Tracking defaults to `-0.05em`; keep labels tight, especially on structural copy and small uppercase markers that need a terse command-center cadence.
- Radius is `0px` (`0rem`) across the system; square corners are not a suggestion, they are the core shape language that keeps every panel and control feeling strict and analytical.
- Spacing starts at `4px`; the default button height is `36px`, small buttons are `30px`, large buttons are `42px`, standard inputs are `40px`, and large select-like fields are `44px`.
- Shadows are hard-offset, not soft: the base shadow language is `2px 2px 0px 0px #000000` with `0px` blur, so elevation should read like a printed keyline or mechanical stamp.
- Destructive color is `#d73333` in light mode and `#ef4444` in dark mode; use it sparingly for deletion, danger, or irreversible state changes only.
- The signature interaction quirk is mechanical motion: buttons hover with `translate(-1px, -1px)` and press with `translate(1px, 1px)`, so feedback should feel punched and tactile rather than soft.
- Voice stays short and operational, using real labels like “Create View”, “Export CSV”, “Search accounts”, “Overview”, “Analytics”, and “Weekly Summary”; keep copy concise, functional, and emoji-free.
deprecation-and-migrationaddyosmani/agent-skillsManages deprecation and migration. Use when removing old systems, APIs, or features. Use when migrating users from one implementation to another. Use when migrating a database schema in production, such as renaming or dropping a column without downtime (expand/contract). Use when deciding whether to maintain or sunset existing code.Stars: 119kUpdated Claude CodeCodexVerifiedInstall
performance-optimizationaddyosmani/agent-skillsOptimizes application performance across frontend, backend, queries, and databases. Use when performance requirements exist, when you suspect performance regressions, when Core Web Vitals or load times need improvement, when N+1 query patterns need fixing, or when profiling reveals bottlenecks.Stars: 119kUpdated Claude CodeCodexVerifiedInstall
agent-cost-reportthedotmack/claude-memBelievable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude Code transcripts priced at OpenRouter list prices (ESTIMATED), measured provider spend when a sanctioned source exists, note-taker cost separate, Timing-style HTML/PDF plus report.json, line-items.csv, evidence.json.Stars: 118kUpdated Claude CodeCodexVerifiedInstall
agent-cost-reportthedotmack/claude-memBelievable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude Code transcripts priced at OpenRouter list prices (ESTIMATED), measured provider spend when a sanctioned source exists, note-taker cost separate, Timing-style HTML/PDF plus report.json, line-items.csv, evidence.json.Stars: 118kUpdated Claude CodeCodexVerifiedInstall