Skip to content
Skills Library
Design & UX · Building & coding

style-library

/style-library

Save, list, apply and update named style packs for web-slides decks — theme tokens plus React/CSS component patterns (title hero, KPI, timeline, …). Use when the user likes a deck or component look and wants to reuse it later, asks to save a theme pack, apply a saved style, or browse the style library. Companion to web-slides; does not replace building a deck.

Licence
MIT
Last repository change
12.11.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
16
Scripts
1
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 12.11.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What to check before installing
  • 1 scripts in this package. Review them before installing, as Claude may execute them.

Scripts: scripts/style-lib.mjs

What it does and when to use it

Save, list, apply and update named style packs for web-slides decks — theme tokens plus React/CSS component patterns (title hero, KPI, timeline, …). Use when the user likes a deck or component look and wants to reuse it later, asks to save a theme pack, apply a saved style, or browse the style library. Companion to web-slides; does not replace building a deck.

Original author description

Save, list, apply and update named style packs for web-slides decks — theme tokens plus React/CSS component patterns (title hero, KPI, timeline, …). Use when the user likes a deck or component look and wants to reuse it later, asks to save a theme pack, apply a saved style, or browse the style library. Companion to web-slides; does not replace building a deck.

How it works

  1. When to use
  2. Pack locations
  3. Commands
  4. Agent workflow
  5. Scope (what a pack holds)
  6. Pairing with web-slides
Original SKILL.md headings · 71 lines, 692 words
SKILL.md preview
---
name: style-library
description: Save, list, apply and update named style packs for web-slides decks — theme tokens plus React/CSS component patterns (title hero, KPI, timeline, …). Use when the user likes a deck or component look and wants to reuse it later, asks to save a theme pack, apply a saved style, or browse the style library. Companion to web-slides; does not replace building a deck.
license: MIT
compatibility: Needs Node.js 20+. Works with decks scaffolded by the web-slides skill.
metadata:
  version: "0.1.0"
  companion: "web-slides"
---

# Style library

Capture a look you (or the user) liked — **theme tokens** and/or **component/layout patterns** — as a named **pack**, then reuse it on the next deck.

This skill does **not** vendor third-party PPTX/Google Slides. Packs are **original CSS/TSX snapshots** (and short Markdown recipes) derived from a web-slides deck you already built or from this repo’s template.

Paths below are relative to this skill directory unless noted. Read `references/` when a step tells you to.

## When to use

- User says “save this style”, “remember this theme”, “use the airport title look again”, “apply pack X”.
- After polishing a deck whose brand or layout recipes are worth reusing.
- Before inventing a new brand from scratch when a pack already covers the need.

Prefer **web-slides** built-in / inspiration themes (`midnight`, `aurora`, `paper`, `tech-dark`, `bento-minimal`, `navy-pitch`) for generic looks. Use this library for **user-specific** or **named** packs (project brand, title-hero recipe, KPI strip convention).

## Pack locations

| Location | Path | Who owns it |
|---|---|---|
| **Repo packs** | `skills/style-library/styles/<pack-id>/` | Shared with the skill; commit when the pack is general |
| **User packs** | `~/.pi/agent/style-library/styles/<pack-id>/` | Personal; never commit secrets or uncleared photos |
| **Override** | `$STYLE_LIBRARY_DIR/<pack-id>/` | Wins over both when set |

Search order for `list` / `apply`: `$STYLE_LIBRARY_DIR` → user dir → repo `styles/`. Same `id` in a higher-priority dir shadows a lower one.

Schema: `references/pack-schema.md`. Workflow detail: `references/workflow.md`. Examples: `references/examples.md`.

## Commands

Run from the **repo root** (or any cwd; the script resolves the skill dir):

```bash
node skills/style-library/scripts/style-lib.mjs list
node skills/style-library/scripts/style-lib.mjs save  --id <pack-id> --from <deck-dir> [--name "..."] [--theme brand|navy-pitch|…] [--patterns title-hero,kpi,timeline] [--dest repo|user]
node skills/style-library/scripts/style-lib.mjs apply --id <pack-id> --deck <deck-dir> [--patterns-only] [--theme-only] [--no-wire]
node skills/style-library/scripts/style-lib.mjs update --id <pack-id> --from <deck-dir> [--patterns title-hero,kpi]
node skills/style-library/scripts/style-lib.mjs show  --id <pack-id>
```

| Command | Does |
|---|---|
| **list** | Print pack id, name, tags, path |
| **save** | Snapshot `brand.css` / a theme block + selected pattern recipes into a new pack |
| **apply** | Write theme into `brand.css`, set `theme: "brand"`, write `content/style-pack.json`, patch `deck.spec.yaml` (style_pack + per-slide pattern/layout/title-hero fields), wire matching slide TSX, emit `src/slides/generated/from-pack.ts`, and copy recipes to `style-import/pack-<id>/`. Use `--no-wire` to only copy files. |
| **update** | Refresh an existing pack from a deck (bumps `updated`, replaces files) |
| **show** | Dump `pack.json` + file list |

