# Blueprint (`blueprint`)

> A pump works' own drawings as a website: the drawing frame, a front view, a section A–A that assembles and the performance range, in blueprint ink on white-print paper, with ink buttons and red pencil kept for marks.

This is a worked example: one concept, built for one fictional client. Study how its concept turned into decisions and borrow the craft. Do not ship its surface (palette, motifs, component looks) for a different client unless your own concept, drawn from that client's world, leads to the same place.

- Chinese name: 工程蓝图. 一家泵阀厂自己的图纸做成的网站：图框、主视图、会装配的 A–A 剖视和性能型谱，晒图蓝线画在白图纸上，按钮用墨蓝，红笔只做批注。
- Category: Technical. Tags: Precise, Technical drawing, Grid, Sans-serif, Light, Photography, Micro-interactions.
- Live page: [English](/en/sites/blueprint/full/) · [Chinese](/sites/blueprint/full/) · [viewer with desktop and mobile views](/en/sites/blueprint/)
- Built with Astro, React, TypeScript and Tailwind CSS 4, plus Motion, Motion Primitives, Magic UI, Rough Notation.

## Where the concept came from

From a Ningbo pump works' own drawings: the frame with its zone marks, the casing front view, section A–A with its parts list, the performance range chart, the works test curve and, at the end, the title block, printed blue on white like a diazo print.

## When it fits

Good for:
- Export factories and equipment or parts makers: drawings, tolerances, material certificates and test reports are exactly what buyers check.
- Job shops and mould makers that build to customer drawings: an enquiry is a drawing, and lead times follow the operations.
- Architecture, structural and industrial design practices, whose work already comes as drawing sets with frames and title blocks.

Avoid when:
- Restaurants, homestays and travel: engineering drawings feel cold, and nobody books a room off a dimension line.
- Consumer brands that sell mood and lifestyle: the precision crowds out warmth.
- Service businesses without drawings or data: a forced drawing frame is only decoration.

Industry fit (1-5): Export factory 5, Creative brand 3, Education 3, Attraction 2, Artisan 2, Tour guide 1, Hotel & homestay 1, Restaurant 1, Farm produce 1.

## Adapting it to another client

Keep:
- Use the client's own drawings as the imagery: here a front view, a section and a range chart; elsewhere flat patterns, wiring diagrams or mould drawings. The line work carries the first screen without a photo.
- One ink for everything: lines, text, tables and buttons share a single blue and one section inverts; red pencil is only for marks (PASS, the closure, the ex-works line), never a button.
- One signature moment tied to how the product is built: parts assemble along the shaft, driven by scroll on wide screens and by a stepper on phones, with no instructions on screen.
- Take the drawing's paperwork literally in one place: the title block closes the page, monospace stays in the title block, the dimensions and table figures, and no section carries a sheet or drawing number.

Change:
- Blueprint blue and the drawing frame are this pump works' surface; another factory should use its own drawing language and take its colours from those drawings.
- Replace the pump front view, section and range chart with the client's own products and data, and the works photos with the client's own, baked to one duotone.
- Fill the title block from the client's real documents instead of copying YL‑CAT‑2026.

## Essentials

