Live preview · sample content
63 pages in this template
- Home/
- Catalogue/products
- Collections/collections
- Cart/cart
- Checkout/checkout
- Account/account
- Sign in/login
- About us/about
- Our process/process
- Contact/contact
- FAQ/faq
- Trade terms/terms
- Request a quote/quote
- Quotes/quotes
- Journal/journal
- Locations/locations
- Trade shows/events
- Collection page/collections/flatweave
- Collection page/collections/hand-tufted
- Collection page/collections/hand-knotted
- Collection page/collections/runners-round
- Collection page/collections/samples
- Collection page/collections/underlay-care
- Product page/products/flat-plain-oat
- Product page/products/flat-stripes-forest
- Product page/products/flat-checker-ink
- Product page/products/flat-border-brick
- Product page/products/flat-stripes-sky
- Product page/products/flat-checker-mustard
- Product page/products/tufted-arches-tangerine
- Product page/products/tufted-sun-rose
- Product page/products/tufted-border-forest
- Product page/products/tufted-plain-sage
- Product page/products/tufted-stripes-plum
- Product page/products/tufted-arches-cobalt
- Product page/products/custom-rug
- Product page/products/knotted-plain-oat
- Product page/products/knotted-border-ink
- Product page/products/knotted-stripes-brick
- Product page/products/knotted-checker-forest
- Product page/products/knotted-plain-ink
- Product page/products/runner-stripes-forest
- Product page/products/runner-border-ink
- Product page/products/runner-plain-sage
- Product page/products/round-sun-mustard
- Product page/products/round-arches-plum
- Product page/products/oval-border-cobalt
- Product page/products/sample-custom
- Product page/products/sample-box-flat
- Product page/products/sample-box-tufted
- Product page/products/yarn-card
- Product page/products/yarn-cone
- Product page/products/underlay-grip
- Product page/products/underlay-felt
- Product page/products/underlay-heated
- Product page/products/care-kit
- Product page/products/spot-cleaner
- Journal article/journal/january-deliveries
- Journal article/journal/choosing-construction
- Journal article/journal/underlay-guide
- Quote/quotes/q-2204
- Quote/quotes/q-2187
- Quote/quotes/q-2140
The prompt
Paste it into Claude Code, Codex or Cursor.
Prompt · Tuft
Read storefront/AGENTS.md and the "Folders and the storefront rule" and "Styling" sections of docs/code.md first. Rebuild the storefront as the "Tuft" design. The finished store must look and behave like the preview at https://openb2bshop.com/preview/tuft: open it, take screenshots at 1440px and 390px, and use them with the description below as the reference. Tuft is a rug workshop that makes wool rugs to order in three constructions (flatweave, hand-tufted, hand-knotted) and twelve colours for furniture shops, hotels and interior designers, with a page where the buyer designs a rug and sees its price. ## 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): #2340d8 - Text (--color-foreground): #ffffff - Secondary text (--color-muted-foreground): #c3ccff - Surfaces such as cards, fields and the trade terms band (--color-card, --color-muted): #2c4ae6 - Main buttons, icons and active pills (--color-primary): #ff6a1f, with text in #12123a (--color-primary-foreground) - Hairlines, where the design draws one: #4a63ea The design is dark: the page is dark and the text is light everywhere, including menus and the cart drawer. ## Type - Titles: DM Serif Display from Google Fonts. - Text, buttons and labels: Manrope 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: 18px corners. - Cards, panels and pictures: 18px corners. ## Home page, top to bottom The home page tells the buyer these things in order, one per section: 1. Rugs made to your plan: the rug drawn on the floor with its price. 2. The control deck that sets shape, pattern, construction, yarn, size and edge. 3. The project list of rug specifications with its total. 4. Six rugs from the collection as a deck of cards. 5. The twelve yarn colours. 6. The three constructions. 7. Trade terms. 8. Trade account. The main action is 'Add to the project list' under the control deck; 'Add rugs to your project' in the project panel puts the list in the cart. 1. Colours: the page is #2340d8, text #ffffff with secondary text #c3ccff, cards #2c4ae6, alternate sections #1a2fa8, hairlines #4a63ea. #ff6a1f is the only brand colour (buttons, the chosen option's 2px border, links), with #12123a as its tint for the current price break and chips; the dark band is #12123a. Titles are DM Serif Display at weight 400 in sentence case, at most 58px in a hero and 42px on a page; text is Manrope at 15px. Corners are 18px on cards and fully round on buttons. 2. Header on every page: a strip in the accent colour with the notice, then a row 72px tall on the page colour: the wordmark on the left, the pages inside a rounded capsule on the soft ground in the middle (the current page is a white pill), and 'Request a quote', the account and a filled cart button on the right. The pages are Rugs, Collections, Custom rug, Workshop, About us, Contact. Below 1024px a menu button opens them as a list. 3. Footer on every page: two rounded halves on the page colour: a panel in the accent tint with the wordmark, one sentence on the company, the sales desk's number set large and the opening hours; and a bordered card with three columns of links, the certificates in one line and the small print. 4. Geometry: content is at most 72rem wide with a roomy gutter; section spacing is generous; product cards run 3 in a row from 1024px with pictures at 4 / 3; headings are large in scale; section heads are centred; sections are separated by tinted bands. 5. Controls: option buttons and fields are filled; specification and break tables are plain; chips are pills; tabs are pills; the main button is solid; cards are flat on the soft ground; rows are airy in spacing. 6. Header (bespoke on the home page): the wordmark with a tangerine italic ampersand, the shop's pages, 'Trade account' and a white Project pill with the count of the cart. 7. First screen (bespoke): the headline 'Rugs made to your plan' across the cobalt page, arriving word by word; under it the rug drawn from above on a tilted pink panel with its two dimensions and an armchair for scale, a round tangerine price badge and an ink label with the specification. 8. Control deck (bespoke): seven rounded cells in pink, white, ink, mint, tangerine and mustard for shape, pattern (six drawn tiles), construction, yarn (ground, pattern and accent in twelve colours), size (presets and 10 cm steppers), edge with the underlay switch, and a white bar with the price rows, the price of one rug and the add button. 9. Project (bespoke): on tangerine under a fringe, a pinned card per rug specification with its drawing, room field, quantity stepper and price, and an ink panel with the quantity breaks, the sums and the buttons that add the rugs to the cart or open the quote page. 10. Flick deck (bespoke): six rugs from the collection as portrait cards fanned in 3D on deep cobalt; the front card is dragged or flicked to the left, and its name, a link to its product page and a button that loads its design into the designer stand beside the deck. 11. Yarn wall (bespoke): on pink, twelve balls of yarn that roll into place while the section scrolls in; a ball recolours the chosen part of the rug. 12. Constructions (bespoke): on white, three numbered columns with a cross-section drawing, the rate, the production time and a button that applies the construction. 13. Trade (bespoke): on ink, five rows for samples, quantity price, smallest rug, delivery and payment. 14. Footer (bespoke): a trade account button, two columns of links, the address and a striped selvedge with a fringe. ## The other pages The preview is a whole storefront. Open each page at https://openb2bshop.com/preview/tuft/<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. Tuft & Weft lists 34 products in 6 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 4 or more costs 5% less, and each product shows its own breaks. The main action is 'Add to project' on a product, an outlined button that puts the product's minimum quantity in the project and reads 'Added' for two seconds. Collection pills with the stock toggle and the sort order, then large bordered cards two in a row: a 16:9 drawing on the soft ground, the collection and part number, the name in the display face, two lines of text, three facts as grey chips, and the price with the pack beside the add button. ### Product page (/products/flat-plain-oat) 1. Flatweave rug, plain, oat: A plain flatweave rug in undyed oat wool with a thin chalk line near the edge. It is reversible, so you can turn it over when one side shows wear. 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 project', the filled button in the pinned buy area. After a click it reads 'Added' and a link to the project appears beside the total. Own arrangement, a page of a rug sample book in three columns: on the left the name, the text and four rows about the construction (pile, production time, price of a square metre); in the middle the rug seen from above on a tinted panel; on the right the sizes, the quantity with its breaks and the buy card on the soft ground. Under the first screen the construction is described in full beside rows on yarn, samples, underlay, care and returns. 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. ### Custom rug (/products/custom-rug) 1. The buyer chooses the shape and size, the construction, the pattern and one of six colour combinations. 2. The rug is drawn from above and changes with every choice. 3. The price of one rug is its area multiplied by the rate of the construction and the pattern; a rug under 1.5 m² is charged as 1.5 m². The main action is 'Add to project' in the pinned bar under the steps, beside a small quantity stepper and the total. The rug drawn from above on the left; on the right three steps (shape and size, construction, pattern and colours) shown one at a time, with the price of one rug, the production time and the add button pinned under them. Round and oval rugs are hand-tufted only, and a flatweave rug offers straight patterns only. ### Collections (/collections) 1. Tuft & Weft groups its catalogue into 6 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/flatweave) 1. Thin, reversible wool rugs with straight patterns, made in 4 weeks. 2. We weave flatweave rugs from a wool weft on a cotton warp. They are 4 mm thick and can be used on both sides. 3. The construction takes plain, striped, checked and bordered patterns. The main action is 'Add to project' 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 project (/cart) 1. The project lists each line with its options and the break it has reached. 2. Delivery costs $45.00 and is free over $2,500.00; the smallest order is $100.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 (payment within 30 days of 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. Hotel Meridian Group 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 project 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. Hotel Meridian Group 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-2204) 1. Rugs for 40 guest rooms, Meridian Chicago. 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. Tuft & Weft 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. We started Tuft & Weft in 2011 with two tufting frames in a rented room in Philadelphia. Our first customers were three furniture shops that wanted rugs in sizes their suppliers did not offer. 2. Today 38 people work in our workshop. We make about 1,900 rugs a year for furniture shops, hotels and interior designers in the United States and Canada. 3. We make rugs in three constructions: flatweave, hand-tufted and hand-knotted. All of them use the same 12 wool colours, so a designer can combine constructions in one project. 4. Most rugs are made to order. You choose a design from our collection or draw your own rug on the custom rug page, and the page shows the price before you order. The main action is 'Browse the catalogue' in the closing band. A wide picture, the history in one reading column with the dated events beside it, four figures between hairlines, the people as cards with initials, the certificates as four boxes. ### Our process (/process) 1. Design and price: You choose a design from the collection or draw a rug on the custom rug page. The page shows the price for the size and construction you choose. 2. Sample: We make a 30 × 30 cm sample in your pattern and colours within 5 working days and credit its price when you order the rug. 3. Order and deposit: You confirm the order, and customers without a trade account pay a deposit of 50%. We send you the production date on the same day. 4. Weaving, tufting or knotting: A flatweave rug takes 4 weeks, a hand-tufted rug takes 6 weeks and a hand-knotted rug takes 14 weeks. Rugs over 12 m² take 2 weeks longer. 5. Finishing and inspection: We wash, shear and bind the rug, and we compare it with the approved sample under daylight lamps. 6. Delivery: The rug is rolled on a tube, wrapped and delivered to your shop or site. Delivery costs $45.00 a rug and is free on orders over $2,500.00. The main action is 'Browse the catalogue' in the closing band. One line down the page with a numbered round stop for each step, its title, text and a chip with its figure. 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. Minimum order 2. Can I order a rug in my own size? 3. Trade prices 4. Samples before an order 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. Prices and minimum order: Prices are trade prices in US dollars without sales tax. A rug is priced by its area, and a rug under 1.5 m² is charged as 1.5 m². 2. Samples: A 30 × 30 cm sample in your pattern and colours costs $25.00 and is made in 5 working days. We credit the price of each sample when you order the rug. 3. Production and delivery: Flatweave rugs take 4 weeks, hand-tufted rugs 6 weeks and hand-knotted rugs 14 weeks. Rugs over 12 m² take 2 weeks longer. 4. Payment: Approved trade accounts pay within 30 days of the invoice date. Customers without a trade account pay a deposit of 50% with the order and the balance before delivery. 5. Returns and repairs: You can return stock rugs, sample boxes and underlay within 30 days if they are unused. Rugs made to order cannot be returned. 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. Order dates for delivery in January: Our workshop is closed from 24 December to 3 January. These are the last order dates for delivery in January. 2. Choosing a construction for a hotel: Flatweave, hand-tufted and hand-knotted rugs differ in thickness, durability and price. This guide compares them for hotel rooms and public areas. 3. Underlay for hard floors and heated floors: An underlay keeps a rug in place and protects the floor. We offer three types. 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. ### Locations (/locations) 1. Philadelphia workshop (Workshop and head office): All rugs are made here. Stock rugs, sample boxes and underlay are shipped from this address. 2. New York showroom (Showroom): The showroom has every design as a 140 × 200 cm rug and all sample boxes. 3. Chicago showroom (Showroom): The showroom has samples of every design and the 12 yarn colours in each construction. The main action is 'Contact the sales desk' in the page head; a pin or a card's title selects a site. Two columns from 1024px: a pinned drawn map (a river, roads and blocks in the theme's tones) with a numbered round pin for each site and the chosen site's name and note under it; on the right one bordered card per site with its number, name, kind as a chip, address, direct line, opening hours and the stock held there. ### Trade shows (/events) 1. National Furniture and Interiors Fair, New York, 16 to 19 May 2027: Hall 3, Stand 1420. 2. Hospitality Design Expo, Las Vegas, 4 to 6 May 2027: Hall A, Stand 2210. 3. Midwest Design Week, Chicago, 14 to 16 June 2027: Level 7, Showroom 714. The main action is 'Book a meeting at the stand' in the page head, which opens the contact page; each show has an outlined 'Book a meeting' button. The shows as rows under hairlines: the dates with a calendar icon, the name with the city and two sentences, and a small table with the hall and the stand above the button. Under them, on the soft ground, the awards as rows with the year, the title and the body that gave it; the same rows close the About page. ## Interactions - A product added on any page is in the project on the next page, and the header's count follows it. The project 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. - Custom rug: the shape, size, construction, pattern and colours redraw the rug and recalculate its price and production time. - Home page designer: every choice redraws the rug on the floor and its price; a round or oval rug becomes hand-tufted with a bound edge, and a flatweave rug takes straight patterns only, with a notice for each change. - Project list: the add button appends the rug as R04, each card changes its quantity or loads a copy into the designer, and one button adds every specification to the cart as a made-to-order line with its choices. - Flick deck: the cards fly up into the fan when the section enters (1.4 s, 70 ms apart); a drag past 22% of the card or a flick sends the front card off to the left in an arc (1.06 s) while the others step forward (0.95 s, 30 ms apart); arrows, arrow keys and a click on a side card also move it, and it advances every 3.2 s until the pointer is over it. - Motion: the headline arrives word by word (60 ms apart), then the panel, the rug, the price badge and the label; sections spring in with a 70 ms stagger; the yarn balls roll in with the scroll; figures count up; buttons lift and press. 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
Open the openb2b repository
Start a coding agent in the repository.
- 2
Paste the prompt or add the skill
Paste it, or save the SKILL.md in .claude/skills/.
- 3
Review the result
Open the result beside the preview and compare.



