Documentation
Daybook — Calendar UI Template
Version 1.0.0 · Vanilla HTML · 13 files · 73 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 13 files:
- LICENSE.txt1.3 KB
- README.md2.5 KB
- assets/css/style.css11 KB
- assets/fonts/kumbh-sans-LICENSE.txt4.3 KB
- assets/fonts/kumbh-sans-latin-400-normal.woff213 KB
- assets/fonts/kumbh-sans-latin-500-normal.woff213 KB
- assets/fonts/kumbh-sans-latin-600-normal.woff213 KB
- assets/fonts/kumbh-sans-latin-700-normal.woff213 KB
- assets/images/favicon.svg465 B
- assets/js/main.js18 KB
- documentation/index.html10 KB
- documentation/licenses/lucide-LICENSE.txt3.1 KB
- index.html6.9 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#ffffff--ink#1f2937--muted#5b6472--line#e5e7eb--soft#f3f4f6--red#EF4444--red-d#b91c1c--red-l#fef2f2
Interactive features
Calendar factory
Call Calendar(element, { mode: 'month' | 'single' | 'range', weekStart, events, onChange }) from assets/js/main.js on any empty element.
Events
Edit DEMO_EVENTS (day offset from today, time, type, title, place) or replace eventsFor(dateKey) with your own data source.
Week start
The select in the header calls setWeekStart on every calendar. Set the initial weekStart variable to 0, 1 or 6.
Date picker
The popover is plain markup in index.html with a calendar mounted inside; listen to the onChange callback to use the chosen date.
Range presets
Preset buttons carry data-preset values (a number of days, month or clear); extend the handler in section 6.
Customisation notes
Accent colour
--red drives the deadline dots and --red-d the selected range ends; --ink is the selected-day colour. Keep white text on the selected states at 4.5:1 or better.
Cell size
--cell sets the picker day size; the month view uses a taller 60px cell, set in .cal--month .day.
Event types
Types are meeting, deadline and personal. Add a new .dot--yourtype rule and an option in the add-event select.
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.
- Events are sample data generated relative to today
- Added events live in memory only and reset on reload
- The add-event form does not save anywhere
Bundled components and licences
Everything the template needs is inside the download; nothing is loaded from the network.
- Kumbh Sans typeface — OFL-1.1 (
assets/fonts/kumbh-sans-LICENSE.txt) - Lucide icons (inlined SVG) — ISC (
documentation/licenses/lucide-LICENSE.txt)
Changelog
Version 1.0.0 · Nov 23, 2026
- Initial release.