- **Color.** Print paper #eef0ea with one blueprint ink #12396b for lines, text, tables and buttons: the primary button is ink with paper-coloured text, the secondary an ink outline. The construction section inverts to white line on blue. Secondary text #4d5f80, chart grids and table row rules #c3cbd6. The only accent is checker's red #b92e1a, used for marks only: the box round PASS, the line under the Spring Festival closure, and the ex-works line and closure band on the schedule; never on a button.
- **Type.** Latin display in IBM Plex Sans Condensed 500, uppercase, −0.015em tracking and 0.92 line height, like drawing lettering; buttons and navigation use it too. Body in IBM Plex Sans 400 at 16–17px and 1.6. Chinese in Noto Sans SC Variable: the hero headline at 600, sized to its column with container units (up to 148px) at 1.04; section headings 52–104px; body 400 at 1.85. IBM Plex Mono only for the drawings' dimensions, chart ticks, the title block and the figures in tables, never for small labels. font-synthesis: none and no italics anywhere.
- **Layout.** A drawing frame fixed around the viewport: an 8–24px zone band with 1–8 and A–F markers and centring marks, then a 1.5px ink frame line. On desktop the first screen is laid out like a sheet: the front view takes the left half, and the headline, lede and quote button sit bottom-right where a drawing's title would go; on phones the headline comes first and the drawing follows. Section headings are large short nouns and each section opens differently: construction with the section drawing, the range with its chart, quality with a full-width photo of the test loop, lead times with a huge day count. Tables have a thick rule above and below and thin row rules, no vertical rules, and the parts list drops even the row rules; the enquiry form uses tinted fields on an ink baseline. The page ends with the title block: company, title, drawing number, revision, date, scale, units and projection symbol. On phones the parts list, test curve, approvals and sea freight fold away, and a two-action bar (quote, call) appears once the first screen has scrolled past.
- **Imagery.** The product is drawn in SVG line work: front view, section A–A, performance chart and test curve. Visible outlines 2.2–2.6, thin lines 1, dashed hidden lines, chain centre lines, and 45° hatching on cut material that changes angle or pitch between neighbouring parts. Works photos are baked to an ink duotone and printed onto the paper with mix-blend-mode: multiply, with no frames or tags: the quality section opens with one full-width photo of the test loop, and lead times sets one large photo beside two small ones.
- **Motion.** One signature moment: the ten parts of the section assemble along the shaft, balloons and leaders follow their parts, the parts list highlights and ticks each row and the four step bars fill in turn, after the outlines plot in like a pen plotter. Wide screens drive it by scroll on a pinned stage; phones pin nothing: it plays through once when scrolled into view, then an Apart / 1–4 stepper replays any step. No "scroll to assemble" hint on screen. Everything else is short: a 260ms selection box on the filters and order sizes, sliding lead-time digits, clip-path Gantt bars and red-pencil marks drawn once on scroll, all on cubic-bezier(0.32, 0.72, 0, 1).

## Common mistakes

- Dressing every block in drawing paperwork: 'Sheet 2 of 6' on each section, drawing numbers in the corners, monospace micro-labels and hairline grids everywhere reads as an AI showing off. The paperwork appears literally once, in the title block at the end.
- Making the buttons checker's red: red pencil is for marks, not actions. Buttons are ink, with hierarchy from solid versus outline.
- Writing slogans: a two-beat line like 'built to the drawing' gives way to the category, 'Centrifugal pumps and valves', and the sections are nouns: Construction, Range, Quality, Lead times, Enquiry.
- Blue ground everywhere: only one section inverts to white on blue; body text, tables and forms stay on the paper so they remain easy to read.
- Carrying the horizontal section and its pinned scroll onto phones: parts and balloons become unreadable, and the pinned distance is all thumb travel. Turn the shaft axis vertical, line the balloons up on one side and swap the pin for a stepper.

## Design tokens

| Token | Value | Role |
| --- | --- | --- |
| `--color-print` | `#eef0ea` | Print paper ground |
| `--color-ink` | `#12396b` | Blueprint ink: lines, text, buttons and the inverted section |
| `--color-ink-soft` | `#4d5f80` | Secondary text and table heads |
| `--color-rule` | `#c3cbd6` | Chart grids and table row rules |
| `--color-redline` | `#b92e1a` | Checker's red: marks only |

Semantic colors with shadcn/ui names, ready for `globals.css`:

```css
:root {
  --background: #eef0ea;
  --foreground: #12396b;
  --primary: #12396b;
  --primary-foreground: #eef0ea;
  --muted: #c3cbd6;
  --muted-foreground: #4d5f80;
  --border: #c3cbd6;
  --ring: #12396b;
}
```

Fonts. The stacks use Fontsource family names; with Google Fonts or `next/font`, drop the " Variable" suffix. Each npm package holds the CSS and its unicode-range sliced font files. The jsDelivr links are for prototypes only: Google Fonts is blocked in mainland China and jsDelivr is unreliable there, so a production site for mainland visitors bundles the packages, or copies each CSS file with its `files/` folder to its own server or object storage and links that. A Chinese family costs about 100 KB of render-blocking CSS per weight (31 KB gzipped, about 100 slices); browsers then download only the slices for the characters on the page, so link only the weights you use.

