052

Record Label Website Template

£29
or the whole Vault, £99

A seven-page record label site that opens on a drifting field of sleeves and night photographs you can drag, throw and pull a record from. Every release owns one flat colour, worn by its sleeve, its poster card and its whole page. Worked example: a dance label in Leith, Edinburgh.

Includes the original v1 design as a separate download.

FlipDraggableInertiaPlugin advanced
11 more details
draggablemomentumwrappointer-effectskeyboard-navigationflip-layouttouch-dragclick-toggleshared-elementcontainer-queriesprogressive-enhancement

About this template

Nightjar is a seven-page record label website template: home, the catalogue, a release, the roster, an artist, live dates and the label's story. There is no hero. The home page is a pale grey field of record sleeves and night photographs, much larger than the window, that drifts on its own, leans against the cursor and can be dragged and thrown. Click a sleeve and its record slides halfway out before the release page opens.

Read the full template overview

Colour belongs only to the records. Each release owns one flat colour, and its sleeve, its poster card on the home board and the whole of its release page wear it, so the catalogue reads as a run of colour against a neutral interface. Tall vertical tabs down the right edge are the navigation; on phones they become a sheet of colour blocks under a black menu bar.

Every page has something to handle: a crate of spines to flick through, filters on the full catalogue, 20-second clip previews you can drag through while the record turns, a loupe over the roster's contact sheet, a film strip of press shots, a wall of flyers to drag aside, and a torch over the empty club. The worked example is a fictional dance label in Leith with eight artists, twenty-two records and a monthly night; replace the copy, colours and photographs and it suits a club night, record shop, community radio station or small festival.

Record Label Template - website template preview

What's included

14 items
  • Seven plain pages (home, releases, release, artists, artist, live, about) sharing one stylesheet and one script, with a short cross-page fade and a sleeve-to-hero view transition for every record where browsers support them
  • One data list (assets/releases.js) drives a page for each of the 22 releases and 8 artists: release.html?r=NJR019 takes that record's colour before the first paint, with its own tracklist, credits and buy links
  • The night field: 32 sleeves and photographs in a wrapping field that drifts, pans against the cursor, drags and throws with momentum, and pulls a record halfway out on click
  • Keyboard field navigation: one sleeve in the tab order, arrow keys move to the nearest sleeve in that direction and glide the field to it
  • One house sleeve component in HTML and CSS: release colour, die-cut hole, catalogue number on the spine, artist and title in heavy caps, a photographed record behind it
  • Releases page with a crate of spines to hover, drag or arrow through, and a full catalogue filtered by format and year with Flip
  • Artists page with a contact sheet and a loupe that follows the pointer, or a press-and-drag loupe on touch screens
  • Release pages in each record's own colour; NJR022 has four 20-second clip previews with drag-to-scrub rows, a record that turns while a clip plays, and a sticky buy bar on every release
  • Live page with a wall of type-led flyers you drag aside, a filterable date list and a collapsible archive of past nights
  • Artist pages for all eight artists with a draggable film strip (press shots, or a portrait and their sleeves), discography and dates from the same list
  • About page with a torch over the empty club, a Lights up button, the story, the demo policy and contacts
  • Phone navigation: a black menu bar naming the current page opens four links on colour blocks; Escape, outside tap and focus return all work, and every page is reachable without JavaScript
  • Eight release colours as tokens with measured contrast, Arimo and Sometype Mono self-hosted
  • Reduced motion gives a still field, a tidy flyer grid and a fully lit about photo; without JavaScript every page is a complete document with native audio players

Perfect for

5 use cases
  • Independent record labels with a new release every month or two and a back catalogue to keep findable
  • Club nights, promoters and DJ collectives with residents, guests and a monthly date
  • Record shops presenting new arrivals and staff picks with links to their own checkout
  • Community radio stations and mix series, with shows as releases and presenters as artists
  • Small music festivals and venues with a line-up, flyers and an archive of past events

How it works

6 sections

The night field

The home page is a field of sleeves and photographs laid out once and repeated in every direction, so it never runs out. It drifts slowly on its own, leans away from the cursor, and can be dragged and thrown with momentum. On a phone a sideways swipe moves it and an upward swipe still scrolls the page, and a drag never opens a record by accident.

One list, a page per record

Every release, artist and date lives in one plain list. Open release.html with a catalogue number and the page takes that record's colour before anything is drawn, then fills in its sleeve, tracklist, credits and buy links; artist pages do the same in the colour of their newest record. Without JavaScript each page is a complete static example.

