Skip to content

Commit 7fa5a88

Browse files
authored
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" />
1 parent f6f6aed commit 7fa5a88

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

web_src/css/home.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
}
2222

2323
.home .hero .svg {
24-
color: var(--color-green);
24+
color: var(--color-logo);
2525
height: 40px;
2626
width: 50px;
2727
vertical-align: bottom;
@@ -40,7 +40,7 @@
4040
}
4141

4242
.home a {
43-
color: var(--color-green);
43+
color: var(--color-logo);
4444
}
4545

4646
.page-footer {

web_src/css/themes/theme-gitea-dark.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ gitea-theme-meta-info {
185185
--color-orange-badge-bg: #f2711c1a;
186186
--color-orange-badge-hover-bg: #f2711c4d;
187187
--color-git: #f05133;
188+
--color-logo: #609926;
188189
/* target-based colors */
189190
--color-body: #1b1f23;
190191
--color-box-header: #1a1d1f;

web_src/css/themes/theme-gitea-light.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ gitea-theme-meta-info {
185185
--color-orange-badge-bg: #f2711c1a;
186186
--color-orange-badge-hover-bg: #f2711c4d;
187187
--color-git: #f05133;
188+
--color-logo: #609926;
188189
/* target-based colors */
189190
--color-body: #ffffff;
190191
--color-box-header: #f1f3f5;

0 commit comments

Comments
 (0)