Chun Keat Lim

Glacier Dashboard

Dashboards

About

A responsive Glacier glass dashboard with mock business metrics, revenue/spend charts, budget tracking and a daily heatmap. Includes color controls and CSV export. Icons by Lucide.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Glacier Dashboard to your project and fits it to your theme.

Code

How Glacier Dashboard is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import { useState } from "react";
import { GlacierDashboard } from "@/components/ui/glacier-dashboard";

// 21st.dev derives its native controls from literal settings + default-export props.
const settings = {
  accentColor: "#426b9a",
  backgroundColor: "#e8f0f8",
  brandName: "Forma",
};

export default function Demo(props: Partial<typeof settings>) {
  const values = { ...settings, ...props };
  return <InteractiveDemo key={JSON.stringify(values)} {...values} />;
}

function InteractiveDemo(values: typeof settings) {
  const [accentColor, setAccentColor] = useState(values.accentColor);
  const [backgroundColor, setBackgroundColor] = useState(
    values.backgroundColor,
  );
  return (
    <div style={{ width: "100%", minWidth: 0 }}>
      <div
        style={{
          display: "flex",
          flexWrap: "wrap",
          alignItems: "center",
          gap: 16,
          padding: "12px 20px",
          background: "#f5f9fd",
          color: "#173455",
          font: "12px ui-sans-serif, sans-serif",
          borderBottom: "1px solid #d6e3ef",
        }}
      >
        <strong>Customize colours</strong>
        <label style={{ display: "flex", alignItems: "center", gap: 8 }}>
          Accent
          <input
            type="color"
            value={accentColor}
            onInput={(event) => setAccentColor(event.currentTarget.value)}
            style={{ width: 32, height: 28, cursor: "pointer" }}
          />
        </label>
        <label style={{ display: "flex", alignItems: "center", gap: 8 }}>
          Background
          <input
            type="color"
            value={backgroundColor}
            onInput={(event) => setBackgroundColor(event.currentTarget.value)}
            style={{ width: 32, height: 28, cursor: "pointer" }}
          />
        </label>
        <button
          type="button"
          onClick={() => {
            setAccentColor(settings.accentColor);
            setBackgroundColor(settings.backgroundColor);
          }}
          style={{
            border: "1px solid #d6e3ef",
            borderRadius: 8,
            background: "white",
            color: "inherit",
            padding: "8px 12px",
            cursor: "pointer",
          }}
        >
          Reset Glacier
        </button>
      </div>
      <GlacierDashboard
        {...values}
        accentColor={accentColor}
        backgroundColor={backgroundColor}
      />
    </div>
  );
}

Dependencies

More by Chun Keat Lim

View all
  • Translucent Cassette Player

    Translucent Cassette Player

    97
  • Retro AI Chat

    Retro AI Chat

    47
  • Turntable

    Turntable

    24
  • Chroma Sense Hero

    Chroma Sense Hero

    23
  • DJ Controller

    DJ Controller

    11
  • Ink Grid Hero

    Ink Grid Hero

    10
  • Frosted Digital Clock

    Frosted Digital Clock

    9
  • Portable CD Player

    Portable CD Player

    9

More in Dashboards

View all
  • Fernly — Project Management Dashboard with Kanban

    Fernly — Project Management Dashboard with Kanban

    736
  • Analytics Dashboard

    Analytics Dashboard

    80
  • Creator Dashboard

    Creator Dashboard

    215
  • Insights Dashboard

    Insights Dashboard

    43
  • Corbel — Sales Analytics Dashboard

    Corbel — Sales Analytics Dashboard

    419
  • serf dashboard

    serf dashboard

    144
  • Dashboard with Collapsible Sidebar

    Dashboard with Collapsible Sidebar

    2.7K
  • Halden — CRM Dashboard with Sales Pipeline

    Halden — CRM Dashboard with Sales Pipeline

    64