This repository was archived by the owner on Jul 2, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththeme.ts
106 lines (102 loc) · 2.21 KB
/
theme.ts
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
import { css, DefaultTheme } from 'styled-components';
const fontWeight = {
regular: 400,
medium: 500,
bold: 'bold',
};
const theme: DefaultTheme = {
colors: {
black: '#000000',
white: '#ffffff',
gray: '#EEEEEE',
},
flexCol: (justifyContent = 'center', alignItems = 'center') => css`
display: flex;
flex-direction: column;
justify-content: ${justifyContent};
align-items: ${alignItems};
`,
flexRow: (justifyContent = 'center', alignItems = 'center') => css`
display: flex;
flex-direction: row;
justify-content: ${justifyContent};
align-items: ${alignItems};
`,
font: {
n36m: css`
font-weight: ${fontWeight.medium};
font-size: 36px;
line-height: 48px;
`,
n26b: css`
font-weight: ${fontWeight.bold};
font-size: 26px;
line-height: 38px;
`,
n20m: css`
font-weight: ${fontWeight.medium};
font-size: 20px;
line-height: 32px;
`,
n18b: css`
font-weight: ${fontWeight.bold};
font-size: 18px;
line-height: 26px;
`,
n16m: css`
font-weight: ${fontWeight.medium};
font-size: 16px;
line-height: 24px;
`,
n16r: css`
font-weight: ${fontWeight.regular};
font-size: 16px;
line-height: 24px;
`,
n14b: css`
font-weight: ${fontWeight.bold};
font-size: 14px;
line-height: 20px;
`,
n14m: css`
font-weight: ${fontWeight.medium};
font-size: 14px;
line-height: 20px;
`,
n14r: css`
font-weight: ${fontWeight.regular};
font-size: 14px;
line-height: 20px;
`,
n12b: css`
font-weight: ${fontWeight.bold};
font-size: 12px;
line-height: 20px;
`,
n12m: css`
font-weight: ${fontWeight.medium};
font-size: 12px;
line-height: 20px;
`,
ellipse: (wrap = 'nowrap') => css`
text-overflow: ellipsis;
white-space: ${wrap};
overflow: hidden;
display: block;
`,
},
input: css`
width: 180px;
height: 10px;
margin-bottom: 20px;
padding: 10px;
border: none;
border-bottom: 1px solid
${({
theme: {
colors: { gray },
},
}) => gray};
`,
};
export default theme;