Skip to content

Smalti doesn't have a public release yet. These docs describe the first one, which is on its way.

theme.toml

Themes, glass, ANSI palette and prompt in ~/.config/smalti/theme.toml.

~/.config/smalti/theme.toml is written by the Appearance panel (⌘,) and the Prompt studio (⇧⌘P). You can edit it by hand: Smalti reads it on reload and rewrites it whole when it saves. If you leave an error in it and the app overwrites it, it keeps a copy in theme.toml.bak.

This file is read on top of config.toml, key by key. If a key is in both, theme.toml wins and Smalti warns you.

It only accepts three tables: [appearance], [window] (only buttons) and [prompt].

Themes

Id Name Kind Accent
obsidiana Obsidiana (default) dark #7aa2f7
niebla Niebla light #3b5bdb
ambar-nocturno Ámbar nocturno dark #e0af68
bosque Bosque dark #6fd3b5

They all share sizes: glass 0.62, blur 28, gap 8, radius 11, JetBrains Mono 13. Only the colors change. Siguiente tema (next theme) in ⌘K cycles through them.

[appearance]

The same keys as in config.toml: theme, accent, glass_opacity, blur, protect_legibility, font_family, font_size, gap and radius.

[appearance]
theme = "obsidiana"
glass_opacity = 0.7
blur = 32

[appearance.ansi.obsidiana]
1 = "#ff7a93"

ANSI palette

[appearance.ansi.<theme>] stores only the colors you changed, with indices 0…15. Restablecer paleta ANSI (reset ANSI palette) in ⌘K undoes them.

Prompt

[prompt] defines the zsh prompt Smalti draws.

Key Values Default
source smalti, shell smalti
style clean, pills, symbol-only clean
layout two-lines, one-line two-lines
modules ordered list of directory, git-branch, git-status, runtime, duration, agents, time, cloud ["directory", "git-branch", "git-status", "runtime", "duration", "agents"]
icons thin, nerd, none thin
symbol ›, ❯, λ, $ ›

With source = "shell" Smalti leaves your own prompt alone. The icons come in a bundled font, so you don't need Nerd Fonts.

Export to Starship

Exportar como starship.toml (export as starship.toml, in ⌘K or the Prompt studio) saves your prompt as a starship.toml wherever you choose.

Window buttons

[window]
buttons = "hover"   # hidden, hover or visible