KestrelDebit
Balance
$12,480.50
5412 7534 0021 9015
Mira Okafor
09/29

Code

<!-- frost-card.free.js: download it from the Install section below and host it with your site -->
<script src="/frost-card.free.js" defer></script>

<frost-card
  width="360"
  brush="46"
  regrow="4"
  blur="12"
  radius="22"
>
  <!-- anything inside sits under the frost: here, a bank card -->
  <div style="height:100%;box-sizing:border-box;padding:20px 22px;display:flex;flex-direction:column;justify-content:space-between;color:#fff;font:600 14px/1.2 system-ui,sans-serif;background:linear-gradient(135deg,#ff8a5c,#b48cff 50%,#4b7bff)">
    <span>Kestrel · Debit</span>
    <span style="font-size:30px;letter-spacing:-.03em">$12,480.50</span>
    <span style="font-size:16px;letter-spacing:.06em">5412 7534 0021 9015</span>
  </div>
</frost-card>

In context

KestrelDebit
Balance
$12,480.50
5412 7534 0021 9015
Mira Okafor
09/29
Bank card, Ice
Gift card$50
Your code
QH7K-28XM-4DPA
Gift code, Mist Pro
Recovery phrase
1 orbit2 maple3 lunar4 quiet5 ember6 cobalt7 drift8 sable9 north
Recovery phrase, Smoke Pro

Install · Free Web Component

One file, no dependencies. Ice preset, every other option included. Host it yourself so your visitors never load anything from our servers.

1. Install with one command — or download the file
shadcn CLI · React
npx shadcn@latest add https://www.ui-design.co/r/frost-card.json
2. Load it and use the element
HTML
<!-- frost-card.free.js: download it from the Install section below and host it with your site -->
<script src="/frost-card.free.js" defer></script>

<frost-card
  width="360"
  brush="46"
  regrow="4"
  blur="12"
  radius="22"
>
  <!-- anything inside sits under the frost: here, a bank card -->
  <div style="height:100%;box-sizing:border-box;padding:20px 22px;display:flex;flex-direction:column;justify-content:space-between;color:#fff;font:600 14px/1.2 system-ui,sans-serif;background:linear-gradient(135deg,#ff8a5c,#b48cff 50%,#4b7bff)">
    <span>Kestrel · Debit</span>
    <span style="font-size:30px;letter-spacing:-.03em">$12,480.50</span>
    <span style="font-size:16px;letter-spacing:.06em">5412 7534 0021 9015</span>
  </div>
</frost-card>
3. React + TypeScript (optional)

The shadcn command adds a typed React wrapper for you. Using the file directly? Custom elements work in React as-is; for type checking add:

TypeScript
// frost-card.d.ts
declare namespace JSX {
  interface IntrinsicElements {
    'frost-card': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & {
      width?: number | string;
      ratio?: number | string;
      brush?: number | string;
      regrow?: number | string;
      blur?: number | string;
      radius?: number | string;
      hint?: string;
      theme?: 'light' | 'dark';
    };
  }
}

Pro · React + TypeScript Pro

One payment of $4.99, yours forever. Use it in unlimited personal and commercial projects; no resale.

  • React component with TypeScript types and a ref-free API
  • Mist and Smoke frosts, plus custom frost objects (tint, sheen, grain colour)
  • The vanilla Web Component with every frost, a demo page, README and license

Attributes & props

NameTypeDefaultDescription
sound booleanoffPlays a short synthesised frost scrape (and a tap of vibration on phones) when used. Also on for everything inside an element with data-ui-sound="on".
width number (px)360Card width; the height follows the ratio.
ratio number1.586Width / height. 1.586 is a bank card.
brush number (px)46Radius of the clear patch the pointer leaves.
regrow number (s)4How long a cleared patch takes to frost over. 0 keeps it clear.
blur number (px)12How thick the frost is.
radius number (px)22Corner radius.
hint string'Wipe to reveal'Line shown until the first touch. Empty hides it.
theme 'light' | 'dark''light'Shadow colour for light or dark pages.
tint Pro'ice' | 'mist' | 'smoke''ice'Frost colour. Free build ships Ice only.

The frost is a real blur of your content, so whatever you put inside shows through as colour and shape, never as readable text. The clear trail is a small mask that the pointer erases and time fills back in, grain first, so it closes up like ice rather than fading. Keyboard users get the content by focusing the card (it frosts again on blur); with touch, wipe sideways — vertical swipes still scroll the page. Screen readers read the content as normal: the frost is visual, not a lock, so don't rely on it to protect a secret.

More components