Utility classes for changing an element's background color property.

Background color classes are assigned using USS color variables from the master color palette. To see all colors with a visual representation with HEX values, check out All Doddle USS Colors.

Classes for background color are named using the format: [bg]-[color]-[luminance].

Where color includes:

  • transparent - for background-color: var(--transparent)
  • white - for background-color: var(--white)
  • black - for background-color: var(--black)
  • gray - for background-color: var(--gray-##)
  • red - for background-color: var(--red-##)
  • orange - for background-color: var(--orange-##)
  • amber - for background-color: var(--amber-##)
  • yellow - for background-color: var(--yellow-##)
  • lime - for background-color: var(--lime-##)
  • green - for background-color: var(--green-##)
  • spring - for background-color: var(--spring-##)
  • cyan - for background-color: var(--cyan-##)
  • teal - for background-color: var(--teal-##)
  • steel - for background-color: var(--steel-##)
  • azure - for background-color: var(--azure-##)
  • blue - for background-color: var(--blue-##)
  • indigo - for background-color: var(--indigo-##)
  • purple - for background-color: var(--purple-##)
  • magenta - for background-color: var(--magenta-##)
  • pink - for background-color: var(--pink-##)
  • rose - for background-color: var(--rose-##)

Where luminance includes:

  • # - luminance value for the color. By default, background color classes start at 5% luminance, and increment by 5% for the first/last step, and 10% for following steps until stopping at 95%.
ClassContents

All color variables pull from Doddle's default color palette defined in doddle-palette.tss. All color variables can be customized to fit your needs. Learn more about Customizing the Color Palette.

b-spring-40
b-azure-60
b-purple-60
b-rose-60

UXML