# Neon Diner (`neon-diner`)

> The site of a Hong Kong-style café in Luohu, Shenzhen: one vertical neon sign on a dark mosaic wall, a backlit row of four large dish photographs over the hanging menu strips, a full-width band of the dining room and the tea counter, and the hours and address set in big type.

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: Retro. Tags: Neon, Nostalgic, Dark, Sans-serif, Vertical type, Photography, Full-bleed, Texture.
- Live page: [English](/en/sites/neon-diner/full/) · [Chinese](/sites/neon-diner/full/) · [viewer with desktop and mobile views](/en/sites/neon-diner/)
- Built with Astro, React, TypeScript and Tailwind CSS 4.

## Where the concept came from

From the café's front and its walls: the vertical neon sign over the door, the dark green mosaic wall, a row of backlit photographs with the plastic menu strips hanging below, and the booths and tea counter at night. The sign, the lightboxes and the menu strips are the shop's real objects; the hours, directions and phone number are written the way a good restaurant site writes them, carried by big type and photographs rather than props.

## When it fits

Good for:
- Cha chaan tengs, ice cafés, noodle shops and dai pai dongs: long menus and many prices that must scan at a glance, with a neighbourhood feel.
- Places open late, such as supper stalls, dessert shops and small bars: a neon sign is most convincing at night.
- Long-running restaurants with an old sign or menu board the page can be built from.

Avoid when:
- Fine dining and specialty coffee: neon and plastic strips feel too street-level for the price.
- Daytime, health-led cafés: the night ground and neon feel greasy.
- Export factories and schools: the content needs order and authority, and neon steals attention.

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

## Adapting it to another client

Keep:
- Let one or two things be the shop's real objects (here the sign and the menu boards), and set the hours, directions and phone number as plain, well-made lists and a simple map, not props.
- Take the button colours from the wall and the strips: cream lettered in tile green on the dark grounds; saturated red is only ever light, in the sign, its glow on the wall and the shop on the map.
- Take out the tells, not the place: keep the photographs large (each board leads with its dish, the room runs full width), lay the wall and the cream in large fields, and give each practical section one giant line (the hours, the address).
- Keep one big moment, the tubes lighting one by one when the sign comes into view and then staying lit, and make every other motion small and quick.

Change:
- Swap the colours for the next shop's own: a dai pai dong's red and white stools, an ice café's pastel tiles, a congee shop's wooden boards.
- Rebuild the sign from the next shop's name, choosing kai, li or hei outlines for its character; don't reuse this kai-script sign.
- Follow the next shop's own menu: a noodle shop's price board, a roast-meat shop's glass counter, a dessert shop's chalkboard; not every shop hangs plastic strips.

## Essentials

- **Color.** A mosaic wall at night: #0c1c18 ground, the #174034 mosaic for the menu wall and the directions, a large cream #f2e8d2 field for the hours, and cream again for text and strips. No red buttons: on the dark grounds the primary button is cream lettered in tile green and the secondary a cream outline; on cream, text is #0c1c18 and labels are tile green. Neon red #ff4136 and pink #ff6fb1 are only ever light: the sign’s tubes, the red they throw on the hero tiles and the top of the menu wall, and the glowing shop on the map.
- **Type.** Chinese headings in Noto Sans SC Variable at 900 with −0.01em tracking: the name in two lines (新光 / 茶餐厅), 68px on phones and about 150px on desktop; section headings are nouns (菜单, 营业时间, 交通) at 40–80px. Each practical section has one giant line: the daily hours in Anybody at 56–100px, and the address in two lines (示例路 / 88 号地铺) at 52–92px. Dish names run vertically on the strips at 0.08em; body 16px with 1.85 line height. Prices, times and phone numbers in Anybody Variable at 72% width and 760 weight; English headings in caps at 66% width and 820. The sign is no web font: it is LXGW WenKai Light outlines stroked into tubes.
- **Layout.** Designed at 390px first: the two-line name and two short sentences, one per line, on the left of the first screen, the vertical sign on the right, the takeaway call and the menu link below; once that call button scrolls away, a bar with one action, the takeaway call, appears at the bottom. The header carries a small wordmark, 新光 SUN KWONG (SUN KWONG on the English page), linking to the top, with the navigation on the right; once the page scrolls it stays pinned on a night bar. The menu sits on the tile-green mosaic, and each board leads with a square backlit photograph before its title and strips: behind four tabs on phones, where the photo bleeds to both edges; two to a row on tablet; four side by side on desktop, where the photos join into one long lightbox. Below the menu, the dining room and the tea counter run full width, side by side on desktop and stacked on phones. The hours sit on a cream field with the booth photo bleeding off the left edge and cream above and below; the directions return to the tile-green wall, with the heading, the address in two giant lines and the transport list on the left and a large map on the right. The footer holds the name, address, phone, hours and ICP number. No numbered labels, hairline fences or micro-labels; radii stay at 2–6px.
- **Imagery.** Only things in the shop: a set meal, a pineapple bun, baked pork chop rice and milk tea on formica, the dining room and the tea counter at night, and the booth by the wall. Overhead fluorescent light with red neon spilling in from the street, Cinestill 800T grain and red halation; the dish photos are cropped square into a row of lightboxes, the room and the counter bleed into one full-width band, and the booth photo bleeds off the page beside the hours. The map is drawn on the night ground: tile-green blocks, dark streets, a cream walking route, and the shop as one glowing neon-red tube; its HTML labels stay legible on phones.
- **Motion.** One big moment: when the sign comes into view its nine tubes each stutter and then hold (stepped keyframes, 0.9s per tube, staggered 80–260ms) while red light spills over the tiles, and then it stays lit; once it holds, the red on the top of the menu wall fades up after it. Everything else is small: strips sway when a board opens on phones or under the pointer on desktop, and the call bar slides up. With reduced motion the sign and its light are simply on.

