forked from y-kkamil/console
-
Notifications
You must be signed in to change notification settings - Fork 0
/
styleguide.config.js
55 lines (53 loc) · 1.33 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
const path = require('path');
const theme = require('./config/theme');
const MiniHtmlWebpackPlugin = require('mini-html-webpack-plugin');
const { generateCSSReferences, generateJSReferences } = MiniHtmlWebpackPlugin;
module.exports = {
sections: [
{
name: 'Components',
ignore: [
'**/__tests__/**',
'**/components/index.js',
'src/components/ThemeWrapper/index.js',
],
components: 'src/components/**/index.js',
description: '',
},
],
styleguideComponents: {
Wrapper: path.join(__dirname, 'src/components/ThemeWrapper'),
},
styleguideDir: 'docs',
title: 'ReactJS UI Components library for Kyma',
theme: {
color: {
base: theme.colors.text,
light: theme.colors.textLight,
lightest: theme.colors.chrome200,
link: theme.colors.link,
linkHover: theme.colors.linkHover,
border: theme.colors.chrome200,
name: theme.colors.green,
type: theme.colors.purple,
error: theme.colors.red,
baseBackground: theme.colors.chrome000,
codeBackground: 'pink',
sidebarBackground: theme.colors.chrome100,
},
fontFamily: {
base: theme.fonts.primary,
},
fontSize: {
base: 12,
text: 16,
small: 14,
h1: 40,
h2: 36,
h3: 32,
h4: 28,
h5: 24,
h6: 20,
},
},
};