Skip to main content

Brightness

Describes the contrast of a theme or color palette.

Inherits: enum.Enum

Properties

  • DARK - The color is dark and will require a light text color to achieve readable contrast.
  • LIGHT - The color is light and will require a dark text color to achieve readable contrast.

Properties

DARKclass-attributeinstance-attribute

The color is dark and will require a light text color to achieve readable contrast.

For example, the color might be dark grey, requiring white text.

LIGHTclass-attributeinstance-attribute

The color is light and will require a dark text color to achieve readable contrast.

For example, the color might be bright white, requiring black text.