Skip to content

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

@jeremystretch

Description

@jeremystretch

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.

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtype: housekeepingChanges to the application which do not directly impact the end user

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions