Skip to content

Commit b16b7ee

Browse files
igorcostaAutohand Evolve
andcommitted
Add the autohand brand theme
Add a built-in black-and-white theme from brand v1.1: ink accent, grey text levels, hairline borders, a #171A1F composer and inverse selected rows. Red, green and amber appear only on status and diff colours. Select it with --set ui.theme=autohand, /theme or /settings; Aurora stays the default. Route the composer border, selected rows and fixed command colours through optional theme tokens that inherit from existing tokens, so other themes render byte-for-byte as before. Map near-neutral colours to the grey ramp in 256-colour terminals for this theme. Co-authored-by: Autohand Evolve <code-noreply@autohand.ai>
1 parent 3b840ca commit b16b7ee

32 files changed

Lines changed: 582 additions & 53 deletions

‎docs/config-reference.md‎

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,7 @@ See [Workspace Safety](./workspace-safety.md) for full details.
762762

763763
| Field | Type | Default | Description |
764764
| ---------------------------- | ------ | ------- | ---------------------------------------------------------------------------------------------- |
765-
| `theme` | string | `"aurora"` | Color theme for terminal output. Built-ins include `aurora`, `dark`, `light`, `dracula`, `sandy`, `tui`, `tuatara`, `github-dark`, `cappadocia`, `rio`, and `australia`. Legacy `turkey` and `brazil` values still load as aliases. |
765+
| `theme` | string | `"aurora"` | Color theme for terminal output. Built-ins include `aurora`, `dark`, `light`, `dracula`, `sandy`, `tui`, `tuatara`, `github-dark`, `cappadocia`, `rio`, `australia`, and `autohand`. Legacy `turkey` and `brazil` values still load as aliases. |
766766
| `customThemes` | object | `{}` | Inline custom theme definitions keyed by theme name. Set `theme` to the same key to use one. |
767767
| `autoConfirm` | boolean | `false` | Skip confirmation prompts for safe operations |
768768
| `readFileCharLimit` | number | `300` | Max characters to display from read/find tool output (full content is still sent to the model) |
@@ -859,6 +859,24 @@ Tuatara uses lichen green for focus, warm stone for text, mist blue for function
859859

860860
Use a dark terminal background; `#171c17` is the reference background. Autohand styles its own input and tool surfaces but leaves the terminal's background setting to you. Tests check at least 4.5:1 contrast for text, syntax, and status colours against the reference background and these surfaces, and at least 7:1 for input text. These use the [W3C contrast calculation](https://www.w3.org/WAI/WCAG22/Understanding/contrast-minimum.html); terminal palettes, transparency, and font rendering can affect the displayed result. Truecolor preserves the full palette; 256-colour and 16-colour terminals use the existing fallback conversion. Status labels and diff `+`/`-` markers remain readable when colour output is disabled.
861861

862+
### Autohand theme
863+
864+
The `autohand` theme follows the Autohand brand: black and white, with the accent in ink. Select it from `/theme` or `/settings`, set `"ui": { "theme": "autohand" }` in your config, or try it for one run with `--set ui.theme=autohand`. It is not the default.
865+
866+
| Role | Colour |
867+
| --- | --- |
868+
| Main text, focus, headings, links and the startup logo | `#F4F7F5` ink |
869+
| Secondary text, tool output and code | `#C9CBCA` |
870+
| Hints, comments and link URLs | `#8E908F` |
871+
| Borders, rules and the composer border | `#2A2E36` hairline |
872+
| Composer and tool surfaces | `#171A1F` |
873+
| Selected rows | `#08090A` on `#F4F7F5` (inverse) |
874+
| Errors and removed lines | `#E05D5D` red |
875+
| Success and added lines | `#46A758` green |
876+
| Warnings and waiting | `#E2A336` amber |
877+
878+
Red, green and amber appear only on status and diff colours; nothing else is coloured. Use a dark terminal background; `#08090A` is the reference. Each status colour has at least 4.5:1 contrast on the reference background and on `#171A1F`. Truecolor terminals show the exact palette. In 256-colour terminals the neutrals map to the grey ramp, so surfaces stay grey rather than picking up a blue tint; 16-colour terminals use black, white and the basic red, green and yellow.
879+
862880
### Custom themes
863881

864882
Custom themes can override any semantic color token. Missing tokens are inherited from the dark theme:

‎docs/config-reference_de.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ Siehe [Workspace Safety](./workspace-safety.md) für alle Details.
572572

