twind
twind copied to clipboard
@next version: the suggested upgrade code when migrating from @twind/tailwind for setup is incorrect
The latest version .35 deprecated @twind/tailwind but the mentioned upgrade path for setup
does not pass type checking (presets invalid on TwindConfig
) and also does not appear to actually add the presets.
Combining setup
with defineConfig
seems to work however:
import { setup, defineConfig } from 'twind'
import presetAutoprefix from '@twind/preset-autoprefix'
import presetTailwind from '@twind/preset-tailwind'
// setup + defineConfig work together
export default setup(defineConfig({
presets: [presetAutoprefix(), presetTailwind()],
/* config */
}))
Thank you! I will check the typing there.
This is not forgotten. I just do not have to time ATM
No worries 😅 Take your time
Hey folks. This issue hasn't received any traction for 90 days, so we're going to close this for housekeeping. If this is still an ongoing issue, please do consider contributing a Pull Request to resolve it. Further discussion is always welcome even with the issue closed. If anything actionable is posted in the comments, we'll consider reopening it. ⓘ
Hey folks. This issue hasn't received any traction for 90 days, so we're going to close this for housekeeping. If this is still an ongoing issue, please do consider contributing a Pull Request to resolve it. Further discussion is always welcome even with the issue closed. If anything actionable is posted in the comments, we'll consider reopening it. ⓘ