-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.d.ts
155 lines (138 loc) · 2.86 KB
/
index.d.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
interface Primitives {
color: Color;
space: Space;
fontFamily: FontFamily;
fontSettings: FontSettings;
fontSize: FontSize;
fontWeight: FontWeight;
lineHeight: LineHeight;
breakpoint: Breakpoint;
minBreakpoint: MinBreakpoint;
shadow: Shadow;
borderRadius: BorderRadius;
transition: Transition;
}
type ColorValue = {
"50": string;
"100": string;
"200": string;
"300": string;
"400": string;
"500": string;
"600": string;
"700": string;
"800": string;
"900": string;
};
type BreakpointValue = {
sm: string;
md: string;
lg: string;
xl: string;
"2xl": string;
};
interface ColorValueBlue extends ColorValue {
ifixit: string;
}
interface ColorValueRed extends ColorValue {
dozuki: string;
}
interface Color {
black: string;
white: string;
whiteAlpha: ColorValue;
blackAlpha: ColorValue;
brand: Omit<ColorValue, "50">;
warmGray: ColorValue;
trueGray: ColorValue;
coolGray: ColorValue;
blueGray: ColorValue;
rose: ColorValue;
pink: ColorValue;
fuchsia: ColorValue;
purple: ColorValue;
violet: ColorValue;
indigo: ColorValue;
blue: ColorValueBlue & { "ifixit": string; };
lightBlue: ColorValue;
cyan: ColorValue;
teal: ColorValue;
emerald: ColorValue;
green: ColorValue;
lime: ColorValue;
yellow: ColorValue;
amber: ColorValue;
orange: ColorValue;
red: ColorValueRed;
gray: ColorValue;
}
type Space = string[];
type FontFamily = {
arialBlack: string;
inter: string;
lato: string;
mono: string;
monoSystem: string;
sansSystem: string;
serifSystem: string;
};
type FontSettings = {
inter: string;
};
type FontSize = {
sm: string;
md: string;
lg: string;
xl: string;
"2xl": string;
"3xl": string;
"4xl": string;
"5xl": string;
"6xl": string;
"7xl": string;
"8xl": string;
"9xl": string;
};
type FontWeight = {
normal: number;
semiBold: number;
bold: number;
};
type LineHeight = {
none: number;
tight: number;
normal: number;
loose: number;
};
type Breakpoint = BreakpointValue;
type MinBreakpoint = BreakpointValue;
type Shadow = string[];
type BorderRadius = {
sm: string;
md: string;
lg: string;
xl: string;
pill: string;
};
type Transition = {
"100": string;
"150": string;
"200": string;
"250": string;
"300": string;
default: string;
};
export declare const color: Color;
export declare const space: Space;
export declare const fontFamily: FontFamily;
export declare const fontSettings: FontSettings;
export declare const fontSize: FontSize;
export declare const fontWeight: FontWeight;
export declare const lineHeight: LineHeight;
export declare const breakpoint: Breakpoint;
export declare const minBreakpoint: MinBreakpoint;
export declare const shadow: Shadow;
export declare const borderRadius: BorderRadius;
export declare const transition: Transition;
export declare const primitives: Primitives;
export default primitives;