logo
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
use crate::{Result, TailwindArbitrary, TailwindInstance};
use std::fmt::{Display, Formatter};

#[derive(Copy, Clone, Debug)]
enum ShadowKind {
    None,
    Small,
    Normal,
    Medium,
    Large,
    ExtraLarge,
    UltraLarge,
    Custom { x: usize, y: usize, alpha: usize },
}

/// https://tailwindcss.com/docs/box-shadow
#[derive(Copy, Clone, Debug)]
pub struct TailwindShadow {
    kind: ShadowKind,
    is_drop: bool,
}

impl Display for TailwindShadow {
    fn fmt(&self, _f: &mut Formatter<'_>) -> std::fmt::Result {
        todo!()
    }
}

impl TailwindInstance for TailwindShadow {}

impl TailwindShadow {
    pub fn parse_box(_input: &[&str], _arbitrary: &TailwindArbitrary) -> Result<Self> {
        todo!()
    }
    pub fn parse_drop(_input: &[&str], _arbitrary: &TailwindArbitrary) -> Result<Self> {
        todo!()
    }
    pub fn parse_arbitrary(_arbitrary: &TailwindArbitrary) -> Result<Self> {
        todo!()
    }
}