score:5

Accepted answer

Add this file types.d.ts

import "@emotion/react";
import { IPalette } from "../your-palette";

declare module "@emotion/react" {
  export interface Theme extends IPalette {}
}

Related Query

More Query from same tag