• Stars
    star
    4,673
  • Rank 8,609 (Top 0.2 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created almost 2 years ago
  • Updated 17 days 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
MDX
36,533
star
2

zag

Finite state machines for building accessible design systems and UI components.
TypeScript
3,645
star
3

ark

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

chakra-ui-vue

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

awesome-chakra-ui

A collection of Chakra UI-related awesomeness
412
star
6

chakra-ui-docs

Documentation website for chakra ui
MDX
297
star
7

chakra-ui-vue-next

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

zag-docs

Documentation website for Zag
TypeScript
127
star
9

frontity-chakra-ui-theme

A Frontity theme built with Chakra UI
JavaScript
103
star
10

polymorphic

Polymorphic component factories for JSX frameworks
TypeScript
71
star
11

pro-component-issues

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

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
55
star
13

eslint-plugin-panda

Official ESLint Plugin for Panda CSS
TypeScript
53
star
14

panda-vscode

The official Panda CSS VSCode extension
TypeScript
34
star
15

play.chakra-ui.com

The Playground for Chakra UI
TypeScript
33
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
14
star
19

vue-docs

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

chakra-loader

Chakra UI Vue webpack loader for auto-import and registration of Chakra components
JavaScript
12
star
21

panda-templates

Showcasing how to use Panda in various frameworks
11
star
22

vue-cli-plugin-chakra-ui

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

examples

Chakra UI example projects
7
star
24

chakra-ui-themes

TypeScript
6
star
25

chakra-ui-docusaurus

TypeScript
6
star
26

figpilot-issues

Issue Tracker for FigPilot
5
star
27

rfcs

RFCs for Chakra UI
5
star
28

gatsby-starter-chakra-ui-ts

TypeScript
2
star
29

hackathon

TypeScript
1
star