Live preview · sample content

55 pages in this template

The prompt

Paste it into Claude Code, Codex or Cursor.

Prompt · Foldline
Read storefront/AGENTS.md and the "Folders and the storefront rule" and "Styling" sections of docs/code.md first.

Rebuild the storefront as the "Foldline" design. The finished store must look and behave like the preview at https://openb2bshop.com/preview/foldline: open it, take screenshots at 1440px and 390px, and use them with the description below as the reference. Foldline is a corrugated packaging maker for online shops and warehouses, with a size finder that names the stock box a product fits and a made-to-size printed mailing box set up in three steps beside its drawing.

## Colours

Set these as the storefront's colour tokens in storefront/styles.css, and give the dark theme the same values so the store looks the same in both:

- Page background (--color-background): #f2f1ee
- Text (--color-foreground): #17181a
- Secondary text (--color-muted-foreground): #63645f
- Surfaces such as cards, fields and the trade terms band (--color-card, --color-muted): #ffffff
- Main buttons, icons and active pills (--color-primary): #d9541a, with text in #ffffff (--color-primary-foreground)
- Hairlines, where the design draws one: #d8d5ce

## Type

- Titles: Bricolage Grotesque from Google Fonts.
- Text, buttons and labels: Inter from Google Fonts.
- Load the fonts in storefront/fonts.ts and point --font-display and --font-sans at them.
- Titles keep tight letter-spacing (about -0.02em).
- Keep the type scale's token names; change only the faces.

## Shape

- Buttons, pills and the header's login button: 10px corners.
- Cards, panels and pictures: 10px corners.

## Home page, top to bottom

The home page tells the buyer these things in order, one per section:

1. Foldline makes and stocks cartons, mailing boxes and envelopes for online shops, warehouses and print houses.
2. Stock orders placed before 2 pm ship the same day, and any size is cut to order.
3. The catalogue has five collections, from shipping cartons to pallet wrap.
4. A buyer types the size of a product and sees the smallest stock box it fits.
5. A printed mailing box takes eight working days, in four stages.
6. A line costs less from 10, 25 and 50 bundles, and the order starts in the catalogue.

The main action is 'Browse the catalogue', a filled orange button in the hero and in the closing band. 'Set up a printed box' is the orange text link beside it in the hero. The size finder, the collection tiles and the product cards are links and carry no second button.

1. Colours: the page is #f2f1ee, text #17181a with secondary text #63645f, cards #ffffff, alternate sections #e8e6e1, hairlines #d8d5ce. #d9541a is the only brand colour (buttons, the chosen option's 2px border, links), with #fbe6da as its tint for the current price break and chips; the dark band is #17181a. Titles are Bricolage Grotesque at weight 600 in sentence case, at most 58px in a hero and 42px on a page; text is Inter at 15px. Corners are 10px on cards and 8px on buttons.
2. Header on every page: one bar 64px tall under a dark strip with the notice: the wordmark on the left, the pages in the middle, the buyer's company and a filled cart button with its count on the right. The pages are Catalogue, Collections, Printed boxes, Our process, About us, Contact. Below 1024px a menu button opens them as a list.
3. Footer on every page: a dark band with the company, its phone and email on the left and three columns of links.
4. Drawings: corrugated boxes seen from a corner in kraft, white or black board, with three tones for the three faces, a strip of paper tape over the flaps and a contact shadow; die-cut mailing boxes as a shallow tray with the lid standing open; envelopes lying at a slight angle; tape and fill as rolls. A product's board colour option repaints its drawing.
5. Hero (kit: HeroSplit) on grey paper: a numbered kicker, the title with its last words in orange, one paragraph, the button and the text link on the left; on the right a stack of two cartons with an open printed mailing box on top, and a white card in the corner that names the die-cut mailing box with its price.
6. Service cells (kit: ServiceCells): four cells between hairlines with an orange icon, a title and one sentence: same-day dispatch, any size from 100 cartons, print in one or two colours, breaks from 10 bundles. Each links to the page that explains it.
7. 'Five collections cover the packing bench and the loading dock' (kit: CollectionMosaic): shipping cartons as one large tile with its first paragraph, and the other four collections as small tiles beside it.
8. Size finder (bespoke): three number fields for length, width and depth in inches on the left; on the right a card that draws the smallest of the 12 stock sizes the product fits, names it with its inside size and the room left along the length, and links to that product. When nothing fits, the card links to the made-to-size box.
9. 'A printed mailing box takes eight working days, in four stages' (kit: PinnedStage): the drawing stays pinned while four chapters scroll past, and the chapter in the middle of the window changes the drawing from a plain kraft box to a white box with one colour, with two colours, and to a bundle of flat boxes.
10. 'The products packing rooms order most' (kit: FeaturedGrid): four product cards.
11. 'The price of a line drops at 10, 25 and 50 bundles' (kit: TierTable): four cells with 0, 6, 10 and 14 as large percentages.
12. One customer's words set large (kit: Testimonial), eight customer names as text (kit: LogoWall), three journal entries (kit: JournalTeasers) and the dark closing band with the main action (kit: CtaBand).

