-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
64 lines (63 loc) · 1.64 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
const plugin = require('tailwindcss/plugin')
const lodash = require('lodash');
const postcssEasyImport = require('postcss-easy-import');
const postcssNested = require('postcss-nested');
const postcssCustomMedia = require('postcss-custom-media');
const postcssCssVariables = require('postcss-css-variables');
const postcssAutoprefixer = require('autoprefixer');
module.exports = {
purge: [],
darkMode: 'class',
theme: {
lineClamp: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
extend: {
colors: {
gray: {
1000: '#1c1c1c',
1100: '#111111'
},
blue: {
850: 'rgb(10,49,72)',
950: 'rgb(16,23,38)',
960: 'rgb(2, 25, 34)',
970: 'rgb(12,23,38)',
980: 'rgb(14,19,31)'
}
},
grayscale: {
50: '50%',
}
},
},
variants: {
extend: {
filter: ['dark'],
grayscale: ['dark', 'hover', 'focus']
},
},
plugins: [
// postcssEasyImport(),
// postcssNested(),
// postcssCustomMedia(),
// postcssCssVariables(),
// postcssAutoprefixer(
// {browsers: '> 5%',}
// ),
plugin(function({ e, addUtilities }) {
const lineClampUtilities = lodash.fromPairs(
lodash.map([1, 2, 3, 4, 5, 6, 7, 8, 9, 10], (value) => {
return [
`.${e(`clamp-${value}`)}`,
{
display: '-webkit-box',
'-webkit-box-orient': 'vertical',
'-webkit-line-clamp': `${value}`,
overflow: 'hidden'
},
];
})
);
addUtilities(lineClampUtilities, ['responsive']);
}),
],
}