-
Notifications
You must be signed in to change notification settings - Fork 26
/
tailwind.config.js
75 lines (72 loc) · 1.69 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
import { createPreset, presets } from 'fumadocs-ui/tailwind-plugin';
import animate from 'tailwindcss-animate';
/** @type {import('tailwindcss').Config} */
export default {
content: [
'./components/**/*.{ts,tsx}',
'./app/**/*.{ts,tsx}',
'./content/**/*.mdx',
'./mdx-components.tsx',
'./node_modules/fumadocs-ui/dist/**/*.js',
],
presets: [
createPreset({
preset: {
...presets.default,
dark: {
...presets.default.dark,
background: '0 0% 2%',
foreground: '0 0% 98%',
popover: '0 0% 4%',
card: '0 0% 4%',
muted: '0 0% 8%',
border: '0 0% 14%',
accent: '0 0% 15%',
'accent-foreground': '0 0% 100%',
'muted-foreground': '0 0% 60%',
},
},
}),
],
theme: {
extend: {
fontFamily: {
sans: ['var(--font-geist-sans)'],
mono: ['var(--font-geist-mono)'],
},
keyframes: {
updown: {
'from, to': {
transform: 'translateY(-20px)',
},
'50%': {
transform: 'translateY(20px)',
},
},
light: {
'from, to': {
opacity: 0.7,
},
'50%': {
opacity: 1,
},
},
stroke: {
from: {
'stroke-dasharray': 1000,
},
to: {
'stroke-dasharray': 1000,
'stroke-dashoffset': 2000,
},
},
},
animation: {
stroke: 'stroke 5s linear infinite',
light: 'light 2s ease-in-out infinite',
updown: 'updown 3s ease-in-out infinite',
},
},
},
plugins: [animate],
};