# Swiss Grid (`swiss-grid`)

> A strict modular grid, flush-left grotesk type and huge numerals in black and white, with large fields of ink and 3000 K warm light, set like a lighting factory's own product literature.

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: 瑞士国际主义. 严格的网格、左对齐的无衬线字和巨大的数字，黑白为主，大块墨黑和 3000 K 暖光色做底，像一家灯具厂自己的产品资料。
- Category: Typographic. Tags: Precise, Grid, Sans-serif, High contrast, Light, Photography, Full-bleed, Micro-interactions.
- Live page: [English](/en/sites/swiss-grid/full/) · [Chinese](/sites/swiss-grid/full/) · [viewer with desktop and mobile views](/en/sites/swiss-grid/)
- Built with Astro, React, TypeScript and Tailwind CSS 4, plus Motion Primitives, Motion.

## Where the concept came from

From GEWU Lighting's own product literature: lamps shot on a white sweep, the light they throw on a wall, spec sheets by model, figures measured in the integrating sphere, the ODM schedule and MOQ table, and the switch on the showroom wall.

## When it fits

Good for:
- Export factories with model numbers and specs, such as lighting, hardware and appliances: one spec sheet per model, and buyers compare the numbers.
- ODM manufacturers for overseas brands: lead times, MOQs and certifications all set out as tables.
- Furniture, lighting and object brands with their own design line: products photographed as objects, large, and held by a strict grid.
- B2B companies that exhibit often: fair dates and booths in a table that reads at a glance.

Avoid when:
- Homestays and restaurants that sell an atmosphere: grids and spec tables feel cold.
- Service businesses with neither strong photos nor data: the style lives on objects, photographs and numbers, and without them only the grid remains.
- Children's brands or loud promotions: restrained black and white with one warm field still reads as too serious.

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

## Adapting it to another client

Keep:
- The strict grid and flush-left setting, where alignment is the structure: rules only inside tables, with no column guides, section numbers or running heads.
- Numbers as the heroes: each section anchors on one real figure set huge (CRI 97, 760 lm, 16 weeks, the 2027 edition, the fair dates) with a plain caption, and tables use the grotesk's own tabular figures.
- One signature interaction tied to what the product does (here, switching on the light; another factory might spin, power up or weigh), with everything else built as plain, well-made conventions that still get generous photographs and colour.
- Practical content from the client's own paperwork, set out plainly: spec sheets, a production schedule, an MOQ table, fair dates.

Change:
- Ink and the 3000 K tone are this lighting factory's grounds; for another client, find large fields of colour in its own trade and photographs, and give buttons the darkest tone of its brand. The red locator LED belongs to this showroom's switch; leave it behind.
- The ink showroom and its wall switch only suit products that emit light; find the next product its own demonstration.
- The illuminance cone, the integrating sphere and the night shot of beams on a wall belong to lighting; swap in the client's own charts, tools and scenes of use: tolerances, load curves, size charts.

## Essentials