## The other pages

The preview is a whole storefront. Open each page at https://openb2bshop.com/preview/foldline/<path>, take screenshots at 1440px and 390px, and build the store's page to match. Every page tells the buyer a few things in a fixed order, one per section, and has one main action. Don't add a section that isn't in the page's list, and don't add a second filled button beside the main action.

### Catalogue (/products)

1. Foldline lists 29 products in 5 collections at the buyer's trade price.
2. A buyer narrows the list by collection, by stock or by a search from the header.
3. A line of 10 or more costs 6% less, and each product shows its own breaks.

The main action is 'Add to order' on a product, an outlined button that puts the product's minimum quantity in the order and reads 'Added' for two seconds.

Two columns from 1024px: a filter column on the left (the collections with their counts, 'In stock only', the sort order and a note on the quantity breaks) and a three-column grid of product cards on the right.

### Product page (/products/single-wall-carton)

1. Single-wall shipping carton: A regular slotted carton in 125 gsm kraft on B flute, for parcels up to 22 lb. The flaps meet in the middle, so one strip of tape closes each end.
2. Every option group has a label with its current value, and the drawing follows the choice.
3. The quantity shows its price breaks, and the total follows it.
4. The specification, the delivery facts and the products that go with it come under the first screen.

The main action is 'Add to order', the filled button in the pinned buy area. After a click it reads 'Added' and a link to the order appears beside the total.

Two columns that fill the window below the header: the drawing on a soft ground on the left, and on the right a column with the name, the stock, the option groups and the quantity with its break table, which scrolls on its own above a pinned bar with the total and the add button. On a phone the drawing is pinned at the top at 36% of the height, the options scroll under it and the buy bar is pinned at the bottom. Below: specification rows beside the description, three delivery facts, related products.

### Printed mailing box (/products/printed-mailing-box)

1. A mailing box is cut to the inside size the buyer gives, from 6 to 20 inches long.
2. The board is kraft, white or black E flute.
3. The box is plain or printed in one or two spot colours, and black board is printed in opaque white.
4. The price of one box follows its board area and the print, from 250 boxes.

The main action is 'Add to order' in the pinned bar under the steps, beside a small quantity stepper and the total.

Two columns that fill the window below the header: the box drawn open from a corner on a soft ground, with its inside size and flat blank size as a caption; on the right the title and three step tabs (Size, Board, Print) with one step visible at a time. Size has three sliders with number fields; Board has three labelled swatches; Print has plain, one colour and two colours, then a row of six labelled ink swatches for each colour. A tinted line states the rule that applies. The bar under the steps is pinned: quantity stepper from 250 in steps of 50, the total, the price of one and the add button. Below: the choices as rows, and three ready-made boxes.

### Collections (/collections)

1. Foldline groups its catalogue into 5 collections.
2. Each collection has a page with its own text and its products.

The main action is 'Browse the catalogue' in the page head; each collection is a link.

Cards two in a row: the collection's drawing in a frame, its number and name, one sentence and its product count.

### Collection page (/collections/cartons)

1. Single, double and triple-wall cartons from 8 inches to pallet size.
2. Shipping cartons are what Foldline has made since 1978. Every carton in this collection is cut in Philadelphia from board we buy within 200 miles, and we test each grade on our own bench for edge crush and for a drop with its stated load.
3. The grade to choose depends on the weight and on how the parcel travels. Single wall carries up to 22 lb through a parcel network. Double wall takes 66 lb and stacks five high on a pallet. Triple wall replaces a wooden crate.

