-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Expand file tree
/
Copy paththeme.ts
More file actions
30 lines (24 loc) · 747 Bytes
/
theme.ts
File metadata and controls
30 lines (24 loc) · 747 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import type { $DeepPartial } from '@callstack/react-theme-provider';
import type { ThemeColors } from './color';
import type { ThemeShapes } from './shape';
import type { ThemeState } from './state';
import type { Typescale } from './typography';
type Mode = 'adaptive' | 'exact';
export type ThemeBase = {
dark: boolean;
mode?: Mode;
/** @deprecated Use `theme.shapes.*` instead. Will be removed in a future version. */
roundness: number;
animation: {
scale: number;
defaultAnimationDuration?: number;
};
};
export type Theme = ThemeBase & {
colors: ThemeColors;
fonts: Typescale;
state: ThemeState;
shapes: ThemeShapes;
};
export type InternalTheme = Theme;
export type ThemeProp = $DeepPartial<InternalTheme>;