Panda CSS
Install
sh
bun add -D @pandacss/dev
bun panda init --postcss
json
{
"scripts": {
"prepare": "panda codegen",
}
}
outdir
でstyled-system
の作成ディレクトリなど変更可能。
ts
import { defineConfig } from '@pandacss/dev'
export default defineConfig({
// Whether to use css reset
preflight: true,
// Where to look for your css declarations
include: ["./src/**/*.{js,jsx,ts,tsx}", "./pages/**/*.{js,jsx,ts,tsx}"],
// Files to exclude
exclude: [],
// Useful for theme customization
theme: {
extend: {},
},
// The output directory for your css system
outdir: 'styled-system',
})