Add "light-brand" and "dark-brand" colors (add a second color picker) (#2028)

* init dark brand color addition

* added dark mode css vars

* added contrast brand colors

* minor fixes

* added dark branding to loader, button

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
Syed Ali Shahbazandkodiakhq[bot] authored and GitHub committed 2022-03-05 15:37:46 +00:00
1 parent ce0c8347fb
commit 8c4eed2bbc
30 files changed
+96 -35

No files matched your search

+1
View File
@@ -45,6 +45,7 @@ async function getUserFromSession({
twoFactorEnabled: true,
identityProvider: true,
brandColor: true,
darkBrandColor: true,
plan: true,
away: true,
credentials: {
+2
View File
@@ -83,6 +83,7 @@ const loggedInViewerRouter = createProtectedRouter()
twoFactorEnabled: user.twoFactorEnabled,
identityProvider: user.identityProvider,
brandColor: user.brandColor,
darkBrandColor: user.darkBrandColor,
plan: user.plan,
away: user.away,
};
@@ -616,6 +617,7 @@ const loggedInViewerRouter = createProtectedRouter()
weekStart: z.string().optional(),
hideBranding: z.boolean().optional(),
brandColor: z.string().optional(),
darkBrandColor: z.string().optional(),
theme: z.string().optional().nullable(),
completedOnboarding: z.boolean().optional(),
locale: z.string().optional(),