# Bento Tech (`bento-tech`)

> Rounded tiles in mixed sizes, each carrying one thing (a part render, a spec or a process), set out like a precision parts factory's own capability sheet, with graphite buttons.

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: 便当盒科技风. 大小不一的圆角卡片拼成网格，一张卡片只讲一件事：一件零件渲染、一个参数或一项工艺，像一家精密加工厂自己的工艺资料；按钮一律石墨黑。
- Category: Modern. Tags: Precise, Premium, Grid, Sans-serif, Monospace, 3D render, Micro-interactions, Light.
- Live page: [English](/en/sites/bento-tech/full/) · [Chinese](/sites/bento-tech/full/) · [viewer with desktop and mobile views](/en/sites/bento-tech/)
- Built with Astro, React, TypeScript and Tailwind CSS 4, plus Magic UI, Motion Primitives, Paper Shaders, Motion.

## Where the concept came from

From what Parallel Works can show: finished parts shot on grey, the tolerances, sheet thicknesses and press tonnage on its capability sheet, a photo of the shop floor, and a table of transit times out of Shenzhen.

## When it fits

Good for:
- Export factories and contract manufacturers: process, tolerance, minimum order and lead time each fit one tile.
- Hardware and smart-device brands, where product renders and specs lead.
- B2B businesses that need to prove capability to overseas buyers, with the numbers and certifications set out plainly.

Avoid when:
- Homestays, travel and other brands that win people over with mood and story: the grid is too rational.
- Handmade and heritage brands: the cool metal-and-render look is off-tone.
- Long-form blogs and magazines: tiles chop the writing into pieces.

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

## Adapting it to another client

Keep:
- One thing per tile, with tile size following weight: the main process takes the large tile, the rest the small ones.
- Real numbers only: tolerance, minimum order, the time each step takes and transit times, which buyers can compare directly.
- One radius, one gap and one easing curve, so the whole page feels precise.

Change:
- The rounded tiles and pill buttons are this brand's surface and read as a SaaS template when copied; use the client's own material instead: engineering drawings, inspection reports, production schedules.
- Swap the studio renders for what the client can supply: photos of finished parts, line drawings, measured data.
- Signal orange comes from this factory's molded part and floor markings; for another client take a color from its trade, such as drawing markup red or an anodizing color, and keep buttons in the brand's darkest tone.

## Essentials

- **Color.** A warm grey-white page #f4f2ee, near-white tiles #fbfaf8 and graphite text #141414, with #66645f for secondary text. Every button is graphite with near-white text, inverted on the dark tiles. Signal orange #ff5b1f is kept for data marks: the map routes and destinations and the bend lines on the flat pattern; the orange in the pictures comes from the molded part and the factory floor lines.
- **Type.** Mona Sans Variable for Latin: display at 125% width, weight 620 and −0.045em tracking; the hero headline is sized to its tile in CSS alone (15cqi in Latin, 18cqi in Chinese), so the first frame is final, with the processes on a second line at half size; the three readout figures use container units too (6.4cqi, 20–40 px), so they sit side by side even on phones. Noto Sans SC for Chinese: headings 700 at −0.01em, body 16 px at line height 1.8. Martian Mono only for data: figures in tables (transit times, factory facts) and the readout units, never for labels.
- **Layout.** A bento grid of 28 px-radius tiles with one 12 px gap: twelve columns on desktop, two on phones. The first screen pairs a headline tile with a half-width product render, plus a minimum-order tile and a dark mark tile; on tablets the render moves left with the other two stacked beside it. Sections open differently: capabilities with a heading over the tiles, the factory with a large photo, shipping with its heading inside the map tile, the process with one large tile carrying "24 days" beside four step tiles, and the quote as one large dark tile. Headings are plain nouns with no numbers or labels above them, and rules appear only inside tables.
- **Imagery.** Softly lit 3D renders of parts on grey, one material each: a bead-blasted aluminum enclosure, a knurled knob, a molded housing. CNC gets a close-up of the cut, the factory a wide shot of the hall, and sheet metal a flat-pattern line drawing with its bend lines dashed in orange.
- **Motion.** Precise and brief, on one curve, cubic-bezier(0.32, 0.72, 0, 1). The only thing that keeps moving is the liquid-metal mark in the dark tile, the one signature effect, and it pauses off screen or in a background tab. The hero render and the knob and molded-part tiles tilt gently with the pointer or finger, like samples in the hand. The headline, specs and map are final at first paint: no entrance animation, no cycling readout, no flowing routes. With reduced motion the tilt stops and the mark holds still.

