BearStudio / start-ui-web

πŸš€ Start UI [web] is an opinionated UI starter with 🟦 TypeScript, βš›οΈ React, ⚫️ NextJS, ⚑️ Chakra UI, 🟦 tRPC, πŸ” Lucia Auth, β–² Prisma, πŸ–οΈ TanStack Query, πŸ“• Storybook, 🎭 Playwright,πŸ“‹ React Hook Form,β—½From the 🐻 BearStudio Team
https://demo.start-ui.com
MIT License
1.37k stars 128 forks source link

Deprecated functions from Chakra #302

Open yoannfleurydev opened 1 year ago

yoannfleurydev commented 1 year ago

isAccessible and transparentize functions are deprecated, we need to check for their alternatives in the Chakra UI code.

https://github.com/BearStudio/start-ui-web/blob/93c928b564b0416173a9c5b31477d842ad2e0a53/src/theme/components/button.ts#L4-L6

Jessy-BAER commented 1 year ago

getColor too

https://github.com/BearStudio/start-ui-web/blob/93c928b564b0416173a9c5b31477d842ad2e0a53/src/theme/components/input.ts#L3

For now chakra doesn't provide an alternative

https://github.com/chakra-ui/chakra-ui/discussions/5058#discussioncomment-3779826

yoannfleurydev commented 1 year ago
  1. A temporary solution is to code the function ourselves (or by copy/pasting the Chakra UI one).

  2. We are waiting for Chakra to release the v3 with Ark and Panda CSS and we'll see the utils that comes with it.

ntatoud commented 1 year ago

This thread is a bit old but apparently they don't intend to replace these functions : https://github.com/chakra-ui/chakra-ui/discussions/6139#discussioncomment-2959343