Use color names as style choice field values rather than BS5 theme classes #5790

Closed
opened 2025-12-29 19:32:43 +01:00 by adam · 0 comments
Owner

Originally created by @jeremystretch on GitHub (Dec 16, 2021).

Originally assigned to: @jeremystretch on GitHub.

Proposed Changes

Currently, NetBox maps many of its static choice values to a style via Bootstrap 5's theme classes (primary, success, info, etc.). This is a bit hacky and limits us from using colors beyond those utilized by BS5. We should instead use some pre-defined set of base color names (e.g. red, green, blue, etc.).

Justification

Most of these fields have no functional mapping relevant to the BS5 class names, and decoupling them allows us to use a greater range of colors.

Originally created by @jeremystretch on GitHub (Dec 16, 2021). Originally assigned to: @jeremystretch on GitHub. ### Proposed Changes Currently, NetBox maps many of its static choice values to a style via Bootstrap 5's theme classes (`primary`, `success`, `info`, etc.). This is a bit hacky and limits us from using colors beyond those utilized by BS5. We should instead use some pre-defined set of base color names (e.g. `red`, `green`, `blue`, etc.). ### Justification Most of these fields have no functional mapping relevant to the BS5 class names, and decoupling them allows us to use a greater range of colors.
adam added the status: acceptedtype: housekeeping labels 2025-12-29 19:32:43 +01:00
adam closed this issue 2025-12-29 19:32:43 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#5790