- `--font-display`: "IBM Plex Sans Condensed", "Noto Sans SC Variable", "PingFang SC", "Microsoft YaHei", sans-serif
- `--font-sans`: "IBM Plex Sans", "Noto Sans SC Variable", "PingFang SC", "Microsoft YaHei", sans-serif
- `--font-mono`: "IBM Plex Mono", "Noto Sans SC Variable", ui-monospace, "SFMono-Regular", monospace
- IBM Plex Sans Condensed: `npm install @fontsource/ibm-plex-sans-condensed`, then `import '@fontsource/ibm-plex-sans-condensed/500.css'`. Plain-HTML prototype: `<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource/ibm-plex-sans-condensed@5.3.0/500.css">`
- IBM Plex Sans: `npm install @fontsource/ibm-plex-sans`, then `import '@fontsource/ibm-plex-sans/400.css'` and `import '@fontsource/ibm-plex-sans/500.css'`. Plain-HTML prototype: `<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource/ibm-plex-sans@5.3.0/400.css">` `<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource/ibm-plex-sans@5.3.0/500.css">`
- IBM Plex Mono: `npm install @fontsource/ibm-plex-mono`, then `import '@fontsource/ibm-plex-mono/400.css'` and `import '@fontsource/ibm-plex-mono/500.css'`. Plain-HTML prototype: `<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource/ibm-plex-mono@5.3.0/400.css">` `<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource/ibm-plex-mono@5.3.0/500.css">`
- Noto Sans SC Variable: `npm install @fontsource-variable/noto-sans-sc`, then `import '@fontsource-variable/noto-sans-sc/wght.css'`. Plain-HTML prototype: `<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/noto-sans-sc@5.3.1/wght.css">`

Easing:

- `--ease-precise`: `cubic-bezier(0.32, 0.72, 0, 1)`

All tokens: [tokens.css](/styles/blueprint/tokens.css) · [tokens.json](/styles/blueprint/tokens.json)

## Page structure

Screenshots are 1440 × 900 (desktop) and 390 × 844 (mobile) viewports, on the Chinese page unless marked English. Sections taller than the screen, such as pinned scroll chapters, are captured part-way through.

1. **Header** (`:is(body, main) > header`): [components/Header.astro](/sources/blueprint/components/Header.astro.txt). Visible in the Hero screenshots
2. **Hero** (`#top`): [components/Hero.astro](/sources/blueprint/components/Hero.astro.txt). Screenshots: [desktop](/shots/blueprint/top-desktop.jpg) · [mobile](/shots/blueprint/top-mobile.jpg) · [desktop, English](/shots/blueprint/top-desktop-en.jpg) · [mobile, English](/shots/blueprint/top-mobile-en.jpg)
3. **Assembly** (`#assembly`): [components/Assembly.astro](/sources/blueprint/components/Assembly.astro.txt). Screenshots: [desktop](/shots/blueprint/assembly-desktop.jpg) · [mobile](/shots/blueprint/assembly-mobile.jpg) · [desktop, English](/shots/blueprint/assembly-desktop-en.jpg) · [mobile, English](/shots/blueprint/assembly-mobile-en.jpg)
4. **Series** (`#series`): [components/Series.astro](/sources/blueprint/components/Series.astro.txt). Screenshots: [desktop](/shots/blueprint/series-desktop.jpg) · [mobile](/shots/blueprint/series-mobile.jpg) · [desktop, English](/shots/blueprint/series-desktop-en.jpg) · [mobile, English](/shots/blueprint/series-mobile-en.jpg)
5. **Quality** (`#quality`): [components/Quality.astro](/sources/blueprint/components/Quality.astro.txt). Screenshots: [desktop](/shots/blueprint/quality-desktop.jpg) · [mobile](/shots/blueprint/quality-mobile.jpg) · [desktop, English](/shots/blueprint/quality-desktop-en.jpg) · [mobile, English](/shots/blueprint/quality-mobile-en.jpg)
6. **LeadTimes** (`#lead-times`): [components/LeadTimes.astro](/sources/blueprint/components/LeadTimes.astro.txt). Screenshots: [desktop](/shots/blueprint/lead-times-desktop.jpg) · [mobile](/shots/blueprint/lead-times-mobile.jpg) · [desktop, English](/shots/blueprint/lead-times-desktop-en.jpg) · [mobile, English](/shots/blueprint/lead-times-mobile-en.jpg)
7. **Rfq** (`#rfq`): [components/Rfq.astro](/sources/blueprint/components/Rfq.astro.txt). Screenshots: [desktop](/shots/blueprint/rfq-desktop.jpg) · [mobile](/shots/blueprint/rfq-mobile.jpg) · [desktop, English](/shots/blueprint/rfq-desktop-en.jpg) · [mobile, English](/shots/blueprint/rfq-mobile-en.jpg)
8. **Footer** (`:is(body, main) > footer`): [components/Footer.astro](/sources/blueprint/components/Footer.astro.txt). Screenshots: [desktop](/shots/blueprint/footer-desktop.jpg) · [mobile](/shots/blueprint/footer-mobile.jpg) · [desktop, English](/shots/blueprint/footer-desktop-en.jpg) · [mobile, English](/shots/blueprint/footer-mobile-en.jpg)

