Salt & Levain Documentation
Salt & Levain is a complete, static HTML5 template for artisan bakeries, sourdough kitchens, cafes, baking schools, and supper tables. Zero build step required — open index.html directly or upload salt-and-levain-html/ to any web host.
1. Package Structure
salt-and-levain-html/ ├── index.html Interactive Showcase & Demo Hub ├── home-01-hearth.html Homepage 01 — Hearth (Flagship Bakery & Cafe) ├── home-02-ledger.html Homepage 02 — Ledger (Broadsheet & Oven Clock) ├── home-03-counter.html Homepage 03 — Counter (Bakery E-Commerce) ├── home-04-supper-club.html Homepage 04 — Supper Club (Long Table Events) ├── home-05-school.html Homepage 05 — Baking School (Classes & Calculator) ├── home-06-market.html Homepage 06 — Market (Seasonal Harvest & Boxes) ├── home-07-pastry.html Homepage 07 — Pastry Case (Viennoiserie & Cake Builder) ├── home-08-catering.html Homepage 08 — Catering (Private Events & Quote Tool) ├── home-09-journal.html Homepage 09 — Journal (Editorial Stories & Recipes) ├── home-10-story.html Homepage 10 — Story (Chaptered Brand Narrative) ├── menu.html, shop.html, ... 41 Inner, Recipe, Tool & Utility Pages ├── assets/ │ ├── css/ levain.css, components.css, demos.css │ ├── js/ levain.js, smart.js, search-index.js (Vanilla JS) │ └── img/ 54 localized high-res photos + SVG favicon + previews/ ├── robots.txt └── sitemap.xml
2. Colors, Typography & Media
Retheme in 60 Seconds via CSS Custom Properties
Open assets/css/levain.css and edit the design tokens in :root:
:root {
--cream: #F4ECDD; /* Page canvas */
--paper: #FBF6EC; /* Card surfaces */
--ink: #2B1814; /* Primary espresso typography */
--garnet: #7A1E24; /* Signature accent */
--gold: #E4A23A; /* Highlight & badge accent */
--olive: #4A5726; /* Secondary botanical accent */
}
All 54 photographs are bundled locally inside assets/img/ with zero external image CDN dependencies. Replace any photo by overwriting its filename in assets/img/.
3. Interactive Features (Vanilla JS — Zero jQuery)
| Data Attribute / Hook | Script | Functionality |
|---|---|---|
data-oven / data-left | levain.js | Live countdown to next 05:00 bake and dynamic loaves-remaining progress bar. |
data-calc | levain.js | Baker's percentage calculator (hydration, salt, starter) with back-timed schedule. |
data-seats | levain.js | Interactive long-table seat picker with availability states and live total. |
.book-widget | levain.js | Reservation date, party size, and live available/held time-slot selector. |
data-cake / data-quote | levain.js | Custom cake builder and catering guest-count quote estimator. |
data-classes / data-pickup | levain.js | Instant class level/day filter and bakery pick-up slot scheduler. |
data-recipe / data-cook-bar | smart.js | Servings scaler, metric/US unit toggle, step timers, and wake-lock Cook Mode. |
data-planner / data-list | smart.js | 7-day baking planner that merges ingredients into a persistent shopping list. |
data-quiz / data-starter | smart.js | Interactive sourdough loaf quiz and levain feeding peak predictor. |
data-palette (⌘K / Ctrl+K) | smart.js | Instant keyboard command palette across all pages via search-index.js. |
4. Connecting Forms to a Backend
Every form includes client-side required-field and email validation plus fetch() AJAX submission with accessible .form-msg, .form-ok, and .form-err feedback states. To connect any form to your own server, PHP mailer, or Formspree, simply set the action="https://your-endpoint" and method="POST" attributes on the <form> element.
5. Sources & Licensing
- Typography: Fraunces & DM Sans via Google Fonts (SIL Open Font License 1.1).
- Photography: Curated photography via Unsplash License, localized inside
assets/img/. Seephoto-credits.htmlfor photographer credits. - Icons & Brand Mark: Original hand-crafted inline SVG wheat-ear emblem and favicon.