• Stars
    star
    5,147
  • Rank 8,065 (Top 0.2 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created over 2 years ago
  • Updated about 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

🐼 Universal, Type-Safe, CSS-in-JS Framework for Product Teams ⚡️

Write typesafe styles with Panda


Panda is a universal styling solution for the modern web —
build time, type safe, and scalable CSS-in-JS

Features

  • ⚡️ Write style objects or style props, extract them at build time
  • ✨ Modern CSS output — cascade layers @layer, css variables and more
  • 🦄 Works with most JavaScript frameworks
  • 🚀 Recipes and Variants - Just like Stitches™️ ✨
  • 🎨 High-level design tokens support for simultaneous themes
  • 💪 Type-safe styles and autocomplete (via codegen)


🐼 Get a taste of Panda. Try it out for yourself in  StackBlitz



Documentation

Visit our official documentation.

Install

The recommended way to install the latest version of Panda is by running the command below:

npm i -D @pandacss/dev

To scaffold the panda config and postcss

npx panda init -p

Setup and import the entry CSS file

@layer reset, base, tokens, recipes, utilities;
import 'path/to/entry.css'

Start the dev server of your project

npm run dev

Start using panda

import { css } from '../styled-system/css'
import { stack, vstack, hstack } from '../styled-system/patterns'

function Example() {
  return (
    <div>
      <div className={hstack({ gap: '30px', color: 'pink.300' })}>Box 1</div>
      <div className={css({ fontSize: 'lg', color: 'red.400' })}>Box 2</div>
    </div>
  )
}

Directory Structure

Package Description
cli CLI package installed by the end user
core Contains core features of Panda (utility, recipes, etc)
config Contains functions for reading and merging the panda config
extractor Contains code for fast AST parsing and scanning
generator Contains codegen artifacts (js, css, jsx)
parser Contains code for parsing a source code
is-valid-prop Contains code for checking if a prop is a valid css prop
node Contains the Node.js API of Panda's features
token-dictionary Contains code used to process tokens and semantic tokens
shared Contains shared TS functions

Support

Having trouble? Get help in the official Panda Discord.

Acknowledgement

The development of Panda was only possible due to the inspiration and ideas from these amazing projects.

License

MIT License © 2023-Present Segun Adebayo

More Repositories

1

chakra-ui

⚡️ Simple, Modular & Accessible UI Components for your React Applications
TypeScript
37,613
star
2

zag

Finite state machines for building accessible design systems and UI components. Works with modern frameworks, and even just Vanilla JS
TypeScript
3,969
star
3

ark

A headless library for building reusable, scalable design systems that works for a wide range of JS frameworks.
TypeScript
3,720
star
4

chakra-ui-vue

⚡️ Build scalable and accessible Vue.js applications with ease.
JavaScript
1,865
star
5

awesome-chakra-ui

A collection of Chakra UI-related awesomeness
447
star
6

chakra-ui-docs

Documentation website for chakra ui
MDX
303
star
7

chakra-ui-vue-next

⚡️ The next most epic version of Chakra UI Vue based on Vue 3 🚀(WIP)
TypeScript
261
star
8

zag-docs

Documentation website for Zag
TypeScript
127
star
9

frontity-chakra-ui-theme

A Frontity theme built with Chakra UI
JavaScript
104
star
10

polymorphic

Polymorphic component factories for JSX frameworks
TypeScript
73
star
11

eslint-plugin-panda

Official ESLint Plugin for Panda CSS
TypeScript
71
star
12

pro-component-issues

Bug fixes and feature request tracking for Chakra UI Pro.
62
star
13

design-vs-dev

This is the repo for Chakra UI's Design vs Dev Challenges. You can watch the YouTube series here: https://www.youtube.com/playlist?list=PLLh_woCGjyGqed2oBdr7K0r7HcS6X4DCH
TypeScript
56
star
14

panda-vscode

The official Panda CSS VSCode extension
TypeScript
48
star
15

play.chakra-ui.com

The Playground for Chakra UI
TypeScript
37
star
16

vscode-snippets

VSCode Snippets for Chakra UI
JavaScript
20
star
17

chakra-codemod

Codemod transformations to help upgrade to the latest Chakra UI
TypeScript
19
star
18

pro-theme

Chakra UI Pro Theme
TypeScript
17
star
19

panda-mastery-lessons

Panda Mastery Course Content (as Code)
TypeScript
14
star
20

vue-docs

Chakra UI Vue (v2) Official Documentation
TypeScript
13
star
21

chakra-loader

Chakra UI Vue webpack loader for auto-import and registration of Chakra components
JavaScript
13
star
22

panda-templates

Showcasing how to use Panda in various frameworks
11
star
23

vue-cli-plugin-chakra-ui

This plugin setups Chakra UI Vue in your Vue CLI generated projoect
JavaScript
8
star
24

chakra-ui-docusaurus

TypeScript
7
star
25

examples

Chakra UI example projects
7
star
26

chakra-ui-themes

TypeScript
6
star
27

figpilot-issues

Issue Tracker for FigPilot
5
star
28

rfcs

RFCs for Chakra UI
5
star
29

gatsby-starter-chakra-ui-ts

TypeScript
3
star
30

hackathon

TypeScript
1
star