@kalamazoo/theme
Version:
The Atlaskit theme framework
10 lines (9 loc) • 335 B
TypeScript
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 {};