tailwind-css 0.13.0

Compile tailwind short instructions to css
Documentation
use super::*;

#[derive(Copy, Debug, Clone)]
pub struct FontSize {
    size: LengthUnit,
    height: LengthUnit,
}

impl FontSize {
    #[inline]
    pub fn new(size: f32, height: f32) -> Self {
        let size = LengthUnit::rem(size);
        let height = if height < 0.0 { LengthUnit::rem(height) } else { LengthUnit::percent(height) };
        Self { size, height }
    }
    pub fn get_properties(&self) -> CssAttributes {
        css_attributes! {
            "font-size" => self.size.get_properties(),
            "line-height" => self.height.get_properties(),
        }
    }
}