The main action is 'Add to order' on a product.

A soft band with the name, one sentence and three figures (products, in stock, dispatch from) beside the collection's drawing; the collection's paragraphs beside a small title; its products in the catalogue's card or table shape; a link to the next collection.

### The order (/cart)

1. The order lists each line with its options and the break it has reached.
2. Delivery costs $32.00 and is free over $450.00; the smallest order is $75.00.
3. A buyer who needs a price on paper sends the lines as a quote request.

The main action is 'Check out', a full-width filled button in the summary. 'Request a quote' is the text link under it.

Two columns from 1024px: the lines as one card per line with its drawing, options, stepper, the break it has reached, a field for the buyer's reference and the line total, and a pinned summary with goods, quantity breaks, delivery, sales tax and the total. Empty, the page says so, links to the catalogue and shows three products.

### Checkout (/checkout)

1. The buyer chooses the delivery address and the day.
2. Payment is on account (net 30 from the invoice date), by card or by bank transfer, with a purchase order number.
3. Placing the order shows its number and puts it first on the account page.

The main action is 'Place the order'.

Four numbered blocks on one page (delivery address, delivery day, payment, reference), each with its current value beside its title, and the order summary pinned on the right with 'Place the order'.

### Account (/account)

1. Tidewater Tea Co. sees its orders, quotes, invoices and saved lists.
2. An order opens to its lines, a quote row opens the quote's page and an invoice can be paid.
3. The Messages tab lists the threads with the supplier about an order, a quote or a general question; a reply typed in the box joins the thread.
4. A saved list goes into the order in one click.

The main action is 'Start a new order' in the page head.

A row of four figures (open balance, free credit, terms, orders this year), then tabs for orders, quotes, invoices, saved lists and company.

### Quotes (/quotes)

1. Tidewater Tea Co. sees every quote the supplier has prepared.
2. A row shows the number, the title, the date until which the prices are valid, the status and the total, and opens the quote.

The main action is 'Request a quote' in the page head.

The quotes as rows under hairlines; each row is a link to the quote's page.

### Quote (/quotes/q-5521)

1. Gift set box, 12 × 8 × 4 in, black, 2 colours, 2,500 boxes.
2. The buyer reads the lines with quantity, price of one and line total, and the date until which the prices are valid.
3. Accepting the quote turns it into an order.
4. The buyer can write to the supplier about the quote, and the reply joins the thread.

The main action is 'Accept and convert to order' in the summary box.

Two columns from 1024px: on the left the number with a status chip, the title, the lines as a table and under it the messages about the quote with a reply box; on the right a pinned bordered box with goods, tax and total, the validity and payment terms, the accept button and a link to request a changed quote. After accepting, the button is replaced by a tinted note with the new order number.

### Sign in (/login)

1. Foldline sells to trade customers.
2. A buyer signs in, or applies for an account in the second tab.

The main action is 'Sign in', and 'Send the application' in the second tab.

Two columns: the title, one sentence, a picture and four rows of terms on the left; a card with the two tabs and their forms on the right.

### About us (/about)

1. Foldline started in 1978 as a sheet plant with one slotter and eleven people, cutting shipping cartons for local textile mills.
2. Walter Brandt founded the company after sixteen years as a corrugator foreman. He bought board from the mills upstate and converted it to order, so a small mill could get 200 cartons in a week, when the big plants wanted a truckload and a month.
3. The mills closed through the 1980s and the customers changed. Mail-order companies needed smaller boxes in more sizes, so in 1991 Foldline bought its first rotary die cutter and began to keep stock. The first printed price list had 38 sizes.
4. Walter's daughter, Karen Brandt, took over in 2004. Under her the company opened the online trade shop in 2012, added envelopes and tape so a packing bench could be supplied from one order, and moved to the present 140,000 square foot plant in 2017.

The main action is 'Browse the catalogue' in the closing band.

A soft band with the first paragraph beside a picture, four figures on the dark band, the history beside its dated events, the people as rows, the certificates as four boxes.

### Our process (/process)

