UNPKG

recastui

Version:

Solidjs components library focused on usability, whitelabel theming, accessibility and developer experience

20 lines (19 loc) 751 B
/*! * Original code by Theme-ui * MIT Licensed, Copyright (c) Brent Jackson. * * Credits to the Theme-ui team: * https://github.com/system-ui/theme-ui/blob/develop/packages/css/src/utils.ts */ import type { ColorModesScale, Theme, ThemeStyles } from '../theme'; /** * Constrained identity function used to constrain user's theme type to Theme * while preserving its exact type. */ export declare const makeTheme: <T extends Theme>(theme: T) => T; /** * Constrained identity function used to create a styles dictionary * assignable to ThemeStyles while preserving its exact type. */ export declare const makeStyles: <T extends ThemeStyles>(styles: T) => T; export declare const makeColorsScale: <T extends ColorModesScale>(colors: T) => T;