gpui_kit_material_color/lib.rs
1//! Color for gpui-kit-material, independent of GPUI.
2//!
3//! - [`Color`]: an sRGB RGBA value with the blend the kit uses for state
4//! layers, containers and animated palette changes.
5//! - [`palette`]: the built-in source palettes and the serializable
6//! light/dark [`ThemePreferences`].
7//! - [`scheme`]: the semantic [`ColorRole`]s components paint with, and the
8//! derivation of a [`Scheme`] from a palette.
9//! - [`themes`]: the 20 md3.io reference presets, with explicit light/dark mode
10//! and standard/medium/high contrast. Values come from the reference CSS;
11//! these tables do not implement dynamic seed-color generation.
12//!
13//! Keeping this crate free of GPUI lets the scheme rules be tested on their
14//! own, and leaves room for Material's dynamic color (HCT tonal palettes)
15//! to arrive here without touching components.
16mod color;
17pub mod palette;
18pub mod scheme;
19pub mod themes;
20
21pub use color::Color;
22pub use palette::{Appearance, Palette, PaletteId, ThemePreferences};
23pub use scheme::{ColorRole, Scheme};