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


Gatsby plugin for generating Flow types for CSS Modules using css-modules-flow-types.


Install the plugin:

yarn add gatsby-plugin-css-modules-flow-types

Add it to your gatsby-config.js file:

plugins: [

And that’s it!

Now when you import a .module.css file, css-modules-flow-types will automatically create a corresponding .module.css.flow file containing its Flow types. Flow will use it to warn you if you’re using class names that aren’t defined in the .module.css file.

© 2022 Gatsby, Inc.