- **Color.** Pure white #ffffff and near-black ink #0e0e0e, because contrast is the concept; graphite #6b6b6b for secondary text, a light sweep #f2f2f0 for the ODM section, and the showroom, contact section and footer inverted to ink with white text. The 3000 K tone #ffe2b8 is used only in large fields: it fills the showroom when the switch is on, grounds the whole catalogue section and is the beam colour in the night photograph (#fbe3c7 at its core). On that warm field, secondary text and hover states use ink at 72%, because graphite reaches only 4.3:1 there. Every button is solid ink with white text or an ink outline, inverted on the dark grounds; no button has a colour. The only red, #e30613, is the switch's 3 px locator LED, which goes out when the light comes on.
- **Type.** Inter Tight Variable for display and every number: huge numerals at weight 800, −0.065em tracking and 0.74 line height in proportional figures; headings at 700 and −0.035em; tables always in tabular figures. Every section has one huge numeral, always real data: the 97 in the hero (CRI), the flux in the spec sheet (32cqw of its column, so four digits fit, up to 20rem), 16 weeks in the ODM section (up to 25rem), 2027 in the catalogue, and the fair dates at up to 7.5rem. Hanken Grotesk Variable for running text at 16–17 px, line height 1.55. Noto Sans SC Variable for Chinese: headings 700 at −0.01em, body 16–17 px at line height 1.85, labels 500. Headings are short nouns, everything flush left, with no monospace and no italic.
- **Layout.** Four columns at 390 px (16 px gutters), eight at 768 and twelve from 1024 (24 px gutters, 1536 px max). Alignment is the structure: radius 0 everywhere, and rules only under the header, above the footer and inside tables, with no section numbers, running heads or decorative labels. Grounds run white, ink, white, a full-bleed night photograph, light grey, the 3000 K tone and ink, and every section has one big thing: a huge figure, a full-bleed photograph or a field of colour. In the showroom the eight product photos span the full width, each lamp scaled about its own centre to fill its tile, with the model label inset in the corner. A full-bleed photograph sits between the specs and the ODM section, cropped square around the lamp on phones. The catalogue sets a giant 2027 and a white printed cover on the warm field; on phones the cover steps to the right half. The grid breaks on purpose where it carries the concept: the hero pendant hangs from the header rule, and the product grid and the night photograph run edge to edge.
- **Imagery.** Lamps photographed as objects on a seamless white sweep: overhead softbox, only a contact shadow, 120 mm lens, three-quarter view at product height, 1:1, whites normalised to #ffffff so they merge with the page. In the showroom the same photos use mix-blend-mode: multiply over the light layer, so the beam really lights the products; with the light off they sit on a flat ambient grey (#525250, no brighter than the beam’s darkest stop) where every lamp and label still reads. One night photograph shows the W90 wall light on fair-faced concrete, two 24° beams up and down and the rest of the wall falling into ink. It is only 1536 px wide, short for a full-bleed slot; it works because it is nearly black with little detail, and a detailed full-bleed photo needs 2400 px or more. The showroom pendant is shot on pure black, the ODM section has one parts layout shot straight down, and the catalogue cover is white with the A45 task lamp.
- **Motion.** One signature, the showroom switch, and the products never wait for it. The room is lit in the markup; scrolling down from the first screen, it waits dark and switches itself on once as the pendant comes into view, in 0.6 s on cubic-bezier(0.32, 0.72, 0, 1), so the products arrive lit. Pressed, the switch cuts the light in 0.4 s; pressed again, the light comes up over 1.2 s on a soft-start curve, cubic-bezier(0.7, 0, 0.2, 1), animating opacity only, as the LED goes out. Everything else is short and precise on cubic-bezier(0.32, 0.72, 0, 1): the model picker’s black block slides in 220 ms, the lumen figure rises into place, and the schedule bars draw once with a 70 ms stagger. The photographs and huge numerals stay still. With reduced motion the room is lit at load and the switch changes instantly, with nothing moving; without scripts it is lit too.

## Common mistakes

- Turning the concept into props: numbering every section, adding running heads with page numbers and ruling lines outside the tables reads as an AI showing off. Here only the switch is literal; everything else follows plain website conventions.
- Removing the personality with the tells: shrink the photos and numerals and drop the colour, and the page becomes a table. Every section here keeps one big thing, a huge real figure, a full-bleed photograph or a field of colour, and the product tiles are large enough to read as objects.
- Making the buttons signal red or a default blue, or painting the warm tone on them: here buttons are ink, colour goes into large fields, and red is kept for the switch LED.
- Letting the page narrate itself or decorating with invented precision: drop hints like "tap the switch" and report numbers; the switch carries only a small "Switch on / Switch off", each product links straight to its spec, and the huge numerals are only real specs, lead times and dates.
- Hiding the products behind the signature: a showroom that stays dark until the visitor finds the switch hides the eight products. Here the room is lit in the markup, a script only keeps a room still below the fold dark so it can switch itself on as the visitor arrives, and with the light off the products stay readable in a dim ambient. The switch is a native checkbox with role="switch" and the light is pure CSS (:has(:checked)), so it works without scripts, by keyboard and under reduced motion.

## Design tokens

| Token | Value | Role |
| --- | --- | --- |
| `--color-paper` | `#ffffff` | Ground |
| `--color-sweep` | `#f2f2f0` | Light surface: the ODM ground and the model picker |
| `--color-rule` | `#d6d6d4` | Supporting |
| `--color-rule-dark` | `#2b2b2a` | Supporting |
| `--color-graphite` | `#6b6b6b` | Secondary text |
| `--color-ash` | `#9a9a9a` | Supporting |
| `--color-ink` | `#0e0e0e` | Text, buttons, the showroom, the contact section and the footer |
| `--color-lumen` | `#ffe2b8` | 3000 K light: the lit showroom, the catalogue ground and the text selection |
| `--color-led` | `#e30613` | The switch's locator LED, the page's only red |

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

```css
:root {
  --background: #ffffff;
  --foreground: #0e0e0e;
  --primary: #0e0e0e;
  --primary-foreground: #ffffff;
  --muted: #f2f2f0;
  --muted-foreground: #6b6b6b;
  --border: #d6d6d4;
  --ring: #0e0e0e;
}
```

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`: "Inter Tight Variable", "Noto Sans SC Variable", "PingFang SC", "Microsoft YaHei", ui-sans-serif, sans-serif
- `--font-sans`: "Hanken Grotesk Variable", "Noto Sans SC Variable", "PingFang SC", "Microsoft YaHei", ui-sans-serif, sans-serif
- Inter Tight Variable: `npm install @fontsource-variable/inter-tight`, then `import '@fontsource-variable/inter-tight/wght.css'`. Plain-HTML prototype: `<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/inter-tight@5.3.0/wght.css">`
- Hanken Grotesk Variable: `npm install @fontsource-variable/hanken-grotesk`, then `import '@fontsource-variable/hanken-grotesk/wght.css'`. Plain-HTML prototype: `<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/hanken-grotesk@5.3.0/wght.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-snap`: `cubic-bezier(0.32, 0.72, 0, 1)`
- `--ease-softstart`: `cubic-bezier(0.7, 0, 0.2, 1)`

