1#![doc = include_str!("../README.md")]
2
3mod angle;
4mod box_model;
5mod checked_value;
6mod color;
7mod color_adjust;
8mod custom_property;
9mod declaration;
10mod dimension;
11mod gap;
12mod global_keyword;
13mod identifier;
14mod length;
15mod number;
16mod opacity;
17pub mod property;
19mod serialization;
20mod sizing;
21mod stacking;
22mod time;
23mod touch_action;
24mod typography;
25mod value;
26mod view_transition;
27
28pub use angle::CssAngle;
29pub use box_model::{
30 BorderCornerRadius, Inset, InsetAxis, InvalidNonNegativeLengthPercentage, Margin, MarginAxis,
31 NonNegativeLengthPercentage, NonNegativeLengthPercentageValue, Padding, PaddingAxis,
32};
33pub use checked_value::CheckedCssValue;
34pub use color::{CssColor, CssColorName, hsl, hsla, rgb, rgba, try_hsl, try_hsla, try_rgba};
35pub use color_adjust::{ForcedColorAdjust, PrintColorAdjust};
36pub use custom_property::{
37 CssCustomProperty, CssVariableReference, DeclarationValue, InvalidCustomPropertyName, var,
38};
39pub use declaration::CheckedDeclaration;
40pub use dimension::{
41 CssDimension, CssDimensionExpr, CssEnvironmentVariable, LengthPercentageAuto,
42 LengthPercentageCalculation, ch, cqh, cqw, css_clamp, css_env, css_max, css_min, dvh, dvw, em,
43 lvh, lvw, pct, px, rem, svh, svw, try_ch, try_cqh, try_cqw, try_dvh, try_dvw, try_em, try_lvh,
44 try_lvw, try_pct, try_px, try_rem, try_svh, try_svw, try_vh, try_vmax, try_vmin, try_vw, vh,
45 vmax, vmin, vw,
46};
47pub use gap::{Gap, GapValue};
48pub use global_keyword::GlobalKeyword;
49pub use length::CssLength;
50pub use number::{
51 FiniteF64, InvalidCssNumber, NonNegativeFiniteF64, PercentageChannel, UnitInterval,
52};
53pub use opacity::Opacity;
54pub use property::PropertyName;
55pub use serialization::CssWriteTo;
56pub use sizing::{MaxSize, Size};
57pub use stacking::ZIndex;
58pub use time::CssTime;
59pub use touch_action::{
60 TouchAction, TouchActionGestures, TouchActionHorizontalPan, TouchActionVerticalPan,
61};
62pub use typography::FontWeight;
63pub use value::{
64 CssValue, deg, fr, grad, ms, number, rad, s, try_deg, try_fr, try_grad, try_ms, try_number,
65 try_rad, try_s, try_turn, turn,
66};
67pub use view_transition::{InvalidViewTransitionName, ViewTransitionName};
68
69const _: () = {
74 const fn assert_send_sync<T: Send + Sync>() {}
75 assert_send_sync::<CssValue>();
76 assert_send_sync::<CssDimensionExpr>();
77 assert_send_sync::<CssCustomProperty<CssColor>>();
78 assert_send_sync::<DeclarationValue<CssColor>>();
79 assert_send_sync::<Padding>();
80 assert_send_sync::<Inset>();
81 assert_send_sync::<ViewTransitionName>();
82 assert_send_sync::<TouchAction>();
83 assert_send_sync::<PropertyName>();
84 assert_send_sync::<CheckedDeclaration>();
85};