ColorScheme

@Immutable
class ColorScheme(val fillPrimary: Color, val fillSecondary: Color, val fillTertiary: Color, val fillLight: Color, val labelPrimaryLight: Color, val labelPrimary: Color, val labelSecondary: Color, val labelTertiary: Color, val labelQuaternary: Color, val lightenHover: Color, val lightenPressed: Color, val error: Color, val alert: Color, val passable: Color, val interaction: Color, val dividerLine: Color)

A color scheme holds all the named color roles parameters for PICO design system.

Constructors

Link copied to clipboard
constructor(fillPrimary: Color, fillSecondary: Color, fillTertiary: Color, fillLight: Color, labelPrimaryLight: Color, labelPrimary: Color, labelSecondary: Color, labelTertiary: Color, labelQuaternary: Color, lightenHover: Color, lightenPressed: Color, error: Color, alert: Color, passable: Color, interaction: Color, dividerLine: Color)

Properties

Link copied to clipboard
val alert: Color

Alert semantic color.

Link copied to clipboard
val dividerLine: Color

Divider line color.

Link copied to clipboard
val error: Color

Error semantic color.

Link copied to clipboard
val fillLight: Color

Light background color.

Link copied to clipboard
val fillPrimary: Color

Background color for small areas and important elements.

Link copied to clipboard
val fillSecondary: Color

Background color for large areas and non-important elements.

Link copied to clipboard
val fillTertiary: Color

Background color for the least important elements.

Link copied to clipboard
val interaction: Color

Interaction semantic color.

Link copied to clipboard
val labelPrimary: Color

Primary content color.

Link copied to clipboard

The foreground color used on fillPrimary.

Link copied to clipboard
val labelQuaternary: Color

Quaternary content color.

Link copied to clipboard
val labelSecondary: Color

Secondary content color.

Link copied to clipboard
val labelTertiary: Color

Tertiary content color.

Link copied to clipboard
val lightenHover: Color

Hover overlay color.

Link copied to clipboard
val lightenPressed: Color

Pressed overlay color.

Link copied to clipboard
val passable: Color

Passable semantic color.

Functions

Link copied to clipboard
fun copy(fillPrimary: Color = this.fillPrimary, fillSecondary: Color = this.fillSecondary, fillTertiary: Color = this.fillTertiary, fillLight: Color = this.fillLight, labelPrimaryLight: Color = this.labelPrimaryLight, labelPrimary: Color = this.labelPrimary, labelSecondary: Color = this.labelSecondary, labelTertiary: Color = this.labelTertiary, labelQuaternary: Color = this.labelQuaternary, lightenHover: Color = this.lightenHover, lightenPressed: Color = this.lightenPressed, error: Color = this.error, alert: Color = this.alert, passable: Color = this.passable, interaction: Color = this.interaction, dividerLine: Color = this.dividerLine): ColorScheme
Link copied to clipboard
open override fun toString(): String