Free CSS template · Electronics store

iPhone Store

A minimal electronics storefront in the Apple mold: lots of air, one product in focus.

A modern 2026 rebuild of a long-running CSS Crème template: responsive, accessible, and framework-free. Preview it below, then download it or copy the code.

Download iPhone Store (index.html) One file, 6.3 KB, no dependencies

iphonestore.example.com

This is the starter file below, running. Not a screenshot, and not a mockup of a layout you would have to build yourself: what you see is what the copy button hands you.

Design tokens

bg#F5F5F7
surface#FFFFFF
primary#0A84FF
accent#111114
muted#6B6B73
text#111114

Type Inter · browse palettes →

Install the theme

Building with shadcn/ui? This template's color system is published as a real theme — light and dark, OKLCH tokens, contrast checked. One command drops it into your project.

npx shadcn@latest add https://csscreme.com/r/t/iphone_store.json
globals.css — CSS variables
:root {
  --background: oklch(97.1% 0.003 286.4);
  --foreground: oklch(17.9% 0.006 285.8);
  --card: oklch(100.0% 0.000 89.9);
  --card-foreground: oklch(17.9% 0.006 285.8);
  --popover: oklch(100.0% 0.000 89.9);
  --popover-foreground: oklch(17.9% 0.006 285.8);
  --primary: oklch(62.4% 0.206 255.5);
  --primary-foreground: oklch(15.2% 0.009 285.3);
  --secondary: oklch(99.1% 0.000 89.9);
  --secondary-foreground: oklch(17.9% 0.006 285.8);
  --muted: oklch(99.1% 0.000 89.9);
  --muted-foreground: oklch(53.1% 0.012 286.0);
  --accent: oklch(17.9% 0.006 285.8);
  --accent-foreground: oklch(100.0% 0.000 89.9);
  --destructive: oklch(62.6% 0.193 23.0);
  --destructive-foreground: oklch(15.2% 0.009 285.3);
  --border: oklch(82.5% 0.006 286.3);
  --input: oklch(82.5% 0.006 286.3);
  --ring: oklch(62.4% 0.206 255.5);
  --chart-1: oklch(62.4% 0.206 255.5);
  --chart-2: oklch(17.9% 0.006 285.8);
  --chart-3: oklch(46.9% 0.302 270.6);
  --chart-4: oklch(89.4% 0.167 175.7);
  --chart-5: oklch(41.3% 0.120 253.8);
  --sidebar: oklch(98.5% 0.001 286.4);
  --sidebar-foreground: oklch(17.9% 0.006 285.8);
  --sidebar-primary: oklch(62.4% 0.206 255.5);
  --sidebar-primary-foreground: oklch(15.2% 0.009 285.3);
  --sidebar-accent: oklch(99.1% 0.000 89.9);
  --sidebar-accent-foreground: oklch(17.9% 0.006 285.8);
  --sidebar-border: oklch(82.5% 0.006 286.3);
  --sidebar-ring: oklch(62.4% 0.206 255.5);
  --radius: 12px;
  --shadow-2xs: 0 1px 2px 0px rgb(17 17 20 / 0.05);
  --shadow-xs: 0 1px 3px 0px rgb(17 17 20 / 0.06);
  --shadow-sm: 0 1px 3px 0px rgb(17 17 20 / 0.08), 0 1px 2px -1px rgb(17 17 20 / 0.08);
  --shadow-md: 0 4px 6px -1px rgb(17 17 20 / 0.09), 0 2px 4px -2px rgb(17 17 20 / 0.09);
  --shadow-lg: 0 10px 15px -3px rgb(17 17 20 / 0.1), 0 4px 6px -4px rgb(17 17 20 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(17 17 20 / 0.12), 0 8px 10px -6px rgb(17 17 20 / 0.12);
  --shadow-2xl: 0 25px 50px -12px rgb(17 17 20 / 0.22);
}

.dark {
  --background: oklch(18.3% 0.004 286.0);
  --foreground: oklch(96.4% 0.001 286.4);
  --card: oklch(25.2% 0.000 89.9);
  --card-foreground: oklch(96.4% 0.001 286.4);
  --popover: oklch(25.2% 0.000 89.9);
  --popover-foreground: oklch(96.4% 0.001 286.4);
  --primary: oklch(62.4% 0.206 255.5);
  --primary-foreground: oklch(15.2% 0.009 285.3);
  --secondary: oklch(22.7% 0.002 286.2);
  --secondary-foreground: oklch(96.4% 0.001 286.4);
  --muted: oklch(22.7% 0.002 286.2);
  --muted-foreground: oklch(70.6% 0.003 286.3);
  --accent: oklch(17.9% 0.006 285.8);
  --accent-foreground: oklch(100.0% 0.000 89.9);
  --destructive: oklch(62.6% 0.193 23.0);
  --destructive-foreground: oklch(15.2% 0.009 285.3);
  --border: oklch(34.9% 0.003 286.2);
  --input: oklch(34.9% 0.003 286.2);
  --ring: oklch(62.4% 0.206 255.5);
  --chart-1: oklch(62.4% 0.206 255.5);
  --chart-2: oklch(17.9% 0.006 285.8);
  --chart-3: oklch(46.9% 0.302 270.6);
  --chart-4: oklch(89.4% 0.167 175.7);
  --chart-5: oklch(41.3% 0.120 253.8);
  --sidebar: oklch(21.8% 0.002 286.2);
  --sidebar-foreground: oklch(96.4% 0.001 286.4);
  --sidebar-primary: oklch(62.4% 0.206 255.5);
  --sidebar-primary-foreground: oklch(15.2% 0.009 285.3);
  --sidebar-accent: oklch(22.7% 0.002 286.2);
  --sidebar-accent-foreground: oklch(96.4% 0.001 286.4);
  --sidebar-border: oklch(34.9% 0.003 286.2);
  --sidebar-ring: oklch(62.4% 0.206 255.5);
  --shadow-2xs: 0 1px 2px 0px rgb(243 243 244 / 0.16);
  --shadow-xs: 0 1px 3px 0px rgb(243 243 244 / 0.18);
  --shadow-sm: 0 1px 3px 0px rgb(243 243 244 / 0.22), 0 1px 2px -1px rgb(243 243 244 / 0.22);
  --shadow-md: 0 4px 6px -1px rgb(243 243 244 / 0.26), 0 2px 4px -2px rgb(243 243 244 / 0.26);
  --shadow-lg: 0 10px 15px -3px rgb(243 243 244 / 0.3), 0 4px 6px -4px rgb(243 243 244 / 0.3);
  --shadow-xl: 0 20px 25px -5px rgb(243 243 244 / 0.34), 0 8px 10px -6px rgb(243 243 244 / 0.34);
  --shadow-2xl: 0 25px 50px -12px rgb(243 243 244 / 0.45);
}

Grab the starter

A complete, responsive single-file page themed to this template. Copy it into an index.html and open it. That's the whole setup.

index.htmlDownload
<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>iPhone Store</title>
  <meta name="description" content="A minimal electronics storefront in the Apple mold: lots of air, one product in focus.">
  <style>
:root {
  --bg: #F5F5F7;
  --surface: #FFFFFF;
  --primary: #0A84FF;
  --accent: #111114;
  --text: #111114;
  --muted: #6B6B73;
  --line: color-mix(in srgb, var(--text) 14%, transparent);
  --radius: 14px;
  --measure: 60ch;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.65 Inter, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { width: 100%; max-width: 1100px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }

/* Header */
.site-head { display: flex; align-items: center; gap: 24px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; font-size: 1.05rem; }
.brand span { display: block; width: 26px; height: 26px; border-radius: 8px; background: var(--primary); }
.nav { display: flex; gap: 20px; margin-left: auto; font-size: .95rem; color: var(--muted); }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--text); }
@media (max-width: 640px) { .nav { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px;
  padding: 12px 22px; border-radius: var(--radius); background: var(--primary); color: var(--bg);
  text-decoration: none; font-weight: 700; border: 1px solid transparent; cursor: pointer; }
.btn:hover { background: var(--accent); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Type */
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); line-height: 1.04; letter-spacing: -.03em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 8px; text-wrap: balance; }
h3 { font-size: 1.1rem; margin: 0 0 6px; letter-spacing: -.01em; }
p { margin: 14px 0 0; color: var(--muted); max-width: var(--measure); }
.eyebrow { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .72rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--primary); margin: 0; }
.lead { font-size: 1.12rem; }

