generated from hdcola/react-tailwind
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.mjs
61 lines (60 loc) · 1.35 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
import defaultTheme from 'tailwindcss/defaultTheme';
/** @type {import('tailwindcss').Config} */
export default {
darkMode: ['class'],
content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'],
theme: {
extend: {
fontFamily: {
sans: ['Atkinson', ...defaultTheme.fontFamily.sans],
},
typography: {
DEFAULT: {
css: {
maxWidth: 'full',
},
},
},
rotate: {
45: '45deg',
135: '135deg',
225: '225deg',
315: '315deg',
},
animation: {
twinkle: 'twinkle 2s ease-in-out forwards',
meteor: 'meteor 3s ease-in-out forwards',
},
keyframes: {
twinkle: {
'0%': {
opacity: 0,
transform: 'rotate(0deg)',
},
'50%': {
opacity: 1,
transform: 'rotate(180deg)',
},
'100%': {
opacity: 0,
transform: 'rotate(360deg)',
},
},
meteor: {
'0%': {
opacity: 0,
transform: 'translateY(200%)',
},
'50%': {
opacity: 1,
},
'100%': {
opacity: 0,
transform: 'translateY(0)',
},
},
},
},
},
plugins: [require('@tailwindcss/typography')],
};