Free CSS template · Electronics store
Electronix
A dark, high-contrast storefront for gadgets and gear, with a product grid that keeps specs scannable.
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.
You followed an old download link for Electronix. The original ZIP is retired; this is the same template rebuilt in modern HTML and CSS, and the button below downloads the whole page as one file.
Download Electronix (index.html) One file, 6.3 KB, no dependencies
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
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/electronix.json :root {
--background: oklch(98.8% 0.001 286.4);
--foreground: oklch(24.2% 0.038 268.1);
--card: oklch(97.1% 0.003 286.4);
--card-foreground: oklch(24.2% 0.038 268.1);
--popover: oklch(97.1% 0.003 286.4);
--popover-foreground: oklch(24.2% 0.038 268.1);
--primary: oklch(51.1% 0.230 277.0);
--primary-foreground: oklch(100.0% 0.000 89.9);
--secondary: oklch(97.7% 0.003 286.4);
--secondary-foreground: oklch(24.2% 0.038 268.1);
--muted: oklch(97.7% 0.003 286.4);
--muted-foreground: oklch(52.8% 0.021 268.9);
--accent: oklch(79.7% 0.134 211.5);
--accent-foreground: oklch(15.2% 0.009 285.3);
--destructive: oklch(62.6% 0.193 23.0);
--destructive-foreground: oklch(15.2% 0.009 285.3);
--border: oklch(83.6% 0.007 268.5);
--input: oklch(83.6% 0.007 268.5);
--ring: oklch(51.1% 0.230 277.0);
--chart-1: oklch(51.1% 0.230 277.0);
--chart-2: oklch(79.7% 0.134 211.5);
--chart-3: oklch(61.8% 0.238 315.0);
--chart-4: oklch(69.8% 0.128 240.4);
--chart-5: oklch(63.8% 0.161 253.6);
--sidebar: oklch(98.0% 0.003 286.4);
--sidebar-foreground: oklch(24.2% 0.038 268.1);
--sidebar-primary: oklch(51.1% 0.230 277.0);
--sidebar-primary-foreground: oklch(100.0% 0.000 89.9);
--sidebar-accent: oklch(97.7% 0.003 286.4);
--sidebar-accent-foreground: oklch(24.2% 0.038 268.1);
--sidebar-border: oklch(83.6% 0.007 268.5);
--sidebar-ring: oklch(51.1% 0.230 277.0);
--radius: 12px;
--shadow-2xs: 0 1px 2px 0px rgb(24 31 50 / 0.05);
--shadow-xs: 0 1px 3px 0px rgb(24 31 50 / 0.06);
--shadow-sm: 0 1px 3px 0px rgb(24 31 50 / 0.08), 0 1px 2px -1px rgb(24 31 50 / 0.08);
--shadow-md: 0 4px 6px -1px rgb(24 31 50 / 0.09), 0 2px 4px -2px rgb(24 31 50 / 0.09);
--shadow-lg: 0 10px 15px -3px rgb(24 31 50 / 0.1), 0 4px 6px -4px rgb(24 31 50 / 0.1);
--shadow-xl: 0 20px 25px -5px rgb(24 31 50 / 0.12), 0 8px 10px -6px rgb(24 31 50 / 0.12);
--shadow-2xl: 0 25px 50px -12px rgb(24 31 50 / 0.22);
}
.dark {
--background: oklch(18.6% 0.029 271.2);
--foreground: oklch(95.5% 0.021 268.4);
--card: oklch(25.0% 0.051 269.6);
--card-foreground: oklch(95.5% 0.021 268.4);
--popover: oklch(25.0% 0.051 269.6);
--popover-foreground: oklch(95.5% 0.021 268.4);
--primary: oklch(51.1% 0.230 277.0);
--primary-foreground: oklch(100.0% 0.000 89.9);
--secondary: oklch(22.8% 0.044 271.1);
--secondary-foreground: oklch(95.5% 0.021 268.4);
--muted: oklch(22.8% 0.044 271.1);
--muted-foreground: oklch(70.7% 0.049 267.7);
--accent: oklch(79.7% 0.134 211.5);
--accent-foreground: oklch(15.2% 0.009 285.3);
--destructive: oklch(62.6% 0.193 23.0);
--destructive-foreground: oklch(15.2% 0.009 285.3);
--border: oklch(35.0% 0.035 268.9);
--input: oklch(35.0% 0.035 268.9);
--ring: oklch(51.1% 0.230 277.0);
--chart-1: oklch(51.1% 0.230 277.0);
--chart-2: oklch(79.7% 0.134 211.5);
--chart-3: oklch(61.8% 0.238 315.0);
--chart-4: oklch(69.8% 0.128 240.4);
--chart-5: oklch(63.8% 0.161 253.6);
--sidebar: oklch(21.9% 0.040 270.2);
--sidebar-foreground: oklch(95.5% 0.021 268.4);
--sidebar-primary: oklch(51.1% 0.230 277.0);
--sidebar-primary-foreground: oklch(100.0% 0.000 89.9);
--sidebar-accent: oklch(22.8% 0.044 271.1);
--sidebar-accent-foreground: oklch(95.5% 0.021 268.4);
--sidebar-border: oklch(35.0% 0.035 268.9);
--sidebar-ring: oklch(51.1% 0.230 277.0);
--shadow-2xs: 0 1px 2px 0px rgb(234 240 255 / 0.16);
--shadow-xs: 0 1px 3px 0px rgb(234 240 255 / 0.18);
--shadow-sm: 0 1px 3px 0px rgb(234 240 255 / 0.22), 0 1px 2px -1px rgb(234 240 255 / 0.22);
--shadow-md: 0 4px 6px -1px rgb(234 240 255 / 0.26), 0 2px 4px -2px rgb(234 240 255 / 0.26);
--shadow-lg: 0 10px 15px -3px rgb(234 240 255 / 0.3), 0 4px 6px -4px rgb(234 240 255 / 0.3);
--shadow-xl: 0 20px 25px -5px rgb(234 240 255 / 0.34), 0 8px 10px -6px rgb(234 240 255 / 0.34);
--shadow-2xl: 0 25px 50px -12px rgb(234 240 255 / 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.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Electronix</title>
<meta name="description" content="A dark, high-contrast storefront for gadgets and gear, with a product grid that keeps specs scannable.">
<style>
:root {
--bg: #0E1220;
--surface: #18203A;
--primary: #4F46E5;
--accent: #22D3EE;
--text: #EAF0FF;
--muted: #93A0C0;
--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>Electronix</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>Electronix</h1>
<p class="lead">A dark, high-contrast storefront for gadgets and gear, with a product grid that keeps specs scannable.</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">£48</span></div>
</article>
<article class="product">
<div class="shot"></div>
<div class="meta"><b>Linen shirt</b><span class="price">£72</span></div>
</article>
<article class="product">
<div class="shot"></div>
<div class="meta"><b>Field cap</b><span class="price">£26</span></div>
</article>
<article class="product">
<div class="shot"></div>
<div class="meta"><b>Wool scarf</b><span class="price">£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>© 2026 Electronix. Built on a free CSS Crè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 Electronix template
Electronix 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: Book Store, Musical Instruments, Lingerie Store.
Built a free HTML and CSS template?
Submit yoursSubmit 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.