-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.mjs
69 lines (69 loc) · 1.65 KB
/
tailwind.config.mjs
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
/** @type {import('tailwindcss').Config} */
export default {
content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'],
darkMode: 'class',
theme: {
extend: {
colors: {
primary: '#007AFF',
secondary: '#5856D6',
background: {
light: '#ffffff',
dark: '#000000'
},
text: {
light: '#1c1c1e',
dark: '#ffffff'
}
},
animation: {
'fade-in': 'fadeIn 0.5s ease-in-out',
'slide-up': 'slideUp 0.5s ease-out'
},
keyframes: {
fadeIn: {
'0%': { opacity: '0' },
'100%': { opacity: '1' }
},
slideUp: {
'0%': { transform: 'translateY(20px)', opacity: '0' },
'100%': { transform: 'translateY(0)', opacity: '1' }
}
},
typography: (theme) => ({
DEFAULT: {
css: {
color: theme('colors.gray.700'),
maxWidth: '100%',
a: {
color: theme('colors.primary'),
'&:hover': {
color: theme('colors.primary/80'),
},
},
'code::before': {
content: '""',
},
'code::after': {
content: '""',
},
},
},
invert: {
css: {
color: theme('colors.gray.300'),
a: {
color: theme('colors.primary-light'),
'&:hover': {
color: theme('colors.primary-light/80'),
},
},
},
},
}),
},
},
plugins: [
require('@tailwindcss/typography'),
],
};