- CSS 100%
|
|
||
|---|---|---|
| .forgejo/workflows | ||
| themes | ||
| .editorconfig | ||
| .gitignore | ||
| LICENSE | ||
| nextcloud.tera | ||
| README.md | ||

Catppuccin for Nextcloud
Usage
Each snippet in themes/ pairs 🌻 Latte with one dark flavour and
follows the user's appearance setting (system default, light theme or dark
theme), leaving the high-contrast themes untouched.
-
Install the Custom CSS app:
occ app:install theming_customcss -
Paste the snippet of your choice into Administration settings > Theming > Custom CSS and save.
Or set it from the command line; the cache buster makes browsers reload it:
occ config:app:set theming_customcss customcss --value "$(cat themes/catppuccin-latte-mocha-sapphire.css)" occ config:app:set theming_customcss cachebuster --value "$(date +%s)" -
Optional: Nextcloud renders the favicon and e-mails server-side from its own primary colour, which CSS cannot reach. Set it to the snippet's Latte
--color-primary:occ theming:config primary_color "#<hex>"
The snippet applies to every user of the instance and replaces background images with a plain Crust background.
Changing the accent
Snippets are generated with whiskers
from nextcloud.tera; whiskers --list-accents lists the
choices:
whiskers nextcloud.tera --overrides '{"accent": "mauve"}'
To change the default, edit accent: in the template's frontmatter.
🙋 FAQ
- Q: Why do Latte buttons look darker than the palette accent?
A: Latte accents with Base text reach only about 2.3–2.8:1 contrast. For interactive elements the accent is mixed 70/30 with Text, giving at least 3.2:1. Setlatte_element_amount: 1.0in the template frontmatter for the pure accent. - Q: Which Nextcloud versions are supported?
A: Built against the Nextcloud 35 theming variables (apps/theming/lib/Themes/*.php). Older versions may leave some elements unthemed.
Contributing
- Edit
nextcloud.tera, neverthemes/, and commit the regenerated snippets;whiskers nextcloud.tera --checkmust pass. - Minimalism: a change is done when it delivers the expected behaviour and nothing more can be taken away.
- Comments explain why, not what.
- Stick to tool defaults and don't restate them. The exception is Nextcloud's theme variables: set every colour variable explicitly, even where it matches Nextcloud's current value, so the look stays Catppuccin when Nextcloud changes its defaults.
- Commit messages follow Conventional Commits.
💝 Thanks to
Copyright © Tim Jagenberg