31 lines
596 B
TypeScript
31 lines
596 B
TypeScript
|
// import original module declarations
|
||
|
import 'styled-components';
|
||
|
|
||
|
// and extend them!
|
||
|
declare module 'styled-components' {
|
||
|
export interface DefaultTheme {
|
||
|
borderRadius: {
|
||
|
primary: string;
|
||
|
alternate: string;
|
||
|
};
|
||
|
colors: {
|
||
|
[key: string]: any;
|
||
|
primary: string;
|
||
|
secondary: string;
|
||
|
success: string;
|
||
|
danger: string;
|
||
|
warning: string;
|
||
|
dark: string;
|
||
|
alternate: string;
|
||
|
text: {
|
||
|
primary: string;
|
||
|
secondary: string;
|
||
|
};
|
||
|
bg: {
|
||
|
primary: string;
|
||
|
secondary: string;
|
||
|
};
|
||
|
};
|
||
|
}
|
||
|
}
|