Freeframe

Documentation

Chalkwell

v1.0.0Updated Dec 5, 2026A quiet, editorial SaaS website for an online course and cohort platform, with a working course builder in the hero.

Overview#

Chalkwell is a multi-page marketing website for an online course and cohort platform for independent teachers: potters, language tutors, fiddle players, bookkeepers and bakers who want to build a course, run small live cohorts, keep the class talking and get paid. The fictional Chalkwell, Inc. is based in Montpelier, Vermont, and works in Eastern time. The site is plain HTML5 with Tailwind CSS v4 and vanilla JavaScript, with no dependencies and no build step needed to view it. This guide covers version 1.0.0. The template page, with a link to the live demo, is at freeframe.dev/templates/chalkwell.

The look is minimal and editorial, like a small-press catalog: a warm paper page, hairline and double rules, numbered sections, italic serif kickers, drawn course covers and portraits, and one mulberry accent. Headings are set in Ibarra Real Nova and body text in Ysabeau Office.

Quick start#

  1. Unzip the download.

  2. Open index.html in a browser, or serve the folder (any static server works):

    sh
    python3 -m http.server 8080

    Then visit http://localhost:8080.

  3. Edit the HTML pages and assets/js/data.js, then reload.

Requirements: a modern browser. Google Fonts load from the internet. Node 24 is needed only to rebuild the CSS after adding Tailwind classes (see Building and deploying).

Pages#

File Purpose Notable sections and features
index.html Home Course builder with drip calendar, four tools, upcoming cohorts, a teacher quote, numbers, three teacher stories, call to action
product.html Product tour Builder, cohort roster mockup, class discussion room, revenue calculator, "things we won't do"
pricing.html Pricing Monthly / yearly switch, four plans, plan estimator, comparison table, FAQ
teachers.html Teacher stories Subject filter with counts, ten stories with drawn portraits, quotes and numbers
courses.html Course showcase Search, subject and format filters with counts, 14 courses with drawn covers, detail dialog with the next cohorts
guides.html Guides Featured guide, newsletter form with the next issue date, product log, topic filter, ten back issues
company.html Company Story, three rules, team of six, office map, support hours note, open roles
start.html Start teaching Walkthrough slot picker in Eastern time, validated form, success panel with a CW-1234 style reference
404.html Not found Links to the main pages and a drawn, half-erased chalkboard

Project structure#

chalkwell/
  index.html, product.html, pricing.html, teachers.html, courses.html,
  guides.html, company.html, start.html, 404.html
  assets/
    css/style.css      compiled Tailwind CSS (generated; do not edit by hand)
    js/data.js         content and settings: courses, cohorts, plans, stories, guides, people, walkthrough times
    js/main.js         all interactions, in 16 numbered sections
    img/favicon.svg    the logo mark
    img/og-image.svg   social image source (1200×630)
    img/og-image.png   social image used by og:image
  src/input.css        Tailwind source: color tokens, fonts, small component layer
  package.json         npm scripts to rebuild the CSS
  README.md            short introduction
  DOCS.md              this guide
  CHANGELOG.md         version history

Customizing#

Brand and colors#

Colors are tokens in the @theme block at the top of src/input.css, so each one is also a Tailwind class (bg-paper-2, text-muted, border-mulberry-line):

Token Value Used for
--color-paper / --color-paper-2 #f6f2ea / #eee8dc Page background / alternate sections and table heads
--color-card #fbf9f4 Raised panels and inputs
--color-ink, --color-ink-soft, --color-muted #1b1a17, #48443d, #6a655b Text: headings and body, secondary, captions
--color-rule / --color-rule-strong #d9d2c4 / #8e877a Hairlines / input borders and chart axes
--color-mulberry / --color-mulberry-deep #7a2948 / #5e1f37 The accent: links, primary buttons, focus outlines, section numbers / hover
--color-mulberry-soft / --color-mulberry-line #f2e4e8 / #d9b6c2 Tinted backgrounds and underlines behind the accent
--color-sage, --color-ochre (and -soft) #5f6f58, #d1a253 Drawings and status marks only

