Theming the UI
You can customize the color scheme as well as fonts and the logo to match your current project. This can be done via config.ui.theme
.
The following options are applied to both color modes, "light"
and "dark"
:
css
: string — custom CSS (not a file) you want to be added to miyagifavicon
: string — the path to your favicon filefontFamily
: string — the name of your custom font (you might need to at the font-face declaration viaconfig.ui.theme.css
)js
: string — custom JavaScript (not a file) you want to be added to miyagimode
: string — any of"light"
,"dark"
or"auto"
The following options can be applied to both config.ui.theme.light
and config.ui.theme.dark
:
logo
: string — the path to your logo filenavigation.colorText
: stringnavigation.colorBackground
: stringnavigation.colorLinks
: stringnavigation.colorLinksActive
: stringnavigation.colorLinksActiveBackground
: stringnavigation.colorSearchText
: stringnavigation.colorSearchBackground
: stringnavigation.colorSearchBorder
: stringcontent.colorBackground
: stringcontent.colorText
: stringcontent.colorHeadline1
: stringcontent.colorHeadline2
: string
All color options expect any kind of valid CSS color.
Note that you can apply these options also directly to config.ui.theme
instead of config.ui.theme.(light|dark)
. This might make sense for the logo for example, if you can use the same one for light and dark mode.
Please also refer to the configuration options.