Override styled components default theme

This commit is contained in:
Hazem Krimi
2021-01-07 14:45:14 +01:00
parent 0eaf23ad60
commit 065413eaf5
5 changed files with 80 additions and 24 deletions
+16
View File
@@ -0,0 +1,16 @@
import 'styled-components';
declare module 'styled-components' {
export interface DefaultTheme {
colors: {
dark: {
background: string;
text: string;
};
light: {
background: string;
text: string;
};
};
}
}