One sleeve, many sizes

The house sleeve is one piece of markup that scales with whatever holds it, so the same sleeve is a field item, a poster card object, a crate front, a release hero and a discography tile. Give a release a colour and a text colour, and its sleeve, spine, card and release page all follow.

Clip previews

Each track on the release page plays its own 20-second clip. The row fills as it plays, dragging sideways along a playing row moves through the clip, and the record on the hero turns until the music stops. A track with no clip shows no play button, and without JavaScript each row offers the browser's own audio player.

Something to handle on every page

The crate of spines, the contact sheet loupe, the press shot film strip with Draggable and InertiaPlugin, and the flyer wall each work by pointer, touch and keyboard, and each has a still, complete version for reduced motion. The catalogue filters reorder with Flip. Pages are ordinary page loads, so any page can be lifted into another site on its own.

Navigation

Four tall tabs down the right edge are the desktop navigation, each filling with a release colour on hover. On phones they become a sheet of colour blocks under a black menu bar that names the current page, closes on Escape or an outside tap, and hands focus back to the button.

Plugins Flip, Draggable, InertiaPlugin
Difficulty Advanced
Includes HTML + JS + CSS source, documentation, AI setup prompt, lifetime updates

Lighthouse, as measured

Google Lighthouse on this template's demo (7 pages, lowest score shown), from the latest scan. A measurement of the demo as shipped, not a promise for your page.

Accessibility
100
Best practices
100

No performance score, on purpose. That figure depends on how you deploy: your server's compression and caching, your CDN, the connection and the device doing the test, none of which the code controls. The same page can score very differently on two consecutive runs, so measure it where it will live.

Questions about this template

Is this only for a record label?

No. It suits any business whose output is a run of named, numbered things with dates: a club night or promoter, a record shop, a community radio station with a mix series, or a small festival. Rename the releases, artists and dates, swap the night photographs for your own, and give each item one of the eight colours or a new one.

How do I add a new release?

Add one entry to the list in assets/releases.js: catalogue number, artist, title, format, pressing details, colour and text colour, tracklist, credits and buy links. release.html?r= with that number then shows the record in its own colour, and its artist page lists it. Copy a sleeve into the home field and a row into the catalogue to link to it.

Do the clip previews play real audio?

Yes. The release page ships four 20-second CC0 electronic clips as placeholders, and each track row plays its own file with a seek bar you can drag. Replace the MP3 files with your own previews. Remove a file and its row simply shows no play button. Serve the site from a host with byte-range support (every real host has it) so clips can be scrubbed.

Does it take payments or ticket sales?

No. Pre-order, buy and ticket buttons are ordinary links: point them at Bandcamp, your own shop, Resident Advisor, Dice or whichever service you sell through. There is no basket or checkout in the template, so nothing is stored and no order is created.

Is the newsletter form connected to anything?

No, it is a static front end. It collects one email address and shows a thank-you line in the page, but sends nothing. Before launch, set its action to your mailing list provider's form endpoint, such as Buttondown, Mailchimp or a Formspree form, or replace it with your provider's embed.

Can I change how many items are in the night field?

Yes. Each item carries its position and width as custom properties, so you can add, move or delete sleeves and photographs freely. Keep items inside the 2400 by 1800 tile and leave some gaps between clusters, as the field reads best with honest empty ground. The latest release should sit in the first window so the opening frame shows it.

The Vault opens this source and the whole library.

Each product gives you the HTML, CSS and JavaScript source, the full documentation and an AI setup prompt, licensed for unlimited personal and commercial projects. Every paid product is tested for desktop and mobile layouts, reduced-motion handling, animation cleanup and keyboard controls wherever there is something to operate.

One payment, over 350 products, and future additions to the library.

Documentation

Quick Start

  1. Unzip and serve the folder with any static server (npx serve .), or open index.html directly.
  2. The pages are plain HTML files: index.html (Home), releases.html (the catalogue), release.html (one record), artists.html (the roster), artist.html (one artist), live.html (dates) and about.html (story, demos, contacts).
  3. All pages share assets/style.css and assets/script.js. There is no build step.
  4. Deploy the folder as it is to any static host. Clip scrubbing needs byte-range requests, which every real host supports; Python's http.server does not.

