dioxus_tailwindcss/
backgrounds.rs

1use crate::ext::*;
2
3// https://tailwindcss.com/docs/background-attachment
4constant!(bg fixed);
5constant!(bg local);
6constant!(bg scroll);
7
8// https://tailwindcss.com/docs/background-clip
9constant!(bg clip border);
10constant!(bg clip padding);
11constant!(bg clip content);
12constant!(bg clip text);
13
14// https://tailwindcss.com/docs/background-color
15colors!(bg);
16
17// https://tailwindcss.com/docs/background-origin
18constant!(bg origin border);
19constant!(bg origin padding);
20constant!(bg origin content);
21
22// https://tailwindcss.com/docs/background-position
23constant!(bg bottom);
24constant!(bg center);
25constant!(bg left);
26constant!(bg left bottom);
27constant!(bg left top);
28constant!(bg right);
29constant!(bg right bottom);
30constant!(bg right top);
31constant!(bg top);
32
33// https://tailwindcss.com/docs/background-repeat
34constant!(bg repeat);
35constant!(bg no repeat);
36constant!(bg repeat x);
37constant!(bg repeat y);
38constant!(bg repeat round);
39constant!(bg repeat space);
40
41// https://tailwindcss.com/docs/background-size
42constant!(bg auto);
43constant!(bg cover);
44constant!(bg contain);
45
46// https://tailwindcss.com/docs/background-image
47constant!(bg none);
48constant!(bg gradient to t);
49constant!(bg gradient to tr);
50constant!(bg gradient to r);
51constant!(bg gradient to br);
52constant!(bg gradient to b);
53constant!(bg gradient to bl);
54constant!(bg gradient to l);
55constant!(bg gradient to tl);
56
57// https://tailwindcss.com/docs/gradient-color-stops
58colors!(from);
59percents!(from);
60colors!(via);
61percents!(via);
62colors!(to);
63percents!(to);