-
Notifications
You must be signed in to change notification settings - Fork 0
/
styled.d.ts
116 lines (104 loc) · 2.08 KB
/
styled.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
import "styled-components/native";
interface Colors {
"yellow-500": string;
"text-primary": string;
"text-second": string;
"bg-primary": string;
"bg-second": string;
"bg-third": string;
"border-color": string;
"bg-input": string;
"light-100": string;
"blue-700": string;
"blue-500": string;
"blue-100": string;
"green-700": string;
"green-500": string;
"green-100": string;
"red-700": string;
"red-500": string;
"red-100": string;
"pure-white": string;
"icon-primary": string;
"icon-second": string;
"placeholder": "string"
}
interface Spacing {
sm: string;
md: string;
lg: string;
xl: string;
"2xl": string;
"3xl": string;
"3.5xl": string;
"4xl": string;
}
interface Sizes {
sm: string;
md: string;
lg: string;
xl: string;
"2xl": string;
"3xl": string;
"3.5xl": string;
"4xl": string;
"5xl": string;
}
interface HeaderFontSizes {
"4xl": string;
"3xl": string;
"2xl": string;
xl: string;
lg: string;
md: string;
sm: string;
}
interface BodyFontSizes {
lg: string;
md: string;
sm: string;
}
interface FontSizes {
header: HeaderFontSizes;
body: BodyFontSizes;
}
interface FontWeights {
bold: number;
regular: number;
medium: number;
semi: number;
light: number;
}
interface Fonts {
body: string;
heading: string;
}
interface LineHeights {
"4xl": string;
"3xl": string;
"2xl": string;
xl: string;
lg: string;
md: string;
sm: string;
}
export type ColorsType = keyof Colors;
export type SpacingType = keyof Spacing;
export type SizesType = keyof Sizes;
export type FontSizesType = keyof FontSizes;
export type FontWeightsType = keyof FontWeights;
export type FontsType = keyof Fonts;
export type LineHeighsType = keyof LineHeights;
export type HeaderFontSizesType = keyof HeaderFontSizes;
export type BodyFontSizesType = keyof BodyFontSizes;
declare module "styled-components/native" {
export interface DefaultTheme {
colors: Colors;
spaces: Spacing;
sizes: Sizes;
fontSizes: FontSizes;
fontWeights: FontWeights;
fonts: Fonts;
lineHeights: LineHeights;
}
}