Skip to content
HTML Templates For Developers

Documentation

Learnwell — Online Course Website Template

Version 1.0.0 · Vanilla HTML · 13 files · 97 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 13 files:

  • LICENSE.txt1.9 KB
  • README.md2.8 KB
  • assets/css/style.css31 KB
  • assets/fonts/schibsted-grotesk-LICENSE.txt4.4 KB
  • assets/fonts/schibsted-grotesk-latin-wght-normal.woff246 KB
  • assets/images/favicon.svg283 B
  • assets/js/main.js22 KB
  • course.html45 KB
  • courses.html39 KB
  • documentation/index.html13 KB
  • documentation/licenses/lucide-LICENSE.txt3.1 KB
  • documentation/licenses/simple-icons-LICENSE.txt6.4 KB
  • index.html35 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-bg#fffdf9
  • --color-surface#ffffff
  • --color-tint#f4effd
  • --color-purple#6d28d9
  • --color-purple-deep#4c1d95
  • --color-purple-ink#2e1065
  • --color-lime#bef264
  • --color-lime-deep#a3e635
  • --color-ink#1b1033
  • --color-muted#5b5470
  • --color-line#e6e0f1
  • --color-lilac#ddd6fe
  • --color-danger#b91c1c
  • --color-ok#166534

Interactive features

Course catalogue

Courses live in the COURSES array at the top of assets/js/main.js. Add an object with title, topic, level, hours, lessons, rating, reviews, price, instructor and updated date and it appears on courses.html automatically.

Filters and sort

Topic, level and duration controls are in the filter form of courses.html. To add a topic, add a checkbox with a new value, an entry in LW_TOPICS and artwork in lwArt().

Hero search

Submitting the hero form opens courses.html?q=your-query. The catalogue reads the q and topic URL parameters on load.

Learning path tabs

Each tab in index.html is a button paired with a tabpanel by aria-controls. Duplicate both to add a path.

Curriculum accordion

Each section in course.html is a button with aria-expanded controlling a panel. Add lessons as list items inside the panel.

Enrol dialog

The Enrol now button opens #enrolDialog, which traps focus and closes on Escape. Replace the submit handler in initCourse() with your checkout call.

Customisation notes

Course artwork

Thumbnails are produced by the lwArt() function in assets/js/main.js, which returns one SVG per topic. Edit the colours and shapes there, or replace a card image with your own img element.

The course page is a template

course.html shows one sample course. Duplicate it for each course and edit the title, curriculum, price and instructor; catalogue cards all link to course.html until you point them to your own pages.

Brand colours

Purple and lime are --color-purple and --color-lime in the :root block of assets/css/style.css; every button, highlight and illustration accent in the CSS uses those tokens.

Smooth scrolling

Anchor links scroll smoothly from JavaScript and respect the reduced-motion setting, so there is no scroll-behavior rule in the stylesheet.

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.

  • The enrol dialog is a demonstration: no payment is taken and no account is created.
  • The newsletter and enrolment forms validate in the browser only and send nothing.
  • Courses, instructors, reviews, learner counts and prices are invented demo data; all catalogue cards link to the single sample course page.

Bundled components and licences

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

  • Schibsted Grotesk typeface — OFL-1.1 (assets/fonts/schibsted-grotesk-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 24, 2026

  • Initial release.