htui 0.1.0

A terminal HTML/CSS renderer with an embedded JavaScript engine — build interactive TUIs from HTML, CSS and JS
Documentation
mod box_values;
mod color;
mod flex;
mod length;
mod multicol;
mod text;

pub(in crate::html::css_parse) use box_values::parse_border_radius;
pub use box_values::{
    BoxSizing, CornerRadii, CssDisplay, InsetSides, Position, Positioning, Visibility,
    parse_box_sizing, parse_position, parse_visibility,
};
pub use color::parse_color_str;
pub use flex::{
    AlignContent, AlignItems, FlexBasis, FlexDirection, FlexShorthand, FlexWrap, GapSizes,
    JustifyContent, parse_align_content, parse_align_items, parse_flex_basis, parse_flex_direction,
    parse_flex_flow, parse_flex_shorthand, parse_flex_wrap, parse_gap_shorthand,
    parse_justify_content, parse_non_negative_number, parse_order, resolve_flex_basis,
};
pub(crate) use flex::{
    alignment_longhand_valid, expand_place_shorthand, is_alignment_longhand,
    is_place_shorthand_name,
};
pub(crate) use length::merge_border_longhand;
pub use length::{FontContext, Length, LengthContext, PX_PER_CELL, Viewport};
pub(crate) use length::{
    parse_border_shorthand, parse_border_side, parse_border_style, parse_border_width,
    parse_edge_auto, parse_edge_sizes, parse_margin_sizes,
};
pub use multicol::{
    ColumnFill, ColumnsResolved, parse_column_count, parse_column_fill, parse_column_rule,
    parse_columns_shorthand,
};
// `ColumnsShorthand` has no in-crate reader; this re-export keeps the
// pre-split `values::ColumnsShorthand` path available.
#[allow(unused_imports)]
pub use multicol::ColumnsShorthand;
pub use text::{
    FontStyleKind, FontWeight, LineHeight, OverflowWrap, TextAlign, TextDecoration, TextTransform,
    WhiteSpace, WordBreak, parse_line_height, parse_overflow_wrap, parse_text_transform,
    parse_white_space, parse_word_break, resolve_line_height_cells,
};