# Blocktronics brand

**The logo** is the four-square mark: indigo, pink and lime blocks and a round one in ink, in the theme's own colours (`--color-1`, `--color-2`, `--color-3`, `--app-ink`).

**The loader** is the Blocktronics cube in the logo's colours: a 2 × 2 × 2 puzzle cube with glossy indigo, pink and lime stickers on a black (ink) body, and no lettering. It plays on every page load, reloads included, while the site loads, then fades into the page. It is not a logo.

All of it is on the brand kit page, `/brand-kit`: unlisted (nothing on the site links to it and it asks not to be indexed); `/logo` redirects there.

Regenerate with:

```sh
npm run brand:cube          # every asset below except video, plus the loader player and the header art
npm run brand:cube:video    # loader MP4, WebM and GIF (needs ffmpeg at ~/.local/bin/ffmpeg or $FFMPEG)
npm run brand:social        # the X profile photos and header banners in social/ (social/README.md)
npm run brand:bot           # Bottronics, the automated companion account: its mark, photos, banners and lockup in bottronics/ (bottronics/README.md)
npm run test:cube           # the mark switch, the cube's turns, colours, paint order, loader timing and routes, icons
PORT=3880 node scripts/e2e-intro.mjs   # the loader in a browser
```

## The mark

| | Hex | Theme token |
| --- | --- | --- |
| Top left | `#5151fc` indigo | `--color-1` |
| Top right | `#ffc0ff` pink | `--color-2` |
| Bottom left | `#abff5a` lime | `--color-3` |
| Bottom right, round | `#000000` on light, `#ffffff` on dark | `--app-ink` |

On a 22-unit board: four 10-unit squares, a 2-unit gap, corner radius 3; the ink block is round. In React it is `MarkSquares` (`src/components/site-nav.tsx`), which reads the theme tokens; `squaresSvg()` in `src/lib/logo.ts` gives the same markup with literal colours for images (draft images, exports). The site header and footer, Studio, hubs, shared dashboards, dashboard exports, draft images and the link preview all draw it.

**One switch:** `NEXT_PUBLIC_BT_LOGO=cube` (build-time, `src/lib/logo.ts`) puts the cube without letters in the header, draft images and favicon instead (`cube/`). Unset (or `squares`) is the four-square mark. Git tags: `logo-four-squares`, `logo-teal-cube` (the first, teal cube).

## The loader

On a full page load the cube covers the page, centred on the page's own canvas colour, and makes two turns and a spin (solved and still by 1.1 s). The cover fades on the large motion curve (`cubic-bezier(0.22, 1, 0.36, 1)`, 360 ms) once the window has loaded and React has hydrated, but never before 1.3 s; at 2.1 s it fades regardless. It never takes clicks.

- **Server-rendered** in the root layout (`IntroOverlay`, `src/components/brand-cube/intro.tsx`) as compact markup (shapes defined once, placed with `<use>`; about 15 KB, 3 KB gzipped), so it covers the first paint. An inline script right after it runs before that paint and removes it on `/embed`, `/hub`, `/d`, `/s`, `/studio/render` and `/studio/export`; inside an iframe; or under automation (`navigator.webdriver`) unless the URL has `?intro=1`. Client navigations never show it. `LoaderDone` (`loader-done.tsx`) signals hydration.
- **The motion** is `loader/intro.js` (the engine, about 9 KB gzipped), loaded only when the loader plays. It always plays from its first frame and speeds up if it arrived late, so the cube lands by 1.3 s. Without it the first frame still shows and fades on time; a CSS fallback fades the cover at 2.25 s even if no timer fires.
- **Reduced motion:** the solved cube, still, at least 0.45 s, and a 200 ms fade; the player is not loaded.

### The loader cube

| Faces | Colour | Hex |
| --- | --- | --- |
| Front and back | Indigo | `#5151fc` (`--color-1`) |
| Top and bottom | Lime | `#abff5a` (`--color-3`) |
| Right and left | Pink | `#ffc0ff` (`--color-2`) |
| Body | Ink (black) | `#191a1f` (front), `#25262c` (top), `#101114` (side) |