1. You order or ask for a size: Stock orders go straight to the warehouse. For a made-to-size box, you give us the inside dimensions and the weight of the contents, and we choose the flute and the board grade for that load.
2. We check the artwork and send a proof: Andre's prepress team checks the file against the die line, converts colours to the two spot inks and sends a flat proof and a folded 3D view. We cut nothing before you approve it.
3. We cut and crease the board: Sheets from the mill run through the rotary die cutter, which cuts the outline and presses the creases in one pass. We fold the first ten boxes of every run by hand and measure them.
4. We print the box: The flexo line prints one or two water-based colours directly on the board. An operator compares the print with the approved proof under daylight lamps at the start of the run and every 500 sheets.
5. We test a sample from every run: Tom's bench takes five boxes from each run for an edge-crush test and, for shipping cartons, a drop test with the stated load. We keep the results with the order for five years.
6. We bundle, label and ship the order: We strap the boxes flat in bundles, label them with the size and your order reference, and load them on our own trucks or hand them to the carrier at 5 p.m.

The main action is 'Browse the catalogue' in the closing band.

Wide rows with a large number, the title, the text and the step's figure on the right. A picture above, and the lead times as rows below.

### Contact (/contact)

1. Each department has its own number and address.
2. A message goes to the chosen department and is answered within one working day.

The main action is 'Send the message'.

The departments as selectable rows with the address and the opening hours under them on the left; the form on the right, whose title names the chosen department.

### Questions and answers (/faq)

1. Who can open a trade account?
2. What is the smallest order?
3. Are the sizes inside or outside dimensions?
4. How do the quantity breaks work?

The main action is 'Contact the sales desk' in the box under the questions.

The questions grouped by subject, each group with its name on the left and an accordion on the right in which one answer is open at a time.

### Delivery and terms (/terms)

1. Accounts and payment: We sell to registered businesses only. A new account pays the first order by card or bank transfer, and from the second order the account runs on net 30 with a starting limit of $5,000.
2. Delivery: Stock orders placed before 2 p.m. ship the same day. The delivery charge is $32.00 for an order under $450.00 and nothing above it. Our own trucks in the Philadelphia area charge $18.00.
3. Made-to-size and printed boxes: A made-to-size order starts when you confirm the size, and a printed order when you approve the proof. From that point we cut the board for you, so you can no longer cancel the order.
4. Returns: You can return unopened bundles of stock products within 30 days for a credit, less a 10% restocking charge. We cannot accept returns of made-to-size and printed boxes unless they differ from the approved proof or size.

The main action is 'Browse the catalogue' at the end.

Four figures in a box, the delivery zones as a table beside the quantity breaks and lead times, then the numbered sections of the terms.

### Quote request (/quote)

1. A buyer describes the job or sends the lines already in the cart.
2. The sales desk replies within one working day, and an accepted quote becomes an order.

The main action is 'Send the quote request'.

The form on the left (project name, needed by, description) and the cart's lines with their total on the right.

### Journal (/journal)

1. Why most of our customers switched from the bubble mailer: Padded paper mailers went from 12% to 71% of our mailer sales in three years. The reasons were postage classes, kerbside recycling and one large marketplace.
2. What the flute letters mean for your parcel: The flute determines how a carton stacks, how it prints and how much it weighs. This is a short guide from our test bench.
3. The plant ran on its own solar power for seven months: The solar array on our roof produced 1.34 GWh between March and September, which covered both shifts.

Each entry is a link; an entry page ends in 'Browse the catalogue'.

Three entries in a row with a drawing, the date and author, the title and the excerpt; an entry page is one reading column.


## Interactions

- A product added on any page is in the order on the next page, and the header's count follows it. The order starts empty.
- Product page: an option changes the price of one, a colour repaints the drawing and a size reshapes it. The stepper follows the product's minimum and step, the current break cell is tinted and the total rolls to its new value.
- Cart: a stepper changes the line total, the break note under the line, the delivery charge and the total. Under the minimum order the page says how much is missing and 'Check out' is disabled.
- Checkout: choosing an address, a day or a payment moves the accent border. 'Place the order' empties the cart and shows the confirmation; the order is then the first row on the account page.
- Account: the tabs swap the section; an order row opens and closes its lines; accepting a quote and paying an invoice change the row's chip; a saved list adds its lines to the cart.
- The search field in the header (where the header has one) opens the catalogue with the matching products and a line that clears the search.
- Contact, quote request and the trade application show a confirmation in place of the form after sending.
- Motion is limited to transform and opacity: sections and cards rise in once, amounts roll, and no page has an idle loop.
- Size finder: each field redraws the picked box at once; the card's value line and its link follow the fit.
- Printed box: a slider resizes the drawn box and reprices it. Raising the width past the length raises the length. Choosing black board removes the two-colour option and the ink rows and prints the box in white. The first ink paints a mark on the left face and the second a band on the right face.
- Pinned stage on the home page: an IntersectionObserver on the chapters sets the active one; the pictures cross-fade and the other chapters dim to 40%.

