Themes
vi-sql ships with several built-in themes. Set the active theme in ~/.config/vi-sql/config.yaml:
yaml
styles:
currentStyle: dracula.yamlBuilt-in themes
| Theme file | Style |
|---|---|
default.yaml | Dark green/amber — matches the default vi-sql look |
light.yaml | Light background for bright environments |
cold.yaml | Cool blue-grey dark theme |
dracula.yaml | Purple-pink dark theme |
catppuccin.yaml | Pastel dark theme (Mocha palette) |
gruvbox.yaml | Warm retro dark theme |
matrix.yaml | Bright 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.yamlCustomizing
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.yamlThen 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.