Is the badge based on development dependencies?

If your project has runtime dependencies, then its development dependencies are simply ignored. This means that the badge will be green, yellow or red depending on the color of the runtime dependencies.

In case there's no runtime dependency at all, the badge depends on the "Use development dependencies badge" setting. If enabled, the badge is calculated using the development dependencies, otherwise the badge will be "Dependencies Inactive" (grey color) meaning that the project has no dependency at all.

The "Use development dependencies badge" checkbox is on the "badge" tab of the project settings page.

Feedback and Knowledge Base