# Editorial (`editorial`)

> A womenswear label’s seasonal lookbook made as a fashion magazine issue: the cover turns on its spine, the folio in the running foot turns with you, and full-bleed spreads carry the looks and their prices.

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: Typographic. Tags: Editorial, Serif, Premium, Light, Photography, Full-bleed, Asymmetric, Vertical type.
- Live page: [English](/en/sites/editorial/full/) · [Chinese](/sites/editorial/full/) · [viewer with desktop and mobile views](/en/sites/editorial/)
- Built with Astro, React, TypeScript and Tailwind CSS 4, plus Motion Primitives, Motion.

## Where the concept came from

From the lookbook this womenswear label prints every season: the masthead and cover, a contents page, spreads of full-page photographs, the pieces and prices beside each picture, and the folio at the foot of every page.

## When it fits

Good for:
- Fashion and accessory labels with two collections a year: one issue per season, with the looks, prices and where to try them on.
- Seasonal issues for boutique hotels, homestays and restaurants: the rooms, menus and events of the season as sections of one issue.
- Design studios and makers with strong photography and a story worth a feature.

Avoid when:
- Shops selling hundreds of SKUs: one look per page is too slow, and there is nowhere for filters or a cart.
- Clients without a full set of strong photographs: the layout leans on large pictures, and weak ones make it read as an empty template.
- Content that changes every day, such as news or timetables: an issue-by-issue structure does not fit.

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

## Adapting it to another client

Keep:
- One signature taken from the client's own printed matter: here the cover turning on its spine and the folio turning spread by spread in the running foot. Only that is literal; the practical content and the navigation follow plain website conventions.
- Photographs carry the page: every spread of looks pairs a full-bleed picture with a large inset, and the only text beside them is the pieces and their prices.
- Light Song and condensed Latin serif headlines that each name one thing (Collection, Fittings, Store, Stockists); Chinese headlines break only at punctuation.
- Buttons in ink or outline, as fashion sites do; colour stays in the photographs and the fabrics.

Change:
- Lining blue comes from this season's coat linings and the page uses it only for the fabric swatch, text selection, focus rings and the current mark in the contents; find the next client's colour in its own materials.
- The masthead, the cover theme and the folios belong to this lookbook; give the next client the heading and numbering of its own printed matter.
- Spreads and the gutter shade need a full set of strong photographs; without them, lay the sections out as single pages.

## Essentials

- **Color.** Near-black #171615 type on coated-paper white #f5f3ef, graphite #5f5b55 for captions and #d5d0c6 rules inside tables. Every button is solid ink with paper text, lightening slightly on hover, or a 1 px ink outline; no button has a colour. Lining blue #2f3f8c is the coat lining in the photographs, and on the page only the fabric swatch, text selection, focus rings and the current mark in the contents sheet. The booking form and the contents sheet sit on card stock #e9e4da, and the footer inverts to ink.
- **Type.** Masthead and Latin headlines in Instrument Serif 400 at −0.02em; Latin text in Newsreader Variable with optical sizing, italic for decks; captions, prices, buttons, the form and the section links in Public Sans (links at 12 px uppercase, 13 px in Chinese). Chinese in Noto Serif SC Variable: headlines at 300 and body at 400, 17 px with a 1.88 line height, headlines set keep-all so they break only at punctuation. Section headings are single nouns, about 48 px on phones and up to 112 px on desktop. Prices use tabular figures; the phone number and WeChat ID are set large in Instrument Serif.
- **Layout.** Single pages on phones, with the looks in one swipe row. On desktop every section is a spread of two half-width pages with a gutter shade at the spine. Each of the three spreads of looks pairs a full-bleed page with a large inset (about three quarters of the page’s text width), and booking gets a full page of card stock. The folio in the running foot is the only numbering: no labels above headings, no numbered steps, and rules only inside tables. Photographs bleed to the page edge; no radii. Navigation is plain links: a line of section links above the masthead on tablets and desktop, and again beside the folio in the desktop running foot; on phones, the contents page and the Contents button in the foot.
- **Imagery.** One studio shoot: a warm grey seamless backdrop, window light from the left casting pane shadows on the floor, a medium-format film look. The model turns away or is cropped below the chin; clothes in charcoal, oat and ivory, with only the lining and one skirt in blue. On phones the contents page also carries an overhead shot of the patterns and fabrics.
- **Motion.** Only page turns: scrolling turns the cover over on its spine (a CSS scroll-driven animation over 64svh on phones and 80svh on desktop), then the folio in the running foot turns a page at every spread, from 02 to 18 (0.62 s, cubic-bezier(0.65, 0, 0.35, 1)). No "scroll to open" hint. Otherwise only press states; with reduced motion the cover and contents simply follow each other.

