Skip to content
ํ”„๋กœ์ ํŠธ

์†Œ๊ฐœ

๐Ÿผ ๋””์ž์ธ ์‹œ์Šคํ…œ์„ ์œ„ํ•œ ๋ฒ”์šฉ ํƒ€์ž… ์•ˆ์ „ CSS-in-JS ํ”„๋ ˆ์ž„์›Œํฌ โšก๏ธ

์›น ๋ฐ ์•ฑ ๊ฐœ๋ฐœ

์ด ์ˆ˜์น˜๋ฅผ ์ธก์ •ํ•˜๋Š” ๋ฐฉ๋ฒ•

What you can do

  • โšก๏ธ 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โ„ข๏ธ โœจ

์ธก์ •๋œ ์Šคํƒ€ ์ฆ๊ฐ€

in 24h
0
in 7 days
+4
in 15 days
+7
in 1 month
+21

์„œ๋กœ ๊ฒน์น˜๋Š” ๊ธฐ๊ฐ„์˜ ์ˆœ์ฆ๊ฐ€๋Ÿ‰์ด๋ฉฐ ์ผ๋ณ„ ํ•ฉ๊ณ„๊ฐ€ ์•„๋‹™๋‹ˆ๋‹ค. ์ธก์ •๊ฐ’์ด ์—†์œผ๋ฉด ๋น„์›Œ ๋‘ก๋‹ˆ๋‹ค. ์Šคํƒ€๋Š” ๊ด€์‹ฌ๋„๋ฅผ ๋‚˜ํƒ€๋‚ด๋ฉฐ ํ’ˆ์งˆ์„ ๋ณด์žฅํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

README.md

Original

Write typesafe styles with Panda


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

NPM Downloads NPM Version X (formerly Twitter) Follow



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



๐Ÿผ Panda v2

Panda v2 rewrites the compiler in Rust on the Oxc engine. Upgrading from v1? Follow the upgrade guide.

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

Contributing

Feel like contributing? That's awesome! We have a contributing guide to help guide you.

Want to help improve the docs?

Our docs live in website/content/docs.

If you're interested in contributing to the documentation, check out the contributing guide.

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

๊ด€๋ จ ํ”„๋กœ์ ํŠธ ์‚ดํŽด๋ณด๊ธฐ

๋ถˆ๋Ÿฌ์˜ค๋Š” ์ค‘โ€ฆ