Skip to content

Commit bc7198a

Browse files
authored
ThemeManager - add Theme type (#2327)
* ThemeManager - add Theme type * Fix
1 parent 67cb18f commit bc7198a

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

src/style/themeManager.ts

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,23 @@ import _ from 'lodash';
22
import type {Context} from 'react';
33
import Colors from './colors';
44

5+
interface Theme {
6+
primaryColor: string,
7+
CTA: {
8+
textColor: string,
9+
disabledColor: string,
10+
backgroundColor: string
11+
},
12+
titleColor: string,
13+
subtitleColor: string,
14+
dividerColor: string,
15+
components: Extendable
16+
}
17+
518
export class ThemeManager {
619
private themeContext?: Context<any>;
720

8-
theme = {
21+
theme: Theme = {
922
primaryColor: Colors.primary,
1023
CTA: {
1124
textColor: Colors.white,

0 commit comments

Comments
 (0)