-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpanda.config.ts
More file actions
153 lines (120 loc) · 3.74 KB
/
Copy pathpanda.config.ts
File metadata and controls
153 lines (120 loc) · 3.74 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
import { defineConfig } from '@pandacss/dev';
import { animationStyles } from '@/theme/animations';
import { scrollable } from '@/theme/patterns';
import { breakpoints } from './src/theme/breakpoints';
import { conditions } from './src/theme/conditions';
import { globalCSS } from './src/theme/global-css';
import { globalVariables } from './src/theme/global-variables';
import { keyframes } from './src/theme/keyframes';
import { recipes } from './src/theme/recipes';
import { semanticTokens } from './src/theme/semantic-tokens';
import { slotRecipes } from './src/theme/slot-recipes';
import { textStyles } from './src/theme/text-styles';
import { tokens } from './src/theme/tokens';
import {
borderBottom,
borderColor,
borderLeft,
borderRight,
borderTop,
} from './src/theme/utilities';
export default defineConfig({
//==== Output css options ====
// The set of reusable and shareable configuration presets.
presets: ['@pandacss/preset-panda'],
// Whether to enable css reset styles.
preflight: true,
// The namespace prefix for the generated css classes and css variables.
prefix: 'mk',
// The separator for the generated css classes.
separator: '_',
// Whether to minify the generated css. This can be set
// to `true` to reduce the size of the generated css.
minify: true,
// Whether to hash the generated class names / css variables.
// This is useful if want to shorten the class names or css variables.
// hash: process.env.NODE_ENV === 'production' ? true : false,
//==== File system options ====
// Whether to update the .gitignore file.
gitignore: true,
// The current working directory.
cwd: process.cwd(),
// Whether to clean the output directory before generating the css.
clean: true,
// The output directory for the generated css.
outdir: 'styled-system',
// Allows you to customize the import paths for the generated outdir.
// importMap: {
// css: '@nk96/styled-system',
// recipes: '@nk96/styled-system',
// patterns: '@nk96/styled-system',
// jsx: '@nk96/styled-system',
// },
// List of files glob to watch for changes.
include: [
'./src/**/*.{js,jsx,ts,tsx,mdx,astro}',
'./pages/**/*.{js,jsx,ts,tsx,mdx,astro}',
],
// List of files glob to ignore.
exclude: [],
// Whether to watch for changes and regenerate the css.
watch: true,
// File extension for generated javascript files.
outExtension: 'mjs',
// Decides which syntax to use when writing CSS.
syntax: 'object-literal',
// Whether to use lightningcss instead of postcss for css optimization.
lightningcss: true,
// // Browserslist query to target specific browsers.
// // Only used when lightningcss is set to `true`.
// browserslist: ['last 2 versions', 'not dead', 'not < 2%'],
//==== Design token options ====
// Whether to allow shorthand properties
shorthands: true,
// The root selector for the css variables.
cssVarRoot: ':where(:host, :root)',
// The css selectors or media queries shortcuts.
conditions: {
extend: conditions,
},
// The css variables for your project.
globalVars: globalVariables,
// The global styles for your project.
globalCss: globalCSS,
// Useful for theme customization
theme: {
extend: {
tokens,
semanticTokens,
textStyles,
keyframes,
animationStyles,
recipes,
slotRecipes,
breakpoints,
},
},
// The css utility definitions.
utilities: {
extend: {
borderColor,
borderTop,
borderLeft,
borderRight,
borderBottom,
},
},
// Common styling or layout patterns for your project.
patterns: {
extend: {
scrollable,
},
},
// ==== JSX options ====
// JS Framework for generated JSX elements.
jsxFramework: 'qwik',
// The factory name of the element
jsxFactory: 'styled',
// The style props allowed on generated JSX components
jsxStyleProps: 'all',
});