Use color to draw attention to important parts of your interface.
Color shouldn't be the only way a piece of information is conveyed, use text or symbols along with it.
It's best to use colors provided by Jenkins as they will automatically adapt to the user's theme.
Primarily use semantic colors in your interface, you can create your own semantic colors using the palette below.
Semantics
Accent
Use for branding
var(--accent-color).jenkins-!-accent-colorText
Use for text
var(--text-color).jenkins-!-text-colorSecondary text
Use for secondary text
var(--text-color-secondary).jenkins-!-text-color-secondarySuccess
Use for success states
var(--success-color).jenkins-!-success-colorWarning
Use for warning states
var(--warning-color).jenkins-!-warning-colorError
Use for error states
var(--error-color).jenkins-!-error-colorBuild
Use for build kickoff
var(--build-color).jenkins-!-build-colorDestructive
Use for destructive actions
var(--destructive-color).jenkins-!-destructive-color
Palette
Light Red
var(--light-red).jenkins-!-color-light-redRed
var(--red).jenkins-!-color-redDark Red
var(--dark-red).jenkins-!-color-dark-redLight Green
var(--light-green).jenkins-!-color-light-greenGreen
var(--green).jenkins-!-color-greenDark Green
var(--dark-green).jenkins-!-color-dark-greenLight Orange
var(--light-orange).jenkins-!-color-light-orangeOrange
var(--orange).jenkins-!-color-orangeDark Orange
var(--dark-orange).jenkins-!-color-dark-orangeLight Yellow
var(--light-yellow).jenkins-!-color-light-yellowYellow
var(--yellow).jenkins-!-color-yellowDark Yellow
var(--dark-yellow).jenkins-!-color-dark-yellowLight Blue
var(--light-blue).jenkins-!-color-light-blueBlue
var(--blue).jenkins-!-color-blueDark Blue
var(--dark-blue).jenkins-!-color-dark-blueLight Indigo
var(--light-indigo).jenkins-!-color-light-indigoIndigo
var(--indigo).jenkins-!-color-indigoDark Indigo
var(--dark-indigo).jenkins-!-color-dark-indigoLight Purple
var(--light-purple).jenkins-!-color-light-purplePurple
var(--purple).jenkins-!-color-purpleDark Purple
var(--dark-purple).jenkins-!-color-dark-purpleLight Pink
var(--light-pink).jenkins-!-color-light-pinkPink
var(--pink).jenkins-!-color-pinkDark Pink
var(--dark-pink).jenkins-!-color-dark-pinkLight Brown
var(--light-brown).jenkins-!-color-light-brownBrown
var(--brown).jenkins-!-color-brownDark Brown
var(--dark-brown).jenkins-!-color-dark-brown