generated from MaeWolff/astro-portfolio-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpanda.config.ts
126 lines (121 loc) · 3.58 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
import { defineConfig, definePreset } from '@pandacss/dev'
import { themePreset } from './theme/preset'
import typographyPreset from 'pandacss-preset-typography'
const examplesPreset = definePreset({
conditions: {
extend: {
lightColorMode: '[data-color-mode=light] &',
darkColorMode: '[data-color-mode=dark] &',
pinkTheme: '[data-theme=pink] &',
blueTheme: '[data-theme=blue] &',
mainTheme: '[data-theme=main] &',
secondaryTheme: '[data-theme=secondary] &',
},
},
theme: {
extend: {
semanticTokens: {
colors: {
text: {
value: {
_pinkTheme: { base: '{colors.pink.500}', _darkColorMode: '{colors.pink.300}' },
_blueTheme: { base: '{colors.blue.500}', _darkColorMode: '{colors.blue.300}' },
},
},
button: {
info: {
DEFAULT: {
value: {
_mainTheme: { base: '{colors.teal.500}', _dark: '{colors.teal.300}' },
_secondaryTheme: { base: '{colors.blue.500}', _dark: '{colors.blue.300}' },
},
},
},
warning: {
DEFAULT: {
value: {
_mainTheme: { base: '{colors.yellow.500}', _dark: '{colors.yellow.300}' },
_secondaryTheme: { base: '{colors.orange.500}', _dark: '{colors.orange.300}' },
},
},
accent: {
DEFAULT: { value: 'cyan' },
secondary: {
value: {
base: '{colors.sky.500}',
_mainTheme: {
base: '{colors.green.500}',
_dark: '{colors.green.300}',
},
_secondaryTheme: {
base: '{colors.sky.500}',
_dark: '{colors.sky.300}',
},
},
},
},
},
},
},
},
},
},
})
export default defineConfig({
presets: ['@pandacss/dev/presets', typographyPreset(), examplesPreset, themePreset],
strictTokens: false,
// Whether to use css reset
preflight: true,
// Where to look for your css declarations
include: ['./src/**/*.{js,jsx,ts,tsx,astro}'],
// Files to exclude
exclude: [],
// The output directory for your css system
outdir: 'styled-system',
theme: {
extend: {
textStyles: {
lg: { value: { fontWeight: 'semibold' } },
xl: { value: { fontWeight: 'semibold' } },
'2xl': { value: { fontWeight: 'semibold' } },
'3xl': { value: { fontWeight: 'semibold' } },
},
semanticTokens: {
colors: {
work: {
value: {
base: '{colors.indigo.500}',
_dark: '{colors.indigo.400}',
},
},
fg: {
body: {
value: {
base: '{colors.neutral.700}',
_dark: '{colors.neutral.400}',
},
},
subtle: {
value: {
base: '{colors.neutral.600}',
_dark: '{colors.neutral.300}',
},
},
secondary: {
value: {
base: '{colors.sky.700}',
_dark: '{colors.sky.100}',
},
},
heading: {
value: {
base: '{colors.neutral.900}',
_dark: '{colors.neutral.100}',
},
},
},
},
},
},
},
})