-
Notifications
You must be signed in to change notification settings - Fork 9
/
tailwind.config.js
62 lines (61 loc) · 1.44 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
const plugin = require('tailwindcss/plugin')
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./src/**/*.{js,jsx}'],
theme: {
fontSize: {
xs: ['0.75rem'],
sm: ['0.875rem'],
base: ['1rem'],
lg: ['1.125rem'],
xl: ['1.25rem'],
'2xl': ['1.5rem'],
'3xl': ['2rem'],
'4xl': ['2.5rem'],
'5xl': ['3rem'],
'6xl': ['3.75rem'],
'7xl': ['4.5rem'],
'8xl': ['6rem'],
'9xl': ['8rem'],
},
extend: {
borderRadius: {
'4xl': '2rem',
},
maxWidth: {
'2xl': '40rem',
},
},
},
plugins: [
require('@tailwindcss/forms'),
plugin(function({ addComponents, theme }) {
addComponents({
'.card-decorator': {
'display': 'flex',
'position': 'absolute',
},
'.card-decorator-top': {
'top': '0',
'left': '0',
'width': '100%',
'height': '0.5rem',
'background-color': theme('colors.neutral.500'),
},
'.card-decorator-left': {
'top': '0',
'left': '0',
'width': '0.375rem',
'height': '100%',
'background-color': theme('colors.neutral.500'),
},
'.card-container': {
'position': 'relative',
'overflow': 'hidden',
'border-radius': theme('borderRadius.sm'),
},
})
}),
require("tailwindcss-animate")
],
}