Skip to content

Commit 480db2a

Browse files
authored
Add dark mode styles to Footer (#8087)
Enable dark theme support in the Footer component by updating Tailwind classes: add dark:text and dark:hover variants to footer links, apply dark:invert to the OpenJS logo, and set dark:text on paragraph text to improve readability in dark mode.
1 parent 29288b2 commit 480db2a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/components/Footer/Footer.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,21 @@ import Container from "../Container/Container.jsx";
66
import Link from "../Link/Link.jsx";
77

88
const footerLinkClasses =
9-
"text-[11px] uppercase text-[#777676] hover:text-[#333333]";
9+
"text-[11px] uppercase text-[#777676] dark:text-[#cccccc] hover:text-[#333333] dark:hover:text-[#ffffff]";
1010

1111
const Footer = () => (
1212
<footer className="w-full flex-[0_0_auto] print:hidden">
1313
<Container className="mx-auto max-w-[900px] px-5 pb-[30px] pt-[40px] text-center [&_a]:text-[#3b7eb5]">
1414
<div className="mb-[24px] flex justify-center">
1515
<a href="https://openjsf.org" target="_blank" rel="noopener noreferrer">
1616
<img
17-
className="h-[40px] w-auto"
17+
className="h-[40px] w-auto dark:invert"
1818
src={OpenJSLogo}
1919
alt="OpenJS Foundation Logo"
2020
/>
2121
</a>
2222
</div>
23-
<p className="mx-auto text-[15px] leading-[1.6] text-[#333333]">
23+
<p className="mx-auto text-[15px] leading-[1.6] text-[#333333] dark:text-[#e0e0e0]">
2424
Copyright <a href="https://openjsf.org">OpenJS Foundation</a> and
2525
webpack contributors. All rights reserved. The{" "}
2626
<a href="https://openjsf.org">OpenJS Foundation</a> has registered
@@ -36,7 +36,7 @@ const Footer = () => (
3636
holders. Use of them does not imply any affiliation with or endorsement
3737
by them.
3838
</p>
39-
<p className="mx-auto mt-[18px] text-[15px] leading-[1.6] text-[#333333]">
39+
<p className="mx-auto mt-[18px] text-[15px] leading-[1.6] text-[#333333] dark:text-[#e0e0e0]">
4040
<a href="https://openjsf.org">The OpenJS Foundation</a> |{" "}
4141
<a href="https://terms-of-use.openjsf.org">Terms of Use</a> |{" "}
4242
<a href="https://privacy-policy.openjsf.org">Privacy Policy</a> |{" "}

0 commit comments

Comments
 (0)