Themes
Caution
The demo themes exist only on the demo branch, not on
kitodo/.
The demo viewer is theme-able. A style selector in the demo page switches the whole viewer look at runtime, and a Dark checkbox toggles dark mode for themes that support it.
How themes are laid out
- The available themes are the subdirectories of
Build/. Each one must contain its main stylesheetDemo/ styles/ <name>.and may carry further assets (images, scripts, ...) alongside it. Add a new directory there and it is picked up automatically.css - The styles are copied into the site once at setup time, not served from
Build/. Editing a theme stylesheet therefore does not reach an already-built site — re-run the setup (or copy the file intoDemo/ <site>/) to see a change.kitodo- demo/ - The active stylesheet is not a TYPO3
include(the TYPO3 asset pipeline concatenates those into a singleCSS merged-*., which a runtime link swap could not address). Instead the demo page's script manages its owncss <link id="dlf-and retargets it atdemo- css"> kitodo-when the selector changes.demo/<name>/<name>. css - The choice is remembered in
local, so it survives the full page reloads that viewer navigation triggers. TheStorage --option is only the default for a first visit.style
The aurora theme
aurora is the default and the most complete theme. It is a self-contained
design that styles the whole viewer (map, navigation, page grid, metadata,
toolbox, table of contents, calendar) and provides:
- a dark mode (re-declared design tokens for
:root, toggled by the demo page's Dark checkbox);[data- theme="dark"] - a kiosk fullscreen layout for the Kiosk Fullscreen Mode, including the side-by-side fulltext pane;
- a layout where the navigation row stays on one line and the fixed style selector does not overlap the navigation or the toolbox.
Other themes
| Theme | Notes |
|---|---|
boxes | A boxy variant. No dark mode. |
magazine | A magazine-style variant. No dark mode. |
default | A deliberate no-op: the unstyled baseline, useful as a reference. |
Note
Build/ holds helper CSS and JavaScript (e.g.
demo-) that is copied alongside the styles but is not
a switchable theme.