๐ŸŒ Global CSS Injection for Nginxยถ

Descriptionยถ

This Ansible role ensures consistent global theming across all Nginx-served applications by injecting a unified global.css file.
The role leverages colorscheme-generator to generate a dynamic, customizable color palette for light and dark mode, compatible with popular web tools like Bootstrap, Keycloak, Nextcloud, Taiga, Mastodon, and many more.

Overviewยถ

This role deploys a centralized global stylesheet (global.css) that overrides the default theming of web applications served via Nginx. Itโ€™s optimized to run only once per deployment and generates a cache-busting version number based on file modification timestamps.
It includes support for dark mode, custom fonts, and extensive Bootstrap and UI component overrides.

Purposeยถ

The goal of this role is to provide a single source of truth for theming across your infrastructure.
It makes all applications feel like part of the same ecosystem โ€” visually and functionally.

Featuresยถ

  • ๐ŸŽจ Dynamic Theming via colorscheme-generator

  • ๐Ÿ“ Unified global.css deployment for all Nginx applications

  • ๐ŸŒ’ Dark mode support out of the box

  • ๐Ÿšซ No duplication โ€“ tasks run once per deployment

  • โฑ๏ธ Versioning logic to bust browser cache

  • ๐ŸŽฏ Bootstrap override compatibility

  • ๐Ÿงฉ Theme support for Keycloak, Nextcloud, Gitea, LAM, Peertube, and more

Credits ๐Ÿ“ยถ

Developed and maintained by Kevin Veen-Birkenbach.
Learn more at www.veen.world

Part of the CyMaIS Project
License: CyMaIS NonCommercial License (CNCL)