Open yoannfleurydev opened 1 year ago
getColor
too
For now chakra doesn't provide an alternative
https://github.com/chakra-ui/chakra-ui/discussions/5058#discussioncomment-3779826
A temporary solution is to code the function ourselves (or by copy/pasting the Chakra UI one).
We are waiting for Chakra to release the v3 with Ark and Panda CSS and we'll see the utils that comes with it.
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
isAccessible
andtransparentize
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