-
-
Notifications
You must be signed in to change notification settings - Fork 423
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Difficulty Overriding Default Styles in Flowbite React for Navbar Component #1455
Comments
The best way to style any In the docs each element has a theme section which u can follow and see what tailwind classes have been applied in order to style it. |
@SutuSebastian I tried to use custom CSS classes that include |
An improved design system config is coming up, there's a lot of work involved and u'll be able to simply set a |
Will that be backwards compatible? |
I'll try to keep as much as I can from the old API. |
@SutuSebastian btw is the library stable enough to use in production-grade applications, or do we have to wait for the official release? |
Best option would be to wait for v1. |
Steps to reproduce
navBar.scss
!important
and recheckCurrent behavior
In the
flowbite-react
library, the default styles for the Navbar component are proving difficult to override. Specifically, the styles for theNavbar.Link
elements cannot be customized as expected.Active Link Styling: When attempting to apply custom styles to the active link using the BEM convention and SCSS, the styles do not take effect unless !important is used, the applied styles do not reflect as expected.
Usage of @apply: Tailwind CSS's @apply directive is used in the SCSS to apply utility classes for hover and active states, but these are not being applied correctly due to the specificity or !important styles in Flowbite’s CSS.
Inline Styles as a Last Resort: This doesn't work either
Expected behavior
The text was updated successfully, but these errors were encountered: