Themes
Recolour better-vault with a theme plugin: set the app's colour tokens for light and dark mode, using plain colours, with no code and nothing to load.
A theme sets the app's colour tokens, separately for light and dark mode, and runs no code.
Add one
Put the colours under contributes.theme, as light and dark objects. Leave out any token you don't change.
"theme": {
"light": { "background": "#f4eee2", "foreground": "#2c241b", "primary": "#8a4b23" },
"dark": { "background": "#1b1712", "foreground": "#ede3d1", "primary": "#e0a46b" }
}Tokens
| Tokens | What they colour |
|---|---|
background, foreground | The page and its text |
card, card-foreground, popover, popover-foreground | Cards, menus and dialogs |
primary, primary-foreground, secondary, secondary-foreground | Buttons and selections |
muted, muted-foreground, accent, accent-foreground | Quiet surfaces and hovers |
border, input, ring | Lines, fields and focus rings |
destructive, info, info-foreground, success, warning | States |
chart-1 to chart-5 | Charts, folders and bots |
Each value must be a plain colour: #hex, rgb(), hsl(), oklch() or oklab(). Pair a theme with a mod when you also want to change type or shapes, as Paper does.
Mods
Reshape the whole better-vault app with a mod: CSS that targets its stable data-bv hooks and tokens, and loads nothing, for layouts, type and corners.
Graph styles
Give the Notes graph view a look of your own with a plugin: choose its layout, node and link colours, curved branches, a ringed hub and label type, with no code.