This repository has been archived by the owner on Nov 19, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
goron.config.js
107 lines (104 loc) · 1.94 KB
/
goron.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
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
const colors = {
primary: '#ff00ff',
light: '#ffffff',
dark: '#252525',
};
const fonts = {
base: 'Helvetica, sans-serif',
serif: 'Georgia, serif',
};
const sizeScale = {
200: 'var(--step--2)',
300: 'var(--step--1)',
400: 'var(--step-0)',
500: 'var(--step-1)',
600: 'var(--step-2)',
700: 'var(--step-3)',
800: 'var(--step-4)',
900: 'var(--step-5)',
};
module.exports = {
colors,
sizeScale,
fonts,
generateCustomProperties: true,
utilities: {
bg: {
items: colors,
output: 'standard',
property: 'background',
},
color: {
items: colors,
output: 'standard',
property: 'color',
},
font: {
items: fonts,
output: 'standard',
property: 'font-family',
},
'gap-top': {
items: sizeScale,
output: 'standard',
property: 'margin-top',
},
'gap-bottom': {
items: sizeScale,
output: 'standard',
property: 'margin-bottom',
},
leading: {
items: {
tight: '1.2',
mid: '1.5',
loose: '1.7',
},
output: 'standard',
property: 'line-height',
},
measure: {
items: {
long: '75ch',
short: '60ch',
compact: '40ch',
},
output: 'standard',
property: 'max-width',
},
'pad-top': {
items: sizeScale,
output: 'standard',
property: 'padding-top',
},
'pad-bottom': {
items: sizeScale,
output: 'standard',
property: 'padding-bottom',
},
'pad-left': {
items: sizeScale,
output: 'standard',
property: 'padding-left',
},
text: {
items: sizeScale,
output: 'responsive',
property: 'font-size',
},
weight: {
items: {
light: '300',
regular: '400',
mid: '600',
bold: '700',
},
output: 'standard',
property: 'font-weight',
},
},
breakpoints: {
md: '48em',
lg: '68em',
},
};