The decision that shaped it
Promote code on its second use
An experiment keeps its code until a second one needs it. Then the code moves into the shared components. That’s how the progressive blur, streaming text and rolling numbers got out.
Where it stands
- Live now
- ui.rsimms.com, with 34 experiments you can open and tune.
- Tested
- Every change gets a type-check, a production build and a phone check, with captures in light, dark and on an iPhone.
- Not yet proven
- There are no automated tests. Three experiments are marked done; the other 31 run but are still marked work in progress.
The problem
The details that make an interface feel right are numbers. How long a spring runs, how far a card travels, how soft a blur gets before the text behind it goes. In a product those numbers sit in the middle of a feature, and they get set once and left.
A static mock can’t settle them either. You only know a drag feels right when you drag it, on a phone, in both themes.
The full build breakdownThe opportunity · What I built · Key decisions · How it works · How I verified it · Results
The opportunity
Every product I build needs these details, so tuning them in one place pays back more than once. If an interaction is worked out in isolation, on a component with a clean API, the product only has to import it.
Tellby made this concrete. It animates only from CSS tokens, so a value tuned in the playground can go back into Tellby as a short block of CSS.
What I built
A Next.js app with one route per experiment. Each one pairs a stage with a sticky panel of controls, and saves its settings in the browser so a tuning survives a reload. Three are marked done, and the other 31 run but are still marked work in progress.
Around the experiments sit a gallery of recorded studies at /studies and an interaction lab at /lab, which deals six new concepts a day to keep or pass.
Key decisions
One shared control kit
Sliders, chips, a curve editor, hand-drawn verdicts, sound and toasts all come from one kit. A new experiment starts with its controls done, so the time goes into the interaction.
Start Tellby work from Tellby’s values
Tellby experiments render inside a stage that loads Tellby’s fonts, palette and motion tokens, in light and dark. Each starts from a “Tellby today” preset, and exports only the tokens I changed, each with its old value beside it.
Do the blur maths properly
Stacked backdrop blurs compound, because each layer blurs what’s already blurred behind it. So each layer in the progressive blur adds only the difference the curve asks for, worked out in quadrature, not the full radius.
Phones and keyboards are part of done
Custom draggables are sliders to a screen reader, with arrow keys. Hover only applies on devices that hover, drag surfaces block text selection, and reduced motion is respected everywhere.
How it works
Each experiment is a folder with a server page, a client component, a CSS module, a meta file and a small live preview for the home page. A script scaffolds the folder and registers it, so the home page grid stays in step.
State is one object per experiment, saved under a versioned key. Colours come only from theme variables, so every experiment works in light and dark. A full-screen button lifts any stage to fill the screen, turns the panel into a drawer and moves play buttons onto a player bar.
For Tellby, toTellbyCss compares a tuning with the tokens Tellby ships and writes a :root block for its globals.css holding only the differences.
How I verified it
Every change gets a type-check and a production build before it’s committed, and I check it on a phone.
A capture script shoots an experiment’s stage in light, in dark and on an iPhone 13, with optional real-time GIFs. Run on main and then on a branch, it puts the before and after side by side for the pull request.
Results
The results are reuse. Far Window grew out of the frosted window experiment. Feedback started as the pages feedback experiment, and its anchor code was ported straight across.
This site uses four more. The homepage work wheel is the card wheel experiment with its tuned values. The testimonials ride the same wheel laid flat, over the playground’s progressive blur. The career timeline is the scrub timeline with its defaults unchanged, and the wheels’ sound and haptics come from the playground’s sound provider.
Try it
Open any experiment and pull the sliders. The full-screen button is the best way to try one on a phone.
Open the UI playgroundui.rsimms.com