-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.js
More file actions
27 lines (27 loc) · 924 Bytes
/
tailwind.config.js
File metadata and controls
27 lines (27 loc) · 924 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
/** @type {import('tailwindcss').Config} */
export default {
content: ['./src/**/*.{js,jsx,ts,tsx}'],
theme: {
extend: {},
},
plugins: [
({ addUtilities }) => {
addUtilities({
'.base-btn': {
'@apply border-2 border-black rounded-full font-bold px-4 py-2 hover:bg-black hover:text-white transition duration-150':
'',
},
'.green-btn': {
'@apply bg-green-500 text-white rounded-full font-bold px-4 py-2 hover:bg-green-400 transition duration-150 disabled:bg-gray-300':
'',
},
'.error-red': {
'@apply text-red-500 text-xs': '',
},
'.success-green': {
'@apply text-green-500 text-xs': '',
},
});
},
],
};