StealThis .dev

Salon — Color Formula Tracker

A per-client hair-color formula tracker for a boutique color bar, pairing a client header with a live formula builder where shade rows carry tinted swatches, parts and developer volume, plus and minus controls, and a gilded ratio bar that recomputes total color, mix ratio and estimated weight on every keystroke. Technique and process-time fields sit beside a save action, while a history rail lists past formulas with swatches and result notes you can load straight back into the builder. Editorial serif, soft toasts.

在 Lab 開啟
html css vanilla-js
目標: JS HTML

程式碼

Color Formula Tracker

A colorist’s chairside record for Maison Lumière Salon, built around a single guest — here, Aria Vance, a level seven warm. The header carries her name, tone tag, last service date and assigned colorist, while the formula builder beneath stacks shade rows that each hold a tinted swatch, a shade selector, a parts field and a developer volume. Add or remove rows freely; the gilded ratio bar and the readout above it recompute total color, the mix ratio and an estimated tube weight on every change.

Technique and a plus-minus process-time stepper sit alongside a result note, so the whole prescription — what was mixed, how long it processed and how it turned out — lives in one place. Saving a formula stamps it with today’s date and drops it to the top of the history rail with a soft confirming toast.

That history is the quiet workhorse: each past formula shows its date, technique, processing time, a strip of shade swatches and the colorist’s note, and a single Load control rebuilds the entire builder from that record so a favourite mix is one tap away. Everything runs on dependency-free vanilla JavaScript — live ratio math, animated bars, an accessible toast helper — and stays legible and tappable down to a 360px viewport.