Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

appearance.md

87 lines3.6 KB

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