stoop
Version:
CSS-in-JS library with type inference, theme creation, and variants support.
14 lines (13 loc) • 438 B
TypeScript
/**
* Theme validation utilities.
* Ensures theme objects only contain approved scales.
*/
import type { DefaultTheme } from "../types";
/**
* Validates that a theme object only contains approved scales.
*
* @param theme - Theme object to validate
* @returns Validated theme as DefaultTheme
* @throws Error if theme contains invalid scales (in development)
*/
export declare function validateTheme(theme: unknown): DefaultTheme;