FlairKit

Colors

Colors in Flair are organized by variants. Each variant has different colors for different intensity levels (400—800).

In light color scheme, the higher the intensity, the lighter the color is. To put it simply, a lighter color have the same hue and saturation level, but higher lightness.

In dark color scheme, the higher the intensity, the darker the color is. Try toggling the color scheme using the button below and observe the differences.

Because of how the "intensity" concept works in Flair, in dark color scheme, the order of color for each shades are basically just reversed! Obviously this will not work well in ALL cases, so you will have to adjust according to your needs.

Variants

By default, Flair has 7 color variants: primary, secondary, success, warning, error, dark and light. All of the colors are accessible from the ThemeContext. Accessing a color is as simple as colors[variant][intensity].color. To get the contrasting color, colors[variant][intensity].contrastingColor.

dark

dark.400

dark.500

dark.600

dark.700

dark.800

light

light.400

light.500

light.600

light.700

light.800

primary

primary.400

primary.500

primary.600

primary.700

primary.800

secondary

secondary.400

secondary.500

secondary.600

secondary.700

secondary.800

success

success.400

success.500

success.600

success.700

success.800

warning

warning.400

warning.500

warning.600

warning.700

warning.800

error

error.400

error.500

error.600

error.700

error.800

Foreground and background colors

In light color scheme, background colors will refer to the light-variant colors and foreground colors will refer to the dark-variant colors. Similarly, in dark color scheme, background colors are dark-variant and foreground colors are light-variant.

foreground

foreground.400

foreground.500

foreground.600

foreground.700

foreground.800

background

background.400

background.500

background.600

background.700

background.800