Module css

Module css 

Source
Expand description

Type-safe CSS properties and utilities

This module provides type-safe APIs for working with CSS properties, colors, units, spacing, and layout utilities.

Re-exports§

pub use at_rules::CustomMediaRule;
pub use at_rules::FontFaceRule;
pub use at_rules::LayerRule;
pub use at_rules::SupportsRule;
pub use color::Color;
pub use color::ColorScale;
pub use color::SemanticColors;
pub use grid::GridArea;
pub use grid::GridTemplate;
pub use grid::GridTrack;
pub use grid::Subgrid;
pub use layout::AlignItems;
pub use layout::ContainerQuery;
pub use layout::ContainerQueryCondition;
pub use layout::Display;
pub use layout::FlexDirection;
pub use layout::FlexGap;
pub use layout::JustifyContent;
pub use selectors::HasSelector;
pub use selectors::IsSelector;
pub use selectors::ScopeRule;
pub use selectors::StartingStyle;
pub use selectors::WhereSelector;
pub use spacing::Margin;
pub use spacing::Padding;
pub use spacing::Radius;
pub use spacing::ResponsiveSpacing;
pub use spacing::Spacing;
pub use spacing::SpacingScale;
pub use typography::FontFamily;
pub use typography::FontSize;
pub use typography::FontWeight;
pub use typography::LineHeight;
pub use typography::TextStyle;
pub use typography::TypographyScale;
pub use units::Angle;
pub use units::Length;
pub use units::Percentage;
pub use units::Time;

Modules§

at_rules
Advanced CSS @rules
color
Type-safe color definitions
grid
CSS Grid utilities
layout
CSS layout utilities
selectors
Advanced CSS selector utilities
spacing
CSS spacing utilities
typography
CSS typography utilities
units
CSS unit types

Structs§

StyleBuilder
Style builder for constructing type-safe CSS styles