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

@pallas-ui/figma-cli

v0.1.1

Published

CLI tool for retrieving Pallas UI component information

Readme

Figma CLI

A command-line tool for retrieving Pallas UI component information. Designed primarily for AI agents to programmatically access component recipes, CSS output, props, and design tokens.

Overview

@pallas-ui/figma-cli reads the Pallas UI component library's PandaCSS configuration and source files to extract structured information about components without needing a running application. It leverages PandaCSS's context API and ts-morph for static TypeScript analysis.

Installation

The CLI is part of the monorepo at packages/figma-cli/.

# From the monorepo root
pnpm install

# Run via the package script
cd packages/figma-cli && pnpm cli <command>

# Or after building, run directly
pnpm build && ./dist/index.js <command>

Configuration

Components are registered in figma-cli-config.json at the package root. Each entry specifies:

  • paths — Relative paths to the component source files (from the config file location).
  • isCompound — Whether the component is a compound component (exports multiple sub-components like Accordion.Root, Accordion.Item, etc.).

Example entry:

{
  "accordion": {
    "isCompound": true,
    "paths": ["../../components/src/ui/accordion/index.tsx"]
  },
  "button": {
    "paths": ["../../components/src/ui/button/button.tsx"]
  }
}

Commands

component

Get detailed information about a single component. Outputs the recipe, generated CSS, and props in one combined view.

pnpm cli component <name>

Arguments:

| Argument | Required | Description | | -------- | -------- | ---------------------------------------------------------------------- | | <name> | Yes | The component name (e.g. button, accordion). Must be a valid name. |

Output sections:

  • Recipe — The full PandaCSS recipe config as JSON (variants, default variants, base styles).
  • CSS — The static CSS generated from the recipe.
  • Props — A markdown table of component props with name, type, and required status.

Example:

pnpm cli component button

When called without a name, lists all available components.


css

Generate the CSS for a component's recipe.

pnpm cli css <name>

Arguments:

| Argument | Required | Description | | -------- | -------- | --------------------------------------------- | | <name> | Yes | The component name or * for all components. |

Using * generates CSS for all registered component recipes.

Example:

pnpm cli css button
pnpm cli css "*"

When called without a name, lists all available components.


recipe

Get the PandaCSS recipe configuration for a component as JSON.

pnpm cli recipe <name>

Arguments:

| Argument | Required | Description | | -------- | -------- | ------------------------------------------ | | <name> | Yes | The component name or * for all recipes. |

Using * returns recipe configs for every registered component.

Output: JSON object containing the recipe definition — variants, slot recipes, default variants, and base styles.

Example:

pnpm cli recipe button
pnpm cli recipe "*"

When called without a name, lists all available components.


props

Extract and display the TypeScript props interface for a component. Uses ts-morph to statically analyze the component source files.

pnpm cli props <name>

Arguments:

| Argument | Required | Description | | -------- | -------- | ------------------------------ | | <name> | Yes | The component name to inspect. |

Options:

| Flag | Description | | -------- | -------------------------------------------------- | | --json | Output props as JSON instead of a formatted table. |

Behavior by component type:

  • Simple components — Displays a single table of props.
  • Compound components — Displays props grouped by sub-component (e.g. AccordionRoot, AccordionItem, etc.).

Output format (default): A markdown table with columns Prop, Type, Required. For compound components, tables are grouped under their sub-component name.

Output format (--json): A JSON object with the structure:

{
  "name": "button",
  "isCompound": false,
  "parts": [
    {
      "name": "Button",
      "props": [
        {
          "name": "variant",
          "type": "\"solid\" | \"outline\" | \"ghost\"",
          "required": false
        },
        {
          "name": "size",
          "type": "\"sm\" | \"md\" | \"lg\"",
          "required": false
        }
      ]
    }
  ]
}

Example:

pnpm cli props button
pnpm cli props accordion --json

When called without a name, lists all available components.


tokens

List the design tokens available in the Pallas UI design system.

pnpm cli tokens

Options:

| Flag | Description | | ------------------ | -------------------------------------------- | | -s, --semantic | List semantic tokens instead of base tokens. |

Base tokens output: A table of token name, value, and CSS variable for each token group (colors, spacing, sizing, typography, etc.).

Semantic tokens output: A table showing token name, light/dark mode values (where applicable), and CSS variable. Tokens with dark mode variants include both Light value and Dark value columns.

Example:

pnpm cli tokens
pnpm cli tokens --semantic

Validation

All commands that accept a component name validate the name against the registered components in figma-cli-config.json. If an invalid name is provided or no name is given, the CLI lists all available components and exits.

Registered Components

The following 34 components are registered:

| Component | Type | | ----------- | -------- | | accordion | Compound | | alert | Simple | | badge | Simple | | breadcrumb | Compound | | button | Simple | | carousel | Compound | | checkbox | Simple | | combobox | Compound | | command | Compound | | daypicker | Simple | | drawer | Compound | | form | Compound | | input | Simple | | input-otp | Compound | | menu-bar | Compound | | modal | Compound | | popover | Compound | | progress | Compound | | radio-group | Compound | | scroll-area | Compound | | segmented | Compound | | select | Compound | | separator | Simple | | sheet | Compound | | sidebar | Compound | | slider | Simple | | steps | Compound | | switch | Simple | | tabs | Compound | | textarea | Simple | | toast | Compound | | tooltip | Compound | | treeView | Compound | | typography | Simple |

Tech Stack

| Dependency | Purpose | | ------------------------- | -------------------------------------------------- | | commander | CLI framework for command registration and parsing | | chalk | Terminal output coloring | | markdown-table | Formatted table output | | ts-morph | Static TypeScript analysis for prop extraction | | @pandacss/node | PandaCSS context API for recipe/CSS generation | | @pallas-ui/panda-preset | Pallas UI's design tokens and recipes |