573573
| Feld | Typ | Standard | Beschreibung |
574574
| ---------------------------- | ------ | ------- | ---------------------------------------------------------------------------------------------- |
575-
| `theme` | string | `"aurora"` | Farbschema für Terminal-Ausgabe. Eingebaute Schemas umfassen `aurora`, `dark`, `light`, `dracula`, `sandy`, `tui`, `tuatara`, `github-dark`, `cappadocia`, `rio`, und `australia`. Legacy-Werte `turkey` und `brazil` werden weiterhin als Aliase geladen. |
575+
| `theme` | string | `"aurora"` | Farbschema für Terminal-Ausgabe. Eingebaute Schemas umfassen `aurora`, `dark`, `light`, `dracula`, `sandy`, `tui`, `tuatara`, `github-dark`, `cappadocia`, `rio`, `australia`, und `autohand`. Legacy-Werte `turkey` und `brazil` werden weiterhin als Aliase geladen. |
576576
| `customThemes` | object | `{}` | Inline-Definitionen benutzerdefinierter Farbschemas, nach Themenname indiziert. Setzen Sie `theme` auf denselben Schlüssel, um eines zu verwenden. |
577577
| `autoConfirm` | boolean | `false` | Bestätigungsaufforderungen für sichere Operationen überspringen |
578578
| `readFileCharLimit` | number | `300` | Maximale Anzahl Zeichen, die aus read/find-Tool-Ausgaben angezeigt werden (der vollständige Inhalt wird weiterhin an das Modell gesendet) |

