Skip to content

🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.

Adjust styling

Bill Yang8df62fbbdde4
diff --git a/client/src/app/components/Header/CustomDateRangePicker.tsx b/client/src/app/components/Header/CustomDateRangePicker.tsx
index 5c03c1d68..06bc6655b 100644
--- a/client/src/app/components/Header/CustomDateRangePicker.tsx
+++ b/client/src/app/components/Header/CustomDateRangePicker.tsx
@@ -28,7 +28,7 @@ export function CustomDateRangePicker({
<PopoverTrigger asChild>
<Button
id="date"
- variant={"outline"}
+ variant={"default"}
className={cn(
"w-[300px] justify-start text-left font-normal",
!date && "text-muted-foreground"
diff --git a/client/src/app/components/Header/DateSelector.tsx b/client/src/app/components/Header/DateSelector.tsx
index 31467a925..1e91cd4c1 100644
--- a/client/src/app/components/Header/DateSelector.tsx
+++ b/client/src/app/components/Header/DateSelector.tsx
@@ -34,7 +34,7 @@ export function DateSelector() {
return (
<DropdownMenu>
<DropdownMenuTrigger>
- <Button variant="outline">{getLabel(time)}</Button>
+ <Button variant="default">{getLabel(time)}</Button>
</DropdownMenuTrigger>
<DropdownMenuContent align="end">
<DropdownMenuItem
diff --git a/client/src/app/components/Header/Header.tsx b/client/src/app/components/Header/Header.tsx
index fe1a8a8b6..705ff15b2 100644
--- a/client/src/app/components/Header/Header.tsx
+++ b/client/src/app/components/Header/Header.tsx
@@ -3,7 +3,7 @@ import { Circle } from "@phosphor-icons/react";
import { useQuery } from "@tanstack/react-query";
import { Button } from "@/components/ui/button";
-import { goBack, goForward, useTimeSelection } from "@/lib/timeSelectionStore";
+import { goBack, goForward } from "@/lib/timeSelectionStore";
import { ChevronLeft, ChevronRight } from "lucide-react";
import { DateSelector } from "./DateSelector";
@@ -15,14 +15,6 @@ export function Header() {
res.json()
),
});
- const { time, setTime } = useTimeSelection();
-
- const DATE_OPTIONS = [
- { value: 1, label: "Today" },
- { value: 7, label: "Last 7 days" },
- { value: 30, label: "Last 30 days" },
- { value: 90, label: "Last 3 months" },
- ];
return (
<div className="flex items-center justify-between py-2">
@@ -38,10 +30,10 @@ export function Header() {
<div className="flex items-center gap-2">
<DateSelector />
<div className="flex items-center">
- <Button variant="outline" size="icon" onClick={goBack}>
+ <Button variant="default" size="icon" onClick={goBack}>
<ChevronLeft />
</Button>
- <Button variant="outline" size="icon" onClick={goForward}>
+ <Button variant="default" size="icon" onClick={goForward}>
<ChevronRight />
</Button>
</div>
diff --git a/client/src/app/components/sections/Referrers/Referrers.tsx b/client/src/app/components/sections/Referrers/Referrers.tsx
index 3e5b7b6a5..35dc6c6fc 100644
--- a/client/src/app/components/sections/Referrers/Referrers.tsx
+++ b/client/src/app/components/sections/Referrers/Referrers.tsx
@@ -10,7 +10,25 @@ export function Referrers() {
title="Referrers"
data={data}
getKey={(e) => e.referrer}
- getLabel={(e) => e.referrer || "Other"}
+ getLabel={(e) => (
+ <div className="flex items-center">
+ <img
+ className="w-5 mr-2"
+ src={`https://www.google.com/s2/favicons?domain=${e.referrer}&sz=32`}
+ />
+ {e.referrer ? (
+ <a
+ href={`https://${e.referrer}`}
+ target="_blank"
+ className="hover:underline"
+ >
+ {e.referrer}
+ </a>
+ ) : (
+ "Direct"
+ )}
+ </div>
+ )}
/>
);
}
diff --git a/client/src/app/globals.css b/client/src/app/globals.css
index 16b402aa7..70ddfea47 100644
--- a/client/src/app/globals.css
+++ b/client/src/app/globals.css
@@ -74,17 +74,26 @@ body {
--zinc-950: 240 10% 3.9%;
/* Neutral */
- --neutral-50: 0 0% 98%;
- --neutral-100: 0 0% 96.1%;
- --neutral-200: 0 0% 89.8%;
- --neutral-300: 0 0% 83.1%;
- --neutral-400: 0 0% 74.1%;
- --neutral-500: 0 0% 65.1%;
- --neutral-600: 0 0% 56.1%;
- --neutral-700: 0 0% 45.9%;
- --neutral-800: 0 0% 38%;
- --neutral-900: 0 0% 25.9%;
- --neutral-950: 0 0% 9%;
+ --neutral-50: 0 0% 95%;
+ --neutral-100: 0 0% 90%;
+ --neutral-150: 0 0% 85%;
+ --neutral-200: 0 0% 80%;
+ --neutral-250: 0 0% 75%;
+ --neutral-300: 0 0% 70%;
+ --neutral-350: 0 0% 65%;
+ --neutral-400: 0 0% 60%;
+ --neutral-450: 0 0% 55%;
+ --neutral-500: 0 0% 50%;
+ --neutral-550: 0 0% 45%;
+ --neutral-600: 0 0% 40%;
+ --neutral-650: 0 0% 35%;
+ --neutral-700: 0 0% 30%;
+ --neutral-750: 0 0% 25%;
+ --neutral-800: 0 0% 20%;
+ --neutral-850: 0 0% 15%;
+ --neutral-900: 0 0% 9%;
+ --neutral-950: 0 0% 5%;
+ --neutral-1000: 0 0% 0%;
/* Stone */
--stone-50: 60 9.1% 97.8%;
@@ -164,213 +173,6 @@ body {
--lime-900: 87.6 61.2% 20.2%;
--lime-950: 89.3 80.4% 11.2%;
- /* Green */
- --green-50: 138.5 76.5% 96.7%;
- --green-100: 140.6 84.2% 92.5%;
- --green-200: 141 78.9% 85.1%;
- --green-300: 141.7 76.6% 73.1%;
- --green-400: 141.9 69.2% 58%;
- --green-500: 142.1 70.6% 45.3%;
- --green-600: 142.1 76.2% 36.3%;
- --green-700: 142.4 71.8% 29.2%;
- --green-800: 142.8 64.2% 24.1%;
- --green-900: 143.8 61.2% 20.2%;
- --green-950: 144.9 80.4% 10%;
-
- /* Emerald */
- --emerald-50: 151.8 81% 95.9%;
- --emerald-100: 149.3 80.4% 90%;
- --emerald-200: 152.4 76% 80.4%;
- --emerald-300: 156.2 71.6% 66.9%;
- --emerald-400: 158.1 64.4% 51.6%;
- --emerald-500: 160.1 84.1% 39.4%;
- --emerald-600: 161.4 93.5% 30.4%;
- --emerald-700: 162.9 93.5% 24.3%;
- --emerald-800: 163.1 88.1% 19.8%;
- --emerald-900: 164.2 85.7% 16.5%;
- --emerald-950: 165.7 91.8% 9.4%;
-
- /* Teal */
- --teal-50: 166.2 76.5% 96.7%;
- --teal-100: 167.2 85.5% 89.2%;
- --teal-200: 168.4 83.8% 78.2%;
- --teal-300: 170.6 76.9% 64.3%;
- --teal-400: 172.5 66% 50.4%;
- --teal-500: 173.4 80.4% 40%;
- --teal-600: 174.7 83.9% 31.6%;
- --teal-700: 175.3 77.4% 26.1%;
- --teal-800: 176.1 69.4% 21.8%;
- --teal-900: 176.9 64.8% 18.2%;
- --teal-950: 177.8 85.1% 10.2%;
-
- /* Cyan */
- --cyan-50: 183.2 100% 96.3%;
- --cyan-100: 185.1 95.9% 90.4%;
- --cyan-200: 186.2 93.5% 81.8%;
- --cyan-300: 187 92.4% 69%;
- --cyan-400: 187.9 85.7% 53.3%;
- --cyan-500: 188.7 94.5% 42.7%;
- --cyan-600: 191.6 91.4% 36.5%;
- --cyan-700: 192.9 82.3% 31%;
- --cyan-800: 194.4 69.6% 27.1%;
- --cyan-900: 196.4 63.6% 23.7%;
- --cyan-950: 197 78.8% 14.9%;
-
- /* Sky */
- --sky-50: 204 100% 97.1%;
- --sky-100: 204 93.8% 93.7%;
- --sky-200: 200.6 94.4% 86.1%;
- --sky-300: 199.4 95.5% 73.9%;
- --sky-400: 198.4 93.2% 59.6%;
- --sky-500: 198.6 88.7% 48.4%;
- --sky-600: 200.4 98% 39.4%;
- --sky-700: 201.3 96.3% 32.2%;
- --sky-800: 201 90% 27.5%;
- --sky-900: 202 80.3% 23.9%;
- --sky-950: 204 80.2% 16%;
-
- /* Blue */
- --blue-50: 213.8 100% 96.9%;
- --blue-100: 214.3 94.6% 92.7%;
- --blue-200: 213.3 96.9% 87.3%;
- --blue-300: 211.7 96.4% 78.4%;
- --blue-400: 213.1 93.9% 67.8%;
- --blue-500: 217.2 91.2% 59.8%;
- --blue-600: 221.2 83.2% 53.3%;
- --blue-700: 224.3 76.3% 48%;
- --blue-800: 225.9 70.7% 40.2%;
- --blue-900: 224.4 64.3% 32.9%;
- --blue-950: 226.2 57.3% 21%;
-
- /* Slate */
- --slate-50: 210 40% 98%;
- --slate-100: 210 40% 96.1%;
- --slate-200: 214 31.8% 91.4%;
- --slate-300: 213 27.3% 84.3%;
- --slate-400: 215 20.2% 75.1%;
- --slate-500: 215 16.3% 66.9%;
- --slate-600: 215 19.3% 56.9%;
- --slate-700: 215 25% 46.9%;
- --slate-800: 217 32.6% 37.5%;
- --slate-900: 222 47.4% 28.2%;
- --slate-950: 229 84% 5%;
-
- /* Gray */
- --gray-50: 210 20% 98%;
- --gray-100: 220 14.3% 95.9%;
- --gray-200: 220 13% 91%;
- --gray-300: 216 12.2% 83.9%;
- --gray-400: 218 10.6% 74.9%;
- --gray-500: 220 8.9% 66.1%;
- --gray-600: 215 13.8% 57.1%;
- --gray-700: 217 19.1% 47.1%;
- --gray-800: 215 27.9% 37.5%;
- --gray-900: 221 39.3% 28%;
- --gray-950: 224 71.4% 4.1%;
-
- /* Zinc */
- --zinc-50: 0 0% 98%;
- --zinc-100: 240 4.8% 95.9%;
- --zinc-200: 240 5.9% 90%;
- --zinc-300: 240 4.9% 83.9%;
- --zinc-400: 240 5% 64.9%;
- --zinc-500: 240 3.8% 46.1%;
- --zinc-600: 240 5.2% 33.9%;
- --zinc-700: 240 5.3% 26.1%;
- --zinc-800: 240 3.7% 15.9%;
- --zinc-900: 240 5.9% 10%;
- --zinc-950: 240 10% 3.9%;
-
- /* Neutral */
- --neutral-50: 0 0% 98%;
- --neutral-100: 0 0% 96.1%;
- --neutral-200: 0 0% 89.8%;
- --neutral-300: 0 0% 83.1%;
- --neutral-400: 0 0% 74.1%;
- --neutral-500: 0 0% 65.1%;
- --neutral-600: 0 0% 56.1%;
- --neutral-700: 0 0% 45.9%;
- --neutral-800: 0 0% 38%;
- --neutral-900: 0 0% 25.9%;
- --neutral-950: 0 0% 9%;
-
- /* Stone */
- --stone-50: 60 9.1% 97.8%;
- --stone-100: 60 4.8% 95.9%;
- --stone-200: 20 5.9% 90%;
- --stone-300: 24 5.7% 82.9%;
- --stone-400: 24 5.4% 63.9%;
- --stone-500: 25 5.3% 44.7%;
- --stone-600: 33 5.5% 32.9%;
- --stone-700: 30 6.3% 25.1%;
- --stone-800: 12 6.5% 15.1%;
- --stone-900: 24 9.8% 10%;
- --stone-950: 20 14.3% 4.1%;
-
- /* Red */
- --red-50: 0 85.7% 97.3%;
- --red-100: 0 93.3% 94.1%;
- --red-200: 0 96.3% 89.4%;
- --red-300: 0 93.5% 81.8%;
- --red-400: 0 90.6% 70.8%;
- --red-500: 0 84.2% 60.2%;
- --red-600: 0 72.2% 50.6%;
- --red-700: 0 73.7% 41.8%;
- --red-800: 0 70% 35.3%;
- --red-900: 0 62.8% 30.6%;
- --red-950: 0 74.7% 15.5%;
-
- /* Orange */
- --orange-50: 33.3 100% 96.5%;
- --orange-100: 34.3 100% 91.8%;
- --orange-200: 32.1 97.7% 83.1%;
- --orange-300: 30.7 97.2% 72.4%;
- --orange-400: 27 96% 61%;
- --orange-500: 24.6 95% 53.1%;
- --orange-600: 20.5 90.2% 48.2%;
- --orange-700: 17.5 88.3% 40.4%;
- --orange-800: 15 79.1% 33.7%;
- --orange-900: 15.3 74.6% 27.8%;
- --orange-950: 15.2 69.1% 19%;
-
- /* Amber */
- --amber-50: 48 100% 96.1%;
- --amber-100: 48 96.5% 88.8%;
- --amber-200: 48 96.6% 76.7%;
- --amber-300: 45.9 96.7% 64.5%;
- --amber-400: 43.3 96.4% 56.3%;
- --amber-500: 37.7 92.1% 50.2%;
- --amber-600: 32.1 94.6% 43.7%;
- --amber-700: 26 90.5% 37.1%;
- --amber-800: 22.7 82.5% 31.4%;
- --amber-900: 21.7 77.8% 26.5%;
- --amber-950: 20.9 86.9% 15.3%;
-
- /* Yellow */
- --yellow-50: 54.5 91.7% 95.3%;
- --yellow-100: 54.9 96.7% 88%;
- --yellow-200: 52.8 98.3% 76.9%;
- --yellow-300: 50.4 97.8% 63.5%;
- --yellow-400: 47.9 95.8% 53.1%;
- --yellow-500: 45.4 93.4% 47.5%;
- --yellow-600: 40.6 96.1% 40.4%;
- --yellow-700: 35.5 91.7% 32.9%;
- --yellow-800: 31.8 81% 28.8%;
- --yellow-900: 28.4 72.5% 25.7%;
- --yellow-950: 26 83.3% 14.1%;
-
- /* Lime */
- --lime-50: 78.3 92% 95.1%;
- --lime-100: 79.6 89.1% 89.2%;
- --lime-200: 81.1 88.5% 79.6%;
- --lime-300: 82 84.5% 67.1%;
- --lime-400: 82.7 78% 55.5%;
- --lime-500: 83.7 80.5% 44.3%;
- --lime-600: 84.8 85.2% 34.5%;
- --lime-700: 85.9 78.4% 27.3%;
- --lime-800: 86.3 69% 22.7%;
- --lime-900: 87.6 61.2% 20.2%;
- --lime-950: 89.3 80.4% 11.2%;
/* Green */
--green-50: 138.5 76.5% 96.7%;
@@ -530,7 +332,7 @@ body {
}
.dark {
- --background: 240 10% 3.9%;
+ --background: 0 0% 5%;
--foreground: 0 0% 98%;
--card: 240 10% 3.9%;
--card-foreground: 0 0% 98%;
diff --git a/client/src/app/page.tsx b/client/src/app/page.tsx
index e33e7db3b..fe895999a 100644
--- a/client/src/app/page.tsx
+++ b/client/src/app/page.tsx
@@ -9,8 +9,8 @@ import { Referrers } from "./components/sections/Referrers/Referrers";
export default function Home() {
return (
- <main className="flex min-h-screen flex-col items-center p-24">
- <div className="w-full max-w-6xl">
+ <main className="flex min-h-screen flex-col items-center p-4 pt-12">
+ <div className="w-full max-w-5xl">
<Header />
<MainSection />
<div className="grid grid-cols-2 gap-4 mt-4">
diff --git a/client/src/components/TopBar.tsx b/client/src/components/TopBar.tsx
index dfaf2f8bb..6784073f3 100644
--- a/client/src/components/TopBar.tsx
+++ b/client/src/components/TopBar.tsx
@@ -3,30 +3,28 @@ import { ThemeToggle } from "./ThemeToggle";
export function TopBar() {
return (
- <div className="border-b border-neutral-200 dark:border-neutral-800">
- <div className="flex h-16 items-center px-4">
- <div className="flex items-center space-x-4">
- <Link href="/" className="font-bold text-xl">
- 🐸 Frogstats
+ <div className="flex h-16 items-center px-4">
+ <div className="flex items-center space-x-4">
+ <Link href="/" className="font-bold text-xl">
+ 🐸 Frogstats
+ </Link>
+ </div>
+ <div className="ml-auto flex items-center space-x-4">
+ <nav className="flex items-center space-x-4">
+ <Link
+ href="/"
+ className="text-sm font-medium transition-colors hover:text-primary"
+ >
+ Dashboard
+ </Link>
+ <Link
+ href="/settings"
+ className="text-sm font-medium text-muted-foreground transition-colors hover:text-primary"
+ >
+ Settings
</Link>
- </div>
- <div className="ml-auto flex items-center space-x-4">
- <nav className="flex items-center space-x-4">
- <Link
- href="/"
- className="text-sm font-medium transition-colors hover:text-primary"
- >
- Dashboard
- </Link>
- <Link
- href="/settings"
- className="text-sm font-medium text-muted-foreground transition-colors hover:text-primary"
- >
- Settings
- </Link>
- </nav>
- <ThemeToggle />
- </div>
+ </nav>
+ <ThemeToggle />
</div>
</div>
);
diff --git a/client/src/components/ui/button.tsx b/client/src/components/ui/button.tsx
index be0dce840..f328bf4e7 100644
--- a/client/src/components/ui/button.tsx
+++ b/client/src/components/ui/button.tsx
@@ -1,8 +1,8 @@
-import * as React from "react"
-import { Slot } from "@radix-ui/react-slot"
-import { cva, type VariantProps } from "class-variance-authority"
+import * as React from "react";
+import { Slot } from "@radix-ui/react-slot";
+import { cva, type VariantProps } from "class-variance-authority";
-import { cn } from "@/lib/utils"
+import { cn } from "@/lib/utils";
const buttonVariants = cva(
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-neutral-950 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 dark:focus-visible:ring-neutral-300",
@@ -10,14 +10,15 @@ const buttonVariants = cva(
variants: {
variant: {
default:
- "bg-neutral-900 text-neutral-50 shadow hover:bg-neutral-900/90 dark:bg-neutral-50 dark:text-neutral-900 dark:hover:bg-neutral-50/90",
+ "bg-neutral-50 text-neutral-950 shadow hover:bg-neutral-900/90 dark:bg-neutral-850 dark:text-neutral-50 dark:hover:bg-neutral-700",
destructive:
"bg-red-500 text-neutral-50 shadow-sm hover:bg-red-500/90 dark:bg-red-900 dark:text-neutral-50 dark:hover:bg-red-900/90",
outline:
- "border border-neutral-200 bg-white shadow-sm hover:bg-neutral-100 hover:text-neutral-900 dark:border-neutral-800 dark:bg-neutral-950 dark:hover:bg-neutral-800 dark:hover:text-neutral-50",
+ "border border-neutral-200 bg-white shadow-sm hover:bg-neutral-100 hover:text-neutral-900 dark:border-neutral-650 dark:bg-neutral-900 dark:hover:bg-neutral-800 dark:hover:text-neutral-50",
secondary:
"bg-neutral-100 text-neutral-900 shadow-sm hover:bg-neutral-100/80 dark:bg-neutral-800 dark:text-neutral-50 dark:hover:bg-neutral-800/80",
- ghost: "hover:bg-neutral-100 hover:text-neutral-900 dark:hover:bg-neutral-800 dark:hover:text-neutral-50",
+ ghost:
+ "hover:bg-neutral-100 hover:text-neutral-900 dark:hover:bg-neutral-800 dark:hover:text-neutral-50",
link: "text-neutral-900 underline-offset-4 hover:underline dark:text-neutral-50",
},
size: {
@@ -32,26 +33,26 @@ const buttonVariants = cva(
size: "default",
},
}
-)
+);
export interface ButtonProps
extends React.ButtonHTMLAttributes<HTMLButtonElement>,
VariantProps<typeof buttonVariants> {
- asChild?: boolean
+ asChild?: boolean;
}
const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
({ className, variant, size, asChild = false, ...props }, ref) => {
- const Comp = asChild ? Slot : "button"
+ const Comp = asChild ? Slot : "button";
return (
<Comp
className={cn(buttonVariants({ variant, size, className }))}
ref={ref}
{...props}
/>
- )
+ );
}
-)
-Button.displayName = "Button"
+);
+Button.displayName = "Button";
-export { Button, buttonVariants }
+export { Button, buttonVariants };
diff --git a/client/src/components/ui/card.tsx b/client/src/components/ui/card.tsx
index 846279894..e94b8d126 100644
--- a/client/src/components/ui/card.tsx
+++ b/client/src/components/ui/card.tsx
@@ -9,7 +9,7 @@ const Card = React.forwardRef<
<div
ref={ref}
className={cn(
- "rounded-xl border border-neutral-200 bg-white text-neutral-950 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50",
+ "rounded-xl border border-neutral-200 bg-white text-neutral-950 dark:border-neutral-850 dark:bg-neutral-900 dark:text-neutral-50",
className
)}
{...props}
diff --git a/client/src/components/ui/dropdown-menu.tsx b/client/src/components/ui/dropdown-menu.tsx
index e1559a4f6..98ca779f3 100644
--- a/client/src/components/ui/dropdown-menu.tsx
+++ b/client/src/components/ui/dropdown-menu.tsx
@@ -1,27 +1,27 @@
-"use client"
+"use client";
-import * as React from "react"
-import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu"
-import { Check, ChevronRight, Circle } from "lucide-react"
+import * as React from "react";
+import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
+import { Check, ChevronRight, Circle } from "lucide-react";
-import { cn } from "@/lib/utils"
+import { cn } from "@/lib/utils";
-const DropdownMenu = DropdownMenuPrimitive.Root
+const DropdownMenu = DropdownMenuPrimitive.Root;
-const DropdownMenuTrigger = DropdownMenuPrimitive.Trigger
+const DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
-const DropdownMenuGroup = DropdownMenuPrimitive.Group
+const DropdownMenuGroup = DropdownMenuPrimitive.Group;
-const DropdownMenuPortal = DropdownMenuPrimitive.Portal
+const DropdownMenuPortal = DropdownMenuPrimitive.Portal;
-const DropdownMenuSub = DropdownMenuPrimitive.Sub
+const DropdownMenuSub = DropdownMenuPrimitive.Sub;
-const DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup
+const DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
const DropdownMenuSubTrigger = React.forwardRef<
React.ElementRef<typeof DropdownMenuPrimitive.SubTrigger>,
React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger> & {
- inset?: boolean
+ inset?: boolean;
}
>(({ className, inset, children, ...props }, ref) => (
<DropdownMenuPrimitive.SubTrigger
@@ -36,9 +36,9 @@ const DropdownMenuSubTrigger = React.forwardRef<
{children}
<ChevronRight className="ml-auto" />
</DropdownMenuPrimitive.SubTrigger>
-))
+));
DropdownMenuSubTrigger.displayName =
- DropdownMenuPrimitive.SubTrigger.displayName
+ DropdownMenuPrimitive.SubTrigger.displayName;
const DropdownMenuSubContent = React.forwardRef<
React.ElementRef<typeof DropdownMenuPrimitive.SubContent>,
@@ -47,14 +47,14 @@ const DropdownMenuSubContent = React.forwardRef<
<DropdownMenuPrimitive.SubContent
ref={ref}
className={cn(
- "z-50 min-w-[8rem] overflow-hidden rounded-md border border-neutral-200 bg-white p-1 text-neutral-950 shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50",
+ "z-50 min-w-[8rem] overflow-hidden rounded-md border border-neutral-200 bg-white p-1 text-neutral-950 shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-neutral-800 dark:bg-neutral-850 dark:text-neutral-50",
className
)}
{...props}
/>
-))
+));
DropdownMenuSubContent.displayName =
- DropdownMenuPrimitive.SubContent.displayName
+ DropdownMenuPrimitive.SubContent.displayName;
const DropdownMenuContent = React.forwardRef<
React.ElementRef<typeof DropdownMenuPrimitive.Content>,
@@ -65,20 +65,20 @@ const DropdownMenuContent = React.forwardRef<
ref={ref}
sideOffset={sideOffset}
className={cn(
- "z-50 min-w-[8rem] overflow-hidden rounded-md border border-neutral-200 bg-white p-1 text-neutral-950 shadow-md dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50",
+ "z-50 min-w-[8rem] overflow-hidden rounded-md border border-neutral-200 bg-white p-1 text-neutral-950 shadow-md dark:border-neutral-800 dark:bg-neutral-900 dark:text-neutral-50",
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
className
)}
{...props}
/>
</DropdownMenuPrimitive.Portal>
-))
-DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName
+));
+DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
const DropdownMenuItem = React.forwardRef<
React.ElementRef<typeof DropdownMenuPrimitive.Item>,
React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> & {
- inset?: boolean
+ inset?: boolean;
}
>(({ className, inset, ...props }, ref) => (
<DropdownMenuPrimitive.Item
@@ -90,8 +90,8 @@ const DropdownMenuItem = React.forwardRef<
)}
{...props}
/>
-))
-DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName
+));
+DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
const DropdownMenuCheckboxItem = React.forwardRef<
React.ElementRef<typeof DropdownMenuPrimitive.CheckboxItem>,
@@ -113,9 +113,9 @@ const DropdownMenuCheckboxItem = React.forwardRef<
</span>
{children}
</DropdownMenuPrimitive.CheckboxItem>
-))
+));
DropdownMenuCheckboxItem.displayName =
- DropdownMenuPrimitive.CheckboxItem.displayName
+ DropdownMenuPrimitive.CheckboxItem.displayName;
const DropdownMenuRadioItem = React.forwardRef<
React.ElementRef<typeof DropdownMenuPrimitive.RadioItem>,
@@ -136,13 +136,13 @@ const DropdownMenuRadioItem = React.forwardRef<
</span>
{children}
</DropdownMenuPrimitive.RadioItem>
-))
-DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName
+));
+DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
const DropdownMenuLabel = React.forwardRef<
React.ElementRef<typeof DropdownMenuPrimitive.Label>,
React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label> & {
- inset?: boolean
+ inset?: boolean;
}
>(({ className, inset, ...props }, ref) => (
<DropdownMenuPrimitive.Label
@@ -154,8 +154,8 @@ const DropdownMenuLabel = React.forwardRef<
)}
{...props}
/>
-))
-DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName
+));
+DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
const DropdownMenuSeparator = React.forwardRef<
React.ElementRef<typeof DropdownMenuPrimitive.Separator>,
@@ -163,11 +163,14 @@ const DropdownMenuSeparator = React.forwardRef<
>(({ className, ...props }, ref) => (
<DropdownMenuPrimitive.Separator
ref={ref}
- className={cn("-mx-1 my-1 h-px bg-neutral-100 dark:bg-neutral-800", className)}
+ className={cn(
+ "-mx-1 my-1 h-px bg-neutral-100 dark:bg-neutral-800",
+ className
+ )}
{...props}
/>
-))
-DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName
+));
+DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
const DropdownMenuShortcut = ({
className,
@@ -178,9 +181,9 @@ const DropdownMenuShortcut = ({
className={cn("ml-auto text-xs tracking-widest opacity-60", className)}
{...props}
/>
- )
-}
-DropdownMenuShortcut.displayName = "DropdownMenuShortcut"
+ );
+};
+DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
export {
DropdownMenu,
@@ -198,4 +201,4 @@ export {
DropdownMenuSubContent,
DropdownMenuSubTrigger,
DropdownMenuRadioGroup,
-}
+};
diff --git a/client/tailwind.config.ts b/client/tailwind.config.ts
index c05b2ff60..e2144f73c 100644
--- a/client/tailwind.config.ts
+++ b/client/tailwind.config.ts
@@ -50,6 +50,28 @@ module.exports = {
DEFAULT: "hsl(var(--card))",
foreground: "hsl(var(--card-foreground))",
},
+ neutral: {
+ 50: "hsl(var(--neutral-50))",
+ 100: "hsl(var(--neutral-100))",
+ 150: "hsl(var(--neutral-150))",
+ 200: "hsl(var(--neutral-200))",
+ 250: "hsl(var(--neutral-250))",
+ 300: "hsl(var(--neutral-300))",
+ 350: "hsl(var(--neutral-350))",
+ 400: "hsl(var(--neutral-400))",
+ 450: "hsl(var(--neutral-450))",
+ 500: "hsl(var(--neutral-500))",
+ 550: "hsl(var(--neutral-550))",
+ 600: "hsl(var(--neutral-600))",
+ 650: "hsl(var(--neutral-650))",
+ 700: "hsl(var(--neutral-700))",
+ 750: "hsl(var(--neutral-750))",
+ 800: "hsl(var(--neutral-800))",
+ 850: "hsl(var(--neutral-850))",
+ 900: "hsl(var(--neutral-900))",
+ 950: "hsl(var(--neutral-950))",
+ 1000: "hsl(var(--neutral-1000))",
+ },
},
borderRadius: {
lg: "var(--radius)",