A gatsbyjs transformer plugin for using CSS/SCSS Modules and Typescript
npm install gatsby-transformer-typescript-css-moduleshttps://github.com/jcreamer898/gatsby-plugin-typescript-css-modules
Import styles normally
``ts`
import * as styles from "./page.module.css";
and typings-for-css-modules-loader will read the CSS file and generates a .d.ts file alongside your css.
`bash`
npm i gatsby-transformer-typescript-css-modules --save
Then, add the plugin to your gatsby-config.js...
`js``
// ...
"gatsby-transformer-typescript-css-modules"
]