Add a LICENSE file, spell out the terms in the README with credit to GitHub's MIT-licensed Primer tokens, and tag each CSS file with an SPDX header so the license travels with the file when it is copied into a Gitea instance. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015g6ECVSKcBG8CJPrqC3G5o
1.4 KiB
1.4 KiB
css
GitHub-style themes for Gitea — light and dark, matching GitHub's typography, spacing and color tokens.
Themes
| 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 |
Installation
- 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.
License
Released under the MIT License — see the LICENSE file. You may use, modify and redistribute the themes, including in commercial Gitea instances, as long as the copyright notice is kept.
The color values follow GitHub's Primer design tokens, © GitHub Inc., also MIT-licensed. This project is not affiliated with or endorsed by GitHub or Gitea.
