Colors
- #037C4D
rgba(3,124,77,1.0)
$green
$primary - #EFA900
rgba(239,169,0,1.0)
$yellow
$secondary
$warning - #2ED477
rgba(46,212,119,1.0)
$lime
$success - #D85951
rgba(216,89,81,1.0)
$red
$danger - #4B99FF
rgba(75,153,255,1.0)
$blue
$info - #F9F9F9
rgba(249,249,249,1.0)
$light
$nw-white - #878AA3
rgba(135,138,163,1.0)
$gray - #353745
rgba(53,55,69,1.0)
$dark
$nw-black
Dealing with specificity
Sometimes contextual classes cannot be applied due to the specificity of another selector. In some cases, a sufficient workaround is to wrap your element’s content in a <div> with the class.
Conveying meaning to assistive technologies
Using color to add meaning only provides a visual indication, which will not be conveyed to users of assistive technologies – such as screen readers. Ensure that information denoted by the color is either obvious from the content itself (e.g. the visible text), or is included through alternative means, such as additional text hidden with the .visually-hidden class.
Color shading
Shade base colors using the following variables. Corresponding variables are noted where applicable.
$nw-white
$light
$green
$primary
$yellow
$secondary
$warning
$lime
$success
$red
$danger
$gray
Background color
Background gradient
Do you need a gradient in your custom CSS? Just add background-image: var(--bs-gradient);.
NWB Gradient Primary
(We’ll make a better name once we see how many of these we make)
Background Overlap
Colorize Text
Note: If you want to colorize links, use the [.link-* helper classes]
.text-primary
.text-secondary
.text-success
.text-danger
.text-warning
.text-info
.text-light
.text-dark
.text-darker
.text-black
.text-body
.text-muted
.text-white
.text-black-50
.text-white-50
Colored links