-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
62 lines (62 loc) · 2.14 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
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}'],
theme: {
extend: {
colors: {
primary: 'var(--bg-primary)',
secondary: 'var(--bg-secondary)',
'text-primary': 'var(--text-primary)',
'text-secondary': 'var(--text-secondary)',
'accent-primary': 'var(--accent-primary)',
'christmas-red': 'var(--christmas-red)',
'christmas-green': 'var(--christmas-green)',
'christmas-gold': 'var(--christmas-gold)',
},
typography: (theme) => ({
invert: {
css: {
'--tw-prose-body': theme('colors.gray[300]'),
'--tw-prose-headings': theme('colors.white'),
'--tw-prose-links': theme('colors.indigo[400]'),
'--tw-prose-bold': theme('colors.white'),
'--tw-prose-counters': theme('colors.gray[400]'),
'--tw-prose-bullets': theme('colors.gray[400]'),
'--tw-prose-hr': theme('colors.gray[700]'),
'--tw-prose-quotes': theme('colors.gray[300]'),
'--tw-prose-code': theme('colors.white'),
'--tw-prose-pre-code': theme('colors.gray[300]'),
'--tw-prose-pre-bg': theme('colors.gray[800]'),
},
},
}),
animation: {
'scale-in': 'scale-in 0.2s ease-out',
'slide-up': 'slide-up 0.3s ease-out',
'fade-in': 'fade-in 0.3s ease-out',
'bounce-subtle': 'bounce-subtle 2s ease-in-out infinite',
},
keyframes: {
'scale-in': {
'0%': { transform: 'scale(0.95)', opacity: '0' },
'100%': { transform: 'scale(1)', opacity: '1' },
},
'slide-up': {
'0%': { transform: 'translateY(10px)', opacity: '0' },
'100%': { transform: 'translateY(0)', opacity: '1' },
},
'fade-in': {
'0%': { opacity: '0' },
'100%': { opacity: '1' },
},
'bounce-subtle': {
'0%, 100%': { transform: 'translateY(0)' },
'50%': { transform: 'translateY(-5px)' },
},
},
},
},
plugins: [
require('@tailwindcss/typography'),
],
};