Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions apps/dashboard/public/favicon-dev.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion apps/dashboard/src/routes/__root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ export const Route = createRootRouteWithContext<{
...defaultSeo.meta,
],
links: [
{ rel: "icon", type: "image/svg+xml", href: "/favicon.svg" },
{
rel: "icon",
type: "image/svg+xml",
href: import.meta.env.DEV ? "/favicon-dev.svg" : "/favicon.svg",
},
{ rel: "manifest", href: "/manifest.json" },
{ rel: "stylesheet", href: appCss },
],
Expand Down
5 changes: 4 additions & 1 deletion apps/dashboard/src/routes/login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ function LoginPage() {
<section className="flex min-h-dvh bg-background px-6 py-8 sm:px-10 sm:py-10 lg:px-16 lg:py-12 xl:px-20">
<div className="mx-auto flex w-full max-w-xs flex-1 flex-col justify-between gap-10">
<div className="flex items-center gap-3">
<Logo className="size-9 text-foreground" />
<Logo
className="size-9 text-foreground"
variant={import.meta.env.DEV ? "dev" : "default"}
/>
<div>
<p className="text-base font-medium text-foreground sm:text-sm">
DiffKit
Expand Down
11 changes: 9 additions & 2 deletions packages/ui/src/components/logo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,11 @@ function cellRadii(cx: number, cy: number): [number, number, number, number] {
];
}

function Logo({ className, ...props }: React.ComponentProps<"svg">) {
function Logo({
className,
variant = "default",
...props
}: React.ComponentProps<"svg"> & { variant?: "default" | "dev" }) {
return (
<svg
data-slot="logo"
Expand All @@ -80,7 +84,10 @@ function Logo({ className, ...props }: React.ComponentProps<"svg">) {
className={cn("size-10 shrink-0", className)}
{...props}
>
<path d={SQUIRCLE} className="fill-brand" />
<path
d={SQUIRCLE}
className={variant === "dev" ? "fill-brand-dev" : "fill-brand"}
/>
{CELLS.map((cell) => (
<path
key={cell.id}
Expand Down
3 changes: 3 additions & 0 deletions packages/ui/src/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
--surface-2: oklch(0.925 0.003 286.375);
--color-green-500: oklch(0.62 0.194 149.214);
--brand: oklch(0.68 0.2 150);
--brand-dev: oklch(0.75 0.17 85);
}

.dark {
Expand Down Expand Up @@ -113,6 +114,7 @@
--surface-1: oklch(0.245 0.006 286.033);
--surface-2: oklch(0.28 0.006 286.033);
--brand: oklch(0.75 0.2 150);
--brand-dev: oklch(0.8 0.17 85);
}

@theme inline {
Expand Down Expand Up @@ -157,6 +159,7 @@
--color-surface-1: var(--surface-1);
--color-surface-2: var(--surface-2);
--color-brand: var(--brand);
--color-brand-dev: var(--brand-dev);
}

@layer base {
Expand Down
Loading