UI and branding
Branding settings#
Open Settings → Server → System → Branding & appearance, or set the keys in settings.yml:
| Field in Settings | Setting | Default | Purpose |
|---|---|---|---|
| Navbar Brand | ui.appNameNavbar |
empty (Stirling PDF) |
The browser tab title and the issuer name shown in authenticator apps for two-factor login. Despite the name, it is not shown in the navigation bar, which shows the logo. |
| Show Update Notifications | system.showUpdate |
true |
Show a notice when a new version is available. |
| Show Updates to Admins Only | system.showUpdateOnlyAdmin |
true |
Show that notice to admins only. |
ui:
appNameNavbar: "Acme PDF"UI_APPNAMENAVBAR="Acme PDF"services:
stirling-pdf:
environment:
UI_APPNAMENAVBAR: Acme PDFThe same card also holds the language, upload limit and Frontend URL (system.frontendUrl) settings described in Common settings.
Replace icons and logos#
A file in customFiles/static/ replaces the file the app serves at the same path, except fonts (see Text editor fonts). In Docker, mount the folder:
services:
stirling-pdf:
volumes:
- ./customFiles:/customFilesBrand images are served from /modern-logo/, so put your versions in customFiles/static/modern-logo/ with these exact filenames:
| File | Used for |
|---|---|
favicon.ico |
Browser tab icon |
logo192.png, logo512.png |
App and home screen icons |
StirlingPDFLogoNoTextLight.svg, StirlingPDFLogoNoTextDark.svg |
Logo mark without text, for light and dark themes |
StirlingPDFLogoBlackText.svg, StirlingPDFLogoWhiteText.svg, StirlingPDFLogoGreyText.svg |
Logo with text, for light, dark and muted backgrounds |
logo-tooltip.svg |
Small logo in tooltips |
Other files at the app root, such as manifest.json, can be replaced the same way. Restart Stirling PDF after adding a file, then hard-reload the browser.
Some Stirling logos are built into the app and cannot be replaced.
Text editor fonts#
Put .ttf or .otf files in customFiles/static/fonts/ to offer them under Server fonts in the PDF text editor. Files over 64 MB and fonts whose embedding flags prohibit use are skipped. Check the font licence before uploading, including when the font has no embedding flags. Clients can download these fonts through the editor font API. With sign-in disabled, anyone who can reach your server can download them.
Add custom CSS#
The app does not load a stylesheet from customFiles on its own. To add one, serve your own copy of index.html that links to it.
-
Put your stylesheet at
customFiles/static/custom.css. It is served at/custom.css, under your root path if you set one. -
Save the app's current page as your own
index.html, using your server's URL:bashcurl --fail --location http://localhost:8080/ --output ./customFiles/static/index.html -
In
customFiles/static/index.html, add this line just before</head>:html<link rel="stylesheet" href="/custom.css"> -
Restart Stirling PDF. The log shows
Using custom index.html from: /customFiles/static/index.html.
index.html refers to asset filenames that change with each release, so an old copy breaks the app after an upgrade. Save a fresh copy and add your <link> line again every time you upgrade.
For changes CSS cannot make, such as new layouts or components, build your own frontend: see Set up and run and Build in Contributing.