gpui_kit_material_color/dynamic/mod.rs
1//! Material dynamic color: HCT, tonal palettes and seed-generated schemes.
2//!
3//! A port of Google's [material-color-utilities] at commit
4//! `bd811e4ca2ab94c4ce3cadc89c19b1820b9704b3`, licensed under Apache-2.0
5//! (`licenses/material-color-utilities.txt`). Each file keeps its notice and
6//! states that it was modified.
7//!
8//! Not ported: the image quantizers and score (schemes start from a known
9//! seed), the watch platform and the CMF variant, the deprecated `CorePalette`
10//! and `Scheme` classes, and multiple source colors.
11//!
12//! [material-color-utilities]: https://github.com/material-foundation/material-color-utilities
13pub mod blend;
14mod color;
15pub mod contrast;
16mod dislike;
17mod hct;
18mod palette;
19mod scheme;
20mod seed;
21mod solver;
22mod spec_2021;
23mod spec_2025;
24mod temperature;
25pub mod utils;
26
27pub use color::{ContrastCurve, DynamicRole};
28pub use dislike::{fix_if_disliked, is_disliked};
29pub use hct::{Cam16, Hct, ViewingConditions};
30pub use palette::TonalPalette;
31pub use scheme::{DynamicScheme, SpecVersion, Variant};
32pub use seed::SeedScheme;
33pub use temperature::{TemperatureCache, raw_temperature};