Skip to content

Commit 9f04510

Browse files
committed
Update community.css
1 parent d34315e commit 9f04510

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

src/pages/community/community.css

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -793,3 +793,42 @@
793793
padding: 0 20px 24px;
794794
}
795795
}
796+
797+
/* Accessibility Enhancements */
798+
/* Light mode defaults */
799+
.community-hero-title,
800+
.community-hero-description,
801+
.contribution-title,
802+
.contribution-description,
803+
.section-title,
804+
.section-description,
805+
.section-items li,
806+
.thank-you-main,
807+
.thank-you-description,
808+
.support-text {
809+
color: #111827; /* default dark text for light background */
810+
}
811+
812+
/* Dark mode overrides */
813+
@media (prefers-color-scheme: dark) {
814+
.community-hero-title,
815+
.contribution-title,
816+
.section-title,
817+
.thank-you-main {
818+
color: #ffffff; /* white text in dark mode */
819+
}
820+
821+
.community-hero-description,
822+
.contribution-description,
823+
.section-description,
824+
.section-items li,
825+
.thank-you-description,
826+
.support-text {
827+
color: #d1d5db; /* light gray text in dark mode */
828+
}
829+
830+
body,
831+
.community-page {
832+
background-color: #111827; /* Optional: ensure background is also dark */
833+
}
834+
}

0 commit comments

Comments
 (0)