# TalAIot brand

Visual guide: https://talaiot.eu/brand/ (this folder, `index.html`).

## The rule

- The logo is the word **TalAIot** in Inter Tight ExtraBold (800).
- `Tal` and `ot` are **black** (`--tl-ink`) on light backgrounds and **white** on dark backgrounds.
- `AI` is **always the brand lilac** `--tl-lilac` (#9466FF). No gradients, no other purple, no outlines.
- In running text the name is written `TalAIot`, without colour.

## Source of truth

`tokens.json` is the only file you edit. Everything else is generated:

```bash
/home/main/.venvs/talaiot-brand/bin/python /home/main/public_html/talaiot/brand/build.py
```

The build writes:

| File | What it is |
| --- | --- |
| `brand.css` | `--tl-*` custom properties, the `.tl-wordmark` component and the wordmark font (Inter Tight 800 with only the letters T a l A I o) embedded as a data URI. |
| `logo/talaiot-wordmark-black.svg` | Logo for light backgrounds, outlined paths (font-independent). |
| `logo/talaiot-wordmark-white.svg` | Logo for dark backgrounds. |
| `logo/talaiot-mark.svg`, `logo/favicon.svg` | Square mark: lilac "AI" on ink. |
| `logo/favicon-32.png`, `logo/apple-touch-icon.png`, `logo/icon-512.png` | PNG icons. |
| `logo/og-image.png` | 1200×630 social preview. |

It then re-stamps every page under `/home/main/public_html/talaiot` that links `brand.css` or a logo with `?v=<content hash>`. nginx caches static files for a month as immutable, so this is what makes a change visible.

Pages outside `/home/main/public_html/talaiot` are not re-stamped: if a TalAIot page on another domain links `brand.css`, update its `?v=` by hand after a change.

## Using it

```html
<link rel="stylesheet" href="https://talaiot.eu/brand/brand.css">
<link rel="icon" type="image/svg+xml" href="https://talaiot.eu/brand/logo/favicon.svg">

<span class="tl-wordmark">Tal<span class="tl-wordmark__ai">AI</span>ot</span>
<!-- Letters inherit the text colour. Force a variant with tl-wordmark--black / tl-wordmark--white. -->
```

In CSS, reference roles rather than raw values:

| Token | Use |
| --- | --- |
| `--tl-lilac` / `--tl-brand` | Logo and large brand elements |
| `--tl-accent` | Buttons, dots, bars, strokes |
| `--tl-accent-text` | Small text and links on light backgrounds (AA) |
| `--tl-accent-text-dark` | Small text and links on dark backgrounds (AA) |
| `--tl-accent-soft` | Soft chip and tag backgrounds |
| `--tl-alert`, `--tl-coral`, `--tl-orange`, `--tl-amber`, `--tl-gold`, `--tl-ok` | Signals only: device alerts, errors, risk data. Never decoration. |
| `--tl-grad-brand`, `--tl-grad-alert` | Gradients |
| `--tl-font-brand`, `--tl-font-body`, `--tl-font-mono` | Fonts |

Every colour also has an `-rgb` variant for transparency: `rgb(var(--tl-accent-rgb) / .4)`.

In JavaScript (canvas, SVG built in code), read the tokens instead of hard-coding them:

```js
const css = getComputedStyle(document.documentElement);
const tok = (n) => css.getPropertyValue(n).trim();
ctx.fillStyle = tok('--tl-lilac');
```

Outside the web, read `https://talaiot.eu/brand/tokens.json`.

## Where it is applied (2026-11-19)

- `talaiot.eu` homepage: `index.html`, `assets/talaiot.css` (local aliases of the tokens), `assets/talaiot.js` (`tok()` / `toka()` helpers for canvases).
- Blog: `/blog/`, `/blog/assets/post.css`, `/blog/assets/post.js`.
- Not part of the brand system: `ibempren.talaiot.eu` is an independent class project with its own repo and design. Do not link these files from it.
- Legacy, not migrated: `/v2/`, `/presentation.html`, the old SPA files at the site root and `logo*.jpeg`.

## Requirements of the build

fontTools, Pillow and brotli, in `/home/main/.venvs/talaiot-brand`. The font is `fonts/InterTight-VF.ttf` (Google Fonts, OFL, see `fonts/OFL.txt`). The build caches a static 800 instance next to it.
