-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
55 lines (52 loc) · 1.48 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
var _ = require('lodash');
var flattenColorPalette = require('tailwindcss/lib/util/flattenColorPalette')
.default;
module.exports = {
purge: ['./src/**/*.{js,jsx,ts,tsx}', './public/index.html'],
darkMode: 'class',
theme: {
extend: {
colors: {
coolDark: {
400: '#40444B',
500: '#36393f',
600: '#32353b',
},
primary: {
50: '#fbeff3',
100: '#d96d91',
200: '#d55d85',
300: '#d14d79',
400: '#cd3c6d',
500: '#c33364',
600: '#b22e5a',
700: '#a22a52',
800: '#92264a',
900: '#822142',
},
},
boxShadow: {
button: 'var(--shadow-button)',
card: 'var(--shadow-card)',
},
},
},
variants: {
extend: {},
},
plugins: [
function ({ addUtilities, e, theme, variants }) {
const colors = flattenColorPalette(theme('borderColor'));
const utilities = _.flatMap(
_.omit(colors, 'default'),
(value, modifier) => ({
[`.${e(`border-t-${modifier}`)}`]: { borderTopColor: `${value}` },
[`.${e(`border-r-${modifier}`)}`]: { borderRightColor: `${value}` },
[`.${e(`border-b-${modifier}`)}`]: { borderBottomColor: `${value}` },
[`.${e(`border-l-${modifier}`)}`]: { borderLeftColor: `${value}` },
})
);
addUtilities(utilities, variants('borderColor'));
},
],
};