-
Notifications
You must be signed in to change notification settings - Fork 1
/
panda.config.ts
70 lines (69 loc) · 2.84 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
import { defineConfig } from '@pandacss/dev'
import { globalCss } from '~/theme/global-css'
import { recipes } from '~/theme/recipes'
import { tokens } from './theme/tokens'
export default defineConfig({
preflight: true,
include: [
'./components/**/*.{js,jsx,ts,tsx}',
'./entrypoints/**/*.{js,jsx,ts,tsx}',
'./theme/**/*.{js,jsx,ts,tsx}',
],
exclude: [],
presets: ['@pandacss/dev/presets'],
outdir: 'panda',
jsxFramework: 'solid',
globalCss,
conditions: {
extend: {
checked: '&:is(:checked, [data-checked], [aria-checked=true], [data-state=checked])',
indeterminate:
'&:is(:indeterminate, [data-indeterminate], [aria-checked=mixed], [data-state=indeterminate])',
closed: '&:is([data-state=closed])',
open: '&:is([open], [data-state=open])',
},
},
theme: {
extend: {
recipes,
tokens,
semanticTokens: {
colors: {
border: { value: { base: 'hsl(240 5.9% 90%)', _dark: 'hsl(240 3.7% 15.9%)' } },
input: { value: { base: 'hsl(240 5.9% 90%)', _dark: 'hsl(240 3.7% 15.9%)' } },
ring: { value: { base: 'hsl(240 5% 64.9%)', _dark: 'hsl(240 3.7% 15.9%)' } },
background: { value: { base: 'hsl(0 0% 100%)', _dark: 'hsl(240 10% 3.9%)' } },
foreground: { value: { base: 'hsl(240 10% 3.9%)', _dark: 'hsl(0 0% 98%)' } },
primary: {
default: { value: { base: 'hsl(240 5.9% 10%)', _dark: 'hsl(0 0% 98%)' } },
foreground: { value: { base: 'hsl(0 0% 98%)', _dark: 'hsl(240 5.9% 10%)' } },
},
secondary: {
default: { value: { base: 'hsl(240 4.8% 95.9%)', _dark: 'hsl(240 3.7% 15.9%)' } },
foreground: { value: { base: 'hsl(240 5.9% 10%)', _dark: 'hsl(0 0% 98%)' } },
},
destructive: {
default: { value: { base: 'hsl(0 84.2% 60.2%)', _dark: 'hsl(0 62.8% 30.6%)' } },
foreground: { value: { base: 'hsl(0 0% 98%)', _dark: 'hsl(0 85.7% 97.3%)' } },
},
muted: {
default: { value: { base: 'hsl(240 4.8% 95.9%)', _dark: 'hsl(240 3.7% 15.9%)' } },
foreground: { value: { base: 'hsl(240 3.8% 46.1%)', _dark: 'hsl(240 5% 64.9%)' } },
},
accent: {
default: { value: { base: 'hsl(240 4.8% 95.9%)', _dark: 'hsl(240 3.7% 15.9%)' } },
foreground: { value: { base: 'hsl(240 5.9% 10%)', _dark: 'hsl(0 0% 98%)' } },
},
popover: {
default: { value: { base: 'hsl(0 0% 100%)', _dark: 'hsl(240 10% 3.9%)' } },
foreground: { value: { base: 'hsl(240 10% 3.9%)', _dark: 'hsl(0 0% 98%)' } },
},
card: {
default: { value: { base: 'hsl(0 0% 100%)', _dark: 'hsl(240 10% 3.9%)' } },
foreground: { value: { base: 'hsl(240 10% 3.9%)', _dark: 'hsl(0 0% 98%)' } },
},
},
},
},
},
})