This repository has been archived by the owner on Jul 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
styleguide.styles.js
127 lines (124 loc) · 2.44 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
const colors = {
danger: "#d9534f",
white: "#ffffff",
black: "#000000",
black60: "#666666",
primary: "#3e1bdb",
grey: "#7a898f",
sidebarGrey: "#fafafa",
lightGrey: "#aec0c6",
paleGrey: "#ebf1f3",
secondary: "#ad29b6",
};
const theme = {
color: {
baseBackground: colors.white,
border: colors.paleGrey,
codeBackground: colors.paleGrey,
error: colors.danger,
light: colors.grey,
lightest: colors.lightGrey,
name: colors.primary,
type: colors.secondary,
base: colors.black60,
linkHover: colors.primary,
sidebarBackground: colors.sidebarGrey,
},
fontFamily: {
base: '"IBM Plex Sans", "Helvetica Neue", Arial, sans-serif',
monospace: '"IBM Plex Mono",Consolas, Menlo, monospace',
},
fontSize: {
base: 16,
text: 16,
h1: 32,
h2: 24,
h3: 18,
},
maxWidth: 780,
sidebarWidth: 280,
};
const styles = {
Heading: {
heading1: {
display: "block",
position: "relative",
marginBottom: "1.125rem",
color: `${colors.black}`,
},
heading2: {
marginBottom: "0.75rem",
color: colors.black,
},
heading3: {
borderBottom: `thin solid ${colors.lightGrey}`,
paddingBottom: "0.375rem",
marginBottom: "1.5rem",
textTransform: "uppercase",
fontWeight: "700",
},
},
ReactComponent: {
tabs: {
backgroundColor: colors.paleGrey,
padding: "0 1.5rem",
overflow: "auto",
},
tabButtons: {
marginBottom: 0,
},
},
SectionHeading: {
sectionName: {
display: "block",
paddingTop: `1.5rem !important`,
textDecoration: "none !important",
"&:hover": {
opacity: 0.75,
},
},
},
StyleGuide: {
content: {
paddingTop: "3.75rem",
},
sidebar: {
border: 0,
"& li > a": {
color: `${colors.black} !important`,
cursor: "pointer",
},
},
},
TabButton: {
button: {
width: "100%",
},
isActive: {
border: 0,
},
},
Table: {
table: {
marginTop: "0.75rem",
marginBottom: "0.75rem",
minWidth: "600px",
},
cellHeading: {
borderBottom: `thin solid ${colors.lightGrey}`,
},
cell: {
paddingBottom: 0,
"& p": {
marginBottom: "0.1875rem !important",
},
'& div[class*="para"]': {
marginBottom: "0.1875rem !important",
},
},
},
};
module.exports = {
styles: styles,
theme: theme,
};