forked from simxnet/seyfert-web-official
-
Notifications
You must be signed in to change notification settings - Fork 6
/
panda.config.ts
66 lines (58 loc) · 1.22 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
import { defineConfig } from "@pandacss/dev";
import { getColors } from "theme-colors";
const brandColors = getColors("#1e90ff");
const backgroundColors = getColors("#051721");
function generateColorScheme(color: Record<string, string>) {
return Object.entries(color).reduce(
// biome-ignore lint/suspicious/noExplicitAny: bro
(acc: any, [key, value]) => {
acc[key] = { value };
return acc;
},
{},
);
}
export default defineConfig({
// Whether to use css reset
preflight: true,
// Where to look for your css declarations
include: [
"./src/components/**/*.{ts,tsx,js,jsx}",
"./src/app/**/*.{ts,tsx,js,jsx}",
],
// Files to exclude
exclude: [],
// Useful for theme customization
theme: {
extend: {
tokens: {
colors: {
brand: generateColorScheme(brandColors),
background: generateColorScheme(backgroundColors),
},
},
},
},
// Global css
globalCss: {
html: {
overflowX: "clip",
},
extend: {
body: {
bg: "background.950",
color: "background.50",
},
},
},
// The output directory for your css system
outdir: "src/styled-system",
jsxFramework: "react",
staticCss: {
css: [{
properties: {
width: ["35%", "40%", "50%", "60%", "65%"],
}
}]
}
});