/* Sections */
section { padding-block: clamp(48px, 8vw, 88px); }
.sec-head { margin-bottom: 32px; }

/* Cards */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card p { margin-top: 8px; font-size: .95rem; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding-block: 28px; display: flex; flex-wrap: wrap;
  gap: 12px 24px; align-items: center; color: var(--muted); font-size: .9rem; }
.site-foot .nav { margin-left: auto; }
@media (max-width: 640px) { .site-foot .nav { display: flex; margin-left: 0; } }

/* Shop */
.products { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.product { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.product .shot { aspect-ratio: 4 / 3; background: linear-gradient(135deg,
  color-mix(in srgb, var(--primary) 30%, var(--surface)),
  color-mix(in srgb, var(--accent) 30%, var(--surface))); }
.product .meta { padding: 14px 16px; display: flex; align-items: baseline; gap: 10px; }
.product .meta b { font-size: .98rem; }
.product .price { margin-left: auto; font-weight: 700; color: var(--primary); }
  </style>
</head>
<body>
  <header class="site-head wrap">
    <a class="brand" href="#"><span></span>iPhone Store</a>
    <nav class="nav">
      <a href="#work">Work</a>
      <a href="#about">About</a>
      <a href="#contact">Contact</a>
    </nav>
    <a class="btn" href="#contact">Get in touch</a>
  </header>
  <main>
    <section class="wrap">
      <p class="eyebrow">New season</p>
      <h1>iPhone Store</h1>
      <p class="lead">A minimal electronics storefront in the Apple mold: lots of air, one product in focus.</p>
      <div class="btn-row"><a class="btn" href="#work">Shop everything</a><a class="btn btn-ghost" href="#about">Our story</a></div>
    </section>
    <section class="wrap" id="work">
      <div class="sec-head"><h2>This week</h2><p>Four pieces, restocked on Thursday.</p></div>
      <div class="products">
        <article class="product">
          <div class="shot"></div>
          <div class="meta"><b>Everyday tote</b><span class="price">&pound;48</span></div>
        </article>
        <article class="product">
          <div class="shot"></div>
          <div class="meta"><b>Linen shirt</b><span class="price">&pound;72</span></div>
        </article>
        <article class="product">
          <div class="shot"></div>
          <div class="meta"><b>Field cap</b><span class="price">&pound;26</span></div>
        </article>
        <article class="product">
          <div class="shot"></div>
          <div class="meta"><b>Wool scarf</b><span class="price">&pound;39</span></div>
        </article>
      </div>
    </section>
    <section class="wrap" id="about">
      <div class="sec-head"><h2>Why people come back</h2></div>
      <div class="grid">
        <div class="card"><h3>Made in small runs</h3><p>Nothing is ordered by the container. When a colour sells out it usually stays out.</p></div>
        <div class="card"><h3>Free returns for 30 days</h3><p>Send it back in the bag it arrived in. No forms, no restocking fee.</p></div>
        <div class="card"><h3>Repairs, not replacements</h3><p>Send a worn piece back and we will fix it once, free, for as long as we stock the parts.</p></div>
      </div>
    </section>
  </main>
  <footer class="site-foot wrap">
    <span>&copy; 2026 iPhone Store. Built on a free CSS Cr&egrave;me template.</span>
    <nav class="nav">
      <a href="#">Privacy</a>
      <a href="#">Terms</a>
    </nav>
  </footer>
</body>
</html>
You receive
One file, 6.3 KB, 136 lines
Dependencies
None. No build step, no framework, no fonts to host
Sign-up
None. Nothing to create, nothing to verify
Licence
Personal and commercial use. Not for redistribution or resale as a competing collection. Full terms

About the iPhone Store template

iPhone Store began as one of CSS Crème's most-linked free templates. We rebuilt it from scratch for 2026: modern, responsive CSS with no framework to untangle, custom properties for every color so a rebrand takes minutes, and markup that stays readable months later.

What you actually get. One self-contained HTML file: the page above, its stylesheet inlined, no build step, no dependencies and nothing to install. Header, hero, the sections you can see, and a footer, laid out responsively down to a phone. Every colour is one of six custom properties, so a rebrand is one block of CSS. The preview is that file running in a frame on this page, not a picture of it and not a mockup of a layout you would have to build yourself. Copy it and you have what you see.

Want to push it further? Pull a different palette, round the corners in the border-radius tool, or see the system decoded in a breakdown.

More shop templates: Electronix, Book Store, Musical Instruments.

Built a free HTML and CSS template?

Submit yours

Submit it for consideration. We review templates for design quality, responsiveness, and clear licensing.

Attribution to the creator is welcome, and linking to CSS Crème is optional.