Using It With Your Own Design

  • Release colours: eight tokens at the top of assets/style.css (--sodium, --harbour, --signal, --moss, --lilac, --rose, --navy, --plum). In the markup, every release-coloured element carries style="--rel:<colour>;--rel-ink:<text colour>". Change those two values and the sleeve, spine, card or flyer follows. Keep text on each colour at 4.5:1 or better: the measured pairs are in the :root comment.
  • Ground and ink: --ground, --ground-2, --ink, --ink-2 and --paper. The interface has no colour of its own by design; everything saturated names a record.
  • Type: Arimo (everything from body text to the 150px release titles) and Sometype Mono (catalogue numbers, dates, times), self-hosted in assets/fonts/. Swap the files, the @font-face rules and --font-sans / --font-mono.
  • Releases and artists: one list, assets/releases.js, drives release.html?r=<catalogue number> and artist.html?a=<slug>. See The release list below.
  • Photographs: the night photographs in the field, the board, the pressing, the studio, the wall, the empty room and Leith, plus the artist portraits and press shots. See Images below.

Pages and Configuration

Page Sections Hands-on piece
Home The night field, the board of poster cards, newsletter Drag, throw and pull a record from the field
Releases Title, the crate, the whole catalogue Flick through the crate; filter by format and year
Release Title, sleeve and facts, tracklist, pressing, press text, studio, more from the artist, buy bar Clip previews with scrubbing; the record turns while one plays
Artists Title, the contact sheet, the roster The loupe
Artist Name and photo, biography, press shots, discography, dates, contacts The film strip of press shots
Live Title, the flyer wall, every date, past nights Drag flyers aside; filter home and away
About Lights up, the story, demo policy, contacts, newsletter The torch and the Lights up button

Every feature looks for its own markup and does nothing when it is missing, so you can delete a section, or a page and its tab, without touching the script.

The release list

assets/releases.js defines one object, window.NIGHTJAR, with three lists: releases (newest first), artists and dates. It is a plain script, not JSON loaded with fetch, so the site also works opened straight from disk.

  • release.html?r=NJR019 shows that record: the whole page, navigation included, takes its colour with its ink as the text colour, and the sleeve, title, facts, tracklist, pressing credits, notes, buy bar and "More from" row all come from its entry. Only tracks with a clip get a play button. A missing or unknown id shows the default record (defaultRelease).
  • artist.html?a=kaur shows that artist in the colour of their newest release, with their biography, facts, discography (every release whose artist is their slug) and their dates (every entry in dates whose artists includes them). An artist with pressShots gets the press-shot strip; any other artist's strip is their portrait followed by their sleeves. Only photographs offer a download.
  • The colour is applied by a small script in the <head> of both pages, straight after releases.js and before anything is drawn, so a pink record never flashes orange. assets/pages.js, at the end of <body>, then fills in the content; the main content is held back for that moment only, and never for more than three seconds.
  • Without JavaScript both pages are complete static pages for the default record and artist.

To add a record, copy one entry at the top of releases and edit it: id, artist (a slug from artists, or null for a compilation), title, format and formatLong, vinyl, edition, date and dateLong, year, status (preorder, available or soldout), colour and ink, price, buyLabel and barLabel, buy and streams links, tracks, pressing (the sentence over the credits), credits and notes. Keep colour and ink at 4.5:1 or better; every pair in the demo is measured in the :root comment of assets/style.css. Then link to it as release.html?r=<id> from the home field, the crate and the catalogue (copy one of their existing items).

To add an artist, copy one entry in artists (slug, name, line, basedIn, plays, bio paragraphs, portrait, optional hero and pressShots, booking, press), add their portrait to assets/img/, and link to artist.html?a=<slug>. Add their slug to the artists of any date they play.

Separate addresses for search. A query-string page is one address to a search engine. To give a record its own page, open release.html?r=NJR019 in a browser and copy the rendered page from the developer tools (Elements panel, copy the <html> element), or save it, as njr019.html. In the copy, set data-static="NJR019" on <html> (the colours are already in its style), and add <script>window.NIGHTJAR.defaultRelease = 'NJR019';</script> straight after the releases.js tag. The copy is then a complete static page for that record, with or without JavaScript. Point that record's links at njr019.html. Artist pages work the same way with defaultArtist. For a large catalogue, a static site generator can write these pages from the same list.

Navigation

The same <header class="site-head"> and <nav class="tabs" id="site-menu"> are on every page. Mark the current page's tab with aria-current="page", and set the phone button's label (.menu-btn__label) to that page's name. On desktop the nav is four tall tabs down the right edge; each tab fills with its own release colour on hover. Under 761px the same element becomes a sheet of colour blocks opened by the black menu bar: it closes on Escape, an outside tap or tabbing away, and returns focus to the button. Without JavaScript the links are shown under the bar.

