-
Notifications
You must be signed in to change notification settings - Fork 277
/
tailwind.config.js
48 lines (47 loc) · 1.24 KB
/
tailwind.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
const tones = Array.from({ length: 10 }).reduce((obj, val, index) => {
const tone = index == 0 ? "50" : String(index * 100);
const tones = Array.from({ length: 10 }).reduce((_obj, _val, _index) => {
const _tone = String(_index) + (_index != 0 ? "0" : "");
_obj[tone + "/" + _tone] = `var(--${tone}-${_tone})`;
return _obj;
}, {});
obj = {
...tones,
...obj
};
return obj;
}, {});
module.exports = {
important: true,
mode: 'jit',
content: [
'./pages/**/*.{js,ts,jsx,tsx}',
'./components/**/*.{js,ts,jsx,tsx}'
],
darkMode: 'media',
theme: {
extend: {
colors: {
amber: {
...tones,
900: 'var(--900)',
800: 'var(--800)',
700: 'var(--700)',
600: 'var(--600)',
500: 'var(--500)',
400: 'var(--400)',
300: 'var(--300)',
200: 'var(--200)',
100: 'var(--100)',
50: 'var(--50)',
}
},
}
},
variants: {
extend: {}
},
plugins: [
require('@tailwindcss/line-clamp')
]
};