Help › Make Querlyn yours

Choose a theme

Pick Querlyn's light and dark themes, follow your computer's light or dark appearance, try themes in the whole window, and add a theme of your own.

Querlyn 0.1.0 is not released yet. This help describes it ahead of release.

Querlyn has a light theme and a dark theme. You choose which of them is in use, or let your computer's light or dark appearance decide, and you choose which theme is the light one and which the dark one.

Light, dark or System

In Settings, under Appearance, Theme has three choices:

ChoiceWhat it does
LightAlways the light theme.
DarkAlways the dark theme.
SystemThe light theme while your computer is light, the dark theme while it is dark. This is what Querlyn starts with. The line under the choices says which is in use now.

The same choices are commands, for the command palette or a shortcut of your own: Command Palette › Preferences: Theme: Light, Command Palette › Preferences: Theme: Dark and Command Palette › Preferences: Theme: Follow System.

Pick the light and the dark theme

Under Theme, Light theme and Dark theme show each theme as a small window in its own colors: the sidebar with a Production, a Staging and a connected server, a few lines of SQL, and the theme's accent. Click one, or move to it with ⇥ on macOS or Tab on Windows and Linux and press Space. A check mark shows the chosen theme of each row.

ThemeLight or darkAbout it
Querlyn LightLightQuerlyn's own; the light theme at the start.
Querlyn DarkDarkQuerlyn's own; the dark theme at the start.
High Contrast LightLightBlack on white. Text, line numbers and SQL colors are at least 7 to 1 against what they sit on, and outlines are plain to see.
High Contrast DarkDarkWhite on black, with the same contrast.
Solarized LightLightAdapted from Solarized by Ethan Schoonover.
Solarized DarkDarkAdapted from Solarized by Ethan Schoonover.
NordDarkA dim, blue-gray theme adapted from Nord by Sven Greb.
One DarkDarkAdapted from Atom's One Dark.
DraculaDarkAdapted from Dracula.
GitHub LightLightAdapted from GitHub's light theme for Visual Studio Code.
GitHub DarkDarkAdapted from GitHub's dark theme for Visual Studio Code.
Tokyo NightDarkAdapted from Tokyo Night by Enkia.

The adapted themes keep their palettes' colors and roles, made a step darker or lighter where text would otherwise be hard to read.

Choosing a light theme while Querlyn is set to Dark (or a dark theme while it is set to Light) also switches to that appearance, so that you see what you chose. With System, a theme of the appearance your computer does not have now is kept for later, and a message says so.

Try themes in the whole window

Command Palette › Preferences: Choose Theme… lists every theme, light ones first. The theme's name at the right of the status bar opens the same list. As you move through it with ↑ on macOS or Up on Windows and Linux and ↓ on macOS or Down on Windows and Linux, the whole window takes on the highlighted theme. Press ↩ on macOS or Enter on Windows and Linux to choose it, or ⎋ on macOS or Esc on Windows and Linux to go back to the theme you had.

What every theme keeps

Whatever the theme, the colors that mean something keep their meaning:

  • Production is red, in the sidebar, the tab, the bar above the editor and the status bar, and in the questions asked before running there.
  • Staging and Testing are amber.
  • Connected servers and the Run button are green.
  • Errors are red and warnings amber, and differences in comparisons use the same colors.

Each built-in theme is checked for contrast (WCAG): body text, secondary text and SQL colors at least 4.5 to 1 (7 to 1 in the high-contrast themes), focus rings and control outlines at least 3 to 1, and the environment colors far enough apart to tell at a glance.

Add a theme of your own

A theme of your own is a small text file in the themes folder: a folder named themes next to the settings file (on macOS, ~/Library/Application Support/Querlyn/themes).

  1. Under Appearance, Your own themes, choose Show Themes Folder (Command Palette › Preferences: Show Themes Folder). Querlyn makes the folder if it is not there.
  2. Put a file ending in .toml in it, for example ocean.toml.
  3. Choose Reload Themes (Command Palette › Preferences: Reload Themes). Querlyn also reads the folder when it starts.

The theme then appears with the built-in ones. The file's name, without .toml, is the theme's name in the settings, so a file must not have a built-in theme's name.

A theme file names its appearance and the colors it changes. Every other color comes from Querlyn's own theme of that appearance, or from the built-in theme it names with extends:

name = "Ocean"
appearance = "dark"
extends = "nord"

[colors]
accent = "#5E81AC"
focus_ring = "#88C0D0"

[syntax]
keyword = "#B48EAD"
comment = "#A3ABB9"
KeyWhat it is
appearance"light" or "dark". Required.
nameThe name shown in Settings and the status bar. Without it, the file's name.
extendsThe built-in theme the colors start from: querlyn-light, querlyn-dark, high-contrast-light, high-contrast-dark, solarized-light, solarized-dark, nord, one-dark, dracula, github-light, github-dark or tokyo-night. Without it, Querlyn's own of the appearance.
[colors]The window: background, panel, border, control_border, text, text_muted, accent, accent_text, selection, selection_inactive, hover, focus_ring, tab_active, overlay, overlay_border, match_highlight, danger (Production and errors), warning (Staging, Testing and warnings) and success.
[syntax]SQL in the editor: keyword, identifier, quoted_identifier, function, string, number, comment, operator, punctuation, parameter and invalid.
[editor]The editor around the SQL: gutter_background, gutter_text, gutter_text_active, current_line, caret, selection, selection_inactive, find_match, find_match_current, bracket_match and statement_flash.

A color is written "#RRGGBB", or "#RRGGBBAA" with its opacity.

A file Querlyn cannot use is left out, and a key or color it cannot use is left at the built-in color. Either way, Your own themes lists the file and what was wrong; nothing in a theme file stops Querlyn from starting. Querlyn reads at most 50 theme files, each at most 64 KB.

Note: Querlyn does not check your own theme's contrast. Keep danger red and warning amber, so that Production and Staging still look like what they are.

Themes on your other computers

The choice of Light, Dark or System and the names of the light and dark themes are settings: they are in the settings file ([appearance], see Settings reference) and, with sync on, follow you to your other computers. Theme files are not synced. A computer without the file of a chosen theme uses Querlyn's own theme of that appearance, and Settings says so.

Help for Querlyn 0.1.0. All help topics