18 CSS Product Cards15 / 18

Pure CSSMIT licensed

Digital-Download Product Card

A clean card for software, e-books and templates: a file-type glyph, rating stars, file meta (format, size) and a prominent download button with a subtle download-arrow micro-animation. The digital-goods layout template and SaaS sellers search for.

Published

Live Demo
Try it

The code

<article class="cpc-15">
  <div class="cpc-15__card">
    <div class="cpc-15__badge" aria-hidden="true">.ZIP</div>
    <div class="cpc-15__body">
      <h3 class="cpc-15__name">Nimbus UI Kit — 240 Components</h3>
      <p class="cpc-15__rating" aria-label="Rated 4.9 out of 5 from 860 reviews"><span aria-hidden="true">★★★★★</span> 4.9 · 860 reviews</p>
      <ul class="cpc-15__meta"><li>Figma + Sketch</li><li>48&nbsp;MB</li><li>v3.2</li></ul>
      <div class="cpc-15__foot">
        <p class="cpc-15__price">$39</p>
        <a class="cpc-15__dl" href="#" download>
          <span class="cpc-15__arw" aria-hidden="true">↓</span> Download
        </a>
      </div>
    </div>
  </div>
</article>
.cpc-15,
.cpc-15 *,
.cpc-15 *::before,
.cpc-15 *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.cpc-15 ::selection {
  background: oklch(0.6 0.15 285);
  color: #fff;
}

.cpc-15 {
  --accent: oklch(0.52 0.16 285);
  font-family: 'Segoe UI',system-ui,sans-serif;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  background: #f2f1f7;
}

.cpc-15__card {
  width: 320px;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 16px 40px -22px rgba(30,20,60,.4);
}

.cpc-15__badge {
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 800 40px/1 ui-monospace,Menlo,monospace;
  letter-spacing: .06em;
  color: #fff;
  background: linear-gradient(135deg,oklch(0.6 0.16 285),oklch(0.55 0.17 255));
  text-shadow: 0 2px 12px rgba(0,0,0,.25);
}

.cpc-15__body {
  padding: 20px 22px 22px;
}

.cpc-15__name {
  font-size: 18px;
  font-weight: 600;
  color: #1a1330;
  line-height: 1.35;
}

.cpc-15__rating {
  margin-top: 10px;
  font-size: 13px;
  color: #6b6480;
}

.cpc-15__rating span {
  color: oklch(0.78 0.15 80);
  letter-spacing: .05em;
}