Only the four-square mark's colours, and no lettering. Each colour covers two opposite faces, so every two faces that meet at an edge differ, and a scramble is a three-colour mosaic. Solved, it shows indigo at the front, lime on top and pink at the side. Light sits above, left and in front; each face shifts in OKLab lightness by how it meets the light, so at rest the front is exactly `#5151fc`. Every sticker has a soft bevel, a sheen and a glint along the edge toward the light.

**Camera and paint order.** Orthographic, yaw 34°, pitch 31°, so the three colours read evenly. The puzzle is cut into slabs across the turning axis and the far slab paints first; inside a slab cubies sort by centre depth. The test proves it frame by frame.

**The longer animation** (the player, animated SVG and videos): it starts as a three-colour mosaic, makes five real layer turns, flips toward you and spins, landing solved at 3.29 s. Quarter turns 0.32 s, eased `cubic-bezier(0.42, 0, 0.16, 1)`; flip 0.62 s; spin 0.9 s, carried 6° past and settled on the large curve.

**Earlier explorations** (`compare/`, for reference only): the cube with BLOCK on the top and TRONICS on the front, a six-colour arrangement with navy, yellow and white, the 4 × 3 × 3 with BLOC / KTRO / NICS, and the first, teal cube. The code keeps them as schemes (`a`, `b`, `c`, `teal`) and letterings (`LETTERINGS`).

## Files

| File | Use |
| --- | --- |
| `mark.svg`, `mark-dark.svg` | The mark, ink dot black (for light backgrounds) or white (for dark) |
| `mark-{16,24,32,48,64,192,512}.png` | The mark, transparent |
| `favicon.svg` | The favicon: the dot turns white when the browser is dark |
| `favicon.ico` | 16, 32 and 48; also at `/favicon.ico` |
| `apple-touch-icon.png` | 180, on white |
| `profile-{light,dark}.svg`, `-400.png`, `-1024.png` | The mark centred for a circle crop, on white or black |
| `lockup-{horizontal,stacked}-{light,dark}.svg` | The mark with "Blocktronics" (Timeless Grotesk 600, outlined). `light` is for light backgrounds |
| `loader/cube.svg` | The loader's longer animation, self-contained (frame-stepped CSS at 30 fps, works in `<img>`), loops; static renderers and reduced motion show the solved cube |
| `loader/cube.html` | Standalone player: replay, pause, loop, dark |
| `loader/cube-poster.png` | The solved loader cube, 1024 wide |
| `loader/video/cube-1080x1080-{light,dark}.{mp4,webm}`, `cube-1920x1080-…` | 60 fps, 6.09 s |
| `loader/video/cube-600.gif` | 600 × 600, 25 fps, loops |
| `loader/intro.js` | The site loader's player (not for direct use) |
| `cube/` | The cube mark, used only with `NEXT_PUBLIC_BT_LOGO=cube` |
| `token/token-{light,dark}.webp` | The 3D token's still, 1200 × 1200, transparent: the /blocktronics hero's fallback (`npm run token3d:stills`) |
| `token/token-{light,dark}-1024.png` | The same still for brand use, lit for light or dark pages |
| `social/` | The X profile photo and header banner (with three slogans to pick from), their alternates and the safe-area overlay (`social/README.md`) |
| `bottronics/` | Bottronics, the automated companion to @blocktronicsxyz (the account Grokbot posts from): the mark in a helmet (its blocks unchanged, one black glass visor band across the top blocks with a lime scanner light in it), and its X profile photos, banners and lockup (`bottronics/README.md`) |
| `compare/colours.png`, `lettering.png`, `marks.png`, `others.png` | Earlier explorations of the cube, for reference |

## In code

```tsx
import { MarkSquares } from "@/components/site-nav";
import { BrandCube } from "@/components/brand-cube/brand-cube";

<MarkSquares size={22} />                       // the mark, in theme colours
<BrandCube />                                   // the loader cube's longer animation, once
<BrandCube loop />                              // holds, fades, plays again
<BrandCube autoplay={false} />                  // solved, still
```
