npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@sigil-ui/cli

v2.0.0

Published

CLI for Sigil UI — project setup, preset switching, component scaffolding, token diffing, and health checks

Readme

@sigil-ui/cli

The command-line interface for Sigil UI. Handles project setup, component installation, preset management, token diffing, and project health validation. Generates AI agent instructions so coding agents know how to work with your Sigil project.

The Core Principle

The CLI is the primary interface for configuring a Sigil project. Instead of manually editing config files, Tailwind configs, or component styles, use the CLI to:

  • Generate and compile DESIGN.md (sigil design generate/compile/sync/extract)
  • Set up the token pipeline (sigil init)
  • Install token-driven components (sigil add)
  • Switch the entire visual identity (sigil preset)
  • Draft tokens from references (sigil inspire)
  • Generate custom library docs (sigil docs)
  • Bridge existing systems into Sigil tokens (sigil adapter)
  • Validate that tokens are consistent (sigil doctor)
  • Track token changes (sigil diff)

Installation

pnpm add -D @sigil-ui/cli

Or use directly via npx:

npx @sigil-ui/cli init
pnpm dlx @sigil-ui/cli convert

Commands

sigil init — Interactive Setup

The most important command. Walks you through a questionnaire that configures Sigil for your project.

What it detects automatically:

  • Framework (Next.js, Remix, Vite, Astro)
  • Package manager (pnpm, yarn, bun, npm)
  • TypeScript presence
  • Tailwind CSS presence
  • Directory structure (src/ vs root)
  • Global CSS file location

What it asks:

| Step | Question | Options | |------|----------|---------| | 1 | What are you building? | SaaS, Marketing, Docs, Blog, Portfolio, E-commerce, Startup, Custom | | 2 | Choose a preset | 46 presets organized by category, with recommendations based on project type | | 3 | Customize preset? | Override primary color (OKLCH), display font, body font, mono font | | 4 | Which features? | GSAP + ScrollTrigger, Motion, Radix Primitives, Pretext, Sigil Grid | | 5 | Starter components? | button, card, input, badge, dialog, dropdown, tabs, tooltip, sigil-grid/cross/rail/card | | 6 | File paths | Components directory, tokens CSS path | | 7 | Agent instructions? | Generate .sigil/AGENTS.md for AI coding agents |

What it creates:

  • sigil.config.ts — project configuration
  • Token CSS file — imports base tokens + preset + optional overrides
  • Components directory — with optional starter component stubs
  • .sigil/AGENTS.md — instructions for AI agents (optional)
  • .sigil/skills/ — Sigil workflow skills for tokens, presets, components, layouts, pages, migrations, and polish
  • .cursor/rules/sigil-skills.mdc — Cursor rule that enforces the installed skills

Flags:

  • -p, --preset <name> — skip preset selection
  • -d, --dir <dir> — override components directory
  • -y, --yes — skip all prompts, use defaults
  • --no-agent — skip agent instructions generation
  • --install / --no-install — control dependency installation
  • --inject-css / --no-inject-css — control global CSS import injection
  • --dry-run — preview setup changes without writing files

sigil convert — Adopt Sigil in an Existing Project

Converts an existing Next.js, Vite, Remix, Astro, or React-style project end-to-end.

pnpm dlx @sigil-ui/cli convert
npx @sigil-ui/cli convert --preset noir --no-install

It detects your framework, package manager, TypeScript, Tailwind, and global CSS file, then writes Sigil config/tokens/agent instructions, injects the token import, updates package.json, and optionally installs dependencies.

Flags:

  • -p, --preset <name> — preset to use
  • -d, --dir <dir> — components directory
  • -y, --yes — skip prompts, use defaults
  • --no-agent — skip agent instructions generation
  • --no-install — update package.json but skip package-manager install
  • --no-inject-css — skip global CSS import injection
  • --dry-run — preview conversion without writing files
  • --overwrite — replace an existing sigil.config.ts

sigil add — Install Components

Copies component source files from @sigil-ui/components into your project.

sigil add button card input         # specific components
sigil add --all                      # all registered components
sigil add dialog --overwrite         # replace existing files
sigil add badge --dir lib/ui         # custom output directory

Components are copied as source so you own them, but they still read from token CSS variables. The CLI resolves source from @sigil-ui/components and creates small local support helpers when needed. The right way to restyle is still through the token layer.

Available components: button, card, input, badge, dialog, dropdown, tabs, tooltip, sigil-grid, sigil-cross, sigil-rail, sigil-card

sigil preset — Manage Presets

sigil preset              # show current preset info
sigil preset list         # browse all 46 presets by category with descriptions and fonts
sigil preset noir         # switch to noir preset
sigil preset create       # scaffold a custom preset file

