This repository has been archived by the owner on Apr 14, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
/
doczrc.js
106 lines (95 loc) · 2.45 KB
/
doczrc.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
const { css } = require('styled-components'); // eslint-disable-line
const backgroundColor = '#1D2330';
const primary = '#FFC400';
const lightText = 'rgba(255, 255, 255, 0.75)';
module.exports = {
title: 'Element Motion',
description: 'Declarative element motions for React.js 💨✨',
typescript: true,
dest: '/docs',
codeSandbox: false,
notUseSpecifiers: true,
filterComponents: files => files.filter(filepath => /([^d]\.tsx?)$/.test(filepath)),
menu: [
'Introduction',
'Getting started',
'Advanced usage',
'Create your own motions',
'Troubleshooting',
'Focal motions',
'Supporting motions',
'Composite experiences',
'Utilities',
],
themeConfig: {
mode: 'dark',
colors: {
primary,
sidebarBg: backgroundColor,
sidebarText: lightText,
sidebarPrimary: primary,
sidebarBorder: 'transparent',
link: primary,
},
styles: {
body: css`
background-color: ${backgroundColor};
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu',
'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
font-size: 16px;
line-height: 1.6;
color: ${lightText} !important;
input[class^='Search__Input-']::placeholder {
color: ${lightText};
}
div[class^='Logo__Wrapper-'] {
::before {
display: none;
}
}
div[class^='Sidebar__Footer-'] {
display: none;
}
a[class^='MenuLink__LinkAnchor-'],
a[class^='MenuLink__createLink-'] {
font-weight: 400;
color: ${lightText} !important;
:hover,
:focus {
font-weight: 600;
}
}
a[class^='SmallLink__Link'] {
opacity: 0.65;
:hover,
:focus {
opacity: 0.9;
}
}
[class^='Logo__LogoText-'] {
font-size: 2em;
}
p,
p[class^='Paragraph-'] {
color: ${lightText};
}
`,
h1: css`
display: inline-block;
margin: 60px 0 20px;
font-size: 48px;
font-weight: 600;
letter-spacing: -0.06em;
color: ${lightText};
`,
h2: css`
margin: 45px 0 15px;
line-height: 1.4em;
font-weight: 500;
font-size: 28px;
letter-spacing: -0.02em;
color: ${lightText};
`,
},
},
};