mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-04 05:18:25 +00:00 
			
		
		
		
	Add --color-logo for text that should match logo color (#34639)
				
					
				
			Add a new color that indicates the logo's primary color and use it in the frontpage over previous green color. This will be useful for customization. <img width="1347" alt="Screenshot 2025-06-07 at 16 53 34" src="https://github.com/user-attachments/assets/496aa81f-c910-4c28-bd12-f2473a68bbab" />
This commit is contained in:
		@@ -21,7 +21,7 @@
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.home .hero .svg {
 | 
					.home .hero .svg {
 | 
				
			||||||
  color: var(--color-green);
 | 
					  color: var(--color-logo);
 | 
				
			||||||
  height: 40px;
 | 
					  height: 40px;
 | 
				
			||||||
  width: 50px;
 | 
					  width: 50px;
 | 
				
			||||||
  vertical-align: bottom;
 | 
					  vertical-align: bottom;
 | 
				
			||||||
@@ -40,7 +40,7 @@
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.home a {
 | 
					.home a {
 | 
				
			||||||
  color: var(--color-green);
 | 
					  color: var(--color-logo);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.page-footer {
 | 
					.page-footer {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -185,6 +185,7 @@ gitea-theme-meta-info {
 | 
				
			|||||||
  --color-orange-badge-bg: #f2711c1a;
 | 
					  --color-orange-badge-bg: #f2711c1a;
 | 
				
			||||||
  --color-orange-badge-hover-bg: #f2711c4d;
 | 
					  --color-orange-badge-hover-bg: #f2711c4d;
 | 
				
			||||||
  --color-git: #f05133;
 | 
					  --color-git: #f05133;
 | 
				
			||||||
 | 
					  --color-logo: #609926;
 | 
				
			||||||
  /* target-based colors */
 | 
					  /* target-based colors */
 | 
				
			||||||
  --color-body: #1b1f23;
 | 
					  --color-body: #1b1f23;
 | 
				
			||||||
  --color-box-header: #1a1d1f;
 | 
					  --color-box-header: #1a1d1f;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -185,6 +185,7 @@ gitea-theme-meta-info {
 | 
				
			|||||||
  --color-orange-badge-bg: #f2711c1a;
 | 
					  --color-orange-badge-bg: #f2711c1a;
 | 
				
			||||||
  --color-orange-badge-hover-bg: #f2711c4d;
 | 
					  --color-orange-badge-hover-bg: #f2711c4d;
 | 
				
			||||||
  --color-git: #f05133;
 | 
					  --color-git: #f05133;
 | 
				
			||||||
 | 
					  --color-logo: #609926;
 | 
				
			||||||
  /* target-based colors */
 | 
					  /* target-based colors */
 | 
				
			||||||
  --color-body: #ffffff;
 | 
					  --color-body: #ffffff;
 | 
				
			||||||
  --color-box-header: #f1f3f5;
 | 
					  --color-box-header: #f1f3f5;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user