Skip to content
HTML Templates For Developers

Documentation

Parley — Chat Interface Template

Version 1.0.0 · Vanilla HTML · 11 files · 56 KB

Back to the template

Getting started

  1. Unzip the download and open index.html in a browser. No server, installation or build step is needed.
  2. Edit the text directly in the HTML files.
  3. Change colours, fonts and spacing through the CSS custom properties at the top of assets/css/style.css.
  4. Replace the artwork in assets/images/ with your own images.
  5. Upload the whole folder to any static host.

File structure

The download contains these 11 files:

  • LICENSE.txt1.3 KB
  • README.md2.3 KB
  • assets/css/style.css9.1 KB
  • assets/fonts/rubik-LICENSE.txt4.4 KB
  • assets/fonts/rubik-latin-wght-normal.woff235 KB
  • assets/images/favicon.svg404 B
  • assets/images/trail.svg807 B
  • assets/js/main.js13 KB
  • documentation/index.html10 KB
  • documentation/licenses/lucide-LICENSE.txt3.1 KB
  • index.html6.4 KB

Colours

These custom properties are defined at the top of the stylesheet. Change a value once and it updates everywhere it is used.

  • --bg#F1F5F9
  • --surface#ffffff
  • --ink#0f172a
  • --muted#526071
  • --line#e2e8f0
  • --accent#10B981
  • --bubble-out#047857
  • --bubble-out-ink#ffffff
  • --bubble-in#ffffff
  • --read#a7f3d0

Interactive features

Conversations and search

Edit the CONTACTS array at the top of assets/js/main.js. Each message is [from, text, time, status, imageSrc, imageAlt].

Sending and simulated replies

submit() appends the message. Replace sendToServer() with your own fetch or WebSocket call and set the message status as receipts arrive; delete simulateReply() when using real replies.

Image attachment

The paperclip opens a file input limited to images. Upload the File yourself inside sendToServer() if you need to store it.

Emoji picker

Edit the EMOJI array in main.js to change the choices.

Customisation notes

Bubble colours

--bubble-out and --bubble-in in :root control message bubbles. Keep white text on --bubble-out at 4.5:1 contrast or better.

Avatars

Avatars are initials on a colour set by each contact's hue value. Replace the span with an img if you have photos.

Layout width

The app is capped at 1280px and the list column is 340px wide on desktop; adjust grid-template-columns in the 768px media query.

What is front-end only

This is a front-end template. The behaviours below are demonstrations that run in the browser; connect them to your own server or service before relying on them.

  • Conversations are sample data held in JavaScript
  • Replies, typing indicator and read receipts are simulated
  • Nothing is sent or stored; attachments stay in the browser

Bundled components and licences

Everything the template needs is inside the download; nothing is loaded from the network.

  • Rubik typeface — OFL-1.1 (assets/fonts/rubik-LICENSE.txt)
  • Lucide icons (inlined SVG) — ISC (documentation/licenses/lucide-LICENSE.txt)

Changelog

Version 1.0.0 · Nov 23, 2026

  • Initial release.