‎docs/config-reference_fr.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ Voir [Sécurité de l'espace de travail](./workspace-safety.md) pour plus de dé
536536
```
537537
| Champ | Tapez | Par défaut | Descriptif |
538538
| ---------------------------- | ------ | ------- | ------------------------------------------------------------------------------------------------------------- |
539-
| `theme` | chaîne | `"aurora"` | Thème de couleur pour la sortie du terminal. Les éléments intégrés incluent `aurora`, `dark`, `light`, `dracula`, `sandy`, `tui`, `tuatara`, `github-dark`, `cappadocia`, `rio` et `australia`. Les anciennes valeurs `turkey` et `brazil` se chargent toujours en tant qu'alias. |
539+
| `theme` | chaîne | `"aurora"` | Thème de couleur pour la sortie du terminal. Les éléments intégrés incluent `aurora`, `dark`, `light`, `dracula`, `sandy`, `tui`, `tuatara`, `github-dark`, `cappadocia`, `rio`, `australia` et `autohand`. Les anciennes valeurs `turkey` et `brazil` se chargent toujours en tant qu'alias. |
540540
| `customThemes` | objet | `{}` | Définitions de thèmes personnalisées en ligne saisies par nom de thème. Définissez `theme` sur la même clé pour en utiliser une. |
541541
| `autoConfirm` | booléen | `false` | Ignorer les invites de confirmation pour des opérations sûres |
542542
| `readFileCharLimit` | numéro | `300` | Nombre maximum de caractères à afficher à partir de la sortie de l'outil de lecture/recherche (le contenu complet est toujours envoyé au modèle) |

‎docs/config-reference_hu.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ A részletekért lásd a [Workspace Safety](./workspace-safety.md) részt.
536536
```
537537
| Mező | Típus | Alapértelmezett | Leírás |
538538
| ----------------------------- | ------ | ------- | ---------------------------------------------------------------------------------------------- |
539-
| `theme` | húr | `"aurora"` | Színes téma a terminál kimenetéhez. A beépítettek a következők: `aurora`, `dark`, `light`, `dracula`, `sandy`, `tui`, `tuatara`, `github-dark`, `cappadocia`, CODE és ___8__ `australia`. A régi `turkey` és `brazil` értékek továbbra is betöltődnek álnévként. |
539+
| `theme` | húr | `"aurora"` | Színes téma a terminál kimenetéhez. A beépítettek a következők: `aurora`, `dark`, `light`, `dracula`, `sandy`, `tui`, `tuatara`, `github-dark`, `cappadocia`, CODE és ___8__ `australia`, `autohand`. A régi `turkey` és `brazil` értékek továbbra is betöltődnek álnévként. |
540540
| `customThemes` | tárgy | `{}` | Soron belüli egyéni témadefiníciók a téma nevével. A használatához állítsa be a `theme` kulcsot ugyanarra a kulcsra. |
541541
| `autoConfirm` | logikai | `false` | A biztonságos működés érdekében hagyja ki a megerősítő felszólításokat |
542542
| `readFileCharLimit` | szám | `300` | Maximum megjeleníthető karakter az olvasási/kereső eszköz kimenetéből (a teljes tartalom továbbra is elküldésre kerül a modellnek) |

‎docs/config-reference_it.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ Per i dettagli completi, consulta [Sicurezza sullo spazio di lavoro](./workspace
536536
```
537537
| Campo | Digitare | Predefinito | Descrizione |
538538
| ---------------------- | ------ | ------- | ---------------------------------------------------------------------------------------- |
539-
| `theme` | stringa | `"aurora"` | Tema colore per l'output del terminale. Le funzionalità integrate includono `aurora`, `dark`, `light`, `dracula`, `sandy`, `tui`, `tuatara`, `github-dark`, `cappadocia`, `rio` e `australia`. I valori legacy `turkey` e `brazil` vengono ancora caricati come alias. |
539+
| `theme` | stringa | `"aurora"` | Tema colore per l'output del terminale. Le funzionalità integrate includono `aurora`, `dark`, `light`, `dracula`, `sandy`, `tui`, `tuatara`, `github-dark`, `cappadocia`, `rio`, `australia` e `autohand`. I valori legacy `turkey` e `brazil` vengono ancora caricati come alias. |
540540
| `customThemes` | oggetto | `{}` | Definizioni di temi personalizzati incorporati con chiave in base al nome del tema. Imposta `theme` sulla stessa chiave per usarne uno. |
541541
| `autoConfirm` | booleano | `false` | Salta le richieste di conferma per operazioni sicure |
542542
| `readFileCharLimit` | numero | `300` | Numero massimo di caratteri da visualizzare dall'output dello strumento di lettura/trova (il contenuto completo viene comunque inviato al modello) |

‎docs/config-reference_pl.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ Aby uzyskać szczegółowe informacje, zobacz [Bezpieczeństwo miejsca pracy](./
536536
```
537537
| Pole | Wpisz | Domyślne | Opis |
538538
| ---------------------------- | ------ | -------- | -------------------------------------------------------------------------------------------------------- |
539-
| `theme` | ciąg | `"aurora"` | Motyw kolorystyczny dla wyjścia terminala. Wbudowane funkcje obejmują `aurora`, `dark`, `light`, `dracula`, `sandy`, `tui`, `tuatara`, `github-dark`, `cappadocia`, `rio` i `australia`. Starsze wartości `turkey` i `brazil` nadal są ładowane jako aliasy. |
539+
| `theme` | ciąg | `"aurora"` | Motyw kolorystyczny dla wyjścia terminala. Wbudowane funkcje obejmują `aurora`, `dark`, `light`, `dracula`, `sandy`, `tui`, `tuatara`, `github-dark`, `cappadocia`, `rio`, `australia` i `autohand`. Starsze wartości `turkey` i `brazil` nadal są ładowane jako aliasy. |
540540
| __AH_KOD_13__ | obiekt | __AH_KOD_14__ | Wbudowane niestandardowe definicje motywów oznaczone nazwą motywu. Ustaw `theme` na ten sam klucz, aby go użyć. |
541541
| __AH_KOD_16__ | wartość logiczna | __AH_KOD_17__ | Pomiń monity o potwierdzenie bezpiecznych operacji |
542542
| __AH_KOD_18__ | numer | __AH_KOD_19__ | Maksymalna liczba znaków do wyświetlenia z wyników narzędzia odczytu/wyszukiwania (pełna treść jest nadal wysyłana do modelu) |

‎docs/config-reference_ru.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ cd ~/projects/my-app && autohand
536536
```
537537
| Поле | Тип | По умолчанию | Описание |
538538
| ---------------------------- | ------ | ------- | --------------------------------------------------------------------------------------------- |
539-
| `theme` | строка | `"aurora"` | Цветовая тема для вывода через терминал. Встроенные модули включают `aurora`, `dark`, `light`, `dracula`, `sandy`, `tui`, `tuatara`, `github-dark`, `cappadocia`, `rio` и `australia`. Устаревшие значения `turkey` и `brazil` по-прежнему загружаются как псевдонимы. |
539+
| `theme` | строка | `"aurora"` | Цветовая тема для вывода через терминал. Встроенные модули включают `aurora`, `dark`, `light`, `dracula`, `sandy`, `tui`, `tuatara`, `github-dark`, `cappadocia`, `rio`, `australia` и `autohand`. Устаревшие значения `turkey` и `brazil` по-прежнему загружаются как псевдонимы. |
540540
| `customThemes` | объект | `{}` | Встроенные определения пользовательских тем, привязанные к имени темы. Установите для `theme` тот же ключ, чтобы использовать его. |
541541
| `autoConfirm` | логическое | `false` | Пропускайте запросы на подтверждение для безопасной работы |
542542
| `readFileCharLimit` | номер | `300` | Максимальное количество символов для отображения в выходных данных инструмента чтения/поиска (полное содержимое по-прежнему отправляется в модель) |

‎docs/config-reference_tr.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ Tüm ayrıntılar için [Çalışma Alanı Güvenliği](./workspace-safety.md) k
536536
```
537537
| Alan | Tür | Varsayılan | Açıklama |
538538
| ---------------------------- | ------ | ------- | ---------------------------------------------------------------------------------------------- |
539-
| `theme` | dize | `"aurora"` | Terminal çıkışı için renk teması. Yerleşikler arasında `aurora`, `dark`, `light`, `dracula`, `sandy`, `tui`, `tuatara`, `github-dark`, `cappadocia`, `rio` ve `australia` bulunur. Eski `turkey` ve `brazil` değerleri hâlâ takma ad olarak yükleniyor. |
539+
| `theme` | dize | `"aurora"` | Terminal çıkışı için renk teması. Yerleşikler arasında `aurora`, `dark`, `light`, `dracula`, `sandy`, `tui`, `tuatara`, `github-dark`, `cappadocia`, `rio`, `australia` ve `autohand` bulunur. Eski `turkey` ve `brazil` değerleri hâlâ takma ad olarak yükleniyor. |
540540
| `customThemes` | nesne | `{}` | Tema adına göre anahtarlanan satır içi özel tema tanımları. Birini kullanmak için `theme` değerini aynı tuşa ayarlayın. |
541541
| `autoConfirm` | boole | `false` | Güvenli işlemler için onay istemlerini atlayın |
542542
| `readFileCharLimit` | sayı | `300` | Okuma/bulma aracı çıktısından görüntülenecek maksimum karakter (tam içerik hâlâ modele gönderilmektedir) |

‎docs/config-reference_zh-tw.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ cd ~/projects/my-app && autohand
536536
```
537537
|領域 |類型 |預設 |描述 |
538538
| ---------------------------- | ------ | -------- |---------------------------------------------------------------------------------------------------------------- |
539-
| `theme` |字串| `"aurora"` |終端輸出的顏色主題。內建函數包括 `dark`、`light`、`dracula`、`sandy`、`tui`、`tuatara`、`github-dark`、`cappadocia`、`rio` 和 `australia`。舊版 `turkey` 和 `brazil` 值仍會作為別名載入。 |
539+
| `theme` |字串| `"aurora"` |終端輸出的顏色主題。內建函數包括 `dark`、`light`、`dracula`、`sandy`、`tui`、`tuatara`、`github-dark`、`cappadocia`、`rio`、`australia` 和 `autohand`。舊版 `turkey` 和 `brazil` 值仍會作為別名載入。 |
540540
| `customThemes` |物件| `{}` |按主題名稱鍵入的內聯自訂主題定義。將 `theme` 設定為同一鍵以使用一個。 |
541541
| `autoConfirm` |布林 | `false` |跳過確認提示以確保安全操作 |
542542
| `readFileCharLimit` |數量 | `300` |從讀取/查找工具輸出中顯示的最大字元數(完整內容仍發送到模型)|

‎src/commands/commandTheme.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ export function createCommandTheme(): CommandTheme {
5353
link: (value) => theme ? theme.underline(accent(value)) : chalk.cyan.underline(value),
5454
tab: (value) => muted(` ${value} `),
5555
selectedTab: (value) => theme
56-
? theme.fgBg('userMessageText', 'accent', ` ${value} `)
56+
? theme.has('selectionBg')
57+
? theme.fgBg('selectionText', 'selectionBg', ` ${value} `)
58+
: theme.fgBg('userMessageText', 'accent', ` ${value} `)
5759
: chalk.bgWhite.black(` ${value} `),
5860
progressFilled: accent,
5961
progressEmpty: muted,

0 commit comments

Comments
 (0)