Open History to see the last commit
1# Appearance and themes
2
3Open **Settings → Appearance** to choose a theme and follow the system appearance or stay in light
4or dark mode. To use different themes for light and dark mode, select the corresponding preview
5within each theme. Appearance preferences are saved separately on each device or browser.
6
7On web and desktop, use **Change theme** in the command palette to select a theme without leaving chat.
8Press **Cmd+Option+A** on macOS or **Ctrl+Alt+A** on Windows/Linux to open the theme picker directly.
9Use **Change appearance** in the command palette to choose System, Light, or Dark independently of
10the theme. **Cmd+Option+Shift+A** on macOS or **Ctrl+Alt+Shift+A** on Windows/Linux cycles through
11those modes. Customize these shortcuts under **Settings → Keybindings**.
12
13Mobile has its own themes and text, code, and terminal preferences. It does not follow environment
14themes or defaults.
15
16On Android 12 or newer, choose the **Material You** theme in Appearance to use colors from
17your wallpaper. Selecting another theme replaces those colors. Like other themes, Material You
18can be selected separately for light and dark appearances.
19Android uses **Material You Layout** by default unless you have turned it off in Appearance.
20It changes shapes, spacing, and controls independently
21of the selected theme.
22
23## Motion
24
25The main sidebar, right panel, and terminal drawer open and close immediately by default. Move the
26**Panel animations** slider above 0 ms to add motion, up to 400 ms, unless reduced motion is enabled
27in your operating system. Moving between threads always snaps to the selected thread's panel state
28without replaying its transitions.
29
30## Custom themes
31
32On web and desktop, choose **Create theme** to adjust a palette, or import a T3 Code or VS Code
33theme. The theme editor's color picker lets you select an area of the app to find the color to
34change. Export your theme as JSON to share it.
35
36## Environment themes
37
38Environment themes and defaults come from the server serving your web app or the desktop app's
39main local environment. app.t3.codes and additional connections do not use them.
40
41Select a published theme in **Settings → Appearance** to follow its palette as the server updates
42it. **Duplicate** makes an independent copy you can edit. A saved custom theme with the same ID
43takes precedence. If the server stops publishing the selected theme, T3 Code falls back to its
44standard theme.
45
46Run this on the server to set a default and switch connected clients to it:
47
48```bash
49t3 theme set nightfall
50```
51
52Clients that are offline apply it when they reconnect. Each client applies the setting once;
53choosing another theme afterward sticks until the next `t3 theme set`. Run the command again to
54reapply it, even if the name is unchanged.
55
56`t3 theme clear` removes the default without changing anyone's current theme. `t3 theme show` lists
57the default and published themes.
58
59### Publish a theme
60
61Save a theme exported from T3 Code into `~/.t3/userdata/themes/` on the server, or the `themes`
62directory under your custom state directory. The filename supplies the theme ID: `nightfall.json`
63can be selected with `t3 theme set nightfall`. Keep the filename stable when updating its colors.
64Do not use `system`, `light`, `dark`, or a built-in theme's ID.
65
66For an integration that generates a palette, this shorter format also works:
67
68```json
69{
70 "name": "Nightfall",
71 "appearance": "dark",
72 "canvas": "#1a1b26",
73 "accent": "#7aa2f7",
74 "colors": {
75 "terminalSelection": "#292e42",
76 "error": "#f7768e"
77 }
78}
79```
80
81Set `appearance` to `light` or `dark` and supply hex colors for `canvas` and `accent`. T3 Code
82generates the rest. The optional `colors` overrides use the names in the theme editor's advanced
83view.
84
85Write updates to a temporary file and rename it into place so clients never read a partial theme.
86Invalid files are not published.