Build each part as a component in storefront/home or storefront/pages, and read every product, price, category and stock figure from kit/ in the route file. The names, products and numbers in the preview are sample content.

## The rest of the storefront

Carry the design through the category, product, cart, checkout, quote and account pages: the same colours, fonts, corners, buttons, cards and motion, so every page belongs to the same store.

## How to build it

This is how earlier redesigns of this storefront were done (see `git log` for "The homepage follows the Horizone template" and "The storefront moves like the template"). Do it the same way.

- Home page sections are blocks staff edit. The home route renders `<PageBlocks pageKey="home" />` (storefront/page-blocks.tsx), which draws the blocks arranged under Marketing → Page layout. Restyle the existing blocks to this design. For a section the store has no block for, add a section layout or a block: its schema in lib/homepage-blocks.ts, its component in storefront/home, its case in storefront/page-blocks.tsx, its form in admin/marketing (home-section-form.tsx, blocks.tsx, block-thumbnail.tsx), its labels in messages/en and messages/zh-CN, and its cases in lib/homepage-blocks.test.ts. Anything it reads from the store comes through kit/.
- The store starts with this design. Put the homepage's blocks, texts and pictures into prisma/seed-store.ts and public/seed, so a new store opens with this homepage, and set the same homepage on the local store.
- Restyle the whole storefront: the header and footer (storefront/site, storefront/layout), the product card, catalog, cart, checkout and account components (storefront/store), and the page bodies (storefront/pages).
- Colours, fonts, corners and the type and spacing scale are tokens in storefront/styles.css. Set them for the light theme and for `.dark`. When you change the scale, change its lists in scripts/lint/styling.mjs with it.
- Keep the store light. Motion is an accent: a short entrance, sections rising in, quick state changes and at most two small idle loops per page. Animate only opacity, translate and scale. No blur or backdrop filters on large areas, no SVG filters, no canvas, no video backgrounds, no parallax and no scroll or pointer handlers that re-render the page. Don't add an animation library.
- Motion is CSS in storefront/motion.css: entrances on load, sections and cards rising in on scroll with a stagger, hover lifts and state changes, with opacity, translate and scale only, and nothing under reduced motion. Keep the state itself in React.
- Icons are files in ui/store-icons, one per icon. Product and category pictures come from the catalog; a scene or a diagram is an SVG component in storefront/.
- If you change a shared ui/ component's markup, delete its entry in tests/ui-markup/fixtures and run `WRITE_MARKUP=1 bun test tests/ui-markup`.
- If the store has a design published through the MCP design tools, clear its colour, font and radius tokens, because they override storefront/styles.css.

## Rules

A storefront file reaches the rest of the app only through kit/: don't import from server/, admin/, services/ or lib/auth, and don't send or calculate a price in the browser. Show `yourPrice` and the totals the kit returns. Keep these working: add to cart stays on the page and shows the "Added" notice, checkout asks for the address before it shows shipping methods, and a guest can check out. Nothing scrolls sideways at 390px or 1440px.

## Finish

Run `bun run lint`, `bun test ./tests/architecture`, `bun test ./storefront ./lib/homepage-blocks.test.ts` and `bun test tests/ui-markup`, and fix what they report. Start the store with `bun run dev`, take screenshots of your home, catalog, product and checkout pages at 1440px and 390px, and compare the home page with the preview's screenshots section by section: layout, colours, fonts, spacing, corners and motion. Keep changing the storefront until they match. Then write the commit message the way this repository does, as sentences that say what the storefront now shows, and list the files you changed.

Use it

  1. 1

    Open the openb2b repository

    Start a coding agent in the repository.

  2. 2

    Paste the prompt or add the skill

    Paste it, or save the SKILL.md in .claude/skills/.

  3. 3

    Review the result

    Open the result beside the preview and compare.

More templates