-
Notifications
You must be signed in to change notification settings - Fork 0
/
panda.config.ts
87 lines (78 loc) · 1.87 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
import recipes from "@/components/ui/recipes";
import { defineConfig, SemanticTokens } from "@pandacss/dev";
const semanticTokens: SemanticTokens = {
fonts: {
body: { value: "var(--body)" },
title: { value: "var(--title)" },
header: { value: "var(--header)" },
},
// Example: Set primary color to another value
colors: {
brand: {
primary: { value: "#FAF7F0" },
secondary: { value: "#4A4947" },
highlight: { value: "#D8D2C2" },
shadow: { value: "#B17457" },
},
primary: {
DEFAULT: {
value: {
// Light mode
base: "{colors.grayscale.900}",
// Dark mode
_dark: "{colors.grayscale.50}",
},
},
},
},
};
const keyframes = {
bgZoomOut: {
"0%": { bgSize: "135%" },
"100%": { bgSize: "120%" },
},
bgZoomIn: {
"0%": { bgSize: "125%" },
"100%": { bgSize: "135%" },
},
fall: {
"0%": {
top: "-400px",
left: "500px", // Random left position across the viewport width
},
"100%": {
top: "100vh",
left: "random(0%, 100%)", // Optional: cards can move horizontally as they fall
},
},
sway: {
"0%": { transform: "rotate(0deg)", opacity: 0 },
"5%": {
opacity: 1,
},
"100%": { transform: "rotate(10deg)" },
},
};
export default defineConfig({
// Required: Add the preset to your config.
presets: ["@shadow-panda/preset"],
// Whether to use css reset
preflight: true,
// Where to look for your css declarations
include: ["./src/**/*.{js,jsx,ts,tsx}"],
// Use React
jsxFramework: "react",
// Files to exclude
exclude: [],
// Useful for theme customization
theme: {
extend: { semanticTokens, recipes, keyframes },
textStyles: {
body: {
description: "default font",
value: { fontFamily: "var(--body)" },
},
},
},
outdir: "styled-system",
});