Repository navigation
Expand file tree
/
Copy pathpanda.config.ts
More file actions
158 lines (152 loc) · 4.64 KB
/
Copy pathpanda.config.ts
File metadata and controls
158 lines (152 loc) · 4.64 KB
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
import { defineConfig } from "@pandacss/dev";
export default defineConfig({
// Whether to use css reset
preflight: true,
// Where to look for your css declarations
include: ["./src/**/*.{js,jsx,ts,tsx}", "./pages/**/*.{js,jsx,ts,tsx}"],
// Files to exclude
exclude: [],
// Useful for theme customization
theme: {
// 👇🏻 Define your tokens here
extend: {
tokens: {
colors: {
primary: {
value: "#0FEE0F",
// Add color variations
100: { value: "#E6FFE6" },
200: { value: "#CCFFCC" },
300: { value: "#99FF99" },
400: { value: "#66FF66" },
500: { value: "#33FF33" },
600: { value: "#0FEE0F" }, // Same as base primary
700: { value: "#0CC90C" },
800: { value: "#0A940A" },
900: { value: "#075F07" },
},
secondary: {
value: "#EE0F0F",
// Add color variations
100: { value: "#FFE6E6" },
200: { value: "#FFCCCC" },
300: { value: "#FF9999" },
400: { value: "#FF6666" },
500: { value: "#FF3333" },
600: { value: "#EE0F0F" },
700: { value: "#C90C0C" },
800: { value: "#940A0A" },
900: { value: "#5F0707" },
},
red: { value: "#FF0000" },
green: { value: "#00FF00" },
blue: { value: "#0000FF" },
// Add grayscale
gray: {
50: { value: "#F9FAFB" },
100: { value: "#F3F4F6" },
200: { value: "#E5E7EB" },
300: { value: "#D1D5DB" },
400: { value: "#9CA3AF" },
500: { value: "#6B7280" },
600: { value: "#4B5563" },
700: { value: "#374151" },
800: { value: "#1F2937" },
900: { value: "#111827" },
},
},
fonts: {
body: { value: "system-ui, sans-serif" },
heading: { value: "Georgia, serif" },
mono: { value: "monospace" },
},
spacing: {
// Custom spacing tokens
xs: { value: "0.25rem" },
sm: { value: "0.5rem" },
md: { value: "1rem" },
lg: { value: "1.5rem" },
xl: { value: "2rem" },
"2xl": { value: "3rem" },
"3xl": { value: "4rem" },
},
sizes: {
// Custom size tokens
container: {
sm: { value: "640px" },
md: { value: "768px" },
lg: { value: "1024px" },
xl: { value: "1280px" },
},
},
radii: {
// Border radius tokens
none: { value: "0" },
sm: { value: "0.125rem" },
md: { value: "0.25rem" },
lg: { value: "0.5rem" },
full: { value: "9999px" },
},
borders: {
// Border tokens
thin: { value: "1px solid" },
medium: { value: "2px solid" },
thick: { value: "4px solid" },
},
shadows: {
// Shadow tokens
sm: { value: "0 1px 2px 0 rgba(0, 0, 0, 0.05)" },
md: { value: "0 4px 6px -1px rgba(0, 0, 0, 0.1)" },
lg: { value: "0 10px 15px -3px rgba(0, 0, 0, 0.1)" },
},
},
/**
* Semantic tokens are tokens that are designed to be used in a specific context.
* In most cases, the value of a semantic token references to an existing token.
*/
semanticTokens: {
colors: {
danger: {
value: "{colors.red}",
description: "Color for errors",
},
success: {
value: "{colors.green}",
description: "Color for success",
deprecated: true,
},
info: {
value: "{colors.blue}",
description: "Color information",
},
mySemanticToken: {
value: "{colors.blue}",
description: "My semantic token",
},
// Text colors
text: {
value: "{colors.gray.800}",
description: "Default text color",
},
"text.muted": {
value: "{colors.gray.600}",
description: "Muted text color",
},
// Background colors
"bg.card": {
value: "{colors.gray.50}",
description: "Card background color",
},
},
borders: {
"border.card": {
value: "{borders.thin} {colors.gray.200}",
description: "Card border style",
},
},
},
},
},
// The output directory for your css system
outdir: "styled-system",
});