-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
88 lines (88 loc) · 2.31 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
/** @type {import('tailwindcss').Config} */
export default {
content: ['./src/**/*.{js,jsx,ts,tsx}'],
theme: {
extend: {
colors: {
sswRed: '#cc4141',
sswDarkRed: '#8e2c2c',
},
width: {
90: '22.5rem',
},
borderWidth: {
1: '1px',
},
backgroundImage: {
glass:
'linear-gradient(152.97deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%)',
},
outlineWidth: {
'-1.5': '1.5px',
},
outlineOffset: {
'-1.5': '-1.5px',
},
height: {
17: '4.25rem',
22: '5.5rem',
},
animation: {
ripple: 'ripple-out 0.6s',
'ripple-pseudo': 'ripple-out-pseudo 0.6s',
rippling: 'rippling 0.6s ease-out',
'accordion-down': 'accordion-down 0.2s ease-out',
'accordion-up': 'accordion-up 0.2s ease-out',
marquee: 'marquee 20s linear infinite',
},
textUnderlineOffset: {
3: '3px',
},
maskImage: {
'horizontal-fade':
'linear-gradient(to right, transparent, black 10%, black 90%, transparent)',
},
maskRepeat: {
'no-repeat': 'no-repeat',
},
keyframes: {
marquee: {
from: { transform: 'translateX(50%)' },
to: { transform: 'translateX(calc(-50% - var(--gap)))' },
},
'ripple-out': {
'0%': { width: '0%' },
'100%': { width: '100%' },
},
'ripple-out-pseudo': {
'0%': { background: 'rgba(0, 0, 0, 0.25)' },
'100%': { background: 'transparent' },
},
rippling: {
'0%': {
opacity: '1',
},
'100%': {
transform: 'scale(2)',
opacity: '0',
},
},
},
},
},
plugins: [
function ({ addUtilities }) {
const newUtilities = {
'.mask-horizontal-fade': {
'-webkit-mask-image':
'linear-gradient(to right, transparent, black 10%, black 90%, transparent)',
'mask-image':
'linear-gradient(to right, transparent, black 10%, black 90%, transparent)',
'-webkit-mask-repeat': 'no-repeat',
'mask-repeat': 'no-repeat',
},
};
addUtilities(newUtilities, ['responsive', 'hover']);
},
],
};