forked from smooth-code/smooth-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyleguide.config.js
58 lines (57 loc) · 1.71 KB
/
styleguide.config.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
const path = require('path')
const { version } = require('./package.json')
module.exports = {
title: `Smooth UI | ${version}`,
compilerConfig: {
transforms: {
dangerousTaggedTemplateString: true,
},
},
theme: {
color: {
link: '#bd4932',
linkHover: '#6c2a1d',
},
fontFamily: {
base:
'-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif',
},
},
styleguideComponents: {
LogoRenderer: path.join(__dirname, 'styleguidist/Logo'),
},
sections: [
{
name: 'Smooth UI',
content: path.resolve(__dirname, 'docs/Introduction.md'),
},
{
name: 'Grid',
content: path.resolve(__dirname, 'docs/Grid.md'),
components: () => [
path.resolve(__dirname, 'src/Col.js'),
path.resolve(__dirname, 'src/Row.js'),
],
},
{
name: 'Components',
components: () => [
path.resolve(__dirname, 'src/Alert.js'),
path.resolve(__dirname, 'src/Box.js'),
path.resolve(__dirname, 'src/Button.js'),
path.resolve(__dirname, 'src/Checkbox.js'),
path.resolve(__dirname, 'src/ControlFeedback.js'),
path.resolve(__dirname, 'src/FormCheck.js'),
path.resolve(__dirname, 'src/FormCheckLabel.js'),
path.resolve(__dirname, 'src/FormGroup.js'),
path.resolve(__dirname, 'src/Input.js'),
path.resolve(__dirname, 'src/Label.js'),
path.resolve(__dirname, 'src/Radio.js'),
path.resolve(__dirname, 'src/RadioGroup.js'),
path.resolve(__dirname, 'src/Select.js'),
path.resolve(__dirname, 'src/Switch.js'),
path.resolve(__dirname, 'src/Textarea.js'),
],
},
],
}