-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpanda.config.ts
53 lines (48 loc) · 1.15 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
import { defineConfig } from '@pandacss/dev';
import { getRadixColorsTokens, getSemanticTokens, pindobaPreset } from '@pindoba/panda-preset';
import { grass, grassDark, grassA, grassDarkA } from '@radix-ui/colors';
export default defineConfig({
// Whether to use css reset
preflight: true,
// Where to look for your css declarations
include: [
'node_modules/@pindoba/**/*.{ts,tsx,svelte}',
'./src/**/*.{ts,tsx,svelte}',
'./src/lib/Menu.svelte'
],
dependencies: ['@pindoba/panda', '@pindoba/styles'],
importMap: '@pindoba/panda',
watch: true,
clean: true,
// Useful for theme customization
theme: {
extend: {
tokens: {
colors: {
...getRadixColorsTokens({
colorName: 'grass',
light: grass,
dark: grassDark,
lightAlpha: grassA,
darkAlpha: grassDarkA
})
}
},
semanticTokens: {
colors: {
contrast: {
value: {
base: `#fff`,
_light: `#000`
}
},
...getSemanticTokens('primary', 'grass')
}
}
}
},
presets: ['@pandacss/dev/presets', pindobaPreset],
jsxFramework: 'svelte',
// The output directory for your css system
outdir: 'styled-system'
});