Skip to content
HTML Templates For Developers

Documentation

Pocketshell — Mobile App HTML Template

Version 1.0.0 · Vanilla HTML · 10 files · 62 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 10 files:

  • LICENSE.txt1.7 KB
  • README.md2.5 KB
  • assets/css/style.css24 KB
  • assets/fonts/sora-LICENSE.txt4.3 KB
  • assets/fonts/sora-latin-wght-normal.woff233 KB
  • assets/images/favicon.svg432 B
  • assets/js/main.js20 KB
  • documentation/index.html12 KB
  • documentation/licenses/lucide-LICENSE.txt3.1 KB
  • index.html20 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#0f172a
  • --surface#1e293b
  • --surface-2#293548
  • --text#f1f5f9
  • --muted#a3b1c6
  • --linergba(148, 163, 184, 0.2)
  • --lime#a3e635
  • --on-lime#0f172a
  • --accent-text#bef264
  • --sky#38bdf8
  • --rose#fb7185
  • --stage-bg#060b18
  • --frame#020617

Interactive features

Tab bar

Each button in .tabbar has data-view and aria-controls pointing at a section with id view-<name>. Add a screen by adding a section and a matching tab.

Habits and day strip

Edit DEFAULT_HABITS at the top of assets/js/main.js. Each habit has a name, icon (id suffix of a symbol in index.html), goal and unit.

Progress rings

Set the --p custom property (0 to 100) on any .ring element. Use ring--sky or ring--rose for other colours.

Pull-up sheet

Change the copy inside #sheet-body. The peek height is --sheet-peek on .sheet.

Theme switch

Colours live in :root and :root[data-theme="light"]. The choice is saved under the key pocketshell.theme when storage is available.

Add habit form

The submit handler in main.js pushes a habit into the array. Replace that block with a call to your API.

Customisation notes

Make it your own app

Search index.html for Pocketshell and Maya, replace the habit list in main.js, and edit the pitch panel text (aside.pitch) shown beside the phone on desktop.

Frame breakpoint

The phone frame appears from 600px wide and the pitch panel from 960px. Edit the two media queries in section 4 of style.css to change when the app goes full-bleed.

Safe areas

--safe-top and --safe-bottom read env(safe-area-inset-*). The viewport meta uses viewport-fit=cover so notched phones report real values.

Add icons

Icons are an inline SVG sprite at the top of the body. Paste a new <symbol id="i-name"> and reference it with <use href="#i-name">.

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.

  • Habits, stats, challenges and community posts are sample data in JavaScript; nothing is sent to a server.
  • New habits and likes exist in memory only and reset on reload. Only theme and switch preferences are stored, and only when storage is available.

Bundled components and licences

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

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

Changelog

Version 1.0.0 · Nov 24, 2026

  • Initial release.