ui
ui copied to clipboard
tailwind.config.ts has Type error for extending keyframes . Expecting string but provided number.
keyframes: {
"accordion-down": {
from: { height: 0 }, //Type 'number' is not assignable to type 'string'.
to: { height: "var(--radix-accordion-content-height)" },
},
"accordion-up": {
from: { height: "var(--radix-accordion-content-height)" },
to: { height: 0 }, // Type 'number' is not assignable to type 'string'.
},
},
```
The default tailwind.config file is written in JavaScript so that problem never showed up. However you're right keyframes require string values in the tailwind.config.ts. I'll submit a PR to solve this.