vi-sql logo

Themes

vi-sql ships with several built-in themes. Set the active theme in ~/.config/vi-sql/config.yaml:

yaml
styles:
  currentStyle: dracula.yaml

Built-in themes

Theme fileStyle
default.yamlDark green/amber — matches the default vi-sql look
light.yamlLight background for bright environments
cold.yamlCool blue-grey dark theme
dracula.yamlPurple-pink dark theme
catppuccin.yamlPastel dark theme (Mocha palette)
gruvbox.yamlWarm retro dark theme
matrix.yamlBright green on black

Nerd Font icons

vi-sql uses Nerd Font icons by default. Disable them if your terminal font does not include them:

yaml
styles:
  nerdFont: false
  currentStyle: default.yaml

Customizing

Theme files live in ~/.config/vi-sql/styles/. Copy a built-in theme and edit colors:

sh
cp ~/.config/vi-sql/styles/default.yaml ~/.config/vi-sql/styles/my-theme.yaml

Then set currentStyle: my-theme.yaml in config.yaml.

Theme file structure

All colors accept hex values. The full structure:

yaml
global:
  backgroundColor: "#0F172A"
  contrastBackgroundColor: "#26344a"
  moreContrastBackgroundColor: "#387D44"
  textColor: "#E2E8F0"
  secondaryTextColor: "#FDE68A"
  borderColor: "#2D6335"
  focusColor: "#449650"
  titleColor: "#387D44"
  graphicsColor: "#387D44"
  dimColor: "#64748B"
 
connection:
  listTextColor: "#F1FA8C"
  listSelectedTextColor: "#F1FA8C"
  listSelectedBackgroundColor: "#387D44"
  listSecondaryTextColor: "#387D44"
 
data:
  cellTextColor: "#387D44"
  selectedRowColor: "#449650"
  multiSelectedRowColor: "#2E6B4A"
 
tabBar:
  activeTextColor: "#FDE68A"
 
autocomplete:
  backgroundColor: "#141f38"
  textColor: "#E2E8F0"
  activeBackgroundColor: "#263a69"
  activeTextColor: "#E2E8F0"
  secondaryTextColor: "#FDE68A"
  borderColor: "#449650"
 
sqlEditor:
  keywordColor: "#449650"
  stringColor: "#FDE68A"
  numberColor: "#FB923C"
  commentColor: "#64748B"
  operatorColor: "#60A5FA"
  identifierColor: "#E2E8F0"
 
others:
  leafIconColor: "#387D44"
  separatorColor: "#334155"
  buttonsTextColor: "#FDE68A"
  deleteButtonSelectedBackgroundColor: "#DA3312"
  peekerHighlightColor: "#3A4963"

Restart vi-sql to apply changes.