Update keyframes config to be compatible with latest tailwind config format

Old format (from - to) makes errors in TS. 
Ref: https://tailwindcss.com/docs/animation#customizing-your-theme
This commit is contained in:
Artem Rizhenkov 2024-10-29 20:37:05 +01:00 committed by GitHub
parent 83419c4dc3
commit b03e2cae3b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -28,12 +28,12 @@ module.exports = {
extend: { extend: {
keyframes: { keyframes: {
'accordion-down': { 'accordion-down': {
from: { height: 0 }, '0%': { height: '0' },
to: { height: 'var(--radix-accordion-content-height)' }, '100%': { height: 'var(--radix-accordion-content-height)' },
}, },
'accordion-up': { 'accordion-up': {
from: { height: 'var(--radix-accordion-content-height)' }, '0%': { height: 'var(--radix-accordion-content-height)' },
to: { height: 0 }, '100%': { height: '0' },
}, },
}, },
animation: { animation: {