Replies: 1 comment 3 replies
-
Hey, I think this is a major flaw here, that all the components use the I believe that flowbite must fix this, as it's not scallable to pass the Here is my config: /** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./node_modules/flowbite-react/**/*.js",
"./src/**/*.{js,ts,jsx,tsx}",
],
theme: {
extend: {
colors: {
// cyan is used in all components as the default "primary" color
// here we are actually overriding it to some purple color
// so practically, the cyan means primary
cyan: {
50: "#f7f6ff",
100: "#eeecfe",
200: "#d5d1fd",
300: "#bbb5fb",
400: "#897df8",
500: "#5645f5",
600: "#4d3edd",
700: "#4134b8",
800: "#342993",
900: "#2a2278",
},
},
},
},
plugins: [
require("flowbite/plugin")
],
}; |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
So I have been using the flowbite-svelte library for my product. Have had a great experience with it.
I am building a chrome extension for my product now. Have decided to go with React. So to maintain UI consistency I want to use flowbite-react.
However, I am finding it difficult to override the
primary
color in the theme.Is there a way to do this without creating a custom theme?
This is how it's done in flowbite-svelte => https://flowbite-svelte.com/docs/pages/colors
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions