See what's launched

The next gen Gatsby is here Performance, developer velocity, and scaling to meet Enterprise needs - See what’s launched

Sign Up for Free
Community Plugin
View plugin on GitHub

Forked From

Gatsby Plugin Typescript CSS Modules

This GatsbyJS plugin adds typings-for-css-modules-loader to your configuration

Import styles normally

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.


First, install the plugin…

npm i gatsby-transformer-typescript-css-modules --save

Then, add the plugin to your gatsby-config.js

  // ...
© 2022 Gatsby, Inc.