From 7c47bc153ea8f02689ee8b9136bf78eff60a6597 Mon Sep 17 00:00:00 2001 From: Morten Harders Date: Fri, 6 Nov 2026 08:50:28 +0100 Subject: [PATCH] docs: move themes to docs/themes.md The README keeps a one-line summary; the gallery, the full key list, custom theme files, Omarchy sync and the logo keys move to their own page. --- README.md | 49 +----------------- docs/themes.md | 106 ++++++++++++++++++++++++++++++++++++++ frontend/package.json.md5 | 2 +- 3 files changed, 109 insertions(+), 48 deletions(-) create mode 100644 docs/themes.md diff --git a/README.md b/README.md index d2b9f50..2167f52 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ - **Quick access**: a command palette (Ctrl+K) that jumps to any project, connection, database or table and runs actions, run the statement under the cursor (Alt+Enter), filter from any cell, and generated SELECT/INSERT/UPDATE/DELETE statements. - **Query tabs** with CodeMirror, named and positional parameters, autocomplete for tables and columns, several result sets, EXPLAIN, a per-connection history and saved snippets. - **Import and export**: tables and results to CSV, JSON or SQL; full SQL dumps; SQL and CSV import; **Clone to** another database or connection, across drivers. -- **Themes**: dbro Dark and Light (picked from your system preference on first start), Tokyo Night, Catppuccin, Gruvbox, Nord, your own in `~/.config/dbro/themes/*.toml`, or live sync with Omarchy. +- **Themes**: dbro Dark and Light (picked from your system preference on first start), Tokyo Night, Catppuccin, Gruvbox, Nord, your own in `~/.config/dbro/themes/*.toml`, or live sync with Omarchy. See [Themes](docs/themes.md). - **MCP server** for agents (stdio or streamable HTTP): read-only by default, writes only on connections you allow, connections can be hidden. - **Headless mode**: `dbro serve` puts the app in a web browser on a port, embeddable in other applications. @@ -127,52 +127,7 @@ make install # builds and installs to ~/.local (binary, .desktop file, ic ## Themes -The built-in themes: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
dbro with the dbro Dark themedbro with the dbro Light theme
dbro Darkdbro Light
dbro with the Tokyo Night themedbro with the Nord theme
Tokyo NightNord
dbro with the Catppuccin Mocha themedbro with the Catppuccin Latte theme
Catppuccin MochaCatppuccin Latte
dbro with the Gruvbox Dark theme
Gruvbox Darkor your own, or live Omarchy sync
- -A theme is an Omarchy `colors.toml`: `mode`, `accent`, `background`, `foreground`, `selection`, the ANSI colors and so on. Missing keys come from dbro Dark or dbro Light. The logo follows `accent`; a theme can recolor it with optional keys: - -```toml -logo_body = "#a3be8c" # the cylinder -logo_lid = "#c8dcb4" # its top -logo_band = "#6f8a5a" # the disk band and rim -logo_glint = "#ebcb8b" # the sunglasses' glints -logo_ink = "#20242c" # sunglasses and smile -``` +Seven built-in themes, light or dark from your system, live [Omarchy](https://omarchy.org) sync, and your own themes as TOML files. See [docs/themes.md](docs/themes.md) for the gallery and the theme format. ## MCP for agents diff --git a/docs/themes.md b/docs/themes.md new file mode 100644 index 0000000..4049869 --- /dev/null +++ b/docs/themes.md @@ -0,0 +1,106 @@ +# Themes + +dbro ships seven themes, follows your system's light or dark preference, can sync live with [Omarchy](https://omarchy.org), and takes your own themes as plain TOML files. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
dbro with the dbro Dark themedbro with the dbro Light theme
dbro Darkdbro Light
dbro with the Tokyo Night themedbro with the Nord theme
Tokyo NightNord
dbro with the Catppuccin Mocha themedbro with the Catppuccin Latte theme
Catppuccin MochaCatppuccin Latte
dbro with the Gruvbox Dark theme
Gruvbox Darkor your own, or live Omarchy sync
+ +Pick a theme in **Settings** (Ctrl+,) or from the command palette (Ctrl+K, type `theme`). + +## System and Omarchy + +- **System** uses dbro Dark or dbro Light, following the desktop's color-scheme preference (the XDG desktop portal on Linux), and switches along when it changes. It is the default on first start. +- **Omarchy (sync)** appears on Omarchy. dbro reads Omarchy's current theme and follows every theme switch live. On the first start on Omarchy, dbro asks whether to turn this on. + +## Your own themes + +A theme is a TOML file in `~/.config/dbro/themes/` (or `$XDG_CONFIG_HOME/dbro/themes/`). The file name is its ID and gives it its name: `solarized-dark.toml` shows up as *Solarized Dark*. dbro reloads a theme when its file changes, so you can edit it with the app open. + +The quickest start is **Settings → Save current as theme…**, which writes the colors of the theme you are looking at to a new file you can then edit. + +The format is Omarchy's `colors.toml`, so an Omarchy theme's colors work as they are. Every key is optional: missing keys come from dbro Dark, or dbro Light when `mode = "light"`. + +```toml +mode = "dark" # "dark" or "light" + +# surfaces +background = "#1a1214" # main background +dark_background = "#140e10" # toolbar, sidebar, filter bar, row numbers +darker_background = "#0e0a0b" # dialog backdrop +lighter_background = "#2a1c20" # status bar, buttons, table headers, menus +selection = "#4a2a2e" # selected rows, tree items and text + +# text +foreground = "#eee4e3" +dark_foreground = "#9c8a8b" # secondary text, hints, NULL +light_foreground = "#c9b9b9" # tabs, status bar, labels +bright_foreground = "#fff6f5" +muted = "#8a7476" + +# accent and syntax colors +accent = "#ff5a4e" # primary buttons, focus, active tab +red = "#ff5a4e" # errors, destructive actions +orange = "#ff8a5c" # numbers +yellow = "#ffc15e" # changed cells, keys, MCP log entries +green = "#9bd27a" # new rows and columns +cyan = "#7fd1d6" # column types +blue = "#82aaff" +magenta = "#f28fb3" # SQL keywords, WHERE label +brown = "#a8735a" +bright_red = "#ff7f75" +bright_yellow = "#ffd48a" +bright_green = "#b6e39a" +bright_cyan = "#a3e3e6" +bright_blue = "#a6c2ff" +bright_magenta = "#f7b0ca" +``` + +Every key becomes a CSS variable (`dark_background` is `--dark-background`), so any key you add is available too. + +### The logo + +The logo follows `accent`. A theme can recolor it in detail with these optional keys: + +```toml +logo_body = "#a3be8c" # the cylinder +logo_lid = "#c8dcb4" # its top +logo_band = "#6f8a5a" # the disk band and rim +logo_glint = "#ebcb8b" # the sunglasses' glints +logo_ink = "#20242c" # sunglasses and smile +``` + +## Font + +**Settings → Font** sets the UI font; empty means your system's monospace font (from fontconfig on Linux). diff --git a/frontend/package.json.md5 b/frontend/package.json.md5 index c693c8f..71db1a3 100755 --- a/frontend/package.json.md5 +++ b/frontend/package.json.md5 @@ -1 +1 @@ -7e64b6a0d64a054e5cd347462601a029 \ No newline at end of file +ea390b86f2691419cf54fb9a5f8a716b \ No newline at end of file