@shadsapp/cli
v2.2.3
Published
CLI for installing shads.app design-system themes into shadcn projects
Readme
@shadsapp/cli
Install shads.app themes into shadcn projects with shads.
Install
npm install -g @shadsapp/cli
# or
npx @shadsapp/cli --helpCommands
shads themes # list catalog themes, grouped by system
shads install system-modern-default-theme
shads install system-modern-terminal-theme --yes
shads install https://registry.example/item.json
shads install ./theme.css
shads create my-app -t system-modern-terminal-theme
shads create my-app --preset https://registry.example/item.json
shads themes import system-modern-terminal-theme
shads login [--key <key>]
shads whoami
shads logout
shads validate theme.json
shads schema
shads migrate icons --from lucide --to tablerThree catalog themes are tagged (free) and install without an account or
activation: Modern · Claret (system-modern-default-theme), Kids' Sketchbook ·
Original (system-kids-sketchbook-original-theme), and Neobrutalism · Original
(system-neobrutalism-original-theme). Other catalog installs are saved to
your shads.app library. A Free account has five lifetime activations; the
first registry fetch activates a theme, which can then be installed any number
of times. The CLI asks for confirmation before using your final activation;
--yes / -y skips that prompt. Activated themes are not re-counted.
Login and CI
Create a free account at https://shads.app, copy the API key from Account settings, then run:
shads login
# or pass it directly
shads login --key shads_live_...
shads whoami
shads logoutCredentials are stored in ${XDG_CONFIG_HOME:-~/.config}/shads/credentials.json
with directory mode 0700 and file mode 0600. For CI, set SHADS_API_KEY;
it takes precedence over saved credentials. Set SHADS_ORIGIN to use a
self-hosted or local API origin.
Project creation and installs
shads create delegates to npx shadcn@latest create --preset …. A catalog
preset uses the public registry URL for Free themes and the authenticated
library registry URL for other themes. Explicit third-party registry URLs are
passed through unchanged. shads install <registry-url> likewise delegates to
npx shadcn@latest add <url> outside a shadcn project, or for items that are not
themes. Local .css paths copy only that stylesheet.
Switching themes
shadcn add only merges CSS, so a second theme would stack on the first. Inside a
shadcn project (a components.json with a tailwind.css path), shads install
lets shadcn merge only the colour tokens and radius, writes the rest of the theme
to shads-theme.css next to your global stylesheet, and replaces that file on
every install. It also removes leftover theme rules from earlier plain
shadcn add runs; it never touches your own rules or @import lines.
shads install system-modern-terminal-theme # replaces the previous theme
shads doctor # report leftover theme CSS (exit 1 if any)
shads reset [--dry-run] # remove theme CSS, keep colour tokensRun shads themes to browse the complete 122-theme metadata catalog.
Related packages
@shadsapp/themes— metadata-only catalog@shadsapp/schema— ThemeV1 schema and validation- Remote MCP server —
https://mcp.shads.app
License
MIT
