finktheartist/rubber-hose-ui
Media & DesignA set of eleven Web Components that turn native form controls into animated 1930s rubber-hose cartoon characters, with no dependencies.
What It Is
Rubber Hose UI renders ordinary UI controls as rubber-hose cartoon characters: the button is a red dome who gets bopped, the slider is a trombone, the toast is a toaster. Each control is a single-file custom element with its painted artwork embedded, and a real native control sits underneath so keyboard input, screen readers and forms still work. There are eleven components, including button, toggle, slider, checkbox, radio, input, tabs, progress, rating, toast and tooltip.
The character bodies, faces, gloves, shoes and sound-effect lettering are painted layers; arms and legs are drawn in code so they can stretch with the control. The art style, component behaviors and each character's reactions are described in the README.
Quick Start
Open the live gallery to see all eleven in motion, or run the gallery locally from the repository folder:
python3 -m http.server 8000
# open http://localhost:8000/
To use one component in a project, install it through the shadcn CLI (it places the file in public/rubber-hose-ui/), or copy the file by hand:
npx shadcn add finktheartist/rubber-hose-ui/button
npx shadcn add finktheartist/rubber-hose-ui/toggle
Then load it with a script tag and place the element:
<script src="button.js"></script>
<hose-button>Confirm</hose-button>
<script src="progress.js"></script>
<hose-progress label="Uploading"></hose-progress> <!-- then el.set(0.4) -->
Each component folder documents its attributes, properties and events. Value controls work inside a <form>. The element exposes el.line and a hose:line event for the character's spoken reaction, and a CSS width scales the whole drawing.
Constraints
- Testing is limited to headless Chromium with real touch and key events; Safari, Firefox, real phones and screen readers are untested.
- The design assumes a light page; dark brown outlines become hard to see on dark backgrounds.
- The button and checkbox text is accessible-name only and is not visibly rendered, so place a visible label beside them.
- Lettering and sound effects are painted in English only, and there is no audio.
prefers-reduced-motionjumps directly to each end state.- Each file includes its own painted layers plus an ~80 KB copy of the shared core; the first loaded file sets
window.RubberHoseand later files reuse it. Files range from 95 to 210 KB. - Licensed MIT; the painted layers and title card were generated with GPT Image, and the lettering font is Patrick Hand under the SIL OFL.
Extending It
The repository also ships a coding-agent skill under skills/rubber-hose-ui/ with the workflow, shared core and a starter example, installable with npx skills add finktheartist/rubber-hose-ui. The making-of directory documents how the painted parts were produced. Agents can consult llms.txt for the file list.
HotRepo's take
The project appeared on HotRepo's new-project board for JavaScript on 2026-11-17 with 101 stars and 8 forks gained during a window starting the previous evening, matching its current totals. No all-language daily rank is recorded and no Hacker News threads matched. That is a single snapshot, so it shows early interest rather than a trend. Beyond the novelty, the useful part is the packaging: native semantics under playful custom elements, no dependencies, and a clear route to install or remix individual controls.
Written by AI from the project's README, updated . The project's own docs are the source of truth.
You might also like
- kevinraymond/florilegiumGenerate Delft-blue floral page margins for LaTeX documents, drawn procedurally in Lua.
- finktheartist/sakuga-vfxA set of twelve single-file web components whose buttons, toggles and inputs burst with hand-drawn anime effects on interaction.
- ZSeven-W/openpencilAn AI-native vector design tool where prompts and agent teams build UI on a live canvas, for designers and devs.
- DominikScholz/open-bot-avatarRenderer and JSON spec for SVG avatar characters with moods and pointer gaze, for agent UIs.
- FortAwesome/Font-AwesomeAn icon set and CSS font toolkit so web and desktop UIs can show consistent SVG or webfont icons without hand-drawing each glyph.