-
Notifications
You must be signed in to change notification settings - Fork 0
/
panda.config.ts
49 lines (41 loc) · 972 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
40
41
42
43
44
45
46
47
48
49
import { defineConfig } from '@pandacss/dev'
import { colors } from '@/theme/colors'
import { globalCss } from '@/theme/global-css'
import { semanticTokens } from '@/theme/semantic-tokens'
import { textStyles } from '@/theme/text-styles'
export default defineConfig({
// Whether to use css reset
preflight: true,
// Where to look for your css declarations
include: [
'./src/components/**/*.{js,jsx,ts,tsx}',
'./src/app/**/*.{js,jsx,ts,tsx}',
],
// Files to exclude
exclude: [],
conditions: {
extend: {
// Enable dark theme
dark: '.dark &, [data-theme="dark"] &',
light: '.light &',
},
},
// Useful for theme customization
theme: {
extend: {
textStyles,
semanticTokens,
tokens: {
colors,
fonts: {
heading: { value: 'var(--font-rubik)' },
body: { value: 'var(--font-karla)' },
},
},
},
},
// The output directory for your css system
outdir: 'styled-system',
jsxFramework: 'react',
globalCss,
})