## Common mistakes

- Turning the magazine into props: running heads, a number on every page, numbered steps, a barcode, a perforated reply card and a postmark all at once read as an AI showing off. Here only the folio in the running foot remains.
- Painting the buttons lining blue or any other colour: an accented button reads as a template. Fashion sites use black buttons and leave colour to the photographs.
- Leaving the folio and its contents sheet as the only navigation: visitors will not guess that the page number opens the contents. On desktop the cover’s header and the running foot carry plain section links; on phones the contents button says Contents beside a list icon, set apart from the page number.
- Shrinking insets for the sake of white space: a lookbook lives on large pictures, so insets still take about three quarters of the page’s text width.
- Italic Chinese: the italic of the English decks and echoes is reset to upright in Chinese.

## Design tokens

| Token | Value | Role |
| --- | --- | --- |
| `--color-paper` | `#f5f3ef` | Coated-paper ground |
| `--color-stock` | `#e9e4da` | Card stock behind the booking form and the contents sheet |
| `--color-rule` | `#d5d0c6` | Rules inside tables |
| `--color-graphite` | `#5f5b55` | Captions and secondary text |
| `--color-ink` | `#171615` | Text, masthead, buttons and the footer ground |
| `--color-lining` | `#2f3f8c` | Lining blue: the fabric swatch, text selection, focus rings and the current mark in the contents |

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

```css
:root {
  --background: #f5f3ef;
  --foreground: #171615;
  --primary: #171615;
  --primary-foreground: #f5f3ef;
  --muted: #e9e4da;
  --muted-foreground: #5f5b55;
  --border: #d5d0c6;
  --ring: #2f3f8c;
}
```

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`: "Instrument Serif", "Noto Serif SC Variable", "Songti SC", "STSong", serif
- `--font-serif`: "Newsreader Variable", "Noto Serif SC Variable", "Songti SC", "STSong", Georgia, serif
- `--font-sans`: "Public Sans Variable", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif
- Instrument Serif: `npm install @fontsource/instrument-serif`, then `import '@fontsource/instrument-serif/400.css'` and `import '@fontsource/instrument-serif/400-italic.css'`. Plain-HTML prototype: `<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource/instrument-serif@5.3.0/400.css">` `<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource/instrument-serif@5.3.0/400-italic.css">`
- Newsreader Variable: `npm install @fontsource-variable/newsreader`, then `import '@fontsource-variable/newsreader/opsz.css'` and `import '@fontsource-variable/newsreader/opsz-italic.css'`. Plain-HTML prototype: `<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/newsreader@5.3.0/opsz.css">` `<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/newsreader@5.3.0/opsz-italic.css">`
- Public Sans Variable: `npm install @fontsource-variable/public-sans`, then `import '@fontsource-variable/public-sans/wght.css'`. Plain-HTML prototype: `<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/public-sans@5.3.0/wght.css">`
- Noto Serif SC Variable: `npm install @fontsource-variable/noto-serif-sc`, then `import '@fontsource-variable/noto-serif-sc/wght.css'`. Plain-HTML prototype: `<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/noto-serif-sc@5.3.1/wght.css">`

Easing:

- `--ease-page`: `cubic-bezier(0.65, 0, 0.35, 1)`
- `--ease-out`: `cubic-bezier(0.32, 0.72, 0, 1)`

