What is the meaning of Intellij node_modules folder colors?

Orange is the color for excluded folders. IntelliJ excludes indirect dependencies automatically as you shouldn't be importing those. Also, having the indirect dependencies excluded also speeds up the search.

The gray is for a basic folder that is not a source folder, excluded ...

FYI, the meta data for the libraryFolder is in the .iml for your project, such as:

   <content url="file://$MODULE_DIR$">
      <excludeFolder url="file://$MODULE_DIR$/target" />
      <excludeFolder url="file://$MODULE_DIR$/wmsWebUi/dist" />
      <excludeFolder url="file://$MODULE_DIR$/wmsWebUi/nbproject" />
      <libraryFolder url="file://$MODULE_DIR$/wmsWebUi/node_modules" />
      <excludeFolder url="file://$MODULE_DIR$/wmsWebUi/node" />
      <excludeFolder url="file://$MODULE_DIR$/wmsWebUi/npm-cache" />
      <excludeFolder url="file://$MODULE_DIR$/wmsWebUi/target" />
    </content>

For a complete listing of the file colors see: https://www.jetbrains.com/help/idea/content-roots.html?_ga=2.259757642.1179276042.1586287143-485769907.1519135476


The grey folders appear to be direct dependencies listed in your package.json, while the orange folders are indirectly required.