generated from apav-dev/pages-latest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.ts
43 lines (38 loc) · 900 Bytes
/
tailwind.ts
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
import { CSSProperties } from "react";
export type ComponentDefinitions = Record<
string,
| CSSProperties
| { "&:hover": CSSProperties }
| { "&:focus": CSSProperties }
| { "&:active": CSSProperties }
>;
export type ButtonConfig = CSSProperties & {
variants: Record<
string,
| CSSProperties
| { "&:hover": CSSProperties }
| { "&:focus": CSSProperties }
| { "&:active": CSSProperties }
>;
};
export type HeadingConfig = CSSProperties & {
variants: Record<
string,
CSSProperties | { [key in ScreenSizeQuerys]: CSSProperties }
>;
};
export type LinkConfig = CSSProperties & {
variants: Record<
string,
| CSSProperties
| { "&:hover": CSSProperties }
| { "&:focus": CSSProperties }
| { "&:active": CSSProperties }
>;
};
type ScreenSizeQuerys =
| "@screen sm"
| "@screen md"
| "@screen lg"
| "@screen xl"
| "@screen 2xl";