import type { AnimationStyles, LayerStyles, TextStyles } from './composition' import type { RecipeConfig, SlotRecipeConfig } from './recipe' import type { CssKeyframes, PositionTry, ViewTransitions } from './system-types' import type { SemanticTokens, Tokens } from './tokens' export interface ColorPaletteOptions { /** * Whether to enable color palette generation. * @default true */ enabled?: boolean /** * List of color names to include in color palette generation. * When specified, only these colors will be used for color palettes. */ include?: string[] /** * List of color names to exclude from color palette generation. * When specified, these colors will not be used for color palettes. */ exclude?: string[] } export interface Theme { /** * The breakpoints for your project. */ breakpoints?: Record /** * The css animation keyframes definitions. */ keyframes?: CssKeyframes /** * The design tokens for your project. */ tokens?: Tokens /** * The semantic design tokens for your project. */ semanticTokens?: SemanticTokens /** * The typography styles for your project. */ textStyles?: TextStyles /** * The layer styles for your project. */ layerStyles?: LayerStyles /** * The animation styles for your project. */ animationStyles?: AnimationStyles /** * Named View Transition bags. Call `viewTransition('slide')` to use one. * Panda emits the shared `::view-transition-*` CSS; you still set unique * `view-transition-name` values at runtime. */ viewTransitions?: ViewTransitions /** * Named `@position-try` anchor-positioning fallbacks. Call `positionTry('bottom')` * to get the dashed-ident for `positionTryFallbacks`. Emitted only when used. */ positionTry?: PositionTry /** * Multi-variant style definitions for your project. * Useful for defining component styles. */ recipes?: Record /** * Multi-variant style definitions for component slots. */ slotRecipes?: Record /** * The predefined container names for your project. */ containerNames?: string[] /** * Container query sizes for your project. */ containers?: Record /** * The color palette configuration for your project. */ colorPalette?: ColorPaletteOptions } interface PartialTheme extends Omit { /** * Multi-variant style definitions for your project. * Useful for defining component styles. */ recipes?: Record> /** * Multi-variant style definitions for component slots. */ slotRecipes?: Record> /** * The color palette configuration for your project. */ colorPalette?: Partial } export interface ExtendableTheme extends Theme { extend?: PartialTheme | undefined }