UNPKG

@kalamazoo/theme

Version:
10 lines (9 loc) 335 B
import { ThemedValue, ThemeModes, DefaultValue } from '../types'; declare type Modes<V> = { [key in ThemeModes]?: V; }; declare type VariantModes<V> = { [index: string]: Modes<V>; }; export default function themed<V = DefaultValue>(modesOrVariant: Modes<V> | string, variantModes?: VariantModes<V>): ThemedValue<V>; export {};