# Look and brand

> Make Scenlit films look like your product: brand colours and fonts, the marketing look, phone, tablet and dark looks, drawn looks, and other languages.

## Your brand and the marketing look

`npx scenlit look` reads the app's name and the colour it uses most on buttons and links, and proposes a second look
for the app: the same screens with less around the content (search box, bell, avatar, help bubble, footer) and
bigger type. It only hides and enlarges; it never adds anything. It writes two pictures, before and after. `--save`
keeps the brand and the look as `looks.marketing`; a scene uses it with `look: "marketing"`, or one run with
`--look marketing`.

## Make it look like yours

Everything about how films and posts look is set under `style` in `.scenlit/config.json`, and any of it can be
changed for one scene (`style: { ... }` in the scene file):

```json
"style": {
  "background": { "kind": "gradient", "colors": ["#0f172a", "#1e3a8a"], "angle": 160, "dots": false },
  "window": { "bar": "light", "radius": 22, "shadow": "soft", "scale": 0.86 },
  "cursor": { "size": 60, "color": "#111111", "ring": true },
  "camera": { "zoom": 1.25, "speed": 1.2 },
  "captions": { "show": true, "position": "top", "look": "plain", "size": 1.1 },
  "titles": { "animation": "words", "align": "left", "underline": true, "size": 0.9 },
  "end": { "button": "Start free" },
  "logo": "assets/logo.svg",
  "pace": 0.8,
  "spotlight": 0.6
}
```

| Setting | Choices |
|---|---|
| `background.kind` | `glow` (default), `gradient`, `solid`, or `image` with `"image": "assets/wallpaper.jpg"` |
| `window` | `bar`: `dark`, `light`, `none` · `radius` · `shadow`: `soft`, `hard`, `none` · `scale`: below 1 shows more background (a phone or tablet frame gets smaller too) |
| `cursor` | `size`, `color`, and `ring` (the circle on a click) |
| `camera` | `zoom`: how far it moves in (`1` keeps it still) · `speed`: above 1 is quicker |
| `captions` | `show` · `position`: `bottom`, `top` · `look`: `pill`, `plain`, `bold` (big words, for vertical shorts) · `size` |
| `titles` | `animation`: `rise`, `fade`, `words`, `slam` · `align`: `center`, `left` · `underline` · `size` |
| `end` | `button`: words on a button under the end card |
| `logo` | An image in your project, shown on the cards and on posts |
| `pace` | Above 1 gives every step more time; below 1 is brisker |

For anything else, write `.scenlit/style.css`. It is laid over every film and post, so any part can be restyled:
`.win`, `.bar`, `.card`, `.lead`, `.key`, `.cap`, `.tag`, `.spot`, `#cur`, `.ring`, `.bg`. A scene can bring its own
sheet instead (`style: { css: ".scenlit/styles/heavy.css" }`).

One film can also have its own colours and fonts, over the project's `brand`:

```js
brand: { background: "#000", text: "#fff", accent: "#35c27f", font: '"Inter Tight", sans-serif', titleFont: '"Inter Tight", sans-serif',
  fontImport: "https://fonts.googleapis.com/css2?family=Inter+Tight:wght@500;800&display=swap" },
```

With these, one app can be filmed as very different kinds of video. Scenlit's own showcase has ten made this way:
a launch trailer, a polished screen recording, a vertical short, a how-to, a "what's new" clip, a README loop, a
cartoon, a sketch, a customer story across screens and a dark keynote.

**Formats** are named sets of style changes. Eleven come built in, and you can add your own under `formats`:

