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
pub mod accessibility;
pub mod background;
pub mod borders;
pub mod breakpoints;
pub mod colors;
pub mod effects;
pub mod filters;
pub mod flexbox;
pub mod fonts;
pub mod interactivity;
pub mod layouts;
pub mod preflight;
pub mod sizing;
pub mod spacing;
pub mod tables;
pub mod theme;
pub mod transforms;
pub mod transition;
pub mod typography;
use crate::{
css_attributes, parse_f32, parse_f_percent, parse_i_px_maybe, parse_integer, syntax_error, traits::CssAttribute,
ColorResolver, TailwindBrightness, TailwindBuilder, TailwindInstance, TailwindObjectPosition,
};
use std::{
collections::{BTreeMap, BTreeSet, HashMap},
fmt::{Debug, Display, Formatter, Write},
str::FromStr,
};
use tailwind_error::{
nom::{branch::alt, bytes::complete::tag, combinator::opt, sequence::tuple, IResult},
Result,
};
#[macro_export]
macro_rules! syntax_error {
($msg:literal $(,)?) => {
Err(tailwind_error::TailwindError::syntax_error($msg.to_string()))
};
($fmt:expr, $($arg:tt)*) => {
Err(tailwind_error::TailwindError::syntax_error(format!($fmt, $($arg)*)))
};
}