Some shades of colors don't work for some reasons, I'm working on a prototype of a custom buttom component for versatility. I was testing the buttom and it works with the color primary, but for some reason the default colors red, blue, green don't work for some shades, like 600.
For some reason when changing the theme to dark of ligth some colors are not available, even if its the same color in ligth and dark mode.
Reproduction
Repo:
I runned the following command and selected sveltekit demo:
It's the fist time I work with tailwind in svelte, I think that it migth be a problem in my tailwind configuration or a bug in my code, but no errors appear when building the project.
Describe the bug
Some shades of colors don't work for some reasons, I'm working on a prototype of a custom buttom component for versatility. I was testing the buttom and it works with the color primary, but for some reason the default colors
red
,blue
,green
don't work for some shades, like600
.For some reason when changing the theme to dark of ligth some colors are not available, even if its the same color in ligth and dark mode.
Reproduction
Repo:
I runned the following command and selected sveltekit demo:
And deleted all the files of the demo.
I went to flowbite and followed the steps for installing the dark mode and setting the primary color palette in https://flowbite-svelte.com/docs/pages/quickstart
For context, where I import tailwind is in a file called
styles.css
, situated in my$lib
folder, this is its contents:Create the component Buttom.svelte in lib folder:
Create a page with this:
This is my
tailwind.config.js
:It doesn't show it in the system info, but I have FireFox: 124.0.1, but this error it can be seen it chrome and firefox.
Result in my machine:
https://github.com/themesberg/flowbite-svelte/assets/96821054/3f246eb2-2331-417b-9be8-ff2bca6806a9
It's the fist time I work with tailwind in svelte, I think that it migth be a problem in my tailwind configuration or a bug in my code, but no errors appear when building the project.
Flowbite version and System Info