-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
38 lines (35 loc) · 818 Bytes
/
index.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
const colors = require('./parameters/colors');
const sizes = require('./parameters/sizes');
const textSizes = {};
Object.entries(sizes.values.text).forEach(([k, v]) => {
textSizes[k] = `${v}px`;
});
const width = {};
Array.from(Array(21).keys()).forEach(x => {
width[`${x * 5}pct`] = `${x * 5}%`;
});
module.exports = {
separator: '-',
prefix: 'f-',
plugins: [
require('./utilities.js'),
require('./viewport-sizes.js'),
require('./flex-gaps.js'),
require('./grid.js'),
require('./outlines.js'),
require('./scrollbars.js'),
require('./text-orientation.js'),
require('./absolute-positions.js'),
require('./character-widths.js'),
],
theme: {
fontSize: textSizes,
colors,
extend: {
margin: {
'2px': '2px',
},
width,
},
},
};