Command Palette

Search for a command to run...

Назад к скиллам
скилл № 25317

bb-theme-authoring

Create or edit BB color themes and inspect them in the Theme Preview panel.

БесплатноБез исполняемых скриптов
get-bbот get-bb★ 15 звёзд на GitHub

Установить bb-theme-authoring в Claude Code и Claude Desktop

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

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

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

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

Authoring a bb theme

A bb theme is one CSS file that overrides the app's CSS custom properties. A plugin ships it through its manifest, and the Theme Preview panel shows every resolved token, its contrast measurement, and an app mock painted with it. Work in a split: your agent thread on one side, Theme Preview on the other.

Theme Preview is visualization and validation only. It never creates, writes, forks, repairs, or deletes a theme resource. Create and update the CSS file from the separate agent thread; use bb settings and bb plugin commands to activate and load themes. Validation reports inconsistent or inaccessible results, but it never changes authored values.

Where themes live

A theme lives in a plugin directory: a package.json that lists it and the CSS file next to it.

my-themes/package.json
my-themes/themes/dusk.css
{
  "name": "my-themes",
  "version": "0.1.0",
  "type": "module",
  "engines": { "bb": "^1" },
  "bb": {
    "name": "My themes",
    "themes": [{ "id": "dusk", "name": "Dusk", "css": "./themes/dusk.css" }]
  }
}

Load the directory once with bb plugin add <dir>. bb lists the theme as plugin:<plugin id>:<theme id> (the plugin id is the package name without a bb-plugin- prefix), for example plugin:my-themes:dusk. Add more themes to the themes array and run bb plugin reload <plugin id> to list them.

File shape

Two top-level blocks. Light values in :root, .light, dark values in .dark. Every declaration is a --token: value; custom property.

:root,
.light {
  --canvas: #f4f4f4;
  --ink: #0a0a0a;
  --primary: #2e6f95;
  --primary-foreground: #ffffff;
}

.dark {
  --canvas: #1a1a1a;
  --ink: #dbd8d1;
  --primary: #9db6c6;
  --primary-foreground: #0a0a0a;
}

You only need to declare what you change; everything else derives from bb's base theme. The anchors that drive the most are --canvas, --ink, --primary and --sidebar.

Tokens worth knowing

group tokens
Surfaces --canvas --sidebar --card --popover --secondary --muted --surface-recessed-solid --surface-scrim
Ink --ink (body) --foreground --muted-foreground --subtle-foreground --readback-foreground --sidebar-foreground
Accent and state --primary --primary-foreground --file-accent --timeline-accent --surface-selected --state-hover --state-active --sidebar-accent
Status --success --warning --warning-text --destructive --destructive-text --pr-merged --diff-added --diff-removed
Lines --border --border-hairline --border-seam --sidebar-border --input --ring
Type --font-sans --font-mono --font-terminal (declare once in :root)

How bb uses them (from bb's own components, so you can predict the result): sidebar rows hover with --sidebar-accent, the open thread's row is --state-active, the default button is --foreground on --background (bb has no primary-filled button; --primary is links, focus and accents), the composer sits on the canvas with a 1px --border, code blocks and message bubbles are a faint recessed wash with --border-seam. The integrated terminal uses --font-terminal, independently of --font-mono.

Element-scoped blocks are allowed — for example .dark .fixed.bg-sidebar { … } to give only the sidebar a different value — but keep palette values in the two top-level blocks so tooling can read them.

Apply and iterate

bb settings set theme plugin:my-themes:dusk   # activate it app-wide
bb settings get theme                         # what is active now

Or activate it from the Theme Preview dropdown and use the adjacent mode control to check light and dark. Once active, every save of the CSS file repaints the app and the preview automatically while the panel is open (the plugin watches the active theme's file and applies the saved CSS). Edit in the agent thread, glance at the split, edit again.

Verify before you call it done

In Theme Preview, read the Style sheet measurements:

  • Ink rows show a WCAG ratio against the surface they sit on; the floor is 4.5:1 for body text. The ratios are representative measurements, not a theme-level accessibility verdict.
  • Status rows show their ratio against the tinted surface where they are painted.
  • Surfaces with an amber outline are overridden inside the sidebar scope — mak
Полный SKILL.md на GitHub

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

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

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

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

  • references/plugin-themes.md

FAQ

Что делает скилл bb-theme-authoring?

Create or edit BB color themes and inspect them in the Theme Preview panel.

Как установить скилл bb-theme-authoring?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл bb-theme-authoring запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить bb-theme-authoring с