styled.d.ts 456 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// import original module declarations
import 'styled-components'

// extend the module declarations using custom theme type (declaration merging)
declare module 'styled-components' {
    export interface DefaultTheme {
        colors: {
            primary: string
            secondary: string
            backgroundPrimary: string
            backgroundSecondary: string
            backgroundInput: string
            barChart: string
        }
    }
}