@pandacss/types 1.4.2 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/artifact.d.ts +1 -0
- package/dist/theme.d.ts +26 -0
- package/package.json +4 -4
package/dist/artifact.d.ts
CHANGED
package/dist/theme.d.ts
CHANGED
|
@@ -3,6 +3,24 @@ import type { RecipeConfig, SlotRecipeConfig } from './recipe'
|
|
|
3
3
|
import type { CssKeyframes } from './system-types'
|
|
4
4
|
import type { SemanticTokens, Tokens } from './tokens'
|
|
5
5
|
|
|
6
|
+
export interface ColorPaletteOptions {
|
|
7
|
+
/**
|
|
8
|
+
* Whether to enable color palette generation.
|
|
9
|
+
* @default true
|
|
10
|
+
*/
|
|
11
|
+
enabled?: boolean
|
|
12
|
+
/**
|
|
13
|
+
* List of color names to include in color palette generation.
|
|
14
|
+
* When specified, only these colors will be used for color palettes.
|
|
15
|
+
*/
|
|
16
|
+
include?: string[]
|
|
17
|
+
/**
|
|
18
|
+
* List of color names to exclude from color palette generation.
|
|
19
|
+
* When specified, these colors will not be used for color palettes.
|
|
20
|
+
*/
|
|
21
|
+
exclude?: string[]
|
|
22
|
+
}
|
|
23
|
+
|
|
6
24
|
export interface Theme {
|
|
7
25
|
/**
|
|
8
26
|
* The breakpoints for your project.
|
|
@@ -49,6 +67,10 @@ export interface Theme {
|
|
|
49
67
|
* The predefined container sizes for your project.
|
|
50
68
|
*/
|
|
51
69
|
containerSizes?: Record<string, string>
|
|
70
|
+
/**
|
|
71
|
+
* The color palette configuration for your project.
|
|
72
|
+
*/
|
|
73
|
+
colorPalette?: ColorPaletteOptions
|
|
52
74
|
}
|
|
53
75
|
|
|
54
76
|
interface PartialTheme extends Omit<Theme, 'recipes' | 'slotRecipes'> {
|
|
@@ -61,6 +83,10 @@ interface PartialTheme extends Omit<Theme, 'recipes' | 'slotRecipes'> {
|
|
|
61
83
|
* Multi-variant style definitions for component slots.
|
|
62
84
|
*/
|
|
63
85
|
slotRecipes?: Record<string, Partial<SlotRecipeConfig>>
|
|
86
|
+
/**
|
|
87
|
+
* The color palette configuration for your project.
|
|
88
|
+
*/
|
|
89
|
+
colorPalette?: Partial<ColorPaletteOptions>
|
|
64
90
|
}
|
|
65
91
|
|
|
66
92
|
export interface ExtendableTheme extends Theme {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pandacss/types",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"description": "The types for css panda",
|
|
5
5
|
"main": "dist/index.d.ts",
|
|
6
6
|
"author": "Segun Adebayo <joseshegs@gmail.com>",
|
|
@@ -28,11 +28,11 @@
|
|
|
28
28
|
],
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"csstype": "3.1.3",
|
|
31
|
-
"microdiff": "1.
|
|
31
|
+
"microdiff": "1.5.0",
|
|
32
32
|
"ncp": "2.0.0",
|
|
33
|
-
"pkg-types": "2.
|
|
33
|
+
"pkg-types": "2.3.0",
|
|
34
34
|
"ts-morph": "26.0.0",
|
|
35
|
-
"@pandacss/extractor": "1.
|
|
35
|
+
"@pandacss/extractor": "1.5.0"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
38
|
"dev": "tsx scripts/watch.ts",
|