Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 2 additions & 47 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -127,52 +127,7 @@ make install # builds and installs to ~/.local (binary, .desktop file, ic

## Themes

The built-in themes:

<table>
<tr>
<td><img src="assets/screenshots/theme-dbro-dark.png" alt="dbro with the dbro Dark theme"></td>
<td><img src="assets/screenshots/theme-dbro-light.png" alt="dbro with the dbro Light theme"></td>
</tr>
<tr>
<td align="center">dbro Dark</td>
<td align="center">dbro Light</td>
</tr>
<tr>
<td><img src="assets/screenshots/theme-tokyo-night.png" alt="dbro with the Tokyo Night theme"></td>
<td><img src="assets/screenshots/theme-nord.png" alt="dbro with the Nord theme"></td>
</tr>
<tr>
<td align="center">Tokyo Night</td>
<td align="center">Nord</td>
</tr>
<tr>
<td><img src="assets/screenshots/theme-catppuccin-mocha.png" alt="dbro with the Catppuccin Mocha theme"></td>
<td><img src="assets/screenshots/theme-catppuccin-latte.png" alt="dbro with the Catppuccin Latte theme"></td>
</tr>
<tr>
<td align="center">Catppuccin Mocha</td>
<td align="center">Catppuccin Latte</td>
</tr>
<tr>
<td><img src="assets/screenshots/theme-gruvbox-dark.png" alt="dbro with the Gruvbox Dark theme"></td>
<td></td>
</tr>
<tr>
<td align="center">Gruvbox Dark</td>
<td align="center">or your own, or live Omarchy sync</td>
</tr>
</table>

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

Expand Down
106 changes: 106 additions & 0 deletions docs/themes.md
Original file line number Diff line number Diff line change
@@ -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.

<table>
<tr>
<td><img src="../assets/screenshots/theme-dbro-dark.png" alt="dbro with the dbro Dark theme"></td>
<td><img src="../assets/screenshots/theme-dbro-light.png" alt="dbro with the dbro Light theme"></td>
</tr>
<tr>
<td align="center">dbro Dark</td>
<td align="center">dbro Light</td>
</tr>
<tr>
<td><img src="../assets/screenshots/theme-tokyo-night.png" alt="dbro with the Tokyo Night theme"></td>
<td><img src="../assets/screenshots/theme-nord.png" alt="dbro with the Nord theme"></td>
</tr>
<tr>
<td align="center">Tokyo Night</td>
<td align="center">Nord</td>
</tr>
<tr>
<td><img src="../assets/screenshots/theme-catppuccin-mocha.png" alt="dbro with the Catppuccin Mocha theme"></td>
<td><img src="../assets/screenshots/theme-catppuccin-latte.png" alt="dbro with the Catppuccin Latte theme"></td>
</tr>
<tr>
<td align="center">Catppuccin Mocha</td>
<td align="center">Catppuccin Latte</td>
</tr>
<tr>
<td><img src="../assets/screenshots/theme-gruvbox-dark.png" alt="dbro with the Gruvbox Dark theme"></td>
<td></td>
</tr>
<tr>
<td align="center">Gruvbox Dark</td>
<td align="center">or your own, or live Omarchy sync</td>
</tr>
</table>

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).
2 changes: 1 addition & 1 deletion frontend/package.json.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7e64b6a0d64a054e5cd347462601a029
ea390b86f2691419cf54fb9a5f8a716b
Loading