Skip to content

acss-kit Overview

acss-kit is a Claude Code plugin that generates accessible React components and CSS themes for fpkit/acss projects.

Components

Self-contained .tsx + .scss file pairs written to src/components/fpkit/. No runtime npm dependency — you own the source.

Themes

OKLCH-derived CSS custom property files in src/styles/theme/. 18 semantic color roles, WCAG AA validated, light + dark.

CommandWhat it does
/setupBootstrap a project — install ui.tsx, configure the target, seed a starter theme
/kit-addGenerate one or more components (with dependency resolution)
/kit-add-htmlGenerate static HTML + SCSS + vanilla JS versions of components for non-React projects
/kit-createGenerate a single component from a natural-language description
/kit-listBrowse the component catalogue or inspect a specific component
/kit-syncBulk-install every component, foundation, and starter theme in one shot
/kit-updateRe-copy unmodified components after a plugin upgrade, preserving your edits
/theme-createGenerate a full light/dark theme from a seed hex color
/theme-brandScaffold a brand-specific theme override file
/theme-extractExtract brand colors from an image or Figma URL
/theme-updateEdit specific color roles in an existing theme file
/style-tuneTune theme roles or component tokens with natural-language modifiers
/prompt-bookPrint the copy-paste prompt catalogue for all slash commands
SkillTriggered byPurpose
setup/setupOne-shot project bootstrap (ui.tsx, target, optional seed theme)
components/kit-addFull component generation workflow (Steps A–F)
component-creator/kit-create or natural language (“create a primary pill button”)Generate a single component instance from a description
stylesAll /theme-* commandsOKLCH palette math, WCAG validation, role catalogue
component-formNatural language (“build a signup form”)Auto-generates accessible form components
style-tune/style-tune or natural language (“warmer button”)Adjusts visual feel via token edits + WCAG validation

Vendored source. Components are written as source files into your project. There’s no runtime @fpkit/acss import — your bundle doesn’t grow, and you can edit the generated files freely.

Generation contract. Before writing any file, /kit-add shows a preview listing exactly which files will be created or skipped. You always know what’s about to happen.

Dependency resolution. If you request dialog, acss-kit checks whether button and overlay exist. Missing dependencies are generated first (bottom-up), never silently skipped.

Atomic WCAG validation. Theme edits are pre-validated in a temp directory. If any contrast pair fails, the entire batch rolls back. Paired roles (primary + primary-hover) are always updated together.

CSS-variable-first. Every component token — --btn-bg, --card-radius, --dialog-overlay — is a CSS custom property with a hardcoded fallback. Override anything in your own CSS without touching the generated file.

Components are organized into six categories:

CategoryComponents
SimpleBadge, Tag, Heading, Text, Link, List, Icon, Img
InteractiveButton, IconButton
FormField, Input, Checkbox
LayoutCard, Nav
ComplexAlert, Dialog, Popover, Table
Form (skill)Auto-generated by the component-form skill on natural-language prompts

→ See the Component Catalogue for the full list with props and CSS tokens.