mirror of
https://github.com/HugeFrog24/shakethefrog.git
synced 2026-03-02 00:14:33 +00:00
initil
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user