Use Tessera colors in your applications

Apply a palette

Run tessera theme apply PALETTE, then tessera theme status to see generated files and missing includes. Tessera writes companions under $XDG_CONFIG_HOME/tessera/theme, normally ~/.config/tessera/theme. Apart from desktop appearance preferences described below, application configuration stays under your control. Generated files are replaced on apply, so keep your custom settings in the application itself.

Emacs

After applying a palette, add these lines to your init:

(add-to-list 'custom-theme-load-path
             (expand-file-name "tessera/theme"
                               (or (getenv "XDG_CONFIG_HOME") "~/.config")))
(load-theme 'tessera t)

The theme covers core editing, syntax, mode lines, search, completion, Org, Magit, diffs, diagnostics, and terminal ANSI faces. It leaves your font family and size alone. Other enabled themes can override it. Put persistent face overrides in your init after loading the theme.

Apply, preview, and revert reload enabled Tessera themes in discovered Emacs servers. Nondefault daemon names must be listed, separated by spaces, in TESSERA_EMACS_SERVERS. Discovery uses owned sockets in the standard runtime and older temporary Emacs server directories; it doesn't start servers or use TCP servers. Disable the theme in an instance to opt out. Set TESSERA_THEME_LIVE=none to suppress live updates for a command.

GTK

In a Tessera login session, the Settings portal publishes dark/light preference and accent. Libadwaita 1.6 and later follows these live, within its supported accent choices. GTK 3 and plain GTK 4 follow the generated Tessera and Tessera-B named themes through the portal. Existing applications may need one restart to begin using that route. Apps can override system preferences, and Flatpak apps need access to generated named themes for GTK 3 styling.

Tessera also sets org.gnome.desktop.interface color-scheme through the optional gsettings tool: prefer-dark for dark palettes and prefer-light for light palettes, matching the portal's explicit choice. This reaches apps such as Chromium that read GSettings directly. The session's configured backend, normally dconf, stores the preference. Missing tools or backend failures produce a warning without disabling the portal.

Only gtk-application-prefer-dark-theme is managed in the [Settings] section of gtk-3.0/settings.ini and gtk-4.0/settings.ini under $XDG_CONFIG_HOME. Other content stays intact. Symlinks and other non-regular settings files are preserved with a warning naming the line to add manually. Generated Tessera themes follow the palette; custom gtk-theme-name values stay under your control. A forced Adwaita-dark theme or GTK_THEME override can keep an app dark. Run sigil scripts/check-dark-mode.sgl from the source checkout for a plan-by-default Chromium check after updating Tessera.

For fuller palette matching at the next launch, add the appropriate include to your user GTK CSS. Fixed CSS can override the live colors, so omit it if you prefer the live named theme or libadwaita accent.

/* ~/.config/gtk-3.0/gtk.css */
@import url("../tessera/theme/gtk.css");
/* ~/.config/gtk-4.0/gtk.css, GTK 4.16 / libadwaita 1.6 or newer */
@import url("../tessera/theme/gtk-4.0.css");

Older GTK 4 uses gtk.css instead. Respect XDG_CONFIG_HOME when set, or use an absolute file URL if you move the generated directory. Hard-coded app colors and inaccessible sandbox files may retain other colors. CSS includes take effect on restart; they don't guarantee live CSS reload.

Qt

With qt5ct or qt6ct installed and selected for that application's Qt version, add these keys to its existing Appearance section. Substitute your absolute generated path and preserve other keys.

[Appearance]
custom_palette=true
color_scheme_path=/home/YOU/.config/tessera/theme/qtct.conf

The config is under qt5ct/qt5ct.conf or qt6ct/qt6ct.conf in your config root. Select the corresponding platform plugin with QT_QPA_PLATFORMTHEME=qt5ct or qt6ct. Restart the application to load the scheme. QPalette-based widgets follow it; Qt Quick, custom styles, or application palettes may ignore it.

btop and custom templates

Make btop/themes/tessera.theme in your config root a symbolic link to the generated tessera/theme/btop.theme, preserving an existing destination before replacing it. Select tessera in btop's theme menu or set color_theme = "tessera". Reselect the theme or restart btop after applying a palette. Terminal color depth and btop's background setting can affect the result.

Custom templates under tessera/themes/templates in your config root can replace bundled outputs. If replacing the Emacs template, retain its emacs-reload apply hook to keep live updates. TESSERA_THEME_DIR relocates generated companions; adjust application paths accordingly.