-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.ts
42 lines (40 loc) · 1.08 KB
/
tailwind.config.ts
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
import type { Config } from "tailwindcss";
const config: Config = {
content: [
"./src/pages/**/*.{js,ts,jsx,tsx,mdx}",
"./src/components/**/*.{js,ts,jsx,tsx,mdx}",
"./src/app/**/*.{js,ts,jsx,tsx,mdx}",
],
theme: {
extend: {
transitionProperty: {
gradient: "--tw-gradient-from-color, --tw-gradient-to-color",
},
animation: {
fancy: "rainbow 10s linear infinite",
},
keyframes: ({ theme }) => ({
rainbow: {
"0%, 100%": {
"--tw-gradient-from-color": theme("colors.red.500"),
"--tw-gradient-to-color": theme("colors.yellow.500"),
},
"25%": {
"--tw-gradient-from-color": theme("colors.green.500"),
},
"50%": {
"--tw-gradient-to-color": theme("colors.blue.500"),
},
"75%": {
"--tw-gradient-from-color": theme("colors.purple.500"),
},
},
}),
},
},
corePlugins: {
gradientColorStops: false,
},
plugins: [require("./tailwind/gradient")],
};
export default config;