## Common mistakes

- Faking neon with glowing CSS text: tubes need single-line outlines stroked round with a real halo; a font with text-shadow reads as a template.
- Taking the sign’s red for the buttons: red buttons on a dark or cream ground are the most common AI palette. Use cream lettered in tile green, and keep the red as light.
- Dressing the practical parts as props or widgets: the hours as door lettering, the map as a takeaway flyer, a live “open now” tag or a queue ticket. List the hours once, and be honest about the New Year days.
- Taking out the place with the tells: shrink the photographs, turn every ground cream and leave each section a bare list, and the page becomes anyone’s template. Keep the photographs large, the wall in large fields and one giant line in each practical section.
- Menus as paragraphs or cards: prices hang on strips you can scan at a glance, vertical in Chinese and horizontal in English, with hot and iced prices apart.

## Design tokens

| Token | Value | Role |
| --- | --- | --- |
| `--color-night` | `#0c1c18` | Night ground, and ink on cream |
| `--color-tile` | `#174034` | Mosaic wall, strip lettering, button text |
| `--color-cream` | `#f2e8d2` | Text on dark, primary buttons, light ground |
| `--color-haze` | `#a9ab9b` | Secondary text on dark |
| `--color-neon` | `#ff4136` | The sign’s tubes and their light, and the shop on the map |
| `--color-pink` | `#ff6fb1` | The sign’s border tube |

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

```css
:root {
  --background: #0c1c18;
  --foreground: #f2e8d2;
  --primary: #f2e8d2;
  --primary-foreground: #174034;
  --secondary: #174034;
  --secondary-foreground: #f2e8d2;
  --muted: #174034;
  --muted-foreground: #a9ab9b;
  --accent: #174034;
  --accent-foreground: #f2e8d2;
  --border: rgb(242 232 210 / 0.16);
  --ring: #f2e8d2;
}
```

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`: "Anybody Variable", "Noto Sans SC Variable", "PingFang SC", "Microsoft YaHei", sans-serif
- `--font-sans`: "Noto Sans SC Variable", "PingFang SC", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif
- Anybody Variable: `npm install @fontsource-variable/anybody`, then `import '@fontsource-variable/anybody/wdth.css'`. Plain-HTML prototype: `<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/anybody@5.3.0/wdth.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-snap`: `cubic-bezier(0.32, 0.72, 0, 1)`
- `--ease-swing`: `cubic-bezier(0.22, 1, 0.36, 1)`

Textures used in `styles.css`:

- [tiles.svg](/assets/neon-diner/tiles.svg)

All tokens: [tokens.css](/styles/neon-diner/tokens.css) · [tokens.json](/styles/neon-diner/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/neon-diner/components/Header.astro.txt). Visible in the Hero screenshots
2. **Hero** (`#top`): [components/Hero.astro](/sources/neon-diner/components/Hero.astro.txt). Screenshots: [desktop](/shots/neon-diner/top-desktop.jpg) · [mobile](/shots/neon-diner/top-mobile.jpg) · [desktop, English](/shots/neon-diner/top-desktop-en.jpg) · [mobile, English](/shots/neon-diner/top-mobile-en.jpg)
3. **Menu** (`#menu`): [components/Menu.astro](/sources/neon-diner/components/Menu.astro.txt). Screenshots: [desktop](/shots/neon-diner/menu-desktop.jpg) · [mobile](/shots/neon-diner/menu-mobile.jpg) · [desktop, English](/shots/neon-diner/menu-desktop-en.jpg) · [mobile, English](/shots/neon-diner/menu-mobile-en.jpg)
4. **Room** (`#room`): [components/Room.astro](/sources/neon-diner/components/Room.astro.txt). Screenshots: [desktop](/shots/neon-diner/room-desktop.jpg) · [mobile](/shots/neon-diner/room-mobile.jpg) · [desktop, English](/shots/neon-diner/room-desktop-en.jpg) · [mobile, English](/shots/neon-diner/room-mobile-en.jpg)
5. **Hours** (`#hours`): [components/Hours.astro](/sources/neon-diner/components/Hours.astro.txt). Screenshots: [desktop](/shots/neon-diner/hours-desktop.jpg) · [mobile](/shots/neon-diner/hours-mobile.jpg) · [desktop, English](/shots/neon-diner/hours-desktop-en.jpg) · [mobile, English](/shots/neon-diner/hours-mobile-en.jpg)
6. **Visit** (`#visit`): [components/Visit.astro](/sources/neon-diner/components/Visit.astro.txt). Screenshots: [desktop](/shots/neon-diner/visit-desktop.jpg) · [mobile](/shots/neon-diner/visit-mobile.jpg) · [desktop, English](/shots/neon-diner/visit-desktop-en.jpg) · [mobile, English](/shots/neon-diner/visit-mobile-en.jpg)
7. **Footer** (`:is(body, main) > footer`): [components/Footer.astro](/sources/neon-diner/components/Footer.astro.txt). Screenshots: [desktop](/shots/neon-diner/footer-desktop.jpg) · [mobile](/shots/neon-diner/footer-mobile.jpg) · [desktop, English](/shots/neon-diner/footer-desktop-en.jpg) · [mobile, English](/shots/neon-diner/footer-mobile-en.jpg)

