Skip to main content

whisker_css/data_type/
mod.rs

1//! The 11 data types Lynx documents under
2//! <https://lynxjs.org/api/css/data-type.html>.
3//!
4//! Each submodule maps one Lynx data type to a Rust type with a
5//! [`ToCss`](crate::ToCss) implementation. The set is intentionally
6//! narrow: Lynx does not expose `<integer>`, `<image>`, `<position>`,
7//! or `<easing-function>` as standalone data types; the equivalents
8//! live in [`crate::data_type_ext`].
9
10mod angle;
11mod color;
12mod gradient;
13mod length;
14mod length_percentage;
15mod number;
16mod percentage;
17mod sizing;
18mod string;
19mod time;
20
21pub use angle::Angle;
22pub use color::{Color, NamedColor};
23pub use gradient::{ColorStop, Gradient, LinearDirection, RadialShape, StopPosition};
24pub use length::Length;
25pub use length_percentage::{CalcExpr, LengthPercentage};
26pub use number::Number;
27pub use percentage::Percentage;
28pub use sizing::{FitContent, MaxContent};
29pub use string::CssString;
30pub use time::Time;