
Copyparty themes control how the web interface looks to you and to everyone who visits your server. The defaults are designed for long sessions of browsing folders and playing music, but the project includes several alternative styles, lets each visitor pick their favourite, and allows administrators to set a default or add their own stylesheet. This guide explains the built-in themes, how to switch between them, how to make one the default and how to customise the interface without causing problems during updates.
How theming works in copyparty
The copyparty interface is a single web application built with plain HTML, CSS and JavaScript. Its appearance is governed by a stylesheet that defines colours, spacing and fonts. Themes are variations of that stylesheet, grouped in pairs: each pair contains a dark and a light version of the same visual idea.
Because the interface runs in the browser, theme choices are stored on the visitor’s device. One person can browse in a dark theme on a laptop while another uses a light theme on a tablet, both connected to the same server at the same time. The administrator can set which theme appears by default, but visitors can still change it for themselves.
The built-in themes
The documentation describes the built-in themes by number. Even numbers are dark themes and odd numbers are light ones.
- Theme 0 is the classic dark style, the default most people see first.
- Theme 1 is the classic light counterpart.
- Theme 2 is a flat dark style based on the pm-monokai colour scheme.
- Theme 3 is the flat light version.
- Theme 4, called vice, is a bolder dark style.
- Theme 5, hotdog stand, is a deliberately loud light theme with a sense of humour.
Newer builds may show additional numbers in the settings panel as the project grows, but the even-dark, odd-light pattern remains the same.
Switching themes as a visitor
Changing the theme takes a few seconds and needs no administrator rights.
- Open the copyparty web interface in your browser.
- Click the gear icon in the top toolbar to open the settings panel.
- Find the theme row and click a number to preview it instantly.
- Close the panel; your choice is remembered on that device.
The same settings panel contains several related options worth exploring, such as toggling thumbnails, switching between list and grid views, choosing the interface language and adjusting how folders are downloaded.
Setting a default theme for everyone
If you run copyparty for a family, a team or a public archive, you may want every new visitor to see a particular theme. The --theme option sets the default by number.
copyparty --theme 2In a configuration file, the same setting goes into the global section.
[global]
theme: 2Visitors who have already chosen a theme on their device keep their own preference. Everyone else sees the default you set.
Choosing a theme that suits your audience
The best theme depends on how people use your server rather than on taste alone.
- Dark themes are comfortable in the evening and for media libraries, where artwork and thumbnails stand out against the background.
- Light themes suit documents and office use, particularly on bright screens or in well-lit rooms.
- Flat themes reduce visual noise, which helps on small phone screens.
- Bold themes can be fun for personal servers but may distract on a shared work server.
If accessibility matters to your visitors, test contrast carefully. Light themes with dark text are generally easier for people with low vision, while dark themes help those sensitive to glare.
Adding your own custom stylesheet
copyparty allows administrators to inject extra CSS into the file browser with the --css-browser option. This is the cleanest way to change colours, fonts or spacing, because your stylesheet is loaded on top of the official one rather than replacing it.
copyparty -v /srv/theme:theme:r --css-browser /theme/custom.cssThe value is a web address on your own server rather than a path on disk. In this example, a small read-only volume called theme holds the stylesheet, so every visitor’s browser can load it. Keep it small and targeted. Overriding a handful of colours or the font family is usually enough to give the server a distinctive look.
The documentation also explains that a custom stylesheet can register entirely new themes. Each theme pair applies classes to the root html element, and light themes add a further class, so a stylesheet can define styles for new class names. After adding them, raise the --themes value so that the extra numbers appear in the settings panel.
Practical customisation ideas
A few modest changes make a big difference without much effort.
- Match the accent colour to your organisation’s brand so the server feels familiar.
- Choose a font with clearer numerals if visitors often read file sizes and dates.
- Increase spacing in the file list for touch screens.
- Hide decorative elements that are not relevant to your audience.
Each of these needs only a few lines of CSS. Test your changes in both a dark and a light theme, because a colour that looks good on one background can become unreadable on the other.
Changing the favicon and page title
Branding goes beyond colours. copyparty lets you change the favicon shown in browser tabs and adjust the text that appears in the page title. Together with a custom accent colour, these small touches help visitors recognise the server instantly among their open tabs. Details of the relevant options are listed in the server’s built-in help, which you can view with the --help option.
Keeping customisations safe during updates
The main risk of heavy customisation is that a future release changes the structure of the interface, leaving your stylesheet targeting elements that no longer exist. To minimise this risk, follow a few habits.
- Override colours and fonts rather than layout wherever possible.
- Keep your custom CSS in a separate file instead of editing the official stylesheet.
- Note which copyparty version you tested against.
- After each update, spend a minute checking the interface in your main themes.
Because copyparty loads your stylesheet separately, rolling back a broken customisation is as simple as removing the option and restarting the server.
Themes and performance
Themes are purely cosmetic and have no meaningful effect on server performance. A custom stylesheet adds one small file to each page load, which browsers cache after the first visit. Large background images are the only realistic way to slow the interface down, so keep any images small and compressed if you decide to use them.
Themes in other parts of copyparty
The file browser is the part of copyparty people see most, but the server also renders Markdown documents, a control panel and share pages. These follow the visitor’s chosen theme where appropriate, so a consistent choice carries across the whole experience. The Markdown viewer, which can display README files at the top of folders, is a particularly good place to add explanatory text for visitors in a style that matches the theme.
Troubleshooting theme problems
Theme issues are rare and usually simple to fix.
- If a chosen theme does not stick, check whether the browser is clearing site data on exit or running in private mode.
- If the default theme does not apply, remember that visitors who already chose a theme keep their own preference; test in a private window.
- If a custom stylesheet has no effect, confirm that its path is readable by visitors and that the option points to the right location.
- If text becomes unreadable after a custom change, compare contrast in both dark and light themes.
Combining themes with interface settings
A theme changes colours, but the settings panel offers several other adjustments that shape how the interface feels. Used together, they can make copyparty feel tailored to a particular audience.
- The grid view displays large thumbnails, which suits photo and video folders far better than a list.
- The thumbnail toggle hides previews on slow connections, keeping the interface fast.
- The language selector switches the interface into one of several translations.
- Folder download options decide whether folders download as zip or tar archives.
For a family photo server, for example, a dark theme combined with the grid view gives an attractive gallery. For a document archive, a light theme with the list view and thumbnails switched off keeps things crisp and quick.
Adding a welcome message with README files
Branding is not only visual. copyparty displays README files at the top of folders, rendered from Markdown, which is an easy way to greet visitors, explain what a folder contains or set out rules for an upload area. A short README with a heading, a sentence of explanation and a few bullet points does more to make a server feel organised than any colour change. Because Markdown follows the active theme, the message always matches the visitor’s chosen style.
Testing a theme on different devices
Before settling on a default, check it on the devices your visitors actually use. A theme that looks elegant on a large monitor may feel cramped on a small phone, and subtle colour differences can disappear on cheaper screens. Open the server on a phone, a tablet and a laptop, browse a few folders, start the audio player and open the settings panel. Ten minutes of testing usually reveals whether a theme suits everyone or only the person who chose it.
Frequently Asked Questions
How many themes does copyparty include?
The documentation describes six built-in themes, numbered from 0 to 5, arranged as dark and light pairs. Newer releases may add more, and administrators can register their own.
How do I make a light theme the default?
Start copyparty with --theme 1 or --theme 3, or add the theme option to the global section of your configuration file.
Will changing the theme affect other users?
Not when you change it from the settings panel, because the choice is stored on your device. Only the administrator’s default affects new visitors.
Can I use my own colours and fonts?
Yes. Load a custom stylesheet with the --css-browser option and override the colours and font families you want to change.
Do custom themes survive updates?
Usually, provided you keep them in a separate stylesheet and avoid overriding layout. Check the interface briefly after each update.
Conclusion
Copyparty themes give you a quick way to make the file server comfortable for the people who use it. The built-in dark and light pairs cover most needs, visitors can choose their own style from the settings panel, and administrators can set a default with a single option. For a more personal touch, a small custom stylesheet adds brand colours or a preferred font without touching the official files. Keep customisations light, test them in both dark and light modes, and your server will look polished while remaining easy to update.


