UNPKG

stoop

Version:

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

14 lines (13 loc) 512 B
/** * Theme extension API. * Creates a function that deep merges theme overrides with a base theme. */ import type { Theme } from "../types"; /** * Creates a function that extends a base theme with overrides. * The returned function deep merges theme overrides with the base theme. * * @param baseTheme - Base theme to extend * @returns Function that accepts theme overrides and returns a merged theme */ export declare function createTheme(baseTheme: Theme): (themeOverrides: Partial<Theme>) => Theme;