To change the accent, edit the four mulberry tokens and rebuild:

css
--color-mulberry: #1f5a6b;
--color-mulberry-deep: #16434f;
--color-mulberry-soft: #e1ecef;
--color-mulberry-line: #a9c7cf;

Button text on the accent is card (near white), so keep the accent dark. The logo mark in each page header and footer, favicon.svg, og-image.svg and a few drawings use #7a2948 directly; change them too.

The component classes (.btn-ink, .btn-mulberry, .kicker, .panel, .chip, .filter-btn, .seg, .slot and the rest) are in the @layer components block of the same file.

Typography#

Headings, numbers and kickers use Ibarra Real Nova; body text, labels and buttons use Ysabeau Office. They load from Google Fonts with a <link> in each page's <head>:

html
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Ibarra+Real+Nova:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&amp;family=Ysabeau+Office:wght@400;500;600;700&amp;display=swap" />

The families are set as --font-serif and --font-sans in src/input.css. To swap fonts, change the link on every page and those two variables, then rebuild the CSS.

Content#

Page text is in the HTML files. Everything interactive reads from assets/js/data.js, which sets one object, window.CHALKWELL. The main structures:

Constant What it holds
COMPANY Name, timeZone (America/New_York), phone, email and supportHours (09:00 to 17:30, Eastern)
CLOSED_DAYS, TRIAL_DAYS Extra closed days ('YYYY-MM-DD'); free trial length (14 days)
ART Course cover drawings, inner SVG for a 200×130 box
PEOPLE Teachers and team: name, town and portrait settings (skin, hair, style, top, bg, glasses)
SUBJECTS, SUBJECT_TEACHERS, FORMATS Subject filters, how the stories count reads per subject, course formats (cohort, self)
COURSES The 14 showcase courses: id, title, teacher, subject, format, weeks, lessons, hours, price, seats, level, art, bg, blurb, modules
COHORTS Cohort calendar: leadDays: 7, count: 6, and the rotation of courses that start on successive Mondays
OUTLINE_DEFAULT, OUTLINE_LIMITS The builder's starting outline and its limits (6 modules, 8 lessons each, 70-character titles, 1 to 240 minutes)
PLANS, PROCESSING Plans with monthly and yearly prices, per-seat fee and limits; card processing (2.9% + 30¢ per seat)
DEFAULT_PRICING, ESTIMATE_LIMITS Pricing estimator defaults and allowed ranges
REVENUE_DEFAULT, REVENUE_LIMITS Revenue calculator defaults and allowed ranges
STORIES Ten teacher stories, two per subject
GUIDE_TOPICS, GUIDES, GUEST_AUTHORS Guide topics, the back issues (fixed past dates) and guest writers
WALK_DAYS, WALK_TIMES, WALK_LENGTH_MIN Walkthrough slot picker

Example: add a course. Give it a unique id, a teacher from PEOPLE, a subject from SUBJECTS, a format from FORMATS and an art key from ART:

js
{ id: 'rug-hooking', title: 'Hooked Rugs From Wool Scraps', teacher: 'fiorella', subject: 'making', format: 'self',
  weeks: null, lessons: 9, hours: 4, price: 120, seats: null, level: 'Beginner', art: 'dye', bg: '#e3e8dc',
  blurb: 'Cut strips, hook a sampler and finish the edge, from wool you already have.',
  modules: ['Wool and strips', 'Hooking a sampler', 'Finishing the edge'] }

Search, the counts and the detail dialog pick it up automatically. For a live cohort course, set weeks and seats and add its id to COHORTS.rotation so it gets start dates. The subject buttons and their counts are drawn by the script into [data-subject-bar]. The format buttons, the "14 courses" line and the meta descriptions are written into courses.html so they read right before JavaScript runs; update them by hand.

