forked from cerebral/overmind
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.ts
More file actions
54 lines (47 loc) · 1.1 KB
/
index.ts
File metadata and controls
54 lines (47 loc) · 1.1 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import createTheme from './factory'
import overmindTheme from './overmind'
import reactTheme from './react'
import vueTheme from './vue'
import angularTheme from './angular'
export type Colors = {
primary: string
dark: string
red: string
white: string
gray: string
black: string
}
export interface BaseTheme {
color: Colors
padding: {
none: string
smallest: string
smallerer: string
smaller: string
small: string
normal: string
large: string
}
borderRadius: {
normal: string
large: string
}
fontSize: {
smallest: string
small: string
normal: string
large: string
larger: string
largest: string
}
}
export interface ThemeInterface extends BaseTheme {
color: Colors & {
fade: (color: string, fade: number) => string
lighten: (color: string, lighten: number) => string
}
}
export const overmind: ThemeInterface = createTheme(overmindTheme)
export const react: ThemeInterface = createTheme(reactTheme)
export const vue: ThemeInterface = createTheme(vueTheme)
export const angular: ThemeInterface = createTheme(angularTheme)