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-07-22 01:05:51 +02:00
|
|
|
const themeVariables = (color: string) =>
|
|
|
|
|
Object.fromEntries(
|
|
|
|
|
[50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950].flatMap((n) => [
|
|
|
|
|
[n, `hsl(var(--theme-${color}-${n}) / <alpha-value>)`],
|
|
|
|
|
]),
|
|
|
|
|
);
|
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-07-22 01:05:51 +02:00
|
|
|
background: themeVariables("background"),
|
2024-06-16 04:39:58 +02:00
|
|
|
primary: themeVariables("primary"),
|
2024-07-22 01:05:51 +02:00
|
|
|
text: themeVariables("text"),
|
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-06-27 15:03:03 +02:00
|
|
|
content: ["packages/**/*.{vue,js,ts}"],
|
2024-04-15 03:16:57 +02:00
|
|
|
});
|