Documentation
Skylane — Flight Booking UI Template
Version 1.0.0 · Vanilla HTML · 10 files · 62 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 10 files:
- LICENSE.txt1.7 KB
- README.md2.5 KB
- assets/css/style.css25 KB
- assets/fonts/red-hat-display-LICENSE.txt4.4 KB
- assets/fonts/red-hat-display-latin-wght-normal.woff230 KB
- assets/images/favicon.svg271 B
- assets/js/main.js28 KB
- documentation/index.html12 KB
- documentation/licenses/lucide-LICENSE.txt3.1 KB
- index.html23 KB
Colours
These custom properties are defined at the top of the stylesheet. Change a value once and it updates everywhere it is used.
--color-navy#0a2540--color-navy-2#123a63--color-sky#00a3ff--color-sky-text#0069ad--color-sky-soft#e6f5ff--color-amber#ffb020--color-white#ffffff--color-bg#f3f6fa--color-ink#0a2540--color-muted#52667d--color-line#d8e1ec--color-error#b3261e--color-ok#0a6b3d
Interactive features
Flight search and results
generateFlights() in assets/js/main.js builds the flights for a route and date. Replace it with a call to your own API and return objects with the same fields (airline, number, depart, arrive, duration, stops, price).
Airlines, airports and fares
Edit the AIRPORTS, AIRLINES and FARES objects at the top of main.js. Add an airport code and city name and it appears in the search once you also add an option to the two selects in index.html.
Pricing rules
CABIN_MULT, CHILD_RATE, INFANT_RATE and TAX_RATE at the top of main.js control cabin multipliers, child and infant fares and the tax line.
Popular routes
Edit the ROUTES array in main.js. Each entry is origin code, destination code and a short note.
Customisation notes
Hooking up a real booking flow
Step 5 builds the summary from state in main.js. Send that state to your backend from the submit handler of the passenger form (initPax) and replace renderSummary() with your confirmation view.
Currency and formats
money() and money2() format prices as US dollars and niceDate() uses the en-GB locale. Change those three helpers for another currency or date style.
Removing the demo notices
Demo notes carry the data-demo-note attribute, and the amber banner on step 5 and the Demo data chip in the header are plain markup. Remove them when the flow is live.
Print layout
The print stylesheet hides navigation and the stepper so the summary step prints as a clean one-page itinerary.
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.
- Flights, airlines, schedules and prices are generated in the browser; no availability is queried.
- No booking is made and no payment is taken; the summary reference is made up.
- Passenger and contact details are validated but never stored or sent.
Bundled components and licences
Everything the template needs is inside the download; nothing is loaded from the network.
- Red Hat Display typeface — OFL-1.1 (
assets/fonts/red-hat-display-LICENSE.txt) - Lucide icons (inlined SVG) — ISC (
documentation/licenses/lucide-LICENSE.txt)
Changelog
Version 1.0.0 · Nov 23, 2026
- Initial release.