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 copy the starter.
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);
--radius: 12px;
}
.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);
} 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>
<style>
:root {
--bg: #0E1220; --surface: #18203A; --primary: #4F46E5;
--accent: #22D3EE; --text: #EAF0FF; --muted: #93A0C0;
}
* { box-sizing: border-box; margin: 0; }
body { font: 16px/1.6 Inter, system-ui, sans-serif; background: var(--bg); color: var(--text); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 80px 24px; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.05; letter-spacing: -.02em; }
p { margin: 18px 0 0; color: var(--muted); font-size: 1.15rem; max-width: 52ch; }
.btn { display: inline-block; margin-top: 28px; padding: 13px 26px; border-radius: 12px;
background: var(--primary); color: #fff; text-decoration: none; font-weight: 600; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.card { background: var(--surface); border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
border-radius: 16px; padding: 24px; }
</style>
</head>
<body>
<main class="wrap">
<h1>Electronix</h1>
<p>A dark, high-contrast storefront for gadgets and gear, with a product grid that keeps specs scannable.</p>
<a class="btn" href="#">Get started</a>
<div class="grid">
<div class="card">One</div><div class="card">Two</div><div class="card">Three</div>
</div>
</main>
</body>
</html> 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. The preview above is the real layout; the starter is the real code.
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.