-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtailwind.config.js
35 lines (32 loc) · 976 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
/** @type {import('tailwindcss').Config} */
export default {
content: [
'./pages/**/*.{js,ts,jsx,tsx}',
'./components/**/*.{js,ts,jsx,tsx}',
'./src/**/*.{js,ts,jsx,tsx}', // Add this if you're using a `src` folder
],
darkMode: 'class', // Enable dark mode via class
theme: {
extend: {
transitionProperty: {
'colors-shadow': 'color, background-color, border-color, text-decoration-color, fill, stroke, box-shadow',
'transform': 'transform', // Added transition for transform
},
transitionDuration: {
'250': '250ms', // Custom duration
},
},
},
variants: {
extend: {
backgroundColor: ['active', 'focus'], // Added focus variant
backgroundOpacity: ['active'],
textColor: ['hover', 'focus'], // Added hover/focus for text color
},
},
plugins: [
// Add any plugins if needed
// require('@tailwindcss/forms'),
// require('@tailwindcss/typography'),
],
};