forked from cerebral/overmind
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfactory.ts
More file actions
39 lines (38 loc) · 788 Bytes
/
factory.ts
File metadata and controls
39 lines (38 loc) · 788 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
31
32
33
34
35
36
37
38
39
import * as Color from 'color'
import { ThemeInterface } from './'
export default function createTheme(colors): ThemeInterface {
return {
color: {
...colors,
fade: (color, fade) =>
Color(color)
.fade(fade)
.string(),
lighten: (color, lighten) =>
Color(color)
.lighten(lighten)
.string(),
},
padding: {
none: '0',
smallest: '0.1rem',
smallerer: '0.25rem',
smaller: '0.5rem',
small: '1rem',
normal: '2rem',
large: '3rem',
},
borderRadius: {
normal: '3px',
large: '6px',
},
fontSize: {
smallest: '10px',
small: '14px',
normal: '16px',
large: '20px',
larger: '22px',
largest: '34px',
},
}
}