more colors for rack/device roles #518

Closed
opened 2025-12-29 16:22:48 +01:00 by adam · 5 comments
Owner

Originally created by @Armadill0 on GitHub (Nov 8, 2016).

With release 1.5.1 you introduced colors for rack and device roles, which is a great thing to quickly identify different types of devices. Unfortunately we are running out of colors for our device roles.
So it would be a great if you could increase the amount of available colors to at least 20 or more.

Or maybe a better idea: Simply use something like a color picker where the user can quickly choose from the full rgb colors.

Originally created by @Armadill0 on GitHub (Nov 8, 2016). With release 1.5.1 you introduced colors for rack and device roles, which is a great thing to quickly identify different types of devices. Unfortunately we are running out of colors for our device roles. So it would be a great if you could increase the amount of available colors to at least 20 or more. **Or maybe a better idea:** Simply use something like a color picker where the user can quickly choose from the full rgb colors.
adam added the type: feature label 2025-12-29 16:22:48 +01:00
adam closed this issue 2025-12-29 16:22:48 +01:00
Author
Owner

@aoyawale commented on GitHub (Nov 8, 2016):

ran out of colors too.

@aoyawale commented on GitHub (Nov 8, 2016): ran out of colors too.
Author
Owner

@xenuser commented on GitHub (Nov 9, 2016):

I agree. It would be great if you could literally add an infinite amount of colors (read: a reasonable amount of colors like 256) to NetBox.

@xenuser commented on GitHub (Nov 9, 2016): I agree. It would be great if you could literally add an infinite amount of colors (read: a reasonable amount of colors like 256) to NetBox.
Author
Owner

@Gelob commented on GitHub (Nov 9, 2016):

Should at least have the hex code and/or RGB input. There are some Django plugins as well

https://github.com/jaredly/django-colorfield
https://github.com/gsiegman/django-paintstore
https://github.com/charettes/django-colorful

@Gelob commented on GitHub (Nov 9, 2016): Should at least have the hex code and/or RGB input. There are some Django plugins as well https://github.com/jaredly/django-colorfield https://github.com/gsiegman/django-paintstore https://github.com/charettes/django-colorful
Author
Owner

@jeremystretch commented on GitHub (Nov 10, 2016):

I wanted to avoid forcing people to pick their own colors, since it's difficult to find colors that are easily discernible from one another. However, I agree that the limited set we have now is insufficient. I think it would make sense to offer a list of maybe a few dozen colors, similar to the color picker in word processors. Specifically, I want to avoid colors that are easily mistaken for one another, as that would defeat the purpose of color-coding in the first place.

@jeremystretch commented on GitHub (Nov 10, 2016): I wanted to avoid forcing people to pick their own colors, since it's difficult to find colors that are easily discernible from one another. However, I agree that the limited set we have now is insufficient. I think it would make sense to offer a list of maybe a few dozen colors, similar to the color picker in word processors. Specifically, I want to avoid colors that are easily mistaken for one another, as that would defeat the purpose of color-coding in the first place.
Author
Owner

@jeremystretch commented on GitHub (Dec 6, 2016):

eb4cd0e replaces the static list of ten color names with a field which holds an arbitrary hexadecimal RGB value. However, the form widget restricts the user to selecting one of 24 predefined colors to avoid picking colors that are easily confused with one another.

For now, I've stuck with a simple <select> for the field's form widget. In the future this may be replaced by a JavaScript-enabled color picker.

@jeremystretch commented on GitHub (Dec 6, 2016): eb4cd0e replaces the static list of ten color names with a field which holds an arbitrary hexadecimal RGB value. However, the form widget restricts the user to selecting one of 24 predefined colors to avoid picking colors that are easily confused with one another. For now, I've stuck with a simple `<select>` for the field's form widget. In the future this may be replaced by a JavaScript-enabled color picker.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#518