## Common mistakes

- Making the buttons signal orange: buttons are graphite, and orange stays on data marks such as routes and bend lines.
- Adding mono micro-labels, numbers and dots to every tile: labels use the text face, headings are not numbered, and mono is kept for figures in tables.
- A stats strip under the hero, or specs that cycle on their own: the first screen holds what a buyer needs first (minimum order, tolerance, sample lead time), all readable at once, and countries and monthly output belong in the factory and shipping sections.
- Cramming several points into one tile, or mixing radii and gaps: one thing per tile, and one radius and one gap everywhere.
- Casual photos instead of studio renders: material quality is half of the style.

## Design tokens

| Token | Value | Role |
| --- | --- | --- |
| `--color-bone` | `#f4f2ee` | Page ground and header |
| `--color-panel` | `#fbfaf8` | Tiles, and the button on the dark tile |
| `--color-aluminum` | `#d9d7d2` | Text selection |
| `--color-steel` | `#8e8c87` | Supporting |
| `--color-graphite` | `#141414` | Text, buttons, and the dark quote and mark tiles |
| `--color-signal` | `#ff5b1f` | Data marks only: map routes and destinations, and the bend lines on the flat pattern |
| `--color-ink-muted` | `#66645f` | Secondary text and spec lines |
| `--color-hair` | `rgb(20 20 20 / 0.08)` | Supporting |

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

```css
:root {
  --background: #fbfaf8;
  --foreground: #141414;
  --primary: #141414;
  --primary-foreground: #fbfaf8;
  --muted: #f4f2ee;
  --muted-foreground: #66645f;
  --border: rgb(20 20 20 / 0.08);
  --ring: #141414;
}
```

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-sans`: "Mona Sans Variable", "Noto Sans SC Variable", "PingFang SC", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif
- `--font-mono`: "Martian Mono Variable", "Noto Sans SC Variable", "PingFang SC", ui-monospace, monospace
- Mona Sans Variable: `npm install @fontsource-variable/mona-sans`, then `import '@fontsource-variable/mona-sans/wdth.css'`. Plain-HTML prototype: `<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/mona-sans@5.3.0/wdth.css">`
- Martian Mono Variable: `npm install @fontsource-variable/martian-mono`, then `import '@fontsource-variable/martian-mono'`. Plain-HTML prototype: `<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/martian-mono@5.3.0/index.css">`
- Noto Sans SC Variable: `npm install @fontsource-variable/noto-sans-sc`, then `import '@fontsource-variable/noto-sans-sc'`. Plain-HTML prototype: `<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/noto-sans-sc@5.3.1/index.css">`

Easing:

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

