-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkroket.config.js
More file actions
143 lines (138 loc) · 3.62 KB
/
Copy pathkroket.config.js
File metadata and controls
143 lines (138 loc) · 3.62 KB
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
const colors = {
white: '#fff',
light: '#bbc9be',
dark: '#000',
primary: '#fa605c',
};
const fonts = {
base: '"HK Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',
headings:
'"HK Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',
};
const baseSize = 20;
const sizes = {
100: 0.42,
200: 0.56,
300: 0.75,
400: 1,
500: 1.33,
600: 1.77,
700: 2.36,
800: 3.15,
900: 4.2,
1000: 5.6,
};
Object.keys(sizes).map((key) => {
sizes[key] = Math.round(baseSize * sizes[key]) + 'px';
});
module.exports = {
outputPath: {
sass: {
config: 'src/scss/_config.scss',
utilities: 'src/scss/utilities/_kroket.scss',
},
},
items: {
color: {
items: colors,
output: ['sass'],
},
size: {
items: sizes,
output: ['sass'],
},
},
breakpoints: {
sm: '(min-width: 32em)',
md: '(min-width: 48em)',
lg: '(min-width: 68em)',
},
utilities: {
bg: {
items: colors,
output: 'standard',
property: 'background',
},
color: {
items: colors,
output: 'standard',
property: 'color',
},
z: {
items: {
default: 0,
overlay: 1,
},
output: 'standard',
property: 'z-index',
},
font: {
items: fonts,
output: 'standard',
property: 'font-family',
},
'flow-space': {
items: sizes,
output: 'responsive',
property: '--flow-space',
},
shadow: {
items: {
base:
'0 0.3px 0.2px rgba(0, 0, 0, 0.025), 0 0.8px 0.5px rgba(0, 0, 0, 0.03), 0 1.5px 0.9px rgba(0, 0, 0, 0.033), 0 2.7px 1.6px rgba(0, 0, 0, 0.036), 0 5px 2.9px rgba(0, 0, 0, 0.039), 0 12px 7px rgba(0, 0, 0, 0.05)',
heavy:
'0 0.7px 0.3px rgba(0, 0, 0, 0.025), 0 1.7px 0.7px rgba(0, 0, 0, 0.03), 0 3.1px 1.4px rgba(0, 0, 0, 0.033), 0 5.6px 2.5px rgba(0, 0, 0, 0.036), 0 10.4px 4.6px rgba(0, 0, 0, 0.039), 0 25px 11px rgba(0, 0, 0, 0.05)',
},
output: 'standard',
property: 'box-shadow',
},
radius: {
items: {
normal: '10px',
large: '20px',
full: '100%',
},
output: 'standard',
property: 'border-radius',
},
leading: {
items: {
flat: '1',
tight: '1.3',
mid: '1.5',
loose: '1.7',
},
output: 'standard',
property: 'line-height',
},
measure: {
items: {
full: '100vw',
long: '70rem',
medium: '55rem',
short: '40rem',
},
output: 'standard',
property: 'max-width',
},
text: {
items: sizes,
output: 'responsive',
property: 'font-size',
},
weight: {
items: {
normal: '400',
medium: '500',
bold: '700',
},
output: 'standard',
property: 'font-weight',
},
'gap-bottom': {
items: sizes,
output: 'responsive',
property: 'margin-bottom',
},
},
};