What problem does it solve?
This Skill provides a build-time, type-safe CSS-in-JS solution using Panda CSS, enabling developers to write styles with zero runtime overhead, leveraging design tokens, recipes, and patterns for efficient and maintainable styling.
Core Features & Use Cases
- Type-Safe Styling: Write CSS with full TypeScript support, catching errors at build time.
- Zero Runtime: Styles are compiled to static CSS files, ensuring optimal performance.
- Design Tokens: Utilize a robust token system for consistent theming.
- Recipes & Patterns: Create reusable component styles (recipes) and layout primitives (patterns).
- Use Case: When building a new React component library, use Panda CSS to define a
Button component with various variants (solid, outline, ghost) and sizes (sm, md, lg), ensuring all buttons adhere to the project's design system and are highly performant.
Quick Start
Install Panda CSS by running npm install -D @pandacss/dev and npx panda init --postcss.