/
styleguide.styles.js
133 lines (129 loc) · 2.65 KB
/
styleguide.styles.js
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
const rhythm = (value = 1, unit = 'rem', basis = 1.5) =>
Array.isArray(value)
? value.map(v => `${basis * v}${unit}`).join(' ')
: `${basis * value}${unit}`
const colors = {
blue: '#1CABE2',
primary: '#374EA2',
purple: '#6A3674',
danger: '#E2231A',
darkRed: '#961A49',
light: '#fff',
dark: '#000',
grey: '#7a898f',
lightGrey: '#aec0c6',
paleGrey: '#ebf1f3',
secondary: '#ad29b6',
tertiary: '#203a44',
}
const theme = {
color: {
baseBackground: colors.light,
border: colors.paleGrey,
codeBackground: colors.paleGrey,
error: colors.danger,
light: colors.grey,
lightest: colors.lightGrey,
name: colors.darkBlue,
type: colors.red,
base: colors.dark,
link: colors.primary,
linkHover: colors.primary,
sidebarBackground: colors.paleGrey,
},
fontFamily: {
base:
'"proxima-nova", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif',
monospace: 'Consolas, "Liberation Mono", Menlo, monospace',
},
fontSize: {
base: 15,
text: 16,
small: 13,
h1: 38,
h2: 32,
h3: 18,
h4: 18,
h5: 16,
h6: 16,
},
}
const styles = {
ComponentsList: {
heading: {
fontWeight: '700 !important',
},
},
Heading: {
heading1: {
display: 'block',
position: 'relative',
paddingBottom: rhythm(0.75),
marginBottom: rhythm(0.75),
fontWeight: 700,
'&:before': {
content: '""',
position: 'absolute',
bottom: 0,
left: 0,
width: rhythm(3),
height: '4px',
backgroundColor: colors.primary,
borderRadius: '4px',
},
'& > a': {
fontWeight: '700 !important',
},
},
heading2: {
marginBottom: rhythm(0.5),
},
heading3: {
borderBottom: `thin solid ${colors.lightGrey}`,
paddingBottom: rhythm(0.25),
marginBottom: rhythm(1),
textTransform: 'uppercase',
fontWeight: '700',
},
},
ReactComponent: {
tabs: {
backgroundColor: colors.paleGrey,
padding: rhythm([0.5, 1]),
overflow: 'auto',
},
tabButtons: {
marginBottom: 0,
},
},
SectionHeading: {
sectionName: {
display: 'block',
paddingTop: `${rhythm(0.25)} !important`,
textDecoration: 'none !important',
'&:hover': {
opacity: 0.75,
},
},
},
StyleGuide: {
content: {
paddingTop: rhythm(2.5),
'@media (max-width: 600px)': {
padding: rhythm(1),
},
},
},
TabButton: {
button: {
width: '100%',
},
isActive: {
border: 0,
},
},
}
module.exports = {
styles: styles,
theme: theme,
}