Free CSS template · Gallery

Photo Gallery Blue

A cool-blue photo gallery with a calm, twilight mood.

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 Photo Gallery Blue (index.html) One file, 5.8 KB, no dependencies

photogalleryblue.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#0A1622
surface#122236
primary#38BDF8
accent#818CF8
muted#8198B0
text#E8F1FB

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/photo_gallery_blue.json
globals.css — CSS variables
:root {
  --background: oklch(98.8% 0.001 286.4);
  --foreground: oklch(25.7% 0.022 254.2);
  --card: oklch(97.3% 0.002 247.8);
  --card-foreground: oklch(25.7% 0.022 254.2);
  --popover: oklch(97.3% 0.002 247.8);
  --popover-foreground: oklch(25.7% 0.022 254.2);
  --primary: oklch(75.4% 0.139 232.7);
  --primary-foreground: oklch(15.2% 0.009 285.3);
  --secondary: oklch(97.9% 0.002 247.8);
  --secondary-foreground: oklch(25.7% 0.022 254.2);
  --muted: oklch(97.9% 0.002 247.8);
  --muted-foreground: oklch(53.8% 0.016 248.1);
  --accent: oklch(68.0% 0.158 276.9);
  --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.8% 0.005 247.9);
  --input: oklch(83.8% 0.005 247.9);
  --ring: oklch(75.4% 0.139 232.7);
  --chart-1: oklch(75.4% 0.139 232.7);
  --chart-2: oklch(68.0% 0.158 276.9);
  --chart-3: oklch(50.4% 0.266 270.6);
  --chart-4: oklch(87.2% 0.176 163.1);
  --chart-5: oklch(71.1% 0.142 253.3);
  --sidebar: oklch(98.2% 0.002 247.8);
  --sidebar-foreground: oklch(25.7% 0.022 254.2);
  --sidebar-primary: oklch(75.4% 0.139 232.7);
  --sidebar-primary-foreground: oklch(15.2% 0.009 285.3);
  --sidebar-accent: oklch(97.9% 0.002 247.8);
  --sidebar-accent-foreground: oklch(25.7% 0.022 254.2);
  --sidebar-border: oklch(83.8% 0.005 247.9);
  --sidebar-ring: oklch(75.4% 0.139 232.7);
  --radius: 12px;
  --shadow-2xs: 0 1px 2px 0px rgb(28 36 46 / 0.05);
  --shadow-xs: 0 1px 3px 0px rgb(28 36 46 / 0.06);
  --shadow-sm: 0 1px 3px 0px rgb(28 36 46 / 0.08), 0 1px 2px -1px rgb(28 36 46 / 0.08);
  --shadow-md: 0 4px 6px -1px rgb(28 36 46 / 0.09), 0 2px 4px -2px rgb(28 36 46 / 0.09);
  --shadow-lg: 0 10px 15px -3px rgb(28 36 46 / 0.1), 0 4px 6px -4px rgb(28 36 46 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(28 36 46 / 0.12), 0 8px 10px -6px rgb(28 36 46 / 0.12);
  --shadow-2xl: 0 25px 50px -12px rgb(28 36 46 / 0.22);
}

