themesberg / flowbite-react

Official React components built for Flowbite and Tailwind CSS
https://flowbite-react.com
MIT License
1.77k stars 395 forks source link

Spinner doesn't apply color theming #1420

Open vitalijalbu opened 2 weeks ago

vitalijalbu commented 2 weeks ago

Steps to reproduce

  1. create a spinner
  2. assing color="blue" or info
  3. change color in theme.js
  4. nothing happens

Current behavior

Basically I want to have a blue spinner, so I need to create another color right? Well it doesn't chage color, you see spiner blank.

Screenshot 2024-06-13 alle 07 01 42

Expected behavior

Blue spinner

Context

my code:

export const customTheme = createTheme({
  spinner: {
      base: "inline animate-spin text-gray-200",
      color: {
        info: twMerge("fill-blue-600"),
        blue: twMerge("fill-blue-400"),
      },
  },
}