UNPKG

773 BTypeScriptView Raw
1export declare type colorPaletteType = '8' | '16' | '24';
2export declare type Elevation = 'e100' | 'e200' | 'e300' | 'e400' | 'e500';
3export declare type ThemeModes = 'light' | 'dark';
4export interface Theme {
5 mode: ThemeModes;
6}
7export interface GlobalThemeTokens extends Theme {
8}
9export declare type ThemeProps = AtlaskitThemeProps | CustomThemeProps | NoThemeProps;
10export interface CustomThemeProps {
11 theme: Theme;
12 [index: string]: any;
13}
14export interface AtlaskitThemeProps {
15 theme: {
16 __ATLASKIT_THEME__: Theme;
17 };
18 [index: string]: any;
19}
20export interface NoThemeProps {
21 [index: string]: any;
22}
23export declare type DefaultValue = string | number;
24export declare type ThemedValue<V = DefaultValue> = (props?: ThemeProps) => V | '';