2024-04-15 03:16:57 +02:00
|
|
|
import forms from "@tailwindcss/forms";
|
2024-04-22 09:38:51 +02:00
|
|
|
import typography from "@tailwindcss/typography";
|
2024-04-15 03:16:57 +02:00
|
|
|
import type { Config } from "tailwindcss";
|
2024-06-16 03:42:48 +02:00
|
|
|
|
2024-06-16 04:39:58 +02:00
|
|
|
const themeVariables = (color: string) => ({
|
|
|
|
|
50: `var(--theme-${color}-50)`,
|
|
|
|
|
100: `var(--theme-${color}-100)`,
|
|
|
|
|
200: `var(--theme-${color}-200)`,
|
|
|
|
|
300: `var(--theme-${color}-300)`,
|
|
|
|
|
400: `var(--theme-${color}-400)`,
|
|
|
|
|
500: `var(--theme-${color}-500)`,
|
|
|
|
|
600: `var(--theme-${color}-600)`,
|
|
|
|
|
700: `var(--theme-${color}-700)`,
|
|
|
|
|
800: `var(--theme-${color}-800)`,
|
|
|
|
|
900: `var(--theme-${color}-900)`,
|
|
|
|
|
950: `var(--theme-${color}-950)`,
|
|
|
|
|
});
|
2024-04-15 03:16:57 +02:00
|
|
|
|
2024-06-21 03:15:14 +02:00
|
|
|
export default (<Config>{
|
2024-04-22 09:38:51 +02:00
|
|
|
theme: {
|
|
|
|
|
extend: {
|
|
|
|
|
colors: {
|
2024-06-16 04:39:58 +02:00
|
|
|
dark: themeVariables("dark"),
|
|
|
|
|
primary: themeVariables("primary"),
|
2024-04-22 09:38:51 +02:00
|
|
|
},
|
2024-04-28 08:35:26 +02:00
|
|
|
animation: {
|
|
|
|
|
like: "like 1s ease-in-out",
|
|
|
|
|
},
|
|
|
|
|
keyframes: {
|
|
|
|
|
like: {
|
|
|
|
|
"0%": {
|
|
|
|
|
transform: "scale(1)",
|
|
|
|
|
},
|
|
|
|
|
"50%": {
|
|
|
|
|
transform: "scale(1.3) rotate(45deg)",
|
|
|
|
|
},
|
|
|
|
|
"100%": {
|
|
|
|
|
transform: "scale(1) rotate(360deg)",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
2024-04-22 09:38:51 +02:00
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
plugins: [forms, typography],
|
2024-04-15 03:16:57 +02:00
|
|
|
content: [],
|
|
|
|
|
});
|