UNPKG

stoop

Version:

CSS-in-JS library with type inference, theme creation, and variants support.

22 lines (21 loc) 962 B
/** * Shared constants used throughout the library. * Includes cache size limits, nesting depth limits, and fallback context. */ import type { CSS, ThemeContextValue, ThemeScale } from "./types"; export declare const EMPTY_CSS: CSS; export declare const MAX_CSS_CACHE_SIZE = 10000; export declare const MAX_CLASS_NAME_CACHE_SIZE = 5000; export declare const MAX_CSS_NESTING_DEPTH = 10; export declare const FALLBACK_CONTEXT: import("react").Context<ThemeContextValue>; /** * Approved theme scales - only these scales are allowed in theme objects. */ export declare const APPROVED_THEME_SCALES: ReadonlyArray<ThemeScale>; /** * Default themeMap mapping CSS properties to theme scales. * Covers 150+ common CSS properties for zero-config experience. * Missing properties gracefully fallback to pattern-based auto-detection. */ export declare const DEFAULT_THEME_MAP: Record<string, ThemeScale>; export declare const STOOP_COMPONENT_SYMBOL: unique symbol;