## Agent workflow

1. **Study.** Open the deck (or template slide) the user liked. Note theme (`brand` / preset) and which patterns matter (title hero, KPI strip, timeline, compare, …).
2. **Save.** Pick a kebab `pack-id`. Run `save` with `--from <deck>` and `--patterns …` as needed. Prefer `--dest user` for one-off client brands; `--dest repo` only for packs meant to ship with this skill.
3. **Confirm.** `list` / `show` and tell the user the id and what was captured (theme tokens? which patterns?).
4. **Apply later.** On a new deck, `apply --id <pack-id> --deck <dir>` (wires theme + patterns into the build: `brand.css`, `content/style-pack.json`, `deck.spec.yaml`, matching slide TSX, `src/slides/generated/from-pack.ts`). Then `cd <dir> && npm run spec && npm run check:tokens && npm run review`. Adapt copy; do not paste third-party assets.
5. **Update.** If the user refined the look, `update --id <pack-id> --from <deck>`.

## Scope (what a pack holds)

- **Theme:** CSS custom properties under `[data-theme="brand"]` (colors, fonts, radii, layout-feel tokens). Source: deck `src/theme/brand.css`, or a named block extracted from `tokens.css`.
- **Patterns:** Markdown recipes + optional `.css.snippet` / `.tsx.snippet` for layouts/components already in web-slides (`title-hero`, `kpi`, `timeline`, `compare`, `bento`, …). Patterns describe how to compose existing primitives — they do not fork the whole engine.
- **Not in scope:** vendored PPTX, hotlinked stock photos, proprietary fonts, copying another vendor’s slide masters.

## Pairing with web-slides

- Scaffold with web-slides (`new-deck.mjs`), then **apply** a pack.
- Or finish a deck, **save** a pack, then point web-slides brief at that pack next time.
- Style **import** (`style:url` / `style:images` / `style:svg`) creates a one-off `brand.css`. If the user likes it, **save** it here so the next deck does not re-scrape.

See web-slides `references/style-import.md` and `docs/template-inspiration.md` for one-shot brand capture; this skill is the **reuse** layer.
Files in this package (16)
  • SKILL.md 5 KB
  • references/examples.md 1 KB
  • references/pack-schema.md 2 KB
  • references/workflow.md 2 KB
  • scripts/style-lib.mjs 28 KB
  • styles/navy-pitch-snapshot/README.md 1 KB
  • styles/navy-pitch-snapshot/brand.css 1 KB
  • styles/navy-pitch-snapshot/pack.json 1 KB
  • styles/navy-pitch-snapshot/patterns/kpi.css.snippet 1 KB
  • styles/navy-pitch-snapshot/patterns/kpi.md 1 KB
  • styles/navy-pitch-snapshot/patterns/kpi.tsx.snippet 1 KB
  • styles/title-hero-light/README.md 1 KB
  • styles/title-hero-light/pack.json 1 KB
  • styles/title-hero-light/patterns/title-hero.css.snippet 1 KB
  • styles/title-hero-light/patterns/title-hero.md 1 KB
  • styles/title-hero-light/patterns/title-hero.tsx.snippet 1 KB

Versions

RepositoryScoreLicence
This page · jasonli0226/pi-slides-skill100MIT
aykutucesai/motionforge100MIT

Database snapshot: 13.11.2026 · package version efdbdcf3edd9 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 2 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 90apply-style
    Apply the OneWave design style (tokens + theme) to a frontend project. Trigger when the user asks to brand a site, apply the OneWave look, set up design tokens, theme an app, or fix off-brand colors and typography.
  • 85deck-kit
    Extend a finished design system with a presentation layer: spec the slide masters into deck-kit/DECKKIT.md (seeded from a bundled standard master catalog, trimmed per FOUNDATION.md), write each theme's deck.css bridge mapping reveal.js's --r-* vars onto the theme's --ds-*…
  • 100component-library-studio
    Design and build polished pages from an existing component library and its design tokens, such as landing pages, showcase/docs sites, app screens, dashboards and settings pages. It works in the style of the best component-library sites (Radix, shadcn/ui, Park UI, Kokonut UI):…
  • 95frontend-theming
    Use this skill when the user says 'theming', 'dark mode', 'light mode', 'theme switching', 'CSS variables', 'custom properties', 'theme provider', 'theme context', 'color scheme', 'prefers-color-scheme', 'theme toggle', 'design tokens'. Implement theme systems with CSS…
  • 100design-md
    Extract a comprehensive design system (DESIGN.md) directly from frontend source code — React, Vue, Svelte, Angular, plain HTML/CSS, or any web framework. Analyzes component files, stylesheets, Tailwind configs, theme definitions, and design tokens to produce a rich,…
  • 100design-system-creator
    Builds comprehensive design systems and design bibles with production-ready CSS. Expert in design tokens, component libraries, CSS architecture. Use for design system creation, token architecture, component documentation, style guide generation. Activate on "design system",…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.