]> source.dussan.org Git - gitea.git/commit
Add custom ansi colors and CSS variables for them (#25546)
authorsilverwind <me@silverwind.io>
Wed, 28 Jun 2023 13:38:55 +0000 (15:38 +0200)
committerGitHub <noreply@github.com>
Wed, 28 Jun 2023 13:38:55 +0000 (15:38 +0200)
commitfdab4e3d84e5be616f695e9b2612084379197f28
tree34cf6eb6680eb3650d392f095b3fa71b6528acaa
parentc082689471f799b9f22ffee4c96db26e5b94804f
Add custom ansi colors and CSS variables for them (#25546)

Use our existing color palette to map to the 16 basic ansi colors. This
is backwards-compatible because it aliases the existing color names.

Side note: I think the colors in `console.css` for console file
rendering are incomplete, but fixing those is out of scope here imo.

Before and after:

<img width="542" alt="Screenshot 2023-06-28 at 00 26 12"
src="https://github.com/go-gitea/gitea/assets/115237/86d41884-bc47-4e85-8aec-621eb7320f0b">

<img width="546" alt="Screenshot 2023-06-28 at 00 28 24"
src="https://github.com/go-gitea/gitea/assets/115237/39fa3b37-d49e-49b1-b6bc-390ac8ca24b2">

---------

Co-authored-by: Giteabot <teabot@gitea.io>
web_src/css/base.css
web_src/css/features/console.css
web_src/css/themes/theme-arc-green.css
web_src/js/render/ansi.js
web_src/js/render/ansi.test.js