All tokens: [tokens.css](/styles/bento-tech/tokens.css) · [tokens.json](/styles/bento-tech/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/bento-tech/components/Header.astro.txt). Visible in the Hero screenshots
2. **Hero** (`#top`): [components/Hero.astro](/sources/bento-tech/components/Hero.astro.txt). Screenshots: [desktop](/shots/bento-tech/top-desktop.jpg) · [mobile](/shots/bento-tech/top-mobile.jpg) · [desktop, English](/shots/bento-tech/top-desktop-en.jpg) · [mobile, English](/shots/bento-tech/top-mobile-en.jpg)
3. **Capabilities** (`#capabilities`): [components/Capabilities.astro](/sources/bento-tech/components/Capabilities.astro.txt). Screenshots: [desktop](/shots/bento-tech/capabilities-desktop.jpg) · [mobile](/shots/bento-tech/capabilities-mobile.jpg) · [desktop, English](/shots/bento-tech/capabilities-desktop-en.jpg) · [mobile, English](/shots/bento-tech/capabilities-mobile-en.jpg)
4. **Factory** (`#factory`): [components/Factory.astro](/sources/bento-tech/components/Factory.astro.txt). Screenshots: [desktop](/shots/bento-tech/factory-desktop.jpg) · [mobile](/shots/bento-tech/factory-mobile.jpg) · [desktop, English](/shots/bento-tech/factory-desktop-en.jpg) · [mobile, English](/shots/bento-tech/factory-mobile-en.jpg)
5. **Network** (`#network`): [components/Network.astro](/sources/bento-tech/components/Network.astro.txt). Screenshots: [desktop](/shots/bento-tech/network-desktop.jpg) · [mobile](/shots/bento-tech/network-mobile.jpg) · [desktop, English](/shots/bento-tech/network-desktop-en.jpg) · [mobile, English](/shots/bento-tech/network-mobile-en.jpg)
6. **Process** (`#process`): [components/Process.astro](/sources/bento-tech/components/Process.astro.txt). Screenshots: [desktop](/shots/bento-tech/process-desktop.jpg) · [mobile](/shots/bento-tech/process-mobile.jpg) · [desktop, English](/shots/bento-tech/process-desktop-en.jpg) · [mobile, English](/shots/bento-tech/process-mobile-en.jpg)
7. **Contact** (`#contact`): [components/Contact.astro](/sources/bento-tech/components/Contact.astro.txt). Screenshots: [desktop](/shots/bento-tech/contact-desktop.jpg) · [mobile](/shots/bento-tech/contact-mobile.jpg) · [desktop, English](/shots/bento-tech/contact-desktop-en.jpg) · [mobile, English](/shots/bento-tech/contact-mobile-en.jpg)
8. **Contact · footer** (`:is(body, main) > footer`): [components/Contact.astro](/sources/bento-tech/components/Contact.astro.txt). Visible in the Contact screenshots

## Key components

### First screen

The bento first screen: a headline tile that names the category and processes, one line of copy and one graphite quote button, beside a half-width product render, a minimum-order tile and a dark mark tile. The four tiles have no entrance animation, so the first frame is final. The header sticks, so the quote button stays in reach on phones.

- Source: [components/Hero.astro](/sources/bento-tech/components/Hero.astro.txt)
- Also needs: [components/Header.astro](/sources/bento-tech/components/Header.astro.txt)
- Built on Motion Primitives `tilt` ([components/ui/tilt.tsx](/sources/bento-tech/components/ui/tilt.tsx.txt), restyled): `npx shadcn@latest add https://motion-primitives.com/c/tilt.json`
- Appears in: Hero (`top`)

### ProductRender

The product render tile: Tilt turns the enclosure toward the pointer or finger, and a frosted readout along the bottom lists tolerance, surface roughness and sample lead time side by side, all readable at once, never cycling.

- Source: [components/ProductRender.tsx](/sources/bento-tech/components/ProductRender.tsx.txt) (Motion Primitives)
- Built on Motion Primitives `tilt` ([components/ui/tilt.tsx](/sources/bento-tech/components/ui/tilt.tsx.txt), restyled): `npx shadcn@latest add https://motion-primitives.com/c/tilt.json`
- Appears in: Hero (`top`)

### CapabilityBento

The capability bento: CNC takes the large tile, sheet metal a wide tile with its flat-pattern drawing, and finishing and molding the two small ones, with specs written as two or three plain lines. The knob and molded-part renders tilt with Tilt; the cutting close-up and the drawing stay still.

