tinted_builder/lib.rs
1#![doc = include_str!("../README.md")]
2mod error;
3mod scheme;
4mod template;
5mod utils;
6
7pub use error::TintedBuilderError;
8pub use scheme::{
9 Color, ColorName, ColorType, ColorVariant, Scheme, SchemeSupports, SchemeSystem, SchemeVariant,
10};
11pub use template::Template;
12
13pub mod base16 {
14 /// Base16 support for the library.
15 ///
16 /// - `Scheme`: deserialize Base16 YAML into this type and wrap in `Scheme::Base16` to render
17 /// templates.
18 pub use crate::scheme::base16::Scheme;
19}
20
21pub mod base24 {
22 /// Base24 support for the library.
23 ///
24 /// - `Scheme`: deserialize Base24 YAML into this type and wrap in `Scheme::Base24` to render
25 /// templates.
26 pub use crate::scheme::base24::Scheme;
27}
28
29pub mod tinted8 {
30 /// Tinted8 support for the library.
31 ///
32 /// - `Scheme`: deserialize Tinted8 YAML into this type and wrap in `Scheme::Tinted8` to render
33 /// templates with nested variables (`palette`, `ui`, `syntax`).
34 /// - `SUPPORTED_STYLING_SPEC_VERSION` / `SUPPORTED_BUILDER_SPEC_VERSION`: version strings the
35 /// library targets; useful for compatibility checks.
36 pub use crate::scheme::tinted8::{
37 Palette, Scheme, SyntaxKey, SUPPORTED_BUILDER_SPEC_VERSION, SUPPORTED_STYLING_SPEC_VERSION,
38 };
39}