forked from konstructio/console
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeclaration.d.ts
122 lines (113 loc) · 3.13 KB
/
declaration.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
import 'styled-components';
import '@mui/material/styles';
declare module '*.css' {
const mapping: Record<string, string>;
export default mapping;
}
declare module '*.webp' {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const content: any;
export default content;
}
declare module '*.svg' {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const content: any;
export default content;
}
declare module '*.png' {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const content: any;
export default content;
}
declare module '*.html' {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const content: any;
export default content;
}
// /** styled-components Overrides **/
declare module 'styled-components' {
export interface DefaultTheme {
colors: {
americanGreen: string;
athenaBlue: string;
beluga: string;
black: string;
bleachedSilk: string;
caribeanSea: string;
chineseOrange: string;
danger: string;
dawnDeparts: string;
ferntastic: string;
gravelFint: string;
gray: string;
greenJelly: string;
naivePeach: string;
purpleCabbage: string;
stomyShower: string;
spunPearl: string;
transparentBlue: string;
ultimateGrey: string;
yellowOrange: string;
white: string;
lightGrey: string;
libertyBlue: string;
fireBrick: string;
magnolia: string;
royanPurple: string;
// Kubefirst color palette
americanBlue: string;
childOfLight: string;
moonlessMystery: string;
jordyBlue: string;
primary: string;
saltboxBlue: string;
volcanicSand: string;
washMe: string;
whiteSmoke: string;
};
}
}
/** MUI Overrides **/
declare module '@mui/material/styles' {
interface TypographyVariants {
typography: React.CSSProperties;
h1: React.CSSProperties;
h2: React.CSSProperties;
h3: React.CSSProperties;
h4: React.CSSProperties;
h5: React.CSSProperties;
h6: React.CSSProperties;
subtitle1: React.CSSProperties;
subtitle2: React.CSSProperties;
subtitle3: React.CSSProperties;
labelLarge: React.CSSProperties;
labelMedium: React.CSSProperties;
labelSmall: React.CSSProperties;
buttonSmall: React.CSSProperties;
body1: React.CSSProperties;
body2: React.CSSProperties;
body3: React.CSSProperties;
tooltip: React.CSSProperties;
}
// allow configuration using `createTheme`
interface TypographyVariantsOptions {
typography?: React.CSSProperties;
h1?: React.CSSProperties;
h2?: React.CSSProperties;
h3?: React.CSSProperties;
h4?: React.CSSProperties;
h5?: React.CSSProperties;
h6?: React.CSSProperties;
subtitle1?: React.CSSProperties;
subtitle2?: React.CSSProperties;
subtitle3?: React.CSSProperties;
labelLarge?: React.CSSProperties;
labelMedium?: React.CSSProperties;
labelSmall?: React.CSSProperties;
buttonSmall?: React.CSSProperties;
body1?: React.CSSProperties;
body2?: React.CSSProperties;
body3?: React.CSSProperties;
tooltip?: React.CSSProperties;
}
}