From b03e2cae3b3ccc1600f97f9d4cfd975b2aa9e781 Mon Sep 17 00:00:00 2001 From: Artem Rizhenkov Date: Tue, 29 Oct 2024 20:37:05 +0100 Subject: [PATCH] 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 --- apps/www/src/content/docs/components/accordion.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/www/src/content/docs/components/accordion.md b/apps/www/src/content/docs/components/accordion.md index 0076cdaa..c34309e5 100644 --- a/apps/www/src/content/docs/components/accordion.md +++ b/apps/www/src/content/docs/components/accordion.md @@ -28,12 +28,12 @@ module.exports = { extend: { keyframes: { 'accordion-down': { - from: { height: 0 }, - to: { height: 'var(--radix-accordion-content-height)' }, + '0%': { height: '0' }, + '100%': { height: 'var(--radix-accordion-content-height)' }, }, 'accordion-up': { - from: { height: 'var(--radix-accordion-content-height)' }, - to: { height: 0 }, + '0%': { height: 'var(--radix-accordion-content-height)' }, + '100%': { height: '0' }, }, }, animation: {