.dark {
  --background: oklch(19.6% 0.030 249.6);
  --foreground: oklch(95.4% 0.017 250.8);
  --card: oklch(24.9% 0.044 254.7);
  --card-foreground: oklch(95.4% 0.017 250.8);
  --popover: oklch(24.9% 0.044 254.7);
  --popover-foreground: oklch(95.4% 0.017 250.8);
  --primary: oklch(75.4% 0.139 232.7);
  --primary-foreground: oklch(15.2% 0.009 285.3);
  --secondary: oklch(23.1% 0.039 252.6);
  --secondary-foreground: oklch(95.4% 0.017 250.8);
  --muted: oklch(23.1% 0.039 252.6);
  --muted-foreground: oklch(67.0% 0.044 249.6);
  --accent: oklch(68.0% 0.158 276.9);
  --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(34.2% 0.034 250.5);
  --input: oklch(34.2% 0.034 250.5);
  --ring: oklch(75.4% 0.139 232.7);
  --chart-1: oklch(75.4% 0.139 232.7);
  --chart-2: oklch(68.0% 0.158 276.9);
  --chart-3: oklch(50.4% 0.266 270.6);
  --chart-4: oklch(87.2% 0.176 163.1);
  --chart-5: oklch(71.1% 0.142 253.3);
  --sidebar: oklch(22.3% 0.037 252.7);
  --sidebar-foreground: oklch(95.4% 0.017 250.8);
  --sidebar-primary: oklch(75.4% 0.139 232.7);
  --sidebar-primary-foreground: oklch(15.2% 0.009 285.3);
  --sidebar-accent: oklch(23.1% 0.039 252.6);
  --sidebar-accent-foreground: oklch(95.4% 0.017 250.8);
  --sidebar-border: oklch(34.2% 0.034 250.5);
  --sidebar-ring: oklch(75.4% 0.139 232.7);
  --shadow-2xs: 0 1px 2px 0px rgb(232 241 251 / 0.16);
  --shadow-xs: 0 1px 3px 0px rgb(232 241 251 / 0.18);
  --shadow-sm: 0 1px 3px 0px rgb(232 241 251 / 0.22), 0 1px 2px -1px rgb(232 241 251 / 0.22);
  --shadow-md: 0 4px 6px -1px rgb(232 241 251 / 0.26), 0 2px 4px -2px rgb(232 241 251 / 0.26);
  --shadow-lg: 0 10px 15px -3px rgb(232 241 251 / 0.3), 0 4px 6px -4px rgb(232 241 251 / 0.3);
  --shadow-xl: 0 20px 25px -5px rgb(232 241 251 / 0.34), 0 8px 10px -6px rgb(232 241 251 / 0.34);
  --shadow-2xl: 0 25px 50px -12px rgb(232 241 251 / 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>Photo Gallery Blue</title>
  <meta name="description" content="A cool-blue photo gallery with a calm, twilight mood.">
  <style>
:root {
  --bg: #0A1622;
  --surface: #122236;
  --primary: #38BDF8;
  --accent: #818CF8;
  --text: #E8F1FB;
  --muted: #8198B0;
  --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; } }

/* Gallery */
.tiles { columns: 3 220px; column-gap: 14px; }
.tile { break-inside: avoid; margin-bottom: 14px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface); }
.tile .shot { background: linear-gradient(135deg,
  color-mix(in srgb, var(--primary) 34%, var(--surface)),
  color-mix(in srgb, var(--accent) 34%, var(--surface))); }
.tile figcaption { padding: 10px 14px; font-size: .88rem; color: var(--muted); }
  </style>
</head>
<body>
  <header class="site-head wrap">
    <a class="brand" href="#"><span></span>Photo Gallery Blue</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">Selected work</p>
      <h1>Photo Gallery Blue</h1>
      <p class="lead">A cool-blue photo gallery with a calm, twilight mood.</p>
    </section>
    <section class="wrap" id="work">
      <div class="tiles">
        <figure class="tile"><div class="shot" style="height:200px"></div><figcaption>Harbour, early</figcaption></figure>
        <figure class="tile"><div class="shot" style="height:140px"></div><figcaption>Studio floor</figcaption></figure>
        <figure class="tile"><div class="shot" style="height:240px"></div><figcaption>The long room</figcaption></figure>
        <figure class="tile"><div class="shot" style="height:170px"></div><figcaption>Print test, second pass</figcaption></figure>
        <figure class="tile"><div class="shot" style="height:130px"></div><figcaption>Offcuts</figcaption></figure>
        <figure class="tile"><div class="shot" style="height:210px"></div><figcaption>North light</figcaption></figure>
      </div>
    </section>
    <section class="wrap" id="about">
      <div class="sec-head"><h2>About the work</h2><p>A short note on how it is made, and what it is for.</p></div>
      <div class="grid">
        <div class="card"><h3>Shot on film</h3><p>Scanned flat, graded once, never composited.</p></div>
        <div class="card"><h3>Printed to order</h3><p>Each print is made when it is bought, then signed.</p></div>
        <div class="card"><h3>Commissions open</h3><p>Two slots a month, usually booked a season ahead.</p></div>
      </div>
    </section>
  </main>
  <footer class="site-foot wrap">
    <span>&copy; 2026 Photo Gallery Blue. 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, 5.8 KB, 123 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 Photo Gallery Blue template

Photo Gallery Blue 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 gallery templates: Photo Gallery Green, Photo Gallery, Photo Gallery Black.

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.