This commit is contained in:
HugeFrog24
2025-01-15 00:11:35 +01:00
parent ee25430eee
commit 128a06be30
18 changed files with 1312 additions and 16 deletions

View File

@@ -1,18 +1,42 @@
import type { Config } from "tailwindcss";
import type { Config } from 'tailwindcss'
export default {
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}",
'./pages/**/*.{js,ts,jsx,tsx,mdx}',
'./components/**/*.{js,ts,jsx,tsx,mdx}',
'./app/**/*.{js,ts,jsx,tsx,mdx}',
],
darkMode: 'class',
theme: {
extend: {
colors: {
background: "var(--background)",
foreground: "var(--foreground)",
keyframes: {
shake: {
'0%, 100%': { transform: 'rotate(0deg)' },
'25%': { transform: 'rotate(-5deg)' },
'75%': { transform: 'rotate(5deg)' }
},
float: {
'0%': {
transform: 'translate(calc(-50% + var(--start-x)), calc(-50% + var(--start-y))) scale(var(--scale))',
opacity: '1'
},
'100%': {
transform: 'translate(calc(-50% + var(--start-x) + (cos(var(--angle)) * 500px)), calc(-50% + var(--start-y) + (sin(var(--angle)) * 500px))) scale(var(--scale))',
opacity: '0'
}
},
fadeOut: {
'0%': { opacity: '1' },
'100%': { opacity: '0' }
}
},
animation: {
'shake': 'shake 0.2s ease-in-out infinite',
'float-heart': 'float 2s cubic-bezier(0.2, 0, 0.8, 1) forwards',
'fade-out': 'fadeOut 2s ease-out forwards'
}
},
},
plugins: [],
} satisfies Config;
}
export default config