All tokens: [tokens.css](/styles/editorial/tokens.css) · [tokens.json](/styles/editorial/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. **Cover** (`#cover`): [components/Cover.astro](/sources/editorial/components/Cover.astro.txt). Screenshots: [desktop](/shots/editorial/cover-desktop.jpg) · [mobile](/shots/editorial/cover-mobile.jpg) · [desktop, English](/shots/editorial/cover-desktop-en.jpg) · [mobile, English](/shots/editorial/cover-mobile-en.jpg)
2. **Contents** (`#contents`): [components/Contents.astro](/sources/editorial/components/Contents.astro.txt). Screenshots: [desktop](/shots/editorial/contents-desktop.jpg) · [mobile](/shots/editorial/contents-mobile.jpg) · [desktop, English](/shots/editorial/contents-desktop-en.jpg) · [mobile, English](/shots/editorial/contents-mobile-en.jpg)
3. **Collection** (`#collection`): [components/Collection.astro](/sources/editorial/components/Collection.astro.txt). Screenshots: [desktop](/shots/editorial/collection-desktop.jpg) · [mobile](/shots/editorial/collection-mobile.jpg) · [desktop, English](/shots/editorial/collection-desktop-en.jpg) · [mobile, English](/shots/editorial/collection-mobile-en.jpg)
4. **Fitting** (`#fitting`): [components/Fitting.astro](/sources/editorial/components/Fitting.astro.txt). Screenshots: [desktop](/shots/editorial/fitting-desktop.jpg) · [mobile](/shots/editorial/fitting-mobile.jpg) · [desktop, English](/shots/editorial/fitting-desktop-en.jpg) · [mobile, English](/shots/editorial/fitting-mobile-en.jpg)
5. **Store** (`#store`): [components/Store.astro](/sources/editorial/components/Store.astro.txt). Screenshots: [desktop](/shots/editorial/store-desktop.jpg) · [mobile](/shots/editorial/store-mobile.jpg) · [desktop, English](/shots/editorial/store-desktop-en.jpg) · [mobile, English](/shots/editorial/store-mobile-en.jpg)
6. **Stockists** (`#stockists`): [components/Stockists.astro](/sources/editorial/components/Stockists.astro.txt). Screenshots: [desktop](/shots/editorial/stockists-desktop.jpg) · [mobile](/shots/editorial/stockists-mobile.jpg) · [desktop, English](/shots/editorial/stockists-desktop-en.jpg) · [mobile, English](/shots/editorial/stockists-mobile-en.jpg)
7. **Footer** (`:is(body, main) > footer`): [components/Footer.astro](/sources/editorial/components/Footer.astro.txt). Screenshots: [desktop](/shots/editorial/footer-desktop.jpg) · [mobile](/shots/editorial/footer-mobile.jpg) · [desktop, English](/shots/editorial/footer-desktop-en.jpg) · [mobile, English](/shots/editorial/footer-mobile-en.jpg)

## Key components

### Cover turn

The cover is pinned to the first screen and turns over on its spine as you scroll, revealing the contents beneath; on desktop the whole leaf turns across the spread with the pattern photograph on its back. The cover carries a header line of section links and the language switch above the masthead (only the switch on phones), the masthead, a line with the brand and season, the vertical cover theme and one booking button, with no scroll hint; the links are printed on the cover and turn away with it. Pure CSS scroll-driven animation; without support or with reduced motion it is simply two screens.

- Source: [components/Cover.astro](/sources/editorial/components/Cover.astro.txt)
- Also needs: [styles.css](/sources/editorial/styles.css.txt), [components/Contents.astro](/sources/editorial/components/Contents.astro.txt)
- Appears in: Cover (`cover`)

### Running folio

Once the cover has turned, the running foot stays with you: the current folio and section name sit on a small leaf that turns at every spread (each of the three spreads of looks on desktop; the swipe row counts as one page on phones). On desktop the four section links sit beside it, the current one in ink and underlined; on phones a Contents button with a list icon sits beside it, and tapping the button or the folio opens the contents sheet. The ink booking button sits at the right. It is the only numbering on the page.

- Source: [components/RunningFoot.tsx](/sources/editorial/components/RunningFoot.tsx.txt) (Motion Primitives)
- Also needs: [components/ui/transition-panel.tsx](/sources/editorial/components/ui/transition-panel.tsx.txt), [components/ui/dialog.tsx](/sources/editorial/components/ui/dialog.tsx.txt)
- Built on Motion Primitives `dialog` ([components/ui/dialog.tsx](/sources/editorial/components/ui/dialog.tsx.txt), restyled): `npx shadcn@latest add https://motion-primitives.com/c/dialog.json`
- Built on Motion Primitives `transition-panel` ([components/ui/transition-panel.tsx](/sources/editorial/components/ui/transition-panel.tsx.txt), restyled): `npx shadcn@latest add https://motion-primitives.com/c/transition-panel.json`

### Collection

Opens with the heading, a factual lede and a giant 18, with the fabric card and price table on the right-hand page; then three spreads, each pairing a full-bleed look with a large inset, print the pieces and prices beside the pictures, and "Book a try-on" picks that look in the booking form. On phones the looks are one swipe row.

- Source: [components/Collection.astro](/sources/editorial/components/Collection.astro.txt)
- Appears in: Collection (`collection`)

### Booking form

Choose a day, a time and a size, and tick the looks to try by their pictures; it composes a message to copy into WeChat or send by text, never pretending to submit. On phones it stays folded until opened or reached from "Book a try-on".

- Source: [components/BookingForm.tsx](/sources/editorial/components/BookingForm.tsx.txt)
- Also needs: [components/Fitting.astro](/sources/editorial/components/Fitting.astro.txt)
- Appears in: Fitting (`fitting`)

### Store

A large address, the opening hours with the Spring Festival closure, directions, an ink call button and an outlined copy-WeChat button, with a full-bleed photograph of the shop on the right-hand page. No live open-now status.

- Source: [components/Store.astro](/sources/editorial/components/Store.astro.txt)
- Also needs: [components/CopyButton.astro](/sources/editorial/components/CopyButton.astro.txt)
- Appears in: Store (`store`)

## Dependencies

`npm install Book a try-on motion`

## Source files

Read only what you need:

- [Site.astro](/sources/editorial/Site.astro.txt): the whole page, with fonts, sections and scripts
- [styles.css](/sources/editorial/styles.css.txt): tokens and component classes
- [i18n.ts](/sources/editorial/i18n.ts.txt): all copy, in Chinese and English
- [meta.ts](/sources/editorial/meta.ts.txt): this guide as data
- [components/Cover.astro](/sources/editorial/components/Cover.astro.txt): section
- [components/Contents.astro](/sources/editorial/components/Contents.astro.txt): section
- [components/Collection.astro](/sources/editorial/components/Collection.astro.txt): section
- [components/Fitting.astro](/sources/editorial/components/Fitting.astro.txt): section
- [components/Store.astro](/sources/editorial/components/Store.astro.txt): section
- [components/Stockists.astro](/sources/editorial/components/Stockists.astro.txt): section
- [components/Footer.astro](/sources/editorial/components/Footer.astro.txt): section
- [components/BookingForm.tsx](/sources/editorial/components/BookingForm.tsx.txt)
- [components/CopyButton.astro](/sources/editorial/components/CopyButton.astro.txt)
- [components/RunningFoot.tsx](/sources/editorial/components/RunningFoot.tsx.txt)
- [issue.ts](/sources/editorial/issue.ts.txt)
- [type.ts](/sources/editorial/type.ts.txt)
- [components/ui/dialog.tsx](/sources/editorial/components/ui/dialog.tsx.txt): Motion Primitives `dialog`, restyled
- [components/ui/transition-panel.tsx](/sources/editorial/components/ui/transition-panel.tsx.txt): Motion Primitives `transition-panel`, restyled

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

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