Components Heat Maps Heat Maps Component

Heat Maps Component

A heatmap component with minimalist design, responsive layout, and dark theme support using Tailwind CSS. No JavaScript is included. Uses CSS for dark mode styling.

Preview

HTML Code

<div class="bg-gray-100 dark:bg-gray-900 p-4">
  <h2 class="text-lg font-semibold mb-4 text-gray-800 dark:text-white">Activity Heatmap</h2>
  <div class="grid grid-cols-7 gap-1">
    </div>
    <!-- Days of the week -->
    <div class="col-span-1 text-center text-sm text-gray-600 dark:text-gray-400">Sun</div>
    <div class="col-span-1 text-center text-sm text-gray-600 dark:text-gray-400">Mon</div>
    <div class="col-span-1 text-center text-sm text-gray-600 dark:text-gray-400">Tue</div>
    <div class="col-span-1 text-center text-sm text-gray-600 dark:text-gray-400">Wed</div>
    <div class="col-span-1 text-center text-sm text-gray-600 dark:text-gray-400">Thu</div>
    <div class="col-span-1 text-center text-sm text-gray-600 dark:text-gray-400">Fri</div>
    <div class="col-span-1 text-center text-sm text-gray-600 dark:text-gray-400">Sat</div>

    <!-- Heatmap cells (example: 4 weeks) -->
    {[...Array(28)].map((_, i) => (
      <div key={i} class="h-5 bg-gray-300 dark:bg-gray-700 rounded-sm"
           style={{ opacity: Math.random() * 0.8 + 0.2 }}>
      </div>
    ))}
  </div>
</div>

Related Components

Heat Maps Component

A Heat Maps Component designed with a brutalist style featuring high contrast and unusual layouts using Tailwind CSS. It supports responsive effects and a dark theme.

Open

Heat Maps Component

A Heat Maps Component designed in a Brutalism style with Earth tones, moderate complexity, and responsive design with dark theme support.

Open

Heat Maps Component

A responsive heat maps component styled for dark mode using Tailwind CSS, featuring random placeholder images and user avatars.

Open