Fork of Radix ui-kit was forked from Fork of Radix ui-kit
Continue chatting to ask questions about or make changes to it.
I'll update the UI kit to avoid using refs and implement the color variables you provided. Let's make these changes:
I've made the following changes to the UI kit:
globals.css
with the theme colors you providedvar()
syntaxModernRating
component that doesn't rely on refs directly, using a controlled/uncontrolled pattern that's more compatible with React 19useControlledState
hook to manage state in a more modern wayReviewCard
component to use the new ModernRating
componentModernRating
componentThe CSS variables are now properly defined and can be used throughout the application. For Tailwind classes, I've used the syntax text-[var(--color-orange)]
to reference the CSS variables.
These changes make the UI kit more compatible with React 19 while maintaining all the functionality and using your specified color variables.