All tokens: [tokens.css](/styles/swiss-grid/tokens.css) · [tokens.json](/styles/swiss-grid/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/swiss-grid/components/Header.astro.txt). Visible in the Hero screenshots
2. **Hero** (`#top`): [components/Hero.astro](/sources/swiss-grid/components/Hero.astro.txt). Screenshots: [desktop](/shots/swiss-grid/top-desktop.jpg) · [mobile](/shots/swiss-grid/top-mobile.jpg) · [desktop, English](/shots/swiss-grid/top-desktop-en.jpg) · [mobile, English](/shots/swiss-grid/top-mobile-en.jpg)
3. **Range** (`#range`): [components/Range.astro](/sources/swiss-grid/components/Range.astro.txt). Screenshots: [desktop](/shots/swiss-grid/range-desktop.jpg) · [mobile](/shots/swiss-grid/range-mobile.jpg) · [desktop, English](/shots/swiss-grid/range-desktop-en.jpg) · [mobile, English](/shots/swiss-grid/range-mobile-en.jpg)
4. **Specs** (`#specs`): [components/Specs.astro](/sources/swiss-grid/components/Specs.astro.txt). Screenshots: [desktop](/shots/swiss-grid/specs-desktop.jpg) · [mobile](/shots/swiss-grid/specs-mobile.jpg) · [desktop, English](/shots/swiss-grid/specs-desktop-en.jpg) · [mobile, English](/shots/swiss-grid/specs-mobile-en.jpg)
5. **Outdoor** (`#outdoor`): [components/Outdoor.astro](/sources/swiss-grid/components/Outdoor.astro.txt). Screenshots: [desktop](/shots/swiss-grid/outdoor-desktop.jpg) · [mobile](/shots/swiss-grid/outdoor-mobile.jpg) · [desktop, English](/shots/swiss-grid/outdoor-desktop-en.jpg) · [mobile, English](/shots/swiss-grid/outdoor-mobile-en.jpg)
6. **Odm** (`#odm`): [components/Odm.astro](/sources/swiss-grid/components/Odm.astro.txt). Screenshots: [desktop](/shots/swiss-grid/odm-desktop.jpg) · [mobile](/shots/swiss-grid/odm-mobile.jpg) · [desktop, English](/shots/swiss-grid/odm-desktop-en.jpg) · [mobile, English](/shots/swiss-grid/odm-mobile-en.jpg)
7. **Catalogue** (`#catalogue`): [components/Catalogue.astro](/sources/swiss-grid/components/Catalogue.astro.txt). Screenshots: [desktop](/shots/swiss-grid/catalogue-desktop.jpg) · [mobile](/shots/swiss-grid/catalogue-mobile.jpg) · [desktop, English](/shots/swiss-grid/catalogue-desktop-en.jpg) · [mobile, English](/shots/swiss-grid/catalogue-mobile-en.jpg)
8. **Meet** (`#meet`): [components/Meet.astro](/sources/swiss-grid/components/Meet.astro.txt). Screenshots: [desktop](/shots/swiss-grid/meet-desktop.jpg) · [mobile](/shots/swiss-grid/meet-mobile.jpg) · [desktop, English](/shots/swiss-grid/meet-desktop-en.jpg) · [mobile, English](/shots/swiss-grid/meet-mobile-en.jpg)
9. **Footer** (`:is(body, main) > footer`): [components/Footer.astro](/sources/swiss-grid/components/Footer.astro.txt). Screenshots: [desktop](/shots/swiss-grid/footer-desktop.jpg) · [mobile](/shots/swiss-grid/footer-mobile.jpg) · [desktop, English](/shots/swiss-grid/footer-desktop-en.jpg) · [mobile, English](/shots/swiss-grid/footer-mobile-en.jpg)

## Key components

### Showroom light switch

A wall switch (a native checkbox with role="switch") with a red locator LED and only a small "Switch on / Switch off" under it. The showroom is lit by default: the product photos’ white sweeps multiply onto a radial light layer, so the light really falls on the eight lamps across the full width, and a visitor scrolling down sees the room switch itself on, once, as the pendant appears. The switch is optional: pressed, the light goes out and the products drop into a dim neutral ambient where every lamp and label still reads, with the LED lit; pressed again, the pendant comes up on a soft-start curve and the LED goes out. Each lamp is scaled about its own measured centre to fill its tile. Works without JavaScript and by keyboard, is simply lit under reduced motion, and every product links straight to its spec sheet.

