forked from yuaanlin/nextjs.tw
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
38 lines (36 loc) · 925 Bytes
/
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
/** @type {import('tailwindcss').Config} */
const plugin = require('tailwindcss/plugin');
module.exports = {
content: [
'pages/**/*.{js,jsx,ts,tsx,md,mdx}',
'components/**/*.{js,jsx,ts,tsx,md,mdx}',
],
theme: {
container: {
padding: {
DEFAULT: '1rem',
sm: '2rem',
lg: '4rem',
xl: '8rem',
'2xl': '18rem',
},
},
},
plugins: [
plugin(function({ addVariant, addUtilities, e }) {
addVariant('data-active', ({ modifySelectors, separator }) => {
modifySelectors(({ className }) => {
return `.${e(`data-active${separator}${className}`)}[data-active="true"]`;
})
});
addUtilities({
'.next-tw-shadow': {
boxShadow: '0px 6px 12px 0px rgb(0 0 0 / 10%)'
},
'.next-tw-hover-shadow': {
boxShadow: '0px 6px 12px 0px rgb(0 0 0 / 15%)'
},
})
})
],
};