mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-31 19:38:23 +00:00 
			
		
		
		
	Initial support for colorblindness-friendly themes (#30625)
Initial support for #25680 This PR only adds some simple styles from GitHub, it is big enough and it focuses on adding the necessary framework-level supports. More styles could be fine-tuned later.
This commit is contained in:
		| @@ -0,0 +1,11 @@ | ||||
| @import "./theme-gitea-dark.css"; | ||||
|  | ||||
| /* red/green colorblind-friendly colors */ | ||||
| /* from GitHub: --diffBlob-addition-*, --diffBlob-deletion-*, etc */ | ||||
| :root { | ||||
|   --color-diff-added-word-bg: #388bfd66; | ||||
|   --color-diff-added-row-bg: #388bfd26; | ||||
|  | ||||
|   --color-diff-removed-word-bg: #db6d2866; | ||||
|   --color-diff-removed-row-bg: #db6d2826; | ||||
| } | ||||
| @@ -0,0 +1,11 @@ | ||||
| @import "./theme-gitea-light.css"; | ||||
|  | ||||
| /* red/green colorblind-friendly colors */ | ||||
| /* from GitHub: --diffBlob-addition-*, --diffBlob-deletion-*, etc */ | ||||
| :root { | ||||
|   --color-diff-added-word-bg: #54aeff66; | ||||
|   --color-diff-added-row-bg: #ddf4ff80; | ||||
|  | ||||
|   --color-diff-removed-word-bg: #ffb77c80; | ||||
|   --color-diff-removed-row-bg: #fff1e580; | ||||
| } | ||||
		Reference in New Issue
	
	Block a user