tailwind-css 0.13.0

Compile tailwind short instructions to css
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use super::*;

pub(crate) mod list_position;
pub(crate) mod list_type;

pub(crate) fn list_adaptor(str: &[&str], arbitrary: &TailwindArbitrary) -> Result<Box<dyn TailwindInstance>> {
    let out = match str {
        // https://tailwindcss.com/docs/list-style-position
        [s @ ("inside" | "outside")] => TailwindListPosition::from(*s).boxed(),
        ["position", rest @ ..] => TailwindListPosition::parse(rest, arbitrary)?.boxed(),
        // https://tailwindcss.com/docs/list-style-type
        _ => TailwindListStyle::parse(str, arbitrary)?.boxed(),
    };
    Ok(out)
}