- Source: [components/Range.astro](/sources/swiss-grid/components/Range.astro.txt)
- Also needs: [styles.css](/sources/swiss-grid/styles.css.txt)
- Appears in: Range (`range`)

### Spec sheet

The spec sheet as a tool: eight models on a light grey track whose black block slides with AnimatedBackground, the 3000 K flux as the section’s huge numeral sized to its column, flux by colour temperature, the parameter table and an illuminance cone drawn to scale from the beam angle (centre lux and spot diameter at 1–4 m).

- Source: [components/ModelDatasheet.tsx](/sources/swiss-grid/components/ModelDatasheet.tsx.txt) (Motion Primitives)
- Also needs: [catalogue.ts](/sources/swiss-grid/catalogue.ts.txt)
- Built on Motion Primitives `animated-background` ([components/ui/animated-background.tsx](/sources/swiss-grid/components/ui/animated-background.tsx.txt), restyled): `npx shadcn@latest add https://motion-primitives.com/c/animated-background.json`
- Appears in: Specs (`specs`)

### First screen

A huge 97 with a plain caption (CRI Ra 97, measured in an integrating sphere), a headline that names the product category, one quote button and one text link that downloads the catalogue; the four-column pendant's cable hangs from the header rule.

- Source: [components/Hero.astro](/sources/swiss-grid/components/Hero.astro.txt)
- Also needs: [components/Header.astro](/sources/swiss-grid/components/Header.astro.txt)
- Appears in: Hero (`top`)

### ODM schedule

A huge 16 weeks beside a six-column parts photograph, then the ODM process as a 16-week Gantt chart aligned to the grid, with the sample sign-off as an ink diamond, and the MOQ table in large tabular figures; the factory facts appear here once, plainly.

- Source: [components/Odm.astro](/sources/swiss-grid/components/Odm.astro.txt)
- Appears in: Odm (`odm`)

### Catalogue

The whole section on the 3000 K field: a giant 2027 beside a white printed cover (the A45 task lamp and the GEWU wordmark), then the heading, one line, a download button and a price-list link; the download is a real PDF file.

- Source: [components/Catalogue.astro](/sources/swiss-grid/components/Catalogue.astro.txt)
- Appears in: Catalogue (`catalogue`)

### Trade fairs and contact

An ink section: the fair dates set as huge figures (up to 7.5rem) in a table, then phone, copy-WeChat, email, the factory address with a visit booking, and plain office hours with the Chinese New Year closure; the footer is an ordinary company footer with the ICP number, and on phones a two-action bar (quote, call) appears once the first screen has scrolled away.

- Source: [components/Meet.astro](/sources/swiss-grid/components/Meet.astro.txt)
- Also needs: [components/Footer.astro](/sources/swiss-grid/components/Footer.astro.txt)
- Appears in: Meet (`meet`)

## Dependencies

`npm install motion`

## Source files

Read only what you need:

- [Site.astro](/sources/swiss-grid/Site.astro.txt): the whole page, with fonts, sections and scripts
- [styles.css](/sources/swiss-grid/styles.css.txt): tokens and component classes
- [i18n.ts](/sources/swiss-grid/i18n.ts.txt): all copy, in Chinese and English
- [meta.ts](/sources/swiss-grid/meta.ts.txt): this guide as data
- [components/Header.astro](/sources/swiss-grid/components/Header.astro.txt): section
- [components/Hero.astro](/sources/swiss-grid/components/Hero.astro.txt): section
- [components/Range.astro](/sources/swiss-grid/components/Range.astro.txt): section
- [components/Specs.astro](/sources/swiss-grid/components/Specs.astro.txt): section
- [components/Outdoor.astro](/sources/swiss-grid/components/Outdoor.astro.txt): section
- [components/Odm.astro](/sources/swiss-grid/components/Odm.astro.txt): section
- [components/Catalogue.astro](/sources/swiss-grid/components/Catalogue.astro.txt): section
- [components/Meet.astro](/sources/swiss-grid/components/Meet.astro.txt): section
- [components/Footer.astro](/sources/swiss-grid/components/Footer.astro.txt): section
- [catalogue.ts](/sources/swiss-grid/catalogue.ts.txt)
- [components/ModelDatasheet.tsx](/sources/swiss-grid/components/ModelDatasheet.tsx.txt)
- [type.ts](/sources/swiss-grid/type.ts.txt)
- [components/ui/animated-background.tsx](/sources/swiss-grid/components/ui/animated-background.tsx.txt): Motion Primitives `animated-background`, restyled

Everything in one file: [/sources/swiss-grid.txt](/sources/swiss-grid.txt) (about 23K tokens).

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