Skip to content

Commit b0fc9b2

Browse files
Update image filter color
Update the image filter in light mode to use the primary color.
1 parent 1a6c2b4 commit b0fc9b2

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

src/components/Footer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const Footer = () => {
1616
<img
1717
src={deviLogo}
1818
alt="Devitools Logo"
19-
className={`h-10 object-contain ${theme !== "dark" ? "grayscale brightness-[0.6]" : ""}`}
19+
className={`h-10 object-contain ${theme !== "dark" ? "logo-filter-primary" : ""}`}
2020
/>
2121
</Link>
2222
</div>

src/components/Header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const Header = () => {
2323
<img
2424
src={deviLogo}
2525
alt="Devitools Logo"
26-
className={`h-11 object-contain ${theme !== "dark" ? "grayscale brightness-[0.4]" : ""}`}
26+
className={`h-11 object-contain ${theme !== "dark" ? "logo-filter-primary" : ""}`}
2727
/>
2828
</Link>
2929
</div>

src/index.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66
All colors MUST be HSL.
77
*/
88

9+
/* Custom filters for logo */
10+
.logo-filter-primary {
11+
filter: brightness(0) saturate(100%) invert(34%) sepia(98%) saturate(1000%) hue-rotate(250deg) brightness(95%) contrast(100%);
12+
}
13+
914
@layer base {
1015
:root {
1116
--background: 220 14% 96%;

0 commit comments

Comments
 (0)