-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
97 lines (97 loc) · 2.34 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
/** @type {import('tailwindcss').Config} */
const plugin = require('tailwindcss/plugin');
module.exports = {
content: ['./src/**/*.{html,js,jsx}'],
darkMode: 'class',
theme: {
screens: {
sm: '480px',
md: '768px',
lg: '1024px',
xl: '1280px',
'2xl': '1536px',
},
extend: {},
container: {
center: true,
padding: {
DEFAULT: '1rem',
sm: '1rem',
lg: '1.5rem',
xl: '2rem',
'2xl': '2rem',
},
},
},
plugins: [
plugin(function ({ addBase, addComponents, addUtilities, theme }) {
addBase({
h1: {
fontSize: theme('fontSize.2xl'),
},
h2: {
fontSize: theme('fontSize.xl'),
},
});
addComponents({
'.card': {
backgroundColor: theme('colors.white'),
borderRadius: theme('borderRadius.lg'),
padding: theme('spacing.6'),
boxShadow: theme('boxShadow.xl'),
},
'.btn': {
padding: '10px 24px 10px 24px',
borderRadius: '6px',
fontWeight: '600',
transition: '0.3s ease all',
lineHeight: '1.5',
letterSpacing: '-0.01em',
},
'.btn-main': {
backgroundColor: '#FF1FAA',
color: '#fff',
fontWeight: '600',
border: '2px solid transparent',
'&:hover': {
backgroundColor: '#E5008E',
},
'&:focus': {
backgroundColor: '#FF1FAA',
border: '2px solid #FFC3E9',
},
'&:disabled': {
backgroundColor: '#FF6AC6',
},
},
'.btn-second': {
backgroundColor: '#FBEFF6',
color: '#E5008E',
fontWeight: '600',
border: '1px solid transparent',
'&:hover': {
backgroundColor: '#FFC3E9',
},
'&:focus': {
backgroundColor: '#FFC3E9',
border: '2px solid #FFC3E9',
},
'&:disabled': {
color: '#FF6AC6',
backgroundColor: '#FFC3E9',
},
},
'.flex-c': {
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
},
});
addUtilities({
'.content-auto': {
contentVisibility: 'auto',
},
});
}),
],
};