The plan cards, comparison table and FAQ on pricing.html are HTML. If you change a plan in PLANS, update the cards, the table rows and the revenue calculator's plan rows on product.html to match.

Images and artwork#

All artwork is inline SVG drawn for this template: the course covers in ART, the portraits (drawn by portraitSvg in main.js from the settings in PEOPLE), the feature drawings, the product mockups, the Montpelier map and the 404 chalkboard. There are no photos. If you add photos, keep the aspect ratios: covers are 200×130 (about 3:2) and portraits are square, shown in a circle. Elements with data-portrait="<person id>" or data-cover="<course id>" are filled in by initArt.

The social image is assets/img/og-image.png (1200×630), rendered from og-image.svg. After editing the SVG, regenerate the PNG with any SVG renderer. The favicon is assets/img/favicon.svg.

The header and footer are repeated in every HTML page. To add a page, copy an existing one, change its <title>, description, Open Graph tags, data-page on <body> and <main> content, and add a link to the desktop menu (nav[aria-label="Main"]), the mobile menu (#mobile-menu) and the footer in every page. Mark the current page with aria-current="page" on its menu links.

The date line above the header (data-today) shows today in Eastern time. The site is light only; color-scheme: light is set on <html>.

Features#

Course builder#

index.html (product.html#builder describes it and links to it), section 6 of main.js (initBuilder, outlineFrom). The builder starts from OUTLINE_DEFAULT: "Wheel-Throwing Foundations" with three modules and 7 lessons, 2 h 26 min in all.

  • Editing: the course title, module titles and lesson titles are text fields; lesson lengths are minutes from 1 to 240. A length outside that range is marked invalid and the total keeps the last good value, which comes back when you leave the field.
  • Reordering: each module and lesson has move up and move down buttons, labeled for screen readers with the row they move ("Move lesson 1.1, Wedging and preparing clay, down"). Focus stays on the moved row's button (or the other one at the end of the list), and the new position is announced ("It is now lesson 1.2.").
  • Adding and removing: "Add a lesson" (up to 8 per module), "Add a module" (up to 6) and a remove button on each row; the last lesson of a module and the last module can't be removed. "Reset outline" restores the example.
  • Drip scheduling: the "Drip schedule" switch (aria-pressed) releases one module every 7 or 14 days, starting today. The preview lists the open date of each module and a month calendar marks them.

With the defaults and drip on, on Saturday, December 5, 2026 the line reads "Starts today, Saturday, December 5. A module opens every week; the last one on Saturday, December 19." The modules open Today, Sat Dec 12 and Sat Dec 19, with 1 h 4 min, 47 min and 35 min of video. Every 14 days moves the last one to Saturday, January 2. One more lesson makes 8 lessons, 2 h 41 min.

The outline is saved as chalkwell:outline and comes back on the next visit with the note "Picked up your saved draft."

Cohort calendar#

index.html, section 7 (cohortStarts, initCohorts). Cohorts start on Mondays at least COHORTS.leadDays (7) days after today, and a Monday that is a US federal holiday is skipped. Each Monday runs one course from COHORTS.rotation, picked by the week, so the same Monday always shows the same course. Seats left are worked out from the date and the course (seatsLeft), so every visitor sees the same numbers, between 1 and the course's seats. Three or fewer seats left are shown in mulberry.

On Saturday, December 5, 2026 the six starts are: Dec 14 Spanish for the Kitchen Table (1 seat left of 10), Dec 21 Bookkeeping for Freelancers (7 of 20), Dec 28 Japanese for Your First Trip (8 of 14), Jan 4 Finding Your Singing Voice (8 of 8), Jan 11 Your First Federal Grant (7 of 16) and Jan 25 Italian Through Film (5 of 12); Monday, January 18 is skipped for Martin Luther King Jr. Day. The note above reads "Next start Monday, December 14. Cohorts begin on Mondays and skip federal holidays."

Revenue calculator#

product.html#payments, section 8 (revenueFor, bestPlan, initRevenue). Inputs: students per cohort (1 to 250), price per seat ($0 to $5,000), cohorts a year (1 to 52) and a plan.

Sales         = students × price × cohorts
Chalkwell     = plan price × 12 (monthly billing) + plan fee × sales
Processing    = seats sold × (price × 2.9% + $0.30)
Take-home     = sales − Chalkwell − processing

The processing rate is stated next to the result and comes from PROCESSING. The recommended plan is the one that leaves the most take-home among the plans that fit the cohort size, with the reason:

Students / price / cohorts Result
14 / $240 / 5 (default, Studio) Sales $16,800, Chalkwell −$804 ($468 plan + 2% of sales), processing −$508, take-home $15,488, $221 per seat; best Studio, "Studio leaves you $384 more a year than School."
8 / $120 / 4 Best Slate, take-home $3,412
30 / $400 / 6 Best School
80 / $150 / 4 "Only School fits 80 students in a cohort."

"Use the best fit" switches the calculator to the recommended plan. A plan that is too small for the cohort says so under the plan menu and in its row ("Over 60 students").

Pricing and plan estimator#

pricing.html, section 9 (recommend, loadPricing, initPricing). Prices are in PLANS: Slate free with an 8% per-seat fee, Studio $39 a month or $32 billed yearly with 2%, School $99 or $82 with no fee, Guild custom. The trial line shows today plus TRIAL_DAYS (14): on Saturday, December 5, 2026 it reads "Saturday, December 19".

The estimator takes published courses, students per cohort and teachers (with − and + buttons) and recommends the first plan whose limits fit, with the reason the plan before it doesn't:

Courses / students / teachers Billing Result
3 / 14 / 1 (default) Yearly Studio, $32 a month, $384 billed yearly, saves $84; "Slate includes 1 published course."
3 / 14 / 1 Monthly Studio, $39 a month, $468 a year, billed monthly
1 / 12 / 1 Any Slate, $0
4 / 80 / 1 Yearly School, $82 a month, $984 a year
4 / 30 / 3 Yearly School; "Studio includes 1 teacher seat."
4 / 30 / 8 Any Guild, Custom

The estimate is saved (chalkwell:pricing). URL parameters override it: ?billing=monthly|yearly, ?courses=1–100, ?students=1–1000, ?teachers=1–50. The page writes only billing back to the address bar. "Start with this plan" links to start.html?plan=<id>. The FAQ uses native <details> elements.

Teacher stories#

teachers.html, section 10 (initStories). Subject buttons filter STORIES; the URL keeps the choice as ?type= (a key of SUBJECTS: making, languages, music, work, food). Each subject has 2 of the 10 stories, and the count reads, for example, "2 stories from language teachers". Unknown values show all stories.

Course showcase#

courses.html, section 11 (initCourses). Search matches the title, description, teacher, subject, level and modules. Subject buttons show counts (All 14, Making 4, Languages 3, Music 2, Work skills 3, Food 2) that follow the format and the search; the format buttons pick "All formats", "Live cohorts" (9 courses) or "Self-paced" (5), and the count line reads, for example, "9 live cohort courses". Searching "spanish" finds 1. The URL keeps ?subject=, ?format=cohort|self and ?q=. When nothing matches, "Show all courses" resets them.

Each card opens a native <dialog> with the cover, teacher, syllabus, price and, for live cohort courses, the next three start dates from the cohort calendar with seats left. The URL keeps ?course=<id> while it is open, so courses.html?course=spanish-table opens straight to it. Escape or "Close" returns focus to the card.

Guides and newsletter#

guides.html, section 12 (initGuides, initLetter). GUIDES are listed newest first; topic buttons (All 10, Pricing 2, Teaching online 3, Finding students 3, Running a school 2) keep the choice as ?topic=. Guides and the product log keep their real past dates. The newsletter goes out on the first Thursday of each month; the form names the next one strictly after today (nextLetterDay), "Thursday, January 7" on December 5, 2026.

Support hours note#

company.html and start.html, section 13 (initSupportStatus). Using COMPANY.supportHours and Eastern time, it reads "Teacher support is open now, until 5:30 p.m. Eastern." on business days from 9:00 a.m. to 5:30 p.m., and otherwise "Teacher support opens today/tomorrow/Monday at 9:00 a.m. Eastern.", skipping weekends, federal holidays and CLOSED_DAYS.

Walkthrough slot picker#

start.html, section 15 (walkDays, initStart). Days are the next WALK_DAYS (5) business days strictly after today in Eastern time: never today, never a Saturday or Sunday, a US federal holiday or a date in CLOSED_DAYS. Each day offers WALK_TIMES (9:30, 10:30 and 11:30 a.m., 1:00, 2:00, 3:00 and 4:00 p.m. Eastern). Some times show as taken by a fixed pattern per date (slotTaken), and every day keeps at least three open. Below the slots, a note says times are Eastern and, when the visitor's zone is different, gives the day's first time in their zone.

Examples: on Saturday, December 5, 2026 the days are Monday, December 7 to Friday, December 11. On Wednesday, December 23, 2026 they are December 24, 28, 29, 30 and 31 (Christmas Day is skipped). On Thursday, December 31, 2026 they start on Monday, January 4, 2027, because New Year's Day falls on a Friday.

Day and time buttons use aria-pressed; each day button tells screen readers how many times are open, and picking a time is announced.

The mobile menu button toggles #mobile-menu (aria-expanded, Escape closes). Sections with reveal fade in once as they scroll into view; with reduced motion they show immediately.

Keeping the demo current#

Nothing dated goes stale. Everything "upcoming" is computed from today in Eastern time (COMPANY.timeZone):

Content Rule Switch
Drip calendar Modules open from today, every 7 or 14 days Builder controls
Cohort starts Mondays at least 7 days out, skipping federal holidays COHORTS
Walkthrough days Next 5 business days after today WALK_DAYS, WALK_TIMES, CLOSED_DAYS
Trial end date Today plus 14 days TRIAL_DAYS
Next newsletter First Thursday of a month, after today nextLetterDay in main.js
Support note Open now, or the next business day's opening time COMPANY.supportHours
Date line and copyright year Today [data-today], [data-year]

Federal holidays are worked out for any year by rule (federalHolidays in section 3): New Year's Day, Martin Luther King Jr. Day, Washington's Birthday, Memorial Day, Juneteenth, Independence Day, Labor Day, Columbus Day, Veterans Day, Thanksgiving and Christmas Day. A holiday on a Saturday is observed the Friday before, one on a Sunday the Monday after. Add office closures as 'YYYY-MM-DD' strings in CLOSED_DAYS.

Guides, the product log, the company story and story "since" years keep their fixed past dates. For reviews and screenshots, ?now=YYYY-MM-DDTHH:MM (read as Eastern time) pretends it is another moment, for example start.html?now=2026-12-23T10:00; turn it off with ALLOW_NOW_PARAM = false at the top of main.js.

Forms#

All forms validate in the browser with inline messages linked by aria-describedby, focus the first problem and then show a success panel. A message clears as soon as the field is fixed. No form sends anything until you connect it, and the success panels don't claim an email was sent.

Form Page Checks Success
Walkthrough request (data-start-form) start.html A day and time, first and last name, email format, what you teach, how you teach today "Thanks, {first name}. Your walkthrough request is in.", the time in Eastern, a reference like CW-4821, the email and subject, and what happens on the call
Newsletter (data-subscribe-form) guides.html Email format "You’re on the list." with the next letter's date

start.html reads ?plan=slate|studio|school|guild to show the plan from the pricing page, and ?subject=making|languages|music|work|food to preselect what you teach. Phone, class size and the message (up to 500 characters, counted) are optional.

To connect a form service such as Formspree, add the request inside setupForm in main.js (section 14, "Form helper"), where it calls onSuccess, and show the success panel only when the service answers OK:

js
fetch('https://formspree.io/f/your-id', { method: 'POST', body: new FormData(form), headers: { Accept: 'application/json' } })
  .then(function (r) { if (r.ok) onSuccess(form); else showError(); });

The walkthrough's chosen slot is in the hidden slot field as YYYY-MM-DDTHH:MM in Eastern time, and the plan from the pricing page in the hidden plan field.

Saved data (localStorage)#

All storage goes through safeStorage in main.js, which falls back to memory when the browser blocks localStorage, so the page keeps working for the visit.

Key Shape Validation
chalkwell:outline { "title": "…", "drip": true, "every": 7, "modules": [{ "title": "…", "lessons": [{ "title": "…", "min": 18 }] }] } 1 to 6 modules, 1 to 8 lessons each, string titles (trimmed to 70 characters), whole minutes from 1 to 240, every 7 or 14; anything else falls back to the example
chalkwell:pricing { "billing": "yearly", "courses": 3, "students": 14, "teachers": 1 } billing must be monthly or yearly; each number a whole number inside ESTIMATE_LIMITS

"Reset outline" in the builder restores the example outline. To clear either key, remove it in the browser's developer tools (Application → Local Storage).

SEO and sharing#

Each page has its own <title>, meta description and Open Graph tags in its <head>. og:image points at assets/img/og-image.png with a relative URL; set it to an absolute URL on your domain when you deploy (https://www.example.com/assets/img/og-image.png), since most social sites require that. Add a sitemap.xml and robots.txt at your site root if your host doesn't create them.

Accessibility#

  • Skip link, landmarks, one <h1> per page and aria-current="page" in the menus.
  • Visible mulberry focus outlines, AA contrast on paper, and reduced motion respected.
  • Builder changes, filter results, estimator results and slot choices are announced in a polite live region (#live-region).
  • Filters, the billing switch, the drip switch and slot buttons use aria-pressed; the course dialog is a native <dialog>; the FAQ uses <details>.
  • The builder's move buttons have labels that name the lesson or module, and keep focus after a move.
  • The wide comparison table scrolls sideways inside a focusable region on small screens.
  • Keep one h1 per page and label new inputs.

Building and deploying#

The compiled CSS is included. After adding Tailwind classes, rebuild it (Node 24):

sh
npm install
npm run build    # or: npm run watch

Classes used only inside JavaScript strings must appear in a file Tailwind scans (the HTML pages and assets/js/*.js are scanned automatically; the Markdown and JSON files are excluded).

To deploy, upload the folder to any static host: Netlify Drop, GitHub Pages, Cloudflare Pages or your own server. There is no server code.

Troubleshooting#

  • New classes have no effect: rebuild the CSS with npm run build.
  • The builder shows an old outline: it's saved in chalkwell:outline. Click "Reset outline" or remove the key.
  • The pricing estimate isn't the default: it's saved in chalkwell:pricing, and URL parameters override it. Remove the key or open pricing.html without parameters.
  • A cohort Monday or walkthrough day is missing: it is a federal holiday (or its observed day), a weekend, or in CLOSED_DAYS for walkthroughs.
  • A course has no start dates: live cohort courses get dates only when their id is in COHORTS.rotation.
  • Dates look a day off: dates are computed in Eastern time. Change COMPANY.timeZone in data.js for another home zone, and the "Eastern" wording in main.js and the pages.
  • Fonts look different offline: Ibarra Real Nova and Ysabeau Office come from Google Fonts and need a connection.
  • Saved choices don't persist in a preview frame: some sandboxed frames block storage; the site then keeps state in memory for the visit only.

License#

MIT. The code and all included artwork are free for personal and commercial use; see LICENSE.txt in the download.

Ibarra Real Nova and Ysabeau Office are provided by Google Fonts under the SIL Open Font License.

Chalkwell, its teachers, courses, students and people are fictional; the course covers, portraits and map are original drawings.

Search documentation

Search the guides and every template's documentation