@emotion/react | @emotion/styled |
---|---|
major |
major |
It's now easier to provide a type for Theme
. Instead of creating custom instances (like before) you can augment the builtin Theme
interface like this:
import '@emotion/react'
declare module '@emotion/react' {
export interface Theme {
primaryColor: string
secondaryColor: string
}
}