Skip to content

feat: add shadcn-cssinjs CLI package - #6

Open
Aniket-508 wants to merge 2 commits into
mainfrom
codex/stylex-cli-monorepo
Open

feat: add shadcn-cssinjs CLI package#6
Aniket-508 wants to merge 2 commits into
mainfrom
codex/stylex-cli-monorepo

Conversation

@Aniket-508

@Aniket-508 Aniket-508 commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

Stack

Depends on #7. Review this PR against codex/monorepo-separation; after #7 merges, this PR can be retargeted to main.

What changed

  • added the packages/shadcn-cssinjs CLI package with shadcn-compatible init, add, search, view, docs, info, registry build, and MCP commands
  • added automatic StyleX setup for existing and newly scaffolded Next.js and Vite React projects
  • added the StyleX engine abstraction with Tokenami and Panda CSS extension points
  • switched the website to the workspace CLI for registry generation
  • migrated the Next.js integration to the official StyleX unplugin so SWC and next/font remain supported
  • updated the website, generated registry, schema, MCP setup, and documentation for shadcn-cssinjs

Why

StyleX setup previously required consumers to configure the compiler and registry manually. Owning the CLI provides a shadcn-like installation flow now and a dedicated place for Tokenami and Panda CSS setup later.

Impact

Consumers can initialize StyleX and install source-owned components with:

pnpm dlx shadcn-cssinjs@latest init
pnpm dlx shadcn-cssinjs@latest add button

Validation

  • pnpm check
  • pnpm run typecheck
  • pnpm build
  • clean Next.js fixture: real init and add button
  • npm package dry run

The rewritten branch has the exact same file tree as the previously validated PR #6 head; only its parent and commit boundary changed.

@vercel

vercel Bot commented Jul 12, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
shadcn-cssinjs Ready Ready Preview, Comment Jul 13, 2026 6:29am

Request Review

@Aniket-508
Aniket-508 force-pushed the codex/stylex-cli-monorepo branch from 17846c0 to 4fe064e Compare July 12, 2026 19:19
@Aniket-508 Aniket-508 changed the title feat: add StyleX CLI monorepo feat: add shadcn-cssinjs CLI package Jul 12, 2026
@Aniket-508
Aniket-508 changed the base branch from main to codex/monorepo-separation July 12, 2026 19:20
@Aniket-508
Aniket-508 marked this pull request as ready for review July 12, 2026 19:23
@Aniket-508
Aniket-508 changed the base branch from codex/monorepo-separation to main July 12, 2026 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant