Install a theme
A theme is organized as a directory containing an index.html entry point, referred to as a template. All templates reside under <profile>\webview-ui\, with one folder per template, and the global active template powers the main window. How a page is found outlines the full resolution hierarchy.
Install from the built-in page
When no template can be loaded, the main window shows a built-in page. Drag a theme's .zip file or folder onto the window, or pick one with Choose .zip file… or Choose folder…. The theme is copied into <profile>\webview-ui\, becomes the global active template and loads at once, without restarting foobar2000.
index.htmlmust be a non-empty file at the root of the.zipfile or folder. When that root holds nothing but one folder,index.htmlmay sit in that folder instead.- The template takes the name of the file or folder, with characters other than letters, digits,
-and_replaced by-, up to 48 characters. For example,foo-webview-default-theme-0.4.0.zipinstalls asfoo-webview-default-theme-0-4-0. When that name is taken,-2,-3and so on are appended, so an existing template is never overwritten. - One item is installed at a time. A folder that contains
node_modulesis refused, since it is usually an unbuilt project; choose its build output folder instead. Themes that contain symbolic links or junctions, and.zipfiles with entries that point outside the extraction folder, are refused as well. .zipfiles are extracted with thetar.exethat ships with Windows 10 version 1803 and later. Where it is missing, extract the file yourself and install the folder.
Themes have the same access as foobar2000 components: they can run programs and read or write local files. Install themes only from sources you trust.
Create a template and deploy theme assets
- Open
File → Preferences → Display → WebView2 UI. - Click
Manage...and chooseCreate.... Enter an identifier using letters, numbers,-, and_, then confirm. foobar2000 generates<profile>\webview-ui\<name>\with a starterindex.htmland selects this new entry in theTemplatedropdown. - Click
Open...to reveal the template folder in File Explorer. - Copy your theme files into the folder, replacing the placeholder
index.html. For projects built with a bundler, copy the contents of the distribution folder (such asdistin Vite), not the wrapper folder itself. - Click
Apply. The main window and all panels following the global template will reload with the new theme.
The preferences page rejects templates whose directory lacks an index.html or contains a 0-byte empty file.
Switch between installed templates
Select another entry from the Template dropdown and press Apply. Creating, renaming, and deleting templates are immediate file operations on disk that cannot be reverted via Cancel. The currently active template and any template in use by an active panel cannot be renamed or deleted.
Use a dedicated template for a single panel
An embedded panel can load its own template independently of the global setting: see Put a page in a panel.
Behavior when the development server is active
When Use development server (HMR hot reload) is checked under the Developer page, windows load from the configured server URL, and switching templates does not reload them. A window that fell back to the local template because the server could not be reached reloads with the new template. Uncheck the option and press Apply to return to the installed local template. See Debug a theme with the development server.