## Key components

### AssemblyDrawing

The signature: the exploded section A–A assembles along the shaft, balloons and leaders follow the parts, the parts list highlights and ticks each row, four step bars fill in turn, and the finished pump zooms in with its overall length. Wide screens scroll through it on a pinned stage; phones pin nothing: the axis turns vertical, it plays through once when scrolled into view, and an Apart / 1–4 stepper replays any step. With reduced motion it rests as the ballooned exploded view and the stepper jumps without animation.

- Source: [components/AssemblyDrawing.tsx](/sources/blueprint/components/AssemblyDrawing.tsx.txt) (Motion)
- Also needs: [drawing/pump.ts](/sources/blueprint/drawing/pump.ts.txt), [drawing/geometry.ts](/sources/blueprint/drawing/geometry.ts.txt), [components/Assembly.astro](/sources/blueprint/components/Assembly.astro.txt)
- Built on Motion Primitives `animated-background` ([components/ui/animated-background.tsx](/sources/blueprint/components/ui/animated-background.tsx.txt), restyled): `npx shadcn@latest add https://motion-primitives.com/c/animated-background.json`
- Appears in: Assembly (`assembly`)

### Front view

The first screen's front view: volute, suction and discharge flanges and the foot, dimensioned with the centre height, flange ratings, bolt holes, flatness and datum A, with cutting-plane marks A pointing to the section below. On desktop it takes the left half while the headline and quote button sit bottom-right.

- Source: [components/FrontView.astro](/sources/blueprint/components/FrontView.astro.txt)
- Also needs: [drawing/front.ts](/sources/blueprint/drawing/front.ts.txt), [components/Hero.astro](/sources/blueprint/components/Hero.astro.txt)
- Appears in: Hero (`top`)

### Drawing frame and title block

A drawing frame fixed around the viewport (zone markers, centring marks) and the title block that closes the page: company, title, drawing number, revision, date, scale, units and the first-angle symbol, the one place monospace labels appear. On phones a quote-and-call bar appears once the first screen has scrolled past and steps aside at the enquiry form.

- Source: [components/Footer.astro](/sources/blueprint/components/Footer.astro.txt)
- Also needs: [components/DrawingFrame.astro](/sources/blueprint/components/DrawingFrame.astro.txt), [components/Header.astro](/sources/blueprint/components/Header.astro.txt), [components/ActionBar.astro](/sources/blueprint/components/ActionBar.astro.txt), [components/Projection.astro](/sources/blueprint/components/Projection.astro.txt)
- Appears in: Footer (`footer`)

### PumpRange

A log-log performance chart with the series tables. Filtering by application slides an ink AnimatedBackground selection box and fades the series that do not apply; tapping a series code or its box highlights both. On phones pumps and valves sit behind two tabs, rows show flow, head and power, and tapping a series code unfolds its materials and standard.

- Source: [components/PumpRange.tsx](/sources/blueprint/components/PumpRange.tsx.txt) (Motion Primitives)
- Also needs: [components/Series.astro](/sources/blueprint/components/Series.astro.txt), [factory.ts](/sources/blueprint/factory.ts.txt)
- Built on Motion Primitives `animated-background` ([components/ui/animated-background.tsx](/sources/blueprint/components/ui/animated-background.tsx.txt), restyled): `npx shadcn@latest add https://motion-primitives.com/c/animated-background.json`
- Appears in: Series (`series`)

### ScheduleChart

A production Gantt by order size: hatched bars resize with clip-path, SlidingNumber rolls a huge day count, and the ex-works date is counted from today in Ningbo, adding factory closures such as Spring Festival and marking them with a red closure band and ex-works line.

- Source: [components/ScheduleChart.tsx](/sources/blueprint/components/ScheduleChart.tsx.txt) (Motion Primitives)
- Also needs: [components/LeadTimes.astro](/sources/blueprint/components/LeadTimes.astro.txt), [factory.ts](/sources/blueprint/factory.ts.txt)
- Built on Motion Primitives `animated-background` ([components/ui/animated-background.tsx](/sources/blueprint/components/ui/animated-background.tsx.txt), restyled): `npx shadcn@latest add https://motion-primitives.com/c/animated-background.json`
- Built on Motion Primitives `sliding-number` ([components/ui/sliding-number.tsx](/sources/blueprint/components/ui/sliding-number.tsx.txt), restyled): `npx shadcn@latest add https://motion-primitives.com/c/sliding-number.json`
- Appears in: LeadTimes (`lead-times`)

