-
Notifications
You must be signed in to change notification settings - Fork 0
/
panda.config.ts
39 lines (36 loc) · 1020 Bytes
/
panda.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import { defineConfig } from "@pandacss/dev";
import { PREGENERATE_STATIC_CSS } from "lib/config";
import { sigilPreset } from "lib/theme/presets";
/**
* 🐼 Panda configuration.
*/
const pandaConfig = defineConfig({
// enable CSS reset
preflight: true,
lightningcss: true,
validation: "error",
include: ["src/**/*.{ts,tsx,mdx}"],
outdir: "src/generated/panda",
presets: ["@pandacss/preset-base", sigilPreset],
jsxFramework: "react",
studio: {
logo: "/img/logo.png",
},
staticCss: PREGENERATE_STATIC_CSS
? {
// pregenerate recipe styles; allow Storybook stories to properly use `args` without needing to hint the extractor with `render` or other workarounds like `{fn}.raw`
recipes: "*",
css: [
{
properties: {
backgroundColor: ["*"],
colorPalette: ["*"],
textStyle: ["*"],
fontWeight: ["*"],
},
},
],
}
: {},
});
export default pandaConfig;