2
0

first commit

This commit is contained in:
2024-08-09 00:39:27 +02:00
commit 79688abe2e
5698 changed files with 497838 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
// we want to invert all logos that contain -dark in their name
// we don't want to invert logos that are not coming from the app-store
export default function invertLogoOnDark(
url?: string,
// The background color of the logo's display location is opposite of the general theme of the application.
// Ex. General App theme is black but the logo's background color is white.
opposite?: boolean
) {
return url?.includes("-dark") || !url?.startsWith("/app-store")
? opposite
? "invert dark:invert-0"
: "dark:invert"
: "";
}