0001. Design systems are declared stylesheet bundles
- Status: Accepted
Context
Thematiq themes Nextcloud through a stack of CSS layers: fonts, token defaults, organisation tokens, bridges, element mappings and the admin's own overrides. More than one design system has to be supported, and stock Nextcloud must stay available as a choice.
Decision
design-systems.jsonis the single source of truth for which stylesheets a design system loads and in which order.- The
nonedesign system loads no stylesheets, so Nextcloud looks stock. - Custom overrides are always loaded last; conditional CSS (such as hide-slogan and show-menu-labels) is loaded after them.
Consequences
- Adding or reordering a layer is a change to
design-systems.json, not to PHP code.lib/Service/DesignSystemService.phpreads the file; the stylesheets live incss/systems/. - The admin's own overrides always win over the shipped layers.
Source
openspec/changes/archive/2026-03-21-css-architecture/design.md (Decisions 1 to 4).