1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//! Material Design 3 Color System
//!
//! This module provides the HCT (Hue, Chroma, Tone) color space and utilities
//! for generating Material Design 3 color schemes from a seed color.
//!
//! # Overview
//!
//! The HCT color space combines:
//! - **Hue** and **Chroma** from CAM16 (color appearance model)
//! - **Tone** (lightness) from L*a*b* color space
//!
//! This combination enables:
//! - Perceptually accurate color manipulation
//! - Predictable contrast ratios via tone differences
//! - Dynamic color scheme generation from any seed color
//!
//! # Example
//!
//! ```rust
//! use bevy_material_ui::color::{Hct, TonalPalette, MaterialColorScheme};
//!
//! // Create an HCT color from a hex value
//! let seed = Hct::from_argb(0xFF6750A4);
//!
//! // Generate a tonal palette
//! let mut palette = TonalPalette::from_hct(&seed);
//!
//! // Get a specific tone
//! let tone_40 = palette.tone(40);
//!
//! // Generate a complete color scheme
//! let scheme = MaterialColorScheme::dark_from_argb(0xFF6750A4);
//! ```
pub use Hct;
pub use TonalPalette;
pub use MaterialColorScheme;