-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
50 lines (48 loc) · 1.37 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
const plugin = require('tailwindcss/plugin')
module.exports = {
content: [ "./src/**/*.{js,jsx,ts,tsx}", ],
theme: {
extend: {
colors: {
'navbar-from': '#6d94bf',
'navbar-via': '#446e9b',
'navbar-to': '#3e648d',
'navbar-border': '#345578',
'hover': '#1d4f84',
},
},
fontFamily: {
'header': ['"Open Sans"', '-apple-system', 'BlinkMacSystemFont', '"Segoe UI"', 'Roboto', '"Helvetica Neue"', 'Arial', 'sans-serif', '"Apple Color Emoji"', '"Segoe UI Emoji"', '"Segoe UI Symbol"'],
},
},
variants: {
borderColor: ({ after }) => after(['invalid']),
ringColor: ({ after }) => after(['invalid']),
backgroundColor: ({ after }) => after(['invalid']),
extend: {
borderColor: ['invalid'],
ringColor: ['invalid'],
backgroundColor: ['invalid'],
},
},
plugins: [
require('@tailwindcss/forms'),
plugin(function({ addUtilities }) {
const cursor = {
'.cursor-not-allowed': {
cursor: 'not-allowed',
}
}
addUtilities(cursor, {
variants: ['disabled'],
})
}),
plugin(function ({ addVariant, e }) {
addVariant('invalid', ({ modifySelectors, separator }) => {
modifySelectors(({ className }) => {
return `.${e(`invalid${separator}${className}`)}:invalid`;
});
});
}),
],
}