The two corner words (Shop on Bandcamp, and the next date) sit at the bottom of each page's first section. Edit them in each file.

The house sleeve

In your downloadThe working code for this step, in index.html.

The sleeve sizes itself to its container (container query units), so the same markup works from a 100px field tile to the release hero. Add is-out to show the record halfway out. To use your own artwork instead of the house design, put an <img> inside .sleeve__face and delete the spine, hole and type spans.

The night field (Home)

section[data-field] holds [data-fi] items. Each carries --x, --y and --w (and --h) in pixels of a 2400 by 1800 tile at desktop scale, plus matching data-w / data-h. Sleeves are links (.fi--sleeve), photographs are plain (.fi--photo), and artist portraits link to their page (.fi--artist). Scale per breakpoint is --fs on .field. Tuning constants (TILE_W, TILE_H, DRIFT_X, DRIFT_Y, PAN) are at the top of initField in the script.

  • Keep items inside the tile and leave gaps between clusters. Put the newest release in the first window so the opening frame shows it.
  • Only one sleeve is in the tab order (tabindex="0", the rest -1); arrow keys move between sleeves.
  • Every field sleeve carries data-vt="sleeve-<id>". When it is clicked, that name is given to its face, and the release page hero takes the same name from --vt (set by the head script), so supporting browsers morph the sleeve into the page in 0.35 seconds. Sleeves in the crate, the board and the "More from" rows do the same. Reduced motion turns it off; remove the view-transition rules in the CSS to keep a plain crossfade.

The crate and the catalogue (Releases)

ol[data-crate] holds up to twelve li[data-crate-item]. The first has is-active. On phones the first six show. The full list is ol[data-index]: each row carries data-format (12, 2x12 or digital) and data-year (2026, 2025, 2024 or earlier), matching the radio values in form[data-filters]. Add a filter by adding a radio group and the matching data attribute.

Clip previews (Release)

Clips come from the clip of each track in assets/releases.js; only NJR022 has them in the demo. Each li[data-track] holds an <audio data-track-audio src="…" preload="none" controls>. With JavaScript the controls are hidden and the round button plays the clip; without it, the native player shows. A row whose audio has no src loses its button. Clips play one at a time. The record that turns is [data-rel-object] .sleeve__record.

The buy bar (Release)

div[data-buybar] slides up once the hero has scrolled away and adds bottom padding to the page so it never covers content. Remove the element to remove it.

The contact sheet (Artists)

Each a[data-frame] carries data-name and data-large (the image the loupe magnifies, 800px wide here). Zoom is ZOOM in initLoupe.

The film strip (Artist)

[data-strip] contains li[data-strip-frame] items; the starting frame has is-current. Each caption's link has a download attribute pointing at the full-size file. Previous and next buttons are [data-strip-prev] / [data-strip-next].

The flyer wall (Live)

Each article[data-flyer] sets --fx (left, %), --fy (top, px), --rot and --z for its desktop position. The soonest date gets the highest --z. One flyer can carry a photograph (flyer--photo). On phones and under reduced motion the flyers lie in a grid. The date list rows carry data-kind="home" or "away" for the filter.

Lights up (About)

section[data-lights] holds the photograph and [data-lights-dark], a dark layer with a radial mask that follows the pointer. The Lights up button raises the whole photograph. Reduced motion and no JavaScript show the photograph fully lit.

Forms

The newsletter form is a static front end: it validates one email address and shows a thank-you line, and sends nothing. Point its action at your mailing list provider (Buttondown, Mailchimp, a Formspree form) before launch. Buy, pre-order and ticket buttons are ordinary links to your shop and ticketing pages.

Palette

Token Value Use
--ground #E8E8E4 Field and page ground
--ground-2 #DCDCD7 Crate, wall, placeholders
--ink #121212 Text, rules, buttons
--ink-2 #4C4C48 Hints and captions on the ground (7.0:1)
--paper #F4F4F1 Text on dark releases and photographs
--sodium --harbour --signal --moss --lilac --rose #F2A33A #6A9AE0 #E8503F #6FA866 #BBA6EE #F293B5 Light release colours, ink text (5.0 to 9.0:1)
--navy --plum #1E2B52 #5A2346 Dark release colours, paper text (12.5 and 10.8:1)

Images

Bundled photographs are optimised WebP derivatives in assets/img/, cropped and graded for this template. To replace an image, replace the WebP file in assets/img/ with one of the same name and proportions and update its alt text and any caption.

