Definitions and assets for themed communities at TU Wien.
The themed communities feature in InvenioRDM
Since version 13, InvenioRDM allows communities to be themed.
Under the hood, it works by registering the CommunityThemeJinjaLoader for community view functions. This is a custom Jinja template loader that renders alternative templates from a directory based on the community’s theme brand. If either of the templates involved in the rendering chain doesn’t have such an override, the “normal” template will be rendered instead. Thus, it is possible to selectively override any Jinja template involved in the rendering of a community by simply placing the desired templates in the correct path (with a themes/${BRAND}/ prefix).
For instance, the standard header template for communities is located under templates/semantic-ui/invenio_communities/details/header.html. If one wants to provide a custom template for a community with the meretneith brand, it would be placed under: templates/themes/meretneith/invenio_communities/details/header.html (the semantic-ui part can be omitted).
The theme for a community (including the brand and a limited set of custom style) can be set via the invenio shell REPL, with code snippets described in the InvenioRDM documentation, or below.
If Jinja template overrides and the limited styling is enough, then adding the templates to the InvenioRDM project definition will be sufficient. However, if extra CSS styling or custom JS is required, then it will become necessary to use mechanisms only available to extensions like this one here, or the project’s local site/ package.
Provided community themes
The following community themes are provided by this package:
Meret Neith
The Meret Neith community holds datasets from excavations of the tomb of the Egyptian queen from whom the community gets its name. Thus, the community’s theme is inspired by Egypt and desert.
We have instantiated the community theme’s style into the custom CSS that gets loaded by the base template. As such, the style key can be omitted when setting the community’s theme:
from invenio_communities.proxies import current_communities
from invenio_access.permissions import system_identity
service = current_communities.service
meretneith = service.read(system_identity, "meretneith")
meretneith_theme = {
"theme": {
"brand": "meretneith",
"enabled": True,
}
}
service.update(system_identity, "meretneith", {**meretneith.data, **meretneith_theme})
Release files for Invenio-Community-Themes-TUW 2026.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| invenio_community_themes_tuw-2026.0.1.tar.gz | 473.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| invenio_community_themes_tuw-2026.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 944.6 kB
Release files / invenio_community_themes_tuw-2026.0.1.tar.gz
| Download URL | invenio_community_themes_tuw-2026.0.1.tar.gz |
|---|---|
| Size | 473.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
391508566f033387a57e6493eae0e7400a92e216acc4a8a64fdc751a10e037f2
|
|
BLAKE2b-256 checksum How to use checksums |
5c295e135ecaa41bf5f6b45690f0594c18a549f8b09f7213373056e9a38a1738
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Release files / invenio_community_themes_tuw-2026.0.1-py3-none-any.whl
| Download URL | invenio_community_themes_tuw-2026.0.1-py3-none-any.whl |
|---|---|
| Size | 470.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
77267750616fd1b61cd600b5f8570565d17b3994609f3153fe1b045549d18db3
|
|
BLAKE2b-256 checksum How to use checksums |
0a0db508f05f87d562af7b443bfa65ce52c8cb3b294b3fcec44d59be72ce9fea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|