Skip to main content

parsec_css/values/
mod.rs

1// SPDX-License-Identifier: Apache-2.0
2// Copyright 2026 James Conway
3
4//! Typed values: CSS Values and Units Level 4's numbers, dimensions and
5//! math functions, CSS Color Level 4's colors, and the value definition
6//! syntax every property's grammar is written in.
7
8mod canonical;
9mod color;
10mod convert;
11mod custom;
12mod generated;
13mod grammar;
14mod matcher;
15mod math;
16mod path;
17mod properties;
18mod restrict;
19mod units;
20mod value;
21
22pub use color::{Channel, Channels, Color, Model, Predefined, Relative, RelativeChannel};
23pub use convert::{Absolute, Space};
24pub use custom::{CustomProperties, GuaranteedInvalid, Resolved, substitute, substitute_value};
25pub use grammar::Grammar;
26pub use math::{Expect, Leaf, Math, MathFunction, Node, Rounding};
27pub use properties::{Property, PropertyData, properties, property};
28pub use units::{Kind, Unit, number_to_string, write_number};
29pub use value::{
30    Component, CssWide, InvalidValue, Specified, expand, parse_declaration_value, parse_value,
31    write_components,
32};
33pub(crate) use value::{has_substitution, match_grammar};