Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

🐼 Universal, Type-Safe, CSS-in-JS Framework for Design Systems ⚡️

License

NotificationsYou must be signed in to change notification settings

chakra-ui/panda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 DownloadsNPM VersionX (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



Documentation

Visit ourofficial documentation.

Install

Therecommended 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'functionExample(){return(<div><divclassName={hstack({gap:'30px',color:'pink.300'})}>Box 1</div><divclassName={css({fontSize:'lg',color:'red.400'})}>Box 2</div></div>)}

Directory Structure

PackageDescription
cliCLI package installed by the end user
coreContains core features of Panda (utility, recipes, etc)
configContains functions for reading and merging the panda config
extractorContains code for fast AST parsing and scanning
generatorContains codegen artifacts (js, css, jsx)
parserContains code for parsing a source code
is-valid-propContains code for checking if a prop is a valid css prop
nodeContains the Node.js API of Panda's features
token-dictionaryContains code used to process tokens and semantic tokens
sharedContains shared TS functions

Contributing

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

Want to help improve the docs?

Our docsite lives in themonorepo.

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

Support

Having trouble? Get help in the officialPanda Discord.

Acknowledgement

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

License

MIT License © 2023-PresentSegun Adebayo

Sponsor this project

    Packages

    No packages published

    [8]ページ先頭

    ©2009-2025 Movatter.jp