Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от scalar★ 16 482 звезды на GitHub

Об этом скилле

Scalar Design System

This skill is Scalar's design system, distilled for two jobs:

  1. 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."
  2. 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:

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 (#fff ground, #1b1b1b text).
  • Borders: hairline 0.5px, color #dfdfdf.
  • Radii: small — 3px default, 6px large, 8px extra-large.
  • Shape: information lives directly on surfaces; reserve cards/elevation for genuine grouping.

Foundations

  • Scoping: every Scalar style lives under the .scalar-app class. Any markup must be inside an element with class="scalar-app".
  • Light / dark: a .light-mode or .dark-mode class on a container selects the value set. Default to .light-mode.
  • Layers: themes load in two CSS layers — scalar-base (base variables + default theme) and scalar-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-2 20px, heading-3–6 16px, paragraph 16px, small 14px, mini 13px, micro 12px.
  • UI app sizes: --scalar-font-size-1…7 = 21, 16, 14, 13, 12, 12, 10 px.
  • Line heights: --scalar-line-height-1…5 = 32, 24, 20, 18, 16 px.
  • Weights: regular 400, semibold 500, bold 600.

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
Полный SKILL.md на GitHub

Установить scalar-design-system в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/components.mdreferences/paper.mdreferences/tokens.md

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), без исполняемых скриптов.

Похожие скиллы

Сравнить scalar-design-system с