@pandacss/types
Advanced tools
Comparing version 0.0.0-dev-20240315145057 to 0.0.0-dev-20240315210222
@@ -28,2 +28,3 @@ import { type Difference } from 'microdiff' | ||
| 'css-index' | ||
| 'themes' | ||
| 'package.json' | ||
@@ -30,0 +31,0 @@ | 'types-jsx' |
@@ -72,5 +72,5 @@ import type { TSConfig } from 'pkg-types' | ||
/** | ||
* The css variables for your project. | ||
* Multiple themes for your project. | ||
*/ | ||
globalVars: GlobalVarsDefinition | ||
themes?: ThemeVariantsMap | ||
} | ||
@@ -125,6 +125,25 @@ | ||
interface ExtendableGlobalVars { | ||
[key: string]: string | CssPropertyDefinition | ExtendableGlobalVars | undefined | ||
extend?: ExtendableGlobalVars | ||
[key: string]: string | CssPropertyDefinition | GlobalVarsDefinition | undefined | ||
extend?: GlobalVarsDefinition | ||
} | ||
export interface ThemeVariant extends Pick<Theme, 'tokens' | 'semanticTokens'> { | ||
/** | ||
* Selector attribute to use for the generated theme, can be any `data-*` attribute | ||
* @default 'data-panda-theme' | ||
* ``` | ||
* | ||
*/ | ||
attribute?: `data-${string}` | ||
} | ||
export interface ThemeVariantsMap { | ||
[name: string]: ThemeVariant | ||
} | ||
interface ExtendableThemeVariantsMap { | ||
[name: string]: ThemeVariantsMap | ThemeVariant | undefined | ||
extend?: ThemeVariantsMap | undefined | ||
} | ||
export interface ExtendableOptions { | ||
@@ -160,2 +179,6 @@ /** | ||
globalVars?: ExtendableGlobalVars | ||
/** | ||
* The theme variants for your project. | ||
*/ | ||
themes?: ExtendableThemeVariantsMap | ||
} | ||
@@ -162,0 +185,0 @@ |
@@ -46,2 +46,6 @@ interface WithConditions { | ||
} | ||
/** | ||
* The CSS themes to generate | ||
*/ | ||
themes?: string[] | ||
} |
{ | ||
"name": "@pandacss/types", | ||
"version": "0.0.0-dev-20240315145057", | ||
"version": "0.0.0-dev-20240315210222", | ||
"description": "The types for css panda", | ||
@@ -34,3 +34,3 @@ "main": "dist/index.d.ts", | ||
"ts-morph": "21.0.1", | ||
"@pandacss/extractor": "0.0.0-dev-20240315145057" | ||
"@pandacss/extractor": "0.0.0-dev-20240315210222" | ||
}, | ||
@@ -37,0 +37,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
964328
22685