Skip to content

pastetaste

Recipe Timer Calc

InteractionDataSections

An accordion of brew recipes where each open row scales coffee and water to the number of cups and runs a step timer with a progress bar.

Paste it into Claude Code: it installs the component, asks for your brand and content, and places it on the page you name.

Install

Or by hand, in a Next.js project with shadcn set up. It writes components/pastetaste/recipe-timer-calc.tsx.

npx shadcn@latest add https://pastetaste.com/r/recipe-timer-calc.json

Prompt

Install the pastetaste component "Recipe Timer Calc" (recipe-timer-calc) into this Next.js project and use it.

What it is: An accordion of brew recipes where each open row scales coffee and water to the number of cups and runs a step timer with a progress bar.

Before you place it, ask me (one short message, in my language; "skip" = sensible default): which page and section it goes in, my brand colour (hex), the text, labels or images it should show, and whether I want my logo or my own copy in the demo content. Then:

Steps:
1. If the project has no components.json, run: npx shadcn@latest init -y -d. Then run: npx shadcn@latest add https://pastetaste.com/r/recipe-timer-calc.json
   (it writes components/pastetaste/recipe-timer-calc.tsx; install any npm packages it reports).
2. Import it: import { RecipeTimerCalc } from "@/components/pastetaste/recipe-timer-calc" (check the file for the exact named export).
3. Put it where it fits on the page I name, keep the rest of the page untouched, and pass props for my colours instead of editing the installed file.
4. It does not depend on Tailwind; colours come from CSS variables (--pt-*) or props.
5. It supports prefers-reduced-motion with a still state; do not remove it.

Props (all optional unless the type has no default):
- recipes: { id; name; blurb; image?; ratio; perCup; time; temp; grind; steps[] }[] = V60, moka pot, French press — The recipes. ratio is water per coffee, perCup is ml of water per cup, time is seconds.
- defaultOpen: string | null = 'v60' — Recipe id that starts open.
- maxCups / defaultCups: number = 8 / 2 — Stepper range and start.
- ink / muted / line / accent / background: string = warm paper palette — Colours.
- fontFamily: string = --pt-font-sans stack — Font family.
- className / style: string / CSSProperties — On the section.

Live preview: https://pastetaste.com/c/recipe-timer-calc
Then run the dev server, check it in the browser at desktop and mobile width, and tell me the page URL.

Props 6

PropTypeDefaultDescription
recipes{ id; name; blurb; image?; ratio; perCup; time; temp; grind; steps[] }[]V60, moka pot, French pressThe recipes. ratio is water per coffee, perCup is ml of water per cup, time is seconds.
defaultOpenstring | null'v60'Recipe id that starts open.
maxCups / defaultCupsnumber8 / 2Stepper range and start.
ink / muted / line / accent / backgroundstringwarm paper paletteColours.
fontFamilystring--pt-font-sans stackFont family.
className / stylestring / CSSProperties-On the section.
View all →