- Source: [components/CapabilityBento.tsx](/sources/bento-tech/components/CapabilityBento.tsx.txt) (Motion Primitives)
- Also needs: [components/FlatPattern.tsx](/sources/bento-tech/components/FlatPattern.tsx.txt)
- Built on Motion Primitives `tilt` ([components/ui/tilt.tsx](/sources/bento-tech/components/ui/tilt.tsx.txt), restyled): `npx shadcn@latest add https://motion-primitives.com/c/tilt.json`
- Appears in: Capabilities (`capabilities`)

### MetalMark

The liquid-metal mark in the small dark tile, the only thing on the page that keeps moving. A preprocessed image goes straight to ShaderMount, which skips the costly first-paint step; it pauses off screen or in a background tab and holds still under reduced motion.

- Source: [components/MetalMark.tsx](/sources/bento-tech/components/MetalMark.tsx.txt) (Paper Shaders)
- Appears in: Hero (`top`)

### Network

A DottedMap world map with six still, dashed orange routes out of Shenzhen and the section heading inside the map tile, beside a transit-time table by destination.

- Source: [components/Network.astro](/sources/bento-tech/components/Network.astro.txt) (Magic UI)
- Built on Magic UI `dotted-map` ([components/ui/dotted-map.tsx](/sources/bento-tech/components/ui/dotted-map.tsx.txt), restyled): `npx shadcn@latest add https://magicui.design/r/dotted-map.json`
- Appears in: Network (`network`)

### Quote

A large graphite tile: a big "Request a quote", one line on which drawings to attach, and a light button that opens a pre-formatted quote email, beside phone, copy-WeChat, email, address and hours.

- Source: [components/Contact.astro](/sources/bento-tech/components/Contact.astro.txt)
- Appears in: Contact (`contact`), Contact · footer (`footer`)

## Dependencies

`npm install @paper-design/shaders @paper-design/shaders-react motion svg-dotted-map`

## Source files

Read only what you need:

- [Site.astro](/sources/bento-tech/Site.astro.txt): the whole page, with fonts, sections and scripts
- [styles.css](/sources/bento-tech/styles.css.txt): tokens and component classes
- [i18n.ts](/sources/bento-tech/i18n.ts.txt): all copy, in Chinese and English
- [meta.ts](/sources/bento-tech/meta.ts.txt): this guide as data
- [components/Header.astro](/sources/bento-tech/components/Header.astro.txt): section
- [components/Hero.astro](/sources/bento-tech/components/Hero.astro.txt): section
- [components/Capabilities.astro](/sources/bento-tech/components/Capabilities.astro.txt): section
- [components/Factory.astro](/sources/bento-tech/components/Factory.astro.txt): section
- [components/Network.astro](/sources/bento-tech/components/Network.astro.txt): section
- [components/Process.astro](/sources/bento-tech/components/Process.astro.txt): section
- [components/Contact.astro](/sources/bento-tech/components/Contact.astro.txt): section
- [components/CapabilityBento.tsx](/sources/bento-tech/components/CapabilityBento.tsx.txt)
- [components/FlatPattern.tsx](/sources/bento-tech/components/FlatPattern.tsx.txt)
- [components/MetalMark.tsx](/sources/bento-tech/components/MetalMark.tsx.txt)
- [components/ProductRender.tsx](/sources/bento-tech/components/ProductRender.tsx.txt)
- [components/SectionHead.astro](/sources/bento-tech/components/SectionHead.astro.txt)
- [components/ui/dotted-map.tsx](/sources/bento-tech/components/ui/dotted-map.tsx.txt): Magic UI `dotted-map`, restyled
- [components/ui/tilt.tsx](/sources/bento-tech/components/ui/tilt.tsx.txt): Motion Primitives `tilt`, restyled

Everything in one file: [/sources/bento-tech.txt](/sources/bento-tech.txt) (about 15K tokens).

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