-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathtailwind.config.js
77 lines (77 loc) · 1.86 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
var defaultTheme = require('tailwindcss/defaultTheme');
module.exports = {
prefix: '',
mode: 'jit',
purge: {
enabled: true,
content: ['./src/app/**/*.{html,ts}', './projects/**/*.{html,ts}'],
},
darkMode: 'class',
theme: {
extend: {
screens: {
xs: '460px',
},
boxShadow: {
floating: '-13px 14px 40px -16px rgb(0 0 0 / 89%)',
},
colors: {
primary: 'var(--primary)',
'primary-dark': 'var(--primary-dark)',
'primary-10': 'var(--primary-10)',
dark: {
50: 'var(--dark-50)',
500: 'var(--dark-500)',
700: 'var(--dark-700)',
800: 'var(--dark-800)',
900: 'var(--dark-900)',
},
},
fontFamily: {
sans: ['Inter', ...defaultTheme.fontFamily.sans],
},
typography: (theme) => ({
DEFAULT: {
css: {
color: '#333',
a: {
color: '#3182ce',
'&:hover': {
color: 'var(--primary)',
},
},
},
dark: {
color: theme('colors.gray.50'),
a: {
color: theme('colors.dark.50'),
'&:hover': {
color: theme('colors.white'),
},
},
},
},
}),
},
customForms: (theme) => ({
default: {
'input, textarea, checkbox, radio': {
borderWidth: '1px',
borderRadius: theme('borderRadius.md'),
borderColor: theme('colors.gray.300'),
'&:focus': {
borderColor: 'var(--primary)',
},
},
'checkbox,radio': {
color: 'var(--primary)',
},
},
}),
},
plugins: [
require('@tailwindcss/custom-forms'),
require('@tailwindcss/line-clamp'),
require('@tailwindcss/typography'),
],
};