scalar-design-system
БесплатноБез исполняемых скриптовНе проверенScalar's design system — design tokens, theming (@scalar/themes), CSS variables, and the @scalar/components library. Use when designing or implementing Scalar…
от scalar★ 16 482 звезды на GitHubОб этом скилле
Scalar Design System
This skill is Scalar's design system, distilled for two jobs:
- Designing Scalar UI in Paper (
code-to-design) — so a design uses Scalar's real palette, type, spacing, and component shapes from the first stroke, with no invented "design brief." - Turning a Paper design into code (
design-to-code) — so the output maps back to the correct--scalar-*variables, Tailwind classes, and@scalar/components.
It complements the code-to-design and design-to-code plugin skills; this one supplies the Scalar-specific knowledge they lack.
Prerequisite for Paper work: Paper Desktop must be running with a file open. If the Paper MCP connection fails, ask the user to open Paper Desktop first.
The values below are a curated snapshot of the default theme — enough to design and implement directly. For the full variable catalog, all 13 theme presets, and the complete component list, read the reference files:
references/tokens.md— every--scalar-*variable, the Tailwind mapping, and all theme presets.references/components.md— all 34 components, their variants/props, and the subpath import map.references/paper.md— bidirectional Paper ↔ Scalar mapping tables for round-tripping designs.
Brand essentials
Scalar's look is a clean, modern developer-tool aesthetic: high-contrast typography, restrained color, hairline borders, and small radii. Treat it as a product/clarity system, not a marketing/expressive one.
- Type: the system UI font for UI and prose, the system monospace font for code. No web fonts are loaded.
- Accent:
#0099ff(one deliberate accent; everything else is neutral). - Mode: light mode by default (
#fffground,#1b1b1btext). - Borders: hairline
0.5px, color#dfdfdf. - Radii: small —
3pxdefault,6pxlarge,8pxextra-large. - Shape: information lives directly on surfaces; reserve cards/elevation for genuine grouping.
Foundations
- Scoping: every Scalar style lives under the
.scalar-appclass. Any markup must be inside an element withclass="scalar-app". - Light / dark: a
.light-modeor.dark-modeclass on a container selects the value set. Default to.light-mode. - Layers: themes load in two CSS layers —
scalar-base(base variables + default theme) andscalar-theme(preset overrides). Unlayered CSS overrides both.
Design tokens (default theme)
Reference --scalar-* variables in CSS; in components, prefer the Tailwind classes (next section).
Color — text (--scalar-color-*)
| Variable | Light | Dark | Role |
|---|---|---|---|
--scalar-color-1 |
#1b1b1b |
#e7e7e7 |
Primary text |
--scalar-color-2 |
#707070 |
#a4a4a4 |
Secondary text |
--scalar-color-3 |
#8e8e8e |
#797979 |
Muted text |
--scalar-color-accent |
#0099ff |
#00aeff |
Accent / interactive |
Color — background (--scalar-background-*)
| Variable | Light | Dark | Role |
|---|---|---|---|
--scalar-background-1 |
#fff |
#0f0f0f |
Base surface |
--scalar-background-2 |
#f6f6f6 |
#1a1a1a |
Raised surface / hover |
--scalar-background-3 |
#e7e7e7 |
#272727 |
Highest contrast surface |
--scalar-background-accent |
#8ab4f81f |
#3ea6ff1f |
Tinted accent fill |
Borders & shadows
--scalar-border-color—#dfdfdf(light) /#2d2d2d(dark);--scalar-border-width—0.5px.--scalar-shadow-1(subtle),--scalar-shadow-2(lifted).
Semantic colors (--scalar-color-{green,red,yellow,blue,orange,purple}, plus --scalar-color-danger / --scalar-color-alert and matching --scalar-background-*). Light: green #069061, red #ef0006, yellow #edbe20, blue #0072bd, orange #ff5800, purple #5203d1.
Radii: --scalar-radius 3px, --scalar-radius-md 3px, --scalar-radius-lg 6px, --scalar-radius-xl 8px, --scalar-radius-2xl 12px, --scalar-radius-3xl 16px, --scalar-radius-full pill. All derive from --scalar-radius, so overriding it on :root rescales every corner, and 0 makes the interface square. Everything except -full clamps to --scalar-radius-max (20px) so a large radius cannot swallow a container's content. Reach for --scalar-radius-md rather than --scalar-radius on anything that holds content.
Typography
- Content sizes: heading-1
24px, heading-220px, heading-3–616px, paragraph16px, small14px, mini13px, micro12px. - UI app sizes:
--scalar-font-size-1…7=21, 16, 14, 13, 12, 12, 10px. - Line heights:
--scalar-line-height-1…5=32, 24, 20, 18, 16px. - Weights: regular
400, semibold500, bold600.
Tailwind class mapping
Scalar maps --scalar-* variables onto a custom Tailwind theme. In components, use these classes rather than raw variables. Source of truth: @scalar/themes/tailwind.css.
- Background:
bg-b-1,bg-b-1.5,bg-b-2,bg-b-3, `b
Установить scalar-design-system в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл scalar-design-system?
Scalar's design system — design tokens, theming (@scalar/themes), CSS variables, and the @scalar/components library. Use when designing or implementing Scalar UI, especially with Paper (code-to-design / design-to-code), so output matches real Scalar tokens, colors, typography, spacing, and components instead of generic defaults.
Как установить скилл scalar-design-system?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл scalar-design-system запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic