Chun Keat Lim

Frosted Digital Clock

Component

About

A rectangular digital clock behind frosted glass, with a built-in focus timer. Set a session (15 min by default), start, pause or reset; the glass clears with a soft chime when time is up. A frost slider lets visitors choose how misty the glass is.

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

Code

How Frosted Digital Clock is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import { FrostedDigitalClock } from "@/components/ui/frosted-digital-clock";

const settings = {
  width: 640,
  faceColor: "#D0D0D0",
  frameColor: "#141414",
  digitColor: "#262626",
  glow: false,
  frost: 1.6,
  showFrostControl: true,
  showFocus: true,
  focusMinutes: 15,
  focusStep: 5,
  sound: true,
  hour12: false,
  showSeconds: true,
  showDate: true,
  blinkColon: true,
  clearOnHover: true,
  shadow: true,
  timeZone: "",
};

export default function Demo(props: Partial<typeof settings>) {
  const s = { ...settings, ...props };
  return <FrostedDigitalClock {...s} timeZone={s.timeZone || undefined} className="min-h-screen" />;
}

More by Chun Keat Lim

View all
  • Translucent Cassette Player

    Translucent Cassette Player

    62
  • Chroma Sense Hero

    Chroma Sense Hero

    12
  • Turntable

    Turntable

    6
  • Ink Grid Hero

    Ink Grid Hero

    5
  • Retro AI Chat

    Retro AI Chat

    3
  • DJ Controller

    DJ Controller

    3
  • Portable CD Player

    Portable CD Player

    2
  • Frosted Clock

    Frosted Clock