nextui-org / nextui

🚀 Beautiful, fast and modern React UI library.
https://nextui.org
MIT License
21.7k stars 1.46k forks source link

[Feature Request] BreadCrumbs allow custom colors in color property #2007

Closed CharriereThibaud closed 10 months ago

CharriereThibaud commented 10 months ago

Is your feature request related to a problem? Please describe.

Currently, we are only limited to default colors ("foreground", "primary", "secondary", "success", "warning", "danger").

Describe the solution you'd like

As an user, it should be great to be able to use custom colors like tailwind colors or hexadecimal color code.

<Breadcrumbs color="red">
            <BreadcrumbItem href="/">Home</BreadcrumbItem>
</Breadcrumbs>
<Breadcrumbs color="#128a67f">
            <BreadcrumbItem href="/">Home</BreadcrumbItem>
</Breadcrumbs>
<Breadcrumbs className="red-600">
            <BreadcrumbItem href="/">Home</BreadcrumbItem>
</Breadcrumbs>

Describe alternatives you've considered

Screenshots or Videos

No response

CaseyBlackburn commented 10 months ago

You can already customize them as you wish. Make use of the slots for applying your preferred styles: Slots

See the example of a customized Breadcrumb: Customizing the Breadcrumbs Styles

CharriereThibaud commented 10 months ago

Indeed, we can override the styles, I hadn't noticed this while searching in the documentation. However, it requires overriding multiple times, especially when dealing with ellipsis or objects. I believe it could be worthwhile for all components that have a color property to be able to assign a custom color, in hexadecimal or RGB for example. I close this issue and will open a new proper issue for all components that implement color property.