-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtailwind.config.js
79 lines (77 loc) · 1.9 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
/** @type {import('tailwindcss').Config} */
const plugin = require('tailwindcss/plugin');
module.exports = {
content: [
"./src/**/*.{js,jsx,ts,tsx}",
],
theme: {
extend: {
margin: {
'standard': '192px',
'mobile-standard': '192px'
},
width: {
'content': '1000px',
'mobile-content': '300px',
},
fontSize: {
'header': '48px',
'body': '32px',
'mobile-header': '40px',
'mobile-body': '20px'
},
fontFamily: {
'RobotoMono': ['Roboto Mono', 'monospace'],
'Inter': ['Inter', 'sans-serif'],
'Roboto': ['Roboto', 'sans-serif'],
},
placeholderColor: {
'custom-green': '#78BE20', // Example custom color
},
filter: {
'figma-shadow': 'drop-shadow(0.25rem 0.25rem 0.25rem rgba(0, 0, 0, 0.5))',
},
minWidth: {
'128': '31rem',
},
minHeight: {
'128': '62rem',
}
},
},
variants: {
extend: {
placeholderColor: ['focus'],
},
},
plugins: [
require('tailwindcss-filters'),
plugin(function ({ addUtilities }) {
addUtilities({
'.bg-glass': {
background: 'rgba(255, 255, 255, 0.81)',
},
'.shadow-glass': {
'box-shadow': '0 4px 30px rgba(0, 0, 0, 0.1)',
},
'.backdrop-blur-glass': {
'backdrop-filter': 'blur(5px)',
'-webkit-backdrop-filter': 'blur(5px)',
},
'.border-glass': {
'border-radius': '16px',
'border': '1px solid rgba(255, 255, 255, 0.49)',
},
}, ['responsive', 'hover']);
}),
require('@tailwindcss/forms'),
function ({ addUtilities }) {
const newUtilities = {
'.placeholder-custom-green::placeholder': {
color: '#78BE20',
},
}
addUtilities(newUtilities, ['responsive', 'hover', 'focus'])
}
],
}