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
42
43
44
45
46
47
48
49
50
51
52
53
54
mod display;
mod parser;

use super::*;

#[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,
}

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

/// https://tailwindcss.com/docs/opacity
#[derive(Copy, Clone, Debug)]
pub struct TailwindOpacity {
    opacity: usize,
}

/// https://tailwindcss.com/docs/mix-blend-mode
#[derive(Copy, Clone, Debug)]
pub struct TailwindBlend {
    kind: TailwindBlendKind,
    mode: TailwindBlendMode,
}

#[derive(Copy, Clone, Debug)]
pub enum TailwindBlendKind {
    Normal,
    Background,
}

// https://tailwindcss.com/docs/mix-blend-mode
#[derive(Copy, Clone, Debug)]
pub enum TailwindBlendMode {
    Normal,
    Multiply,
    // TODO
}