Skip to content

Contribution Graph

GitHub-style activity heatmap: weeks by weekdays in five levels of the theme's accent, with month and weekday labels, a legend and a total. Scrolls to the latest weeks on small screens.

Installation

pnpm dlx shadcn@latest add @portfolio-kit/contribution-graph
First time? Add the @portfolio-kit registry to components.json
components.json
{
  "registries": {
    "@portfolio-kit": "https://www.parthjadhav.com/products/portfolio-kit/r/{name}.json"
  }
}

Usage

Examples

In a Card

An “open source” card for an about page. Set --contribution-graph-bg to the card color so the pinned weekday column blends in while scrolling.

Habit Tracker

Any daily count works, not just commits. Words written over 13 weeks, starting on Mondays, with a custom cell label and caption.

API Reference

Used in