-
Notifications
You must be signed in to change notification settings - Fork 0
/
panda.config.ts
71 lines (69 loc) · 1.86 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
import { button } from "@/ui/recipes/button";
import { input } from "@/ui/recipes/input";
import { keyframes } from "@/ui/recipes/keyframes";
import { colors, semanticColors } from "@/ui/styles/colors";
import { defineConfig } from "@pandacss/dev";
import { createPreset } from '@park-ui/panda-preset'
export default defineConfig({
// Whether to use css reset
preflight: true,
// Where to look for your css declarations
include: [
"./src/components/**/*.{ts,tsx,js,jsx}",
"./src/ui/**/*.{ts,tsx,js,jsx}",
"./src/app/**/*.{ts,tsx,js,jsx}",
"./src/**/*.{ts,tsx,js,jsx}"
],
// Presets
presets: ['@pandacss/preset-base', "@pandacss/preset-panda",
createPreset({
accentColor: 'green',
grayColor: 'olive',
borderRadius: 'lg',
})
],
// Files to exclude
exclude: [],
// Setup layers
prefix: 'panda',
layers: {
reset: "panda_reset",
base: "panda_base",
tokens: "panda_tokens",
recipes: "panda_recipes",
utilities: "panda_utilities"
},
// Useful for theme customization
theme: {
extend: {
tokens: {
colors: colors,
},
semanticTokens: {
colors: semanticColors
},
keyframes: keyframes,
recipes: {
button: button,
input: input
}
},
},
// Light / Dark Mode
conditions: {
light: '[data-color-mode=light] &',
dark: '[data-color-mode=dark] &',
},
staticCss: {
themes: ['light', 'dark']
},
// The JSX framework to use
jsxFramework: "react",
// The output directory for your css system
outdir: "styled-system",
// alternative theme variants
themes: {
light: {},
dark: {}
}
});