.cpc-15__meta {
  list-style: none;
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cpc-15__meta li {
  padding: 5px 10px;
  border-radius: 8px;
  background: #f2f0f8;
  color: #544c6e;
  font-size: 12px;
  font-weight: 500;
}

.cpc-15__foot {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cpc-15__price {
  font-size: 22px;
  font-weight: 800;
  color: #1a1330;
}

.cpc-15__dl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 12px;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 24px -12px var(--accent);
}

.cpc-15__dl:hover {
  background: color-mix(in oklch,var(--accent) 88%,#000);
}

.cpc-15__dl:focus-visible {
  outline: 3px solid color-mix(in oklch,var(--accent) 45%,#fff);
  outline-offset: 2px;
}

.cpc-15__arw {
  display: inline-block;
  transition: transform .3s;
}

.cpc-15__dl:hover .cpc-15__arw {
  transform: translateY(3px);
}

@media (prefers-reduced-motion: reduce) {
  .cpc-15__arw {
    transition: none;
  }
}
/* No JavaScript — a file badge, star rating and a download-arrow micro-animation. */
Paste this into ChatGPT, Claude, Cursor, or any coding assistant. The block below is pre-framed with everything the AI needs to integrate this demo into your project — markup, styles, scoping notes, and the source URL. Hit Copy and paste straight into your chat.
Here's a working CSS Product Card from CodeFronts. Use it as-is or adapt to your framework. All classes are scoped under a unique prefix so the code won't collide with your existing styles. MIT licensed.
Demo: Digital-Download Product Card
Source: https://codefronts.com/components/css-product-cards/digital-download-product-card/

A clean card for software, e-books and templates: a file-type glyph, rating stars, file meta (format, size) and a prominent download button with a subtle download-arrow micro-animation. The digital-goods layout template and SaaS sellers search for.
## HTML
```html
<article class="cpc-15">
  <div class="cpc-15__card">
    <div class="cpc-15__badge" aria-hidden="true">.ZIP</div>
    <div class="cpc-15__body">
      <h3 class="cpc-15__name">Nimbus UI Kit — 240 Components</h3>
      <p class="cpc-15__rating" aria-label="Rated 4.9 out of 5 from 860 reviews"><span aria-hidden="true">★★★★★</span> 4.9 · 860 reviews</p>
      <ul class="cpc-15__meta"><li>Figma + Sketch</li><li>48&nbsp;MB</li><li>v3.2</li></ul>
      <div class="cpc-15__foot">
        <p class="cpc-15__price">$39</p>
        <a class="cpc-15__dl" href="#" download>
          <span class="cpc-15__arw" aria-hidden="true">↓</span> Download
        </a>
      </div>
    </div>
  </div>
</article>
```
## CSS
```css
.cpc-15,
.cpc-15 *,
.cpc-15 *::before,
.cpc-15 *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.cpc-15 ::selection {
  background: oklch(0.6 0.15 285);
  color: #fff;
}

.cpc-15 {
  --accent: oklch(0.52 0.16 285);
  font-family: 'Segoe UI',system-ui,sans-serif;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  background: #f2f1f7;
}

.cpc-15__card {
  width: 320px;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 16px 40px -22px rgba(30,20,60,.4);
}

.cpc-15__badge {
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 800 40px/1 ui-monospace,Menlo,monospace;
  letter-spacing: .06em;
  color: #fff;
  background: linear-gradient(135deg,oklch(0.6 0.16 285),oklch(0.55 0.17 255));
  text-shadow: 0 2px 12px rgba(0,0,0,.25);
}

.cpc-15__body {
  padding: 20px 22px 22px;
}

.cpc-15__name {
  font-size: 18px;
  font-weight: 600;
  color: #1a1330;
  line-height: 1.35;
}

.cpc-15__rating {
  margin-top: 10px;
  font-size: 13px;
  color: #6b6480;
}

.cpc-15__rating span {
  color: oklch(0.78 0.15 80);
  letter-spacing: .05em;
}

.cpc-15__meta {
  list-style: none;
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cpc-15__meta li {
  padding: 5px 10px;
  border-radius: 8px;
  background: #f2f0f8;
  color: #544c6e;
  font-size: 12px;
  font-weight: 500;
}

.cpc-15__foot {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cpc-15__price {
  font-size: 22px;
  font-weight: 800;
  color: #1a1330;
}

.cpc-15__dl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 12px;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 24px -12px var(--accent);
}

.cpc-15__dl:hover {
  background: color-mix(in oklch,var(--accent) 88%,#000);
}

.cpc-15__dl:focus-visible {
  outline: 3px solid color-mix(in oklch,var(--accent) 45%,#fff);
  outline-offset: 2px;
}

.cpc-15__arw {
  display: inline-block;
  transition: transform .3s;
}

.cpc-15__dl:hover .cpc-15__arw {
  transform: translateY(3px);
}

@media (prefers-reduced-motion: reduce) {
  .cpc-15__arw {
    transition: none;
  }
}
```

## JavaScript
```js
/* No JavaScript — a file badge, star rating and a download-arrow micro-animation. */
```

How this works

Instead of a photo the media area shows a large file-type badge (e.g. .PDF / .ZIP) on a soft gradient — the convention for intangible goods. Below sit a title, a star rating line, and a compact meta row (format · size · version). The primary action is a full-width download button whose arrow nudges down on hover as a tiny affordance.

Everything is real text and real controls, so ratings and file details are readable by search engines and screen readers alike.

Make it yours

  • Swap the file badge label/colour per product type (PDF, ZIP, FIG, EPUB).
  • Show a secondary 'Preview' ghost button beside the download for gated demos.
  • Replace the star glyphs with a numeric rating + review count if space is tight.
  • Add a licence line (e.g. 'Personal · Extended') under the price.

Gotchas — read before shipping

  • The star rating must expose a text value (aria-label) — a row of glyphs alone isn't announced meaningfully.
  • A download button should be a real <a download> or <button> with a clear label, not an icon-only control.
  • Keep the file-type badge legible; it's carrying the 'what am I buying' job the photo usually does.

Browser support

ChromeSafariFirefoxEdge
111+16.2+113+111+

Floor set by oklch(), color-mix() as this demo is written. The core technique itself goes back further — Chrome 80+.

Gradient badge + transform micro-animation — universally supported.

Techniques used in this demo

Search CodeFronts

Loading…