Candy Database · Documentation
Sea_Blue.json is the theme Sea_Blue.
{
"title": "Sea Blue",
"description": "Cool blues.",
"style": {
"background_color": "#ffffff",
"text_color": "#0d2a3a",
"link_color": "#1d6fa5"
},
"theme": {
"toolbar_color": "#2a8fbd",
"sidebar_color": "#d6edf7",
"button_color": "#9bd0e8",
"accent_color": "#1d6fa5",
"text_color": "#0d2a3a"
}
}- title is the name in the settings.
- style is the page (see Style keys).
- theme is the tab (see Theme keys). A theme with an empty
themeblock leaves the tab as the editor draws it, like Standard.
Themes folder beside the library folder: the Candy_Database folder of the editor's data folder holds both Databases (the library folder, which Database > Open Library Folder opens) and Themes. A theme there with the same file name as one that comes with Candy Database replaces it.
The themes that come with the plugin are in its own Themes folder: a good place to look for examples.
Following the editor
In the style block only, a color can be written editor:name: one of the editor's own colors, such as editor:font_color or editor:accent_color. The page then follows whichever editor theme is in use, light or dark. That is how Standard works.
Tips
- The editor's icons are light, for dark backgrounds. With a light sidebar, set
list_icon_colorandarrow_colorso the page list stays readable. - Check the settings window and its tabs, the color picker and the menus too: they take the theme's colors.
- Keep enough contrast between text and its background.