GitHub-style themes for Gitea 1.27.x — light and dark, built with modern CSS (color-mix()), matching GitHub's typography, spacing and color tokens.
| File | Description |
|---|---|
css/theme-light.css |
GitHub Light — for prefers-color-scheme: light |
css/theme-dark.css |
GitHub Dark — for prefers-color-scheme: dark |
css/theme-auto.css |
Switches between the two automatically based on system preference |
A browser with color-mix() support: Chrome 111+, Firefox 113+, Safari 16.2+.
- Copy the files from
css/into your Gitea instance'scustom/public/assets/css/directory (or wherever your Gitea deployment serves custom CSS from). - Reference
theme-auto.css(ortheme-light.css/theme-dark.cssdirectly) from your Gitea custom template, or set it as a selectable theme inapp.ini. - Restart Gitea, or reload the page, to pick up the new styles.
Use and adapt freely.
