Documentation
The Daily Ledger — News Website Template
Version 1.0.0 · Vanilla HTML · 32 files · 245 KB
Getting started
- Unzip the download and open index.html in a browser. No server, installation or build step is needed.
- Edit the text directly in the HTML files.
- Change colours, fonts and spacing through the CSS custom properties at the top of assets/css/style.css.
- Replace the artwork in assets/images/ with your own images.
- Upload the whole folder to any static host.
File structure
The download contains these 32 files:
- LICENSE.txt1.9 KB
- README.md3.6 KB
- article.html22 KB
- assets/css/style.css23 KB
- assets/fonts/ibm-plex-sans-LICENSE.txt4.3 KB
- assets/fonts/ibm-plex-sans-latin-400-italic.woff224 KB
- assets/fonts/ibm-plex-sans-latin-400-normal.woff222 KB
- assets/fonts/ibm-plex-sans-latin-500-normal.woff224 KB
- assets/fonts/ibm-plex-sans-latin-600-normal.woff224 KB
- assets/fonts/ibm-plex-sans-latin-700-normal.woff222 KB
- assets/fonts/playfair-display-LICENSE.txt4.5 KB
- assets/fonts/playfair-display-latin-wght-italic.woff238 KB
- assets/fonts/playfair-display-latin-wght-normal.woff238 KB
- assets/images/author-1.svg352 B
- assets/images/author-2.svg355 B
- assets/images/author-3.svg352 B
- assets/images/chart.svg1.8 KB
- assets/images/columns.svg1.6 KB
- assets/images/favicon.svg164 B
- assets/images/harbor.svg2.5 KB
- assets/images/market.svg2.0 KB
- assets/images/pitch.svg774 B
- assets/images/rain.svg7.1 KB
- assets/images/skyline.svg12 KB
- assets/images/stage.svg1.4 KB
- assets/images/turbines.svg2.0 KB
- assets/js/main.js8.6 KB
- category.html25 KB
- documentation/index.html13 KB
- documentation/licenses/lucide-LICENSE.txt3.1 KB
- documentation/licenses/simple-icons-LICENSE.txt6.4 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.
--c-bg#ffffff--c-surface#f6f4ef--c-text#111111--c-muted#595959--c-rule#111111--c-hair#d9d6cf--c-red#c1121f--c-red-ink#c1121f--c-on-red#ffffff
Interactive features
Breaking ticker
Edit the list items inside #ticker-track in each page header (the second half of the list repeats the first for the seamless loop, so edit both halves). Set the speed with --ticker-speed in :root.
Dark mode toggle
Dark colours are overrides on the same tokens under [data-theme="dark"] in assets/css/style.css. The saved choice uses the key ledger-theme in initTheme() in assets/js/main.js.
Category filter and pagination
Add or remove <li class="listing__item" data-topic="Topic"> entries in category.html and a matching chip with data-filter. Set stories per page with data-per-page on #pager.
Newsletter form
Validation lives in initNewsletter() in assets/js/main.js. Send the address to your provider at the TODO comment, then delete the paragraph marked data-demo-note.
Copy link
The button with data-copy-link copies the page URL with the Clipboard API and shows a toast; no configuration is needed.
Customisation notes
Change the masthead
The title is the .logo block in the header of each page. Edit the three spans (the, name, tagline); the name scales with clamp() in .logo__name.
Replace the fictional data
Edit the NewsArticle JSON-LD script in article.html: headline, dates, author, publisher and image URL. Keep it in sync with the visible headline and byline.
Swap the artwork
Illustrations in assets/images are 800x500 SVGs and portraits are 120x120. Replace them with photographs of the same ratio; the image boxes crop with object-fit: cover.
Brand colour
Change --c-red and --c-red-ink in :root. The ink variant is used for text and has its own lighter value in dark mode for contrast.
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.
- Newsletter forms validate the email address and show a success message but do not send or store it.
- Share buttons link to example.com placeholders; only copy-link works without a backend.
- All stories, people, places and figures are invented.
Bundled components and licences
Everything the template needs is inside the download; nothing is loaded from the network.
- IBM Plex Sans typeface — OFL-1.1 (
assets/fonts/ibm-plex-sans-LICENSE.txt) - Playfair Display typeface — OFL-1.1 (
assets/fonts/playfair-display-LICENSE.txt) - Lucide icons (inlined SVG) — ISC (
documentation/licenses/lucide-LICENSE.txt) - Simple Icons brand marks (inlined SVG) — CC0-1.0 (
documentation/licenses/simple-icons-LICENSE.txt)
Changelog
Version 1.0.0 · Nov 23, 2026
- Initial release.