### Markup

The checker's red pencil: Highlighter boxes the PASS on the works test and underlines the Spring Festival notice, drawn once on scroll and used nowhere else.

- Source: [components/Markup.tsx](/sources/blueprint/components/Markup.tsx.txt) (Magic UI)
- Also needs: [components/ui/highlighter.tsx](/sources/blueprint/components/ui/highlighter.tsx.txt)
- Built on Magic UI `highlighter` ([components/ui/highlighter.tsx](/sources/blueprint/components/ui/highlighter.tsx.txt), restyled): `npx shadcn@latest add https://magicui.design/r/highlighter.json`
- Appears in: Quality (`quality`), LeadTimes (`lead-times`)

## Dependencies

`npm install motion react-use-measure rough-notation`

## Source files

Read only what you need:

- [Site.astro](/sources/blueprint/Site.astro.txt): the whole page, with fonts, sections and scripts
- [styles.css](/sources/blueprint/styles.css.txt): tokens and component classes
- [i18n.ts](/sources/blueprint/i18n.ts.txt): all copy, in Chinese and English
- [meta.ts](/sources/blueprint/meta.ts.txt): this guide as data
- [components/Header.astro](/sources/blueprint/components/Header.astro.txt): section
- [components/Hero.astro](/sources/blueprint/components/Hero.astro.txt): section
- [components/Assembly.astro](/sources/blueprint/components/Assembly.astro.txt): section
- [components/Series.astro](/sources/blueprint/components/Series.astro.txt): section
- [components/Quality.astro](/sources/blueprint/components/Quality.astro.txt): section
- [components/LeadTimes.astro](/sources/blueprint/components/LeadTimes.astro.txt): section
- [components/Rfq.astro](/sources/blueprint/components/Rfq.astro.txt): section
- [components/Footer.astro](/sources/blueprint/components/Footer.astro.txt): section
- [components/ActionBar.astro](/sources/blueprint/components/ActionBar.astro.txt)
- [components/AssemblyDrawing.tsx](/sources/blueprint/components/AssemblyDrawing.tsx.txt)
- [components/DrawingFrame.astro](/sources/blueprint/components/DrawingFrame.astro.txt)
- [components/EnquiryForm.tsx](/sources/blueprint/components/EnquiryForm.tsx.txt)
- [components/Fold.astro](/sources/blueprint/components/Fold.astro.txt)
- [components/FrontView.astro](/sources/blueprint/components/FrontView.astro.txt)
- [components/Markup.tsx](/sources/blueprint/components/Markup.tsx.txt)
- [components/Photo.astro](/sources/blueprint/components/Photo.astro.txt)
- [components/Projection.astro](/sources/blueprint/components/Projection.astro.txt)
- [components/PumpMark.astro](/sources/blueprint/components/PumpMark.astro.txt)
- [components/PumpRange.tsx](/sources/blueprint/components/PumpRange.tsx.txt)
- [components/ScheduleChart.tsx](/sources/blueprint/components/ScheduleChart.tsx.txt)
- [drawing/front.ts](/sources/blueprint/drawing/front.ts.txt)
- [drawing/geometry.ts](/sources/blueprint/drawing/geometry.ts.txt)
- [drawing/pump.ts](/sources/blueprint/drawing/pump.ts.txt)
- [factory.ts](/sources/blueprint/factory.ts.txt)
- [type.ts](/sources/blueprint/type.ts.txt)
- [components/ui/animated-background.tsx](/sources/blueprint/components/ui/animated-background.tsx.txt): Motion Primitives `animated-background`, restyled
- [components/ui/highlighter.tsx](/sources/blueprint/components/ui/highlighter.tsx.txt): Magic UI `highlighter`, restyled
- [components/ui/sliding-number.tsx](/sources/blueprint/components/ui/sliding-number.tsx.txt): Motion Primitives `sliding-number`, restyled

Everything in one file: [/sources/blueprint.txt](/sources/blueprint.txt) (about 46K tokens).

Before building, read the [design guide](/guide.md): the process and rules that apply to every site.
