> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tablepro.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Appearance

> Appearance mode, built-in themes, the Theme Editor, VS Code theme import, theme files, and connection colors

Three controls in **Settings > Appearance** decide the colors. **Appearance** picks **System** to follow macOS, or **Light** or **Dark**, and applies to this Mac only. **Light theme** and **Dark theme**, under **Themes**, each hold the theme drawn in that appearance, so setting your dark theme never means leaving Light mode.

![Appearance pane with the System, Light and Dark control, the Light theme and Dark theme popups, and the Manage Themes row](https://mintcdn.com/ngquct/BMFMXC9h96COEM8i/images/settings-appearance.png?fit=max\&auto=format\&n=BMFMXC9h96COEM8i\&q=85\&s=8a843e7b1d4e2cc3963524650e383a3d)

Manage Themes opens the theme list

Each theme popup lists only the themes made for its appearance: the built-in ones, then yours after a divider. The two theme choices and your custom themes sync between Macs under **Settings** in [iCloud Sync](https://docs.tablepro.app/features/icloud-sync.md); **Appearance** does not. When the theme a popup holds cannot be used on this Mac, for example because its file did not load or has not synced yet, the popup shows the theme in use and says why.

## What a theme colors

A theme colors content: the SQL editor and every other code view, the data grid, value viewers and inspector fields, JSON and PHP trees, diffs, record lists such as Server Dashboard sessions, ER diagrams, query plans and charts, and the loading, empty and error states that take a grid's place.

Its window background fills the area behind those panes on every macOS version. On macOS 26 and later it is also the window color of the main window, data file windows, Compare & Sync and value viewers, and the sidebar, inspector, toolbar and title bar take on its tone through the system glass. With **Reduce transparency** on in **System Settings > Accessibility > Display**, that glass turns opaque, so the sidebar and inspector are filled with the window background instead. In full screen the toolbar and title bar keep the system look. Before macOS 26 the sidebar, inspector and toolbar keep the system look. The bars along the top and bottom of a pane, such as the filter bar, drop their system material while the theme colors what is behind them, so the theme shows through them.

Controls, Settings, the welcome window, the connection form, sheets and popovers keep the system look and your Accent color. A code field inside one of them, such as **Startup Commands**, **Pre-Connect Script**, a favorite's query or the **Startup SQL** of a connection link, takes the editor colors.

With Increase Contrast on, the window background goes back to the macOS color and the rest of the theme stays.

Fonts are not part of a theme. The editor font is under **Font** in [Editor settings](https://docs.tablepro.app/customization/editor-settings.md#font) and the grid font under **Grid** in [Data settings](https://docs.tablepro.app/customization/data-settings.md#grid), and both stay on the Mac you set them on.

## Built-in themes

| Light theme | Dark theme |
| - | - |
| Default Light | Default Dark |
| Catppuccin Latte | Catppuccin Mocha |
| GitHub Light | GitHub Dark |
| Gruvbox Light | Gruvbox Dark |
| One Light | One Dark |
| Solarized Light | Solarized Dark |
| Tokyo Night Light | Tokyo Night |

Dracula and Nord are dark only.

Default Light and Default Dark set no colors of their own. The editor and the grid draw in the macOS colors, so selection, the cursor, the current line and the focus ring follow your Accent and Highlight colors in System Settings > Appearance, and Increase Contrast. Their syntax colors are Xcode's defaults, and switch to Xcode's high-contrast palette when Increase Contrast is on. Keep them unless you want a palette. To use one, set both themes of a row as your **Light theme** and **Dark theme**, so the palette holds when the Mac switches between light and dark.

The other themes keep their projects' own colors and set a **Values** color for each type from the same palette. Where a palette color falls under 4.5:1 on a row, alternate and edited rows included, the theme uses a lighter or darker shade of it, for booleans too. Solarized Light's text sits at 4.1:1 on its background, under the 4.5:1 the Theme Editor asks for.

## Managing themes

Click **Manage Themes**, under **Themes** in **Settings > Appearance**, for the list of every theme on this Mac. It has up to three groups: **Custom**, then **Couldn't Load** when a file in the themes folder could not be read, then **Built-in**. Each row names the theme and whether it is Light or Dark, and the two themes the popups hold read **Light, in use** and **Dark, in use**.

| Task | How |
| - | - |
| Start a theme | Click **+**, choose **New Theme Based On**, and pick any theme. The copy opens in the Theme Editor |
| Copy a theme | Right-click it and choose **Duplicate**. The copy takes the name with "Copy" added |
| Edit a theme | Double-click it, press Return, or choose **Edit…** from the **...** menu. For a built-in theme the item is **Show in Theme Editor**, and the theme opens read-only |
| Rename a custom theme | Right-click it, choose **Rename**, type the new name and press Return. A name another theme already has is refused in the field |
| Import | Click **+** and choose **Import…**, or drag one or more `.json` files onto the list. TablePro themes and [VS Code color themes](#importing-a-vs-code-theme) both work |
| Export | Choose **Export…**, or drag the row to a Finder window for a `.json` copy. Built-in themes export too |
| Use a theme | Right-click it and choose **Use for Light Appearance** or **Use for Dark Appearance** |
| Remove a custom theme | Select it and click **-**, press Delete, or right-click it and choose **Move to Trash** |
| Find the file | Choose **Show in Finder**. **Show Themes Folder in Finder**, at the end of the **...** menu or on a right-click in empty space, opens the folder |

A right-click menu shows only what applies to that row. The **...** menu under the list acts on the selected row and dims what does not apply.

**Move to Trash** moves the file to the macOS Trash. It asks first only when the theme is your **Light theme** or **Dark theme**, and that popup then goes back to Default Light or Default Dark. Press `Cmd+Z` with Settings in front, on any pane, to bring the theme back, popup choice included. New themes, duplicates, imports and renames undo the same way.

An imported theme whose name is taken gets a number: a second Midnight imports as Midnight 2. When some files in an import fail, one alert lists each with its reason.

A file under **Couldn't Load** shows the reason it was refused. Right-click it to choose **Show in Finder**, **Try Again** or **Move to Trash**. TablePro watches the themes folder, so a file you add, fix or remove in Finder or another editor loads as soon as it is saved.

## Editing a theme

Each theme opens in a Theme Editor window of its own, titled with the theme's name. Opening a theme that already has a window brings that window forward.

**1. Open the theme**

Double-click a custom theme in **Manage Themes**. For a built-in theme, open it and click **Duplicate** in its window: the copy opens editable in its place.

**2. Change colors**

Click a color well and pick a color. The preview at the top of the window repaints, and so does every window drawing with this theme.

**3. Close the window**

Changes save 0.75 seconds after you stop and again when the window closes. There is no Save button.

The preview is the real SQL editor and data grid over sample content, drawn in the theme's own appearance, so a dark theme previews dark on a light Mac. It shows the current line and statement, a selection and a selected row in the colors a focused editor and grid draw, invisibles, alternate rows, NULL, booleans, a value of every type **Values** colors, and a modified, an inserted and a deleted row.

Under it, **General** holds the theme's name, its appearance (Light or Dark) and its author. The colors follow in **Window**, **Editor**, **Syntax**, **Data Grid**, **Values**, **Selection** and **Changes**.

**Values** colors a grid cell by the type of its column: **NULL Value**, **Bool True** and **Bool False**, then **String**, **Number**, **Date & Time**, **Binary**, **JSON**, **UUID** and **Enum**. The type colors show in the grid only while **Color values by type** is on in [Data settings](https://docs.tablepro.app/customization/data-settings.md); it is off until you turn it on. The preview always shows them.

| Color | Columns |
| - | - |
| String | Character types, such as `varchar`, `char`, `text` and `nvarchar` |
| Number | Integers and decimals |
| Date & Time | Dates, times and timestamps |
| Binary | Binary and blob columns |
| JSON | `json` and `jsonb` |
| UUID | `uuid` and `uniqueidentifier` |
| Enum | Enums, sets and columns limited to a list of values |

A cell shown through a display format takes the color of what it shows: an integer shown as a date takes **Date & Time**, and a blob shown as a UUID takes **UUID**. Other types, such as `inet`, `interval`, spatial and array columns, a column with no type, and the grids in the Structure tab, data files and Agent results keep the grid text color. A selected row in the focused grid draws its text in the selection color.

The line under each color's name says where the color comes from:

| Line | Meaning |
| - | - |
| A hex value, such as `#282A36` | The theme sets this color |
| **System color** | Unset, so the macOS color draws |
| **Default Light color** or **Default Dark color** | An unset syntax color, drawn in the default theme's value |
| **Based on** and another color's name | Unset, and taken from that color. See [Colors a theme leaves out](#colors-a-theme-leaves-out) |

The arrow beside a color the theme sets clears it, under the name **Use System Color** or **Use Default Color**. The same action is in the color's right-click menu. Opacity is offered only for washes drawn over content: the editor selection, current line, current statement and invisibles, the alternate row, both grid selections, and the four row change colors.

`Cmd+Z` and `Cmd+Shift+Z` undo and redo, one step per color you drag through the picker. **Revert Changes** at the bottom puts the theme back the way it was when the window opened, and undoes like any other step.

A note under **Editor**, **Data Grid** or **Values** appears when text on its background falls below 4.5:1 contrast. **Values** checks the boolean and type colors the theme sets, not NULL.

If the file changes outside TablePro while its window is open, the window takes the newer file and says so. If the file is deleted, by hand or through sync from another Mac, choose **Keep Theme** to save your edits as a new theme, or **Close**.

## Importing a VS Code theme

A VS Code color theme imports like any other theme file, from **Import…** or by dropping its `.json` file on the **Manage Themes** list. The import is saved as a TablePro theme; the VS Code file is not kept or read again. Themes installed in VS Code sit under `~/.vscode/extensions/`, one folder per extension, usually in its `themes` folder.

### What carries over

| TablePro colors | Read from |
| - | - |
| Window background | `editorPane.background`, else `editor.background` |
| Editor | `editor.background`, `editor.foreground`, `editorCursor.foreground`, `editor.selectionBackground`, `editor.lineHighlightBackground` (else `editor.lineHighlightBorder`), `editor.rangeHighlightBackground` for the current statement, `editorLineNumber.foreground`, `editorWhitespace.foreground` |
| Syntax | `tokenColors` rules, matched the way VS Code matches them against the scopes of its SQL grammar. A token no rule colors takes `editor.foreground`, and NULL, when no rule colors it, takes the keyword color |
| Data grid | The editor background and text; `foreground` for header text; `keybindingTable.headerBackground`, else `tree.tableOddRowsBackground`, for the header; `list.activeSelectionBackground`, `list.activeSelectionForeground` and `list.inactiveSelectionBackground`; `list.focusOutline` or `focusBorder`; `input.placeholderForeground`, else `foreground` at half opacity, for NULL; `editorLineNumber.foreground` for row numbers; `tree.tableColumnsBorder` for grid lines; `keybindingTable.rowsBackground`, else `tree.tableOddRowsBackground`, for alternate rows; booleans from the token rules for SQL `TRUE` and `FALSE`; strings and numbers from the token rules for SQL strings and numbers |
| Row changes | `diffEditor.insertedLineBackground` and `diffEditor.removedLineBackground`, and the `gitDecoration` modified and deleted colors, made translucent, for modified rows and deleted text |

A color the file does not set stays unset and draws as [Colors a theme leaves out](#colors-a-theme-leaves-out) describes. A translucent window, editor, grid or header background is flattened over the editor background.

### What is left out

* Colors for VS Code's own interface: the activity bar, status bar, tabs, side bar, panels, terminal and widgets. TablePro's sidebar, toolbar and bars keep the system look.
* `fontStyle` in token rules. Italic comments import as plain text, and keywords are always bold.
* `semanticTokenColors` and `semanticHighlighting`.
* Rules scoped to other languages, such as `source.json`. Syntax colors are read from SQL scopes only.
* Colors TablePro has no place for: the inactive editor selection, selected text in the editor, the active line number, find matches and word highlights.

### How the file is read

* Comments and trailing commas are fine.
* `include`, and a `tokenColors` value that names a `.tmTheme` file, resolve inside the theme's own folder. Import a theme from the folder that holds the files it includes.
* A path that starts with `/` or `~` or leads out of the folder is refused, as is an `include` chain more than 8 levels deep or one that includes itself.
* Light or dark comes from the file's `type`, else from the brightness of `editor.background`, else dark. Change it under **General** in the Theme Editor. A high-contrast theme imports as a regular light or dark theme.
* The name is the file's `name`, else its file name without `.json` and `-color-theme`.
* A file over 2 MB, or one with more than 10,000 token rules, is refused. A color value that does not parse is skipped, and the slot takes its next source.

## Theme files

A custom theme is one JSON file in `~/Library/Application Support/TablePro/Themes/`. **Export…** writes the colors the selected theme sets, which is the shortest way to start one. A file copied into the folder by hand keeps its `id`; an imported one always gets a new `id`, so importing the same file twice makes two themes.

| Key | Holds |
| - | - |
| `schema` | Format version, `3` or `4`. A theme that sets a **Values** type color is written as `4`; any other theme is written as `3`, which earlier releases also read. A Mac on an earlier release skips a synced format `4` theme and shows its default theme instead until it updates |
| `id` | ASCII letters, digits, `.`, `_` and `-`, at most 128 characters. It cannot start with `tablepro.` or contain `..` |
| `name` | One line of at most 100 characters |
| `author` | Optional. One line of at most 100 characters |
| `appearance` | `light` or `dark`. Decides which popup lists the theme |
| `window` | Window background, under `background` |
| `editor` | Editor colors, with syntax colors nested under `syntax` |
| `dataGrid` | Data grid colors, the Values, Selection and Changes sections of the Theme Editor included |

```json theme={null}
{
  "schema": 3,
  "id": "user.midnight",
  "name": "Midnight",
  "author": "You",
  "appearance": "dark",
  "window": { "background": "#242933" },
  "editor": {
    "background": "#2E3440",
    "text": "#D8DEE9",
    "syntax": { "keyword": "#81A1C1", "string": "#A3BE8C" }
  },
  "dataGrid": { "background": "#2E3440", "selection": "#434C5E" }
}
```

A color is sRGB hex, `#RRGGBB`, or `#RRGGBBAA` for a translucent wash such as a selection. The window, editor, data grid and header backgrounds are always opaque: an alpha value there is dropped. Every color is optional.

### Colors a theme leaves out

| Left out | Draws |
| - | - |
| Keyword, string, number, comment, NULL, function, type | The Default Light or Default Dark value |
| Operator | The theme's editor text, else the macOS color |
| Bool true, bool false, and the Values type colors | The theme's data grid text, else the macOS color |
| Alternate row | The theme's data grid background moved 4% toward its grid text, or toward black in a light theme and white in a dark one. Without a grid background, the macOS stripe |
| Anything else | The macOS color for that spot |

### Files that do not load

A file in the themes folder that breaks one of these is listed under **Couldn't Load** with the reason, and a JSON error names the line and column:

* It is not plain JSON. Comments are refused here; a VS Code theme goes through **Import…** instead.
* It has no `schema`, or a `schema` other than `3` or `4`. A theme file from TablePro 0.80 or earlier needs to be made again.
* It lacks `id`, `name` or `appearance`, or a field breaks the rules in the table.
* It holds a key TablePro does not use, a **Values** type color in a schema `3` file, or a value that is not a `#RRGGBB` or `#RRGGBBAA` string.
* Its `id` is one another file in the folder already uses. The first file by name loads.

## Connection colors

Assign one with **Color** on the connection editor's **Appearance** pane: None, Red, Orange, Yellow, Green, Blue, Purple, Pink, or Gray. With None, no color cue appears. Connection groups take a color the same way, from their right-click menu on the welcome window.

The connections strip, the welcome window list and the connection switcher draw the database icon on a rounded tile, and the color fills the tile, the selected row included. The engine's symbol on it turns white or black, whichever reads on that color. With None the tile is gray and the symbol keeps its engine's own color. In the query history drawer the color tints the network symbol beside the connection's name. On the strip, the color's name is in the entry's tooltip and its VoiceOver label.

> [!TIP]
>
> Use red for production databases as a visual reminder to be careful with queries.

![Connection colors filling the icon tiles on the connections strip and in the welcome list](https://mintcdn.com/ngquct/tXWaltqW4Zqkau0T/images/connection-colors-sidebar.png?fit=max\&auto=format\&n=tXWaltqW4Zqkau0T\&q=85\&s=6d8a98956fc403887e5c13fcb5d8c2d0)

Connection color in the connections strip and the welcome list


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.