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
30 lines
1.4 KiB
Markdown
30 lines
1.4 KiB
Markdown
# css
|
|
|
|
GitHub-style themes for **Gitea** — light and dark, matching GitHub's typography, spacing and color tokens.
|
|
|
|
<p align="center">
|
|
<img src="assets/preview-2.jpg" width="100%" alt="Theme preview">
|
|
</p>
|
|
|
|
|
|
|
|
## Themes
|
|
|
|
| File | Description |
|
|
|---|---|
|
|
| [`css/theme-light.css`](css/theme-light.css) | GitHub Light — for `prefers-color-scheme: light` |
|
|
| [`css/theme-dark.css`](css/theme-dark.css) | GitHub Dark — for `prefers-color-scheme: dark` |
|
|
| [`css/theme-auto.css`](css/theme-auto.css) | Switches between the two automatically based on system preference |
|
|
|
|
## Installation
|
|
|
|
1. Copy the files from [`css/`](css/) into your Gitea instance's `custom/public/assets/css/` directory (or wherever your Gitea deployment serves custom CSS from).
|
|
2. Reference `theme-auto.css` (or `theme-light.css` / `theme-dark.css` directly) from your Gitea custom template, or set it as a selectable theme in `app.ini`.
|
|
3. Restart Gitea, or reload the page, to pick up the new styles.
|
|
|
|
## License
|
|
|
|
Released under the **MIT License** — see the [LICENSE](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](https://github.com/primer/primitives) design tokens, © GitHub Inc., also MIT-licensed. This project is not affiliated with or endorsed by GitHub or Gitea.
|