-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.js
More file actions
33 lines (32 loc) · 839 Bytes
/
Copy pathtailwind.config.js
File metadata and controls
33 lines (32 loc) · 839 Bytes
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
// eslint-disable-next-line import/no-extraneous-dependencies
const colors = require('tailwindcss/colors')
module.exports = {
purge: ['./pages/**/*.{js,ts,jsx,tsx}', './src/components/**/*.{js,ts,jsx,tsx}', './src/page-components/**/*.{js,ts,jsx,tsx}'],
important: true,
// Active dark mode on class basis
darkMode: 'class', // or 'media' or 'class'
theme: {
extend: {
colors: {
primary: colors.indigo,
secondary: colors.fuchsia,
success: colors.green,
info: colors.sky,
warning: colors.yellow,
error: colors.red,
},
},
},
variants: {
extend: {
backgroundColor: ['checked'],
borderColor: ['checked'],
inset: ['checked'],
zIndex: ['hover', 'active'],
},
},
plugins: [],
future: {
purgeLayersByDefault: true,
},
}