| Format | For | What it changes |
|---|---|---|
| `demo` | Landing page, sales | Titles come in word by word |
| `tutorial` | Docs, help center | Calm: a still background, a gentle camera, more time on every step |
| `feature` | Changelog, release notes | Brisk, with a button on the end card |
| `launch` | A launch film | A dark, lit set; a window turned in space; pieces, sentences and typing staged by the scene (see "Staging a film like a launch video") |
| `trailer` | A launch | Black, heavy words that land hard, quick shots, no captions. cards in the middle (chapters) carry the story |
| `canvas` | A launch, a social clip | A light grey design canvas: every page is a frame, named, side by side; the camera travels from one to the next; named cursors about; what is pointed at is selected, with its real size. Cards are words over the canvas |
| `recording` | A polished screen recording | A colour gradient, a big cursor, the camera after every click, no cards, keys you can hear |
| `short` | Reels, Shorts, TikTok | The app on a phone in a vertical frame, big captions word by word. Write short captions for it |
| `keynote` | A talk, an all-hands | The app in dark mode on black, a slow camera, one thing at a time |
| `loop` | A README, a docs page | No cards, no captions, a still camera: play it with `?background`, or `export --gif` |
| `source` | A launch, a landing page, for developers | The scene's own code down the left, the app beside it, the line now playing lit and joined by a band of light to what it does. Words are numbered lit lines; `words(…, { field })` gives a full-bleed colour between. Blue-black ink, Funnel Display, Fragment Mono, your accent. Wide films |

A scene picks one with `format: "tutorial"`, or the command line does for any scene: `scenlit run checkout --format
trailer`. A format can bring more than style: its own colours and fonts (`brand`), a look (`look: "phone"`) and a
frame shape (`shape: "vertical"`). What the scene says itself wins.

## Looks: phone, tablet, dark, other languages

A look is how the app is captured. Besides `marketing`, four come built in, and you can add your own under `looks`:

| Look | What |
|---|---|
| `phone`, `tablet` | A phone-sized or tablet-sized page, drawn in a device frame with a touch dot for a cursor |
| `dark`, `light` | The colour scheme the app is asked for |
| your own | `{ "viewport": ..., "device": "phone", "scheme": "dark", "locale": "de-DE", "hide": [...], "css": "" }` |

Use one with `look: "phone"` in a scene, or `--look phone` for one run.

### Drawn looks: cartoon, sketch, blueprint, or your own

The same app and the same scene, in another hand:

| Look | What it does |
|---|---|
| `cartoon` | Heavy outlines, hard shadows, hand lettering, flat colours, a slight wobble, on a bright ground |
| `sketch` | Black and white, hand lettering, lines that waver like a pen's, on paper |
| `blueprint` | White lines on blue |

```sh
npx scenlit run checkout --look cartoon
```

A drawn look has three parts, and your own looks can use any of them:

```json
"looks": {
  "neon": {
    "css": "* { font-family: 'Courier New', monospace !important } button { border: 2px solid #0ff !important }",
    "filter": "invert(1) hue-rotate(180deg) saturate(1.6)",
    "style": { "background": { "kind": "solid", "colors": ["#05010f"] }, "window": { "bar": "none", "shadow": "none" } }
  }
}
```

- `css` changes the app itself while it is captured (it stays real HTML, so it stays sharp).
- `filter` is a CSS filter laid on every picture. Built in: `url(#nt-sketch)`, `url(#nt-toon)`, `url(#nt-blueprint)`.
- `style` changes the film and the posts around the app: background, window, cursor, captions, motion.

## Brand and themes

`npx scenlit look --save` keeps the app's name and colour (see above). `"brand": { "theme": "paper" }` switches the films and posts to a light look (`night` is the default, `plain` has
no glow). Any colour written under `brand` wins over the theme.

## Other languages

`npx scenlit translate checkout --to de` asks a model for the film's words in another language and writes them to
`.scenlit/translations/checkout.de.json`, which you can edit. It also writes `film.de.html`. Then
`voice checkout --lang de` and `export checkout --lang de` work on that version.

---
From the README of Scenlit 0.1.0. The docs: https://scenlit.dev/docs. Every page: https://scenlit.dev/llms.txt