## Key components

### NeonSign

The sign: LXGW WenKai Light and Anybody Thin outlines baked into SVG tubes, nine of them lighting one by one and spilling red on the tiles. It lights the first time it comes into view and then stays lit, with no switch and no hint; when it lights it marks the page, and the red on the top of the menu wall follows. With reduced motion or no JavaScript it is simply lit.

- Source: [components/NeonSign.astro](/sources/neon-diner/components/NeonSign.astro.txt)
- Also needs: [sign.ts](/sources/neon-diner/sign.ts.txt)
- Appears in: Hero (`top`)

### Board

A menu board: a square backlit photograph first, then the title, one line of facts and cream strips lettered in tile green on an aluminium rail, vertical in Chinese and horizontal in English, prices at the foot. On desktop the four boards stand side by side and their photos share one long lightbox frame; on phones they sit behind tabs, the photo bleeds to both edges and the strips sway when a board opens; on desktop they sway under the pointer.

- Source: [components/Board.astro](/sources/neon-diner/components/Board.astro.txt)
- Also needs: [components/Menu.astro](/sources/neon-diner/components/Menu.astro.txt)
- Appears in: Menu (`menu`)

### Mosaic tile wall

.tiles lays one 9KB SVG mosaic (16 × 16 tiles, random tones, a glaze highlight on each top edge) over the hero’s night ground and the wall green of the menu and the directions; the sign spills its red onto it with mix-blend-mode: screen, and .neon-wash carries that light onto the top of the menu wall.

- Source: [styles.css](/sources/neon-diner/styles.css.txt)

### Hours

The hours: a large cream field with the daily hours in giant Anybody numerals, afternoon tea, last orders and the New Year days one per line, then one line on queueing and shared tables; on desktop the booth photo bleeds off the left edge with cream above and below, and on phones it closes the section edge to edge.

- Source: [components/Hours.astro](/sources/neon-diner/components/Hours.astro.txt)
- Appears in: Hours (`hours`)

### Visit

Getting here: the tile-green mosaic, the address in two giant lines, then metro, bus and parking as three lines, beside a large map on the night ground with tile-green blocks, a cream walking route and the shop as one glowing neon-red tube, with SVG lines and HTML labels.

- Source: [components/Visit.astro](/sources/neon-diner/components/Visit.astro.txt)
- Appears in: Visit (`visit`)

### Call bar

On phones, past the hero, a bar slides up from the bottom with one button, the takeaway call with its number; it tucks away at the footer and respects the safe area.

- Source: [components/Header.astro](/sources/neon-diner/components/Header.astro.txt)
- Appears in: Header (`header`)

## Dependencies

None beyond the base stack.

## Source files

Read only what you need:

- [Site.astro](/sources/neon-diner/Site.astro.txt): the whole page, with fonts, sections and scripts
- [styles.css](/sources/neon-diner/styles.css.txt): tokens and component classes
- [i18n.ts](/sources/neon-diner/i18n.ts.txt): all copy, in Chinese and English
- [meta.ts](/sources/neon-diner/meta.ts.txt): this guide as data
- [components/Header.astro](/sources/neon-diner/components/Header.astro.txt): section
- [components/Hero.astro](/sources/neon-diner/components/Hero.astro.txt): section
- [components/Menu.astro](/sources/neon-diner/components/Menu.astro.txt): section
- [components/Room.astro](/sources/neon-diner/components/Room.astro.txt): section
- [components/Hours.astro](/sources/neon-diner/components/Hours.astro.txt): section
- [components/Visit.astro](/sources/neon-diner/components/Visit.astro.txt): section
- [components/Footer.astro](/sources/neon-diner/components/Footer.astro.txt): section
- [components/Board.astro](/sources/neon-diner/components/Board.astro.txt)
- [components/NeonSign.astro](/sources/neon-diner/components/NeonSign.astro.txt)
- [sign.ts](/sources/neon-diner/sign.ts.txt)
- [type.ts](/sources/neon-diner/type.ts.txt)

Everything in one file: [/sources/neon-diner.txt](/sources/neon-diner.txt) (about 20K tokens).

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