Stock photographs are from Pexels under the Pexels License:

  • Crowd in smoke, silhouettes on the counter, smoker in red light, green dance floor, blue-lit crowd, crowd under a concrete ceiling: Maor Attias, pexels.com/photo/5191964, 5191996, 5190624, 5192503, 5192299, 5192289
  • Hands on a red mixer: pexels.com/photo/19181684 (@delot)
  • DJ in a red coat facing the crowd: pexels.com/photo/27595429 (@nano-erdozain-120534369)
  • Record player needle: Jake Heinemann, pexels.com/photo/30058652
  • Hands in the record racks: Eduardo Romero, pexels.com/photo/2333420
  • People outside a venue: Brett Sayles, pexels.com/photo/2339707
  • Evening street in Edinburgh: pexels.com/photo/30707896 (@ekrulila)
  • Night bus on a wet street: pexels.com/photo/6772863 (@lorenzomessinaph)
  • Lasers over a crowd: Çağın Kargı, pexels.com/photo/9105129
  • Lighthouse at dusk: Emre Acar, pexels.com/photo/11537039
  • DJ in pink haze: pexels.com/photo/16976062 (@viniciusvieirafotografia)
  • Orange beam over a party: Kevin Cano, pexels.com/photo/17895798
  • Two DJs from behind: Nicholas Derio Palacios, pexels.com/photo/14925309
  • Hand holding a white-label record: Tima Miroshnichenko, pexels.com/photo/5118728
  • Mixing desk and monitors: RDNE Stock project, pexels.com/photo/8198136
  • Pasted poster wall: pexels.com/photo/5443369 (@max-laurell-1958001)
  • Empty night club: Amelia Hallsworth, pexels.com/photo/5461566
  • Leith canal reflections: pexels.com/photo/34481755 (@vallka)

The artist portraits, the founders, Mhairi Dunlop's press shots and the record are AI-generated images made for this template. They show fictional people, not real artists; replace them with your own photographs before launch.

Audio

The four clips in assets/audio/ are 20-second excerpts, loudness-matched and faded, from CC0 (public domain) recordings on Freesound:

  • njr022-a1.mp3: "Melodic Deep House Loop, 120 BpM, C Major" by Duisterwho, freesound.org/people/Duisterwho/sounds/645498
  • njr022-a2.mp3: "Patch Sketch 025, Semi-Generative Minimal Dub Techno Loop" by thehorsevalse, freesound.org/people/thehorsevalse/sounds/612352
  • njr022-b1.mp3: "Behringer Model D, One Synth Challenge (Dub Techno)" by thehorsevalse, freesound.org/people/thehorsevalse/sounds/693121
  • njr022-b2.mp3: "Deep House Loop, F minor, Ab Major, 120" by Duisterwho, freesound.org/people/Duisterwho/sounds/644588

Replace them with your own previews (20 to 30 seconds, MP3 at 96 to 128 kbps).

Accessibility

  • Every page has a skip link, one h1, labelled sections and visible focus. The field has its own "Skip the field" link.
  • Field sleeves are links with full accessible names; photographs in the field are decorative. Arrow keys move between sleeves and bring each into view.
  • The crate, film strip and loupe follow keyboard focus; flyers come to the front when focused, and each has a "Move this flyer aside" button.
  • Clip buttons say what they do ("Play a 20-second clip of Tolbooth") and report their state with aria-pressed; arrow keys move through a playing clip.
  • Reduced motion stops the drift, the throw, the record pull and the turning record, lays the flyers in a grid, and shows the about photograph fully lit. Every interaction still works or has a static equivalent.
  • Without JavaScript every page is a complete document: the field is a still composition of links, the menu is a list, clips are native audio players, and the flyers lie in a grid.

Dependencies

  • GSAP 3.12+ core on every page (the demo is built against 3.15.0), from jsDelivr.
  • Flip on releases.html; Draggable and InertiaPlugin on artist.html and live.html. Each page loads only what it uses.
  • No smooth-scroll library. If GSAP fails to load, the page falls back to its plain, readable form.

Fonts

Arimo (variable 400 to 700, plus 700 italic) and Sometype Mono (400 to 500), latin subsets, are in assets/fonts/ under the SIL Open Font License. Only Arimo regular is preloaded.

Teardown

Pages are ordinary page loads, so nothing needs tearing down between them. If you mount a page inside an app shell, call window.destroyNightjar() before removing it: it removes every listener and ticker the script added and reverts its GSAP animations.

Also in your download: the full source, worked examples, the events and programmatic API, and the class reference.

£29