class Colors


A set of named color parameters for a GlimmerTheme.

Summary

Public constructors

Colors(
    primary: Color,
    secondary: Color,
    positive: Color,
    negative: Color,
    surface: Color,
    outline: Color,
    outlineVariant: Color
)

Public functions

Colors
copy(
    primary: Color,
    secondary: Color,
    positive: Color,
    negative: Color,
    surface: Color,
    outline: Color,
    outlineVariant: Color
)

Returns a copy of this Colors, optionally overriding some of the values.

open operator Boolean
equals(other: Any?)
open Int
open String

Public properties

Color

The negative color is used to indicate negative actions.

Color

Subtle color used for borders.

Color

Utility color used for borders for decorative elements when strong contrast is not required.

Color

The positive color is used to indicate positive or affirmative actions.

Color

The primary color is an accent color used for brand expression.

Color

The secondary color is an accent color used for brand expression.

Color

The surface color that affect surfaces of components, such as buttons, cards, and list items.

Public constructors

Colors

Added in 1.0.0-alpha01
Colors(
    primary: Color = Color(0xFF7CACF8),
    secondary: Color = Color(0xFF4C88E9),
    positive: Color = Color(0xFF4CE995),
    negative: Color = Color(0xFFF57084),
    surface: Color = Color.Black,
    outline: Color = Color(0xFF606460),
    outlineVariant: Color = Color(0xFF42434A)
)

Public functions

copy

Added in 1.0.0-alpha01
fun copy(
    primary: Color = this.primary,
    secondary: Color = this.secondary,
    positive: Color = this.positive,
    negative: Color = this.negative,
    surface: Color = this.surface,
    outline: Color = this.outline,
    outlineVariant: Color = this.outlineVariant
): Colors

Returns a copy of this Colors, optionally overriding some of the values.

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

negative

val negativeColor

The negative color is used to indicate negative actions. For example, the border of a cancel button. It should not be used to fill surfaces.

outline

val outlineColor

Subtle color used for borders. This color helps to add contrast around components for accessibility purposes.

outlineVariant

val outlineVariantColor

Utility color used for borders for decorative elements when strong contrast is not required.

positive

val positiveColor

The positive color is used to indicate positive or affirmative actions. For example, the border of a confirmation button. It should not be used to fill surfaces.

primary

val primaryColor

The primary color is an accent color used for brand expression. It should typically be used with text and icons for emphasis, or with borders to accentuate a particular component - it should not be used to fill surfaces.

secondary

val secondaryColor

The secondary color is an accent color used for brand expression. It should typically be used with text and icons for emphasis, or with borders to accentuate a particular component - it should not be used to fill surfaces.

surface

val surfaceColor

The surface color that affect surfaces of components, such as buttons, cards, and list items. This should be Color.Black to ensure maximum contrast.