sigil preset list prints all 46 presets organized by category (Structural, Minimal, Dark, Colorful, Editorial, Industrial, Edgeless) with descriptions and font stacks.

sigil preset create walks you through:

  1. Custom preset name
  2. Base preset to derive from (sigil, crux, noir, prism, mono, or blank)
  3. Primary color (OKLCH)
  4. Display font

Creates sigil.preset.<name>.ts in your project root. Activate with sigil preset <name>.

sigil inspire — Reference to Token Draft

Turns a URL, saved HTML file, CSS file, or raw style text into a reviewable Sigil token draft.

sigil inspire https://example.com --name example-inspired
sigil inspire ./reference.css --name launch-theme --apply
sigil inspire ./reference.html --name studio --no-demo

It writes .sigil/inspire/<name>/tokens.css, sigil.preset.<name>.ts, and a local preview page at src/app/sigil-inspire/<name>/page.tsx by default. The output is a token direction, not a pixel clone.

sigil docs — Custom Library Docs

Generates local project documentation from the active config, installed components, and token file.

sigil docs
sigil docs --out docs/internal --llms llms.txt

It writes docs/sigil-project.md and llms.txt so humans and agents can understand the active preset, copied components, token surface, and recommended commands.

sigil adapter — Appearance Bridges

Creates compatibility CSS for existing design-system variables so older code can inherit Sigil tokens.

sigil adapter shadcn --inject
sigil adapter bootstrap
sigil adapter material --out src/styles/mui-sigil.css

Adapters are bridges, not full clones. They let you keep existing variable names while Sigil becomes the central design source.

sigil diff — Token Change Tracking

sigil diff                # show changes since last sync
sigil diff sync           # update snapshot to current state

Compares your token CSS file against a snapshot in .sigil/tokens.snapshot.css. Shows added, removed, and modified CSS variables.

sigil doctor — Project Health Validation

sigil doctor

Runs diagnostics:

| Check | What it validates | |-------|-------------------| | Config | sigil.config.ts exists and parses correctly | | Tokens | Token CSS file exists and has @import statements | | Components | Components directory exists, counts .tsx files | | Dependencies | All npm deps for installed components are present in node_modules | | CSS Import | Global CSS file references Sigil tokens | | Agent Assets | .sigil/AGENTS.md, .sigil/skills/, and Cursor skill rules are present | | Preset | Active preset is one of the 44 built-ins or has a custom file |

Generated Agent Instructions (.sigil/AGENTS.md)

When sigil init generates agent instructions, it creates a markdown file that tells AI coding agents:

  • Which preset is active and its mood/aesthetic
  • Where components and token files live
  • Which features are enabled (GSAP, Motion, etc.)
  • Token naming conventions (var(--s-*))
  • How to make visual changes (edit tokens, not components)
  • Which installed Sigil skill to read before editing
  • Available CLI commands

This is critical for agent-driven development. The agent reads this file and knows to update the central spec instead of manually editing Tailwind classes across component files.

The generated .sigil/skills/ bundle includes:

| Skill | Use For | |-------|---------| | sigil-tokens | Editing colors, typography, spacing, shadows, motion, and token CSS | | sigil-preset | Creating or choosing full visual presets | | sigil-design | Generating, compiling, or auditing a unified DESIGN.md spec | | sigil-messaging | Writing or reviewing copy, READMEs, marketing, and stat counts | | sigil-component | Creating, modifying, reviewing, or registering components | | sigil-layout | Composing sections, grids, rails, and app shells | | sigil-playbook | Building complete pages in the Sigil aesthetic | | sigil-migration | Migrating from shadcn/ui or another design system | | sigil-polish | Typography, surfaces, animations, performance, and interaction polish | | sigil-audit | Running browser + static audits across the component library |

Configuration (sigil.config.ts)

import type { SigilConfig } from "@sigil-ui/cli";

const config: SigilConfig = {
  preset: "sigil",                       // active preset name
  componentsDir: "src/components/ui",    // where components live
  tokensPath: "src/styles/sigil.tokens.css", // token CSS file
  typescript: true,                       // TypeScript project
};

export default config;

For AI Agents

When setting up or maintaining a Sigil project:

  1. Run sigil convert to adopt Sigil in an existing project, or sigil init for config-only setup — do not manually create config files
  2. Run sigil add to install components — do not manually copy component files
  3. Run sigil preset <name> to change the aesthetic — do not manually edit colors across files
  4. Run sigil doctor after any changes to validate consistency
  5. Read .sigil/AGENTS.md at the start of any task to understand the project's Sigil setup
  6. Read the relevant .sigil/skills/<name>/SKILL.md before editing Sigil code
  7. The token CSS file is the single point of visual customization. Edit it for overrides, or switch presets for wholesale changes.