-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
48 lines (48 loc) · 1.64 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
/** @type {import('tailwindcss').Config} */
module.exports = {
darkMode: 'selector',
content: ['./src/ui/**/*.{ts,tsx}', './src/app/**/*.{ts,tsx}', './src/**/*.{ts,tsx}', './content/**/*.mdx'],
theme: {
extend: {
colors: { blue: { 450: '#3598db' } },
animation: {
slide: 'slide 50s linear infinite',
slide2: 'slide2 50s linear infinite',
'text-bg': 'bg-animate 3s ease infinite'
},
keyframes: {
slide: {
from: { transform: 'translateX(0%)' },
to: { transform: 'translateX(-100%)' }
},
slide2: {
from: { transform: 'translateX(100%)' },
to: { transform: 'translateX(0%)' }
},
loading: {
'0%': { opacity: '.2' },
'20%': { opacity: '1', transform: 'translateX(1px)' },
to: { opacity: '.2' }
},
'bg-animate': {
'0%, 100%': { backgroundPosition: '0% 50%' },
'50%': { backgroundPosition: '100% 50%;' }
}
},
boxShadow: ({ theme }) => ({
// inspired by https://www.joshwcomeau.com/shadow-palette/
'surface-glass': `
inset 0.25px 1px 0 0 ${theme('colors.rose.200 / 3%')},
0px 0.3px 0.3px rgba(3, 2, 2, 0.02),
0px 2.2px 2.5px -0.4px rgba(3, 2, 2, 0.02),
0px 4.3px 4.8px -0.8px rgba(3, 2, 2, 0.02),
0px 7.5px 8.4px -1.2px rgba(3, 2, 2, 0.02),
0px 12.8px 14.4px -1.7px rgba(3, 2, 2, 0.02),
0px 21px 23.6px -2.1px rgba(3, 2, 2, 0.02),
0px 33.2px 37.4px -2.5px rgba(3, 2, 2, 0.02)`
})
},
fontFamily: { sans: ['Inter', 'sans-serif'] }
},
plugins: []
};