lustre/prefab/theme

Color palette for lustre_prefab components.

This module provides a consistent color scheme across all prefab components, inspired by the Clarity Design System.

Values

pub fn black() -> stylish.Color

Pure black

pub fn blue() -> stylish.Color

Blue color

pub fn danger() -> stylish.Color

Danger/error color (alias for red)

pub fn danger_alpha(alpha: Float) -> stylish.Color

Danger color with alpha

pub fn gray1() -> stylish.Color

Gray 1 - lightest

pub fn gray2() -> stylish.Color

Gray 2

pub fn gray3() -> stylish.Color

Gray 3

pub fn gray4() -> stylish.Color

Gray 4

pub fn gray5() -> stylish.Color

Gray 5

pub fn gray6() -> stylish.Color

Gray 6

pub fn gray7() -> stylish.Color

Gray 7

pub fn gray8() -> stylish.Color

Gray 8

pub fn gray9() -> stylish.Color

Gray 9 - darkest

pub fn green() -> stylish.Color

Green color

pub fn info() -> stylish.Color

Info color (alias for link)

pub fn info_alpha(alpha: Float) -> stylish.Color

Info color with alpha

pub fn link() -> stylish.Color

Link color - light blue

pub fn primary() -> stylish.Color

Primary brand color - blue

pub fn primary_alpha(alpha: Float) -> stylish.Color

Primary color with alpha

pub fn red() -> stylish.Color

Red color

pub fn secondary() -> stylish.Color

Secondary color - dark gray

pub fn secondary_alpha(alpha: Float) -> stylish.Color

Secondary color with alpha

pub fn success() -> stylish.Color

Success color (alias for green)

pub fn success_alpha(alpha: Float) -> stylish.Color

Success color with alpha

pub fn transparent() -> stylish.Color

Transparent color

pub fn warning() -> stylish.Color

Warning color - orange/yellow

pub fn warning_alpha(alpha: Float) -> stylish.Color

Warning color with alpha

pub fn white() -> stylish.Color

Pure white

Search Document