new color scheme?

This commit is contained in:
Milo Schwartz 2024-10-15 23:52:58 -04:00
parent 84e118d1fa
commit b651fabfcd
No known key found for this signature in database
7 changed files with 80 additions and 54 deletions

View file

@ -87,13 +87,13 @@ export default function Header({ email, orgName, name }: HeaderProps) {
<div className="flex items-center gap-4 mr-4"> <div className="flex items-center gap-4 mr-4">
<Link <Link
href="/docs" href="/docs"
className="text-muted-foreground hover:text-black" className="text-muted-foreground hover:text-foreground"
> >
Documentation Documentation
</Link> </Link>
<Link <Link
href="/support" href="/support"
className="text-muted-foreground hover:text-black" className="text-muted-foreground hover:text-foreground"
> >
Support Support
</Link> </Link>

View file

@ -15,22 +15,22 @@ const topNavItems = [
{ {
title: "Sites", title: "Sites",
href: "/{orgId}/sites", href: "/{orgId}/sites",
icon: <Combine />, icon: <Combine className="h-5 w-5"/>,
}, },
{ {
title: "Resources", title: "Resources",
href: "/{orgId}/resources", href: "/{orgId}/resources",
icon: <Waypoints />, icon: <Waypoints className="h-5 w-5"/>,
}, },
{ {
title: "Users", title: "Users",
href: "/{orgId}/users", href: "/{orgId}/users",
icon: <Users />, icon: <Users className="h-5 w-5"/>,
}, },
{ {
title: "General", title: "General",
href: "/{orgId}/general", href: "/{orgId}/general",
icon: <Cog />, icon: <Cog className="h-5 w-5"/>,
}, },
]; ];
@ -53,7 +53,7 @@ export default async function ConfigurationLaytout({
return ( return (
<> <>
<div className="w-full bg-muted border-b border-bg mb-6 select-none sm:px-0 px-3 pt-3"> <div className="w-full bg-muted mb-6 select-none sm:px-0 px-3 pt-3 border-b border-border">
<div className="container mx-auto flex flex-col content-between gap-4 "> <div className="container mx-auto flex flex-col content-between gap-4 ">
<Header email={user.email} orgName={params.orgId} /> <Header email={user.email} orgName={params.orgId} />
<TopbarNav items={topNavItems} orgId={params.orgId} /> <TopbarNav items={topNavItems} orgId={params.orgId} />

View file

@ -82,10 +82,6 @@ export default async function SettingsLayout({
href={`/${params.orgId}/sites`} href={`/${params.orgId}/sites`}
className="text-primary font-medium" className="text-primary font-medium"
> >
<div className="flex items-center gap-0.5 hover:underline">
<ChevronLeft />
<span>View all sites</span>
</div>
</Link> </Link>
</div> </div>

View file

@ -125,7 +125,7 @@ export function DataTable<TData, TValue>({
colSpan={columns.length} colSpan={columns.length}
className="h-24 text-center" className="h-24 text-center"
> >
No results. No sites. Create one to get started.
</TableCell> </TableCell>
</TableRow> </TableRow>
)} )}

View file

@ -4,48 +4,78 @@
@layer base { @layer base {
:root { :root {
--background: 231 0% 100%; --background: 0 0% 100%;
--foreground: 231 0% 10%; --foreground: 30 28.57% 2.75%;
--card: 231 0% 100%;
--card-foreground: 231 0% 15%; --primary: 23.64 23.74% 27.25%;
--popover: 231 0% 100%; --primary-foreground: 20 8.11% 92.75%;
--popover-foreground: 231 95% 10%;
--primary: 231 34% 49%; --card: 30 11.11% 96.47%;
--primary-foreground: 0 0% 100%; --card-foreground: 30 28.57% 2.75%;
--secondary: 231 10% 90%;
--popover: 0 0% 100%;
--popover-foreground: 30 28.57% 2.75%;
--secondary: 24 9.09% 89.22%;
--secondary-foreground: 0 0% 0%; --secondary-foreground: 0 0% 0%;
--muted: 193 10% 95%;
--muted-foreground: 231 0% 40%; --muted: 20 8.11% 92.75%;
--accent: 193 10% 90%; --muted-foreground: 0 0% 40%;
--accent-foreground: 231 0% 15%;
--destructive: 0 50% 50%; --accent: 20 8.11% 92.75%;
--destructive-foreground: 231 0% 100%; --accent-foreground: 24 23.81% 4.12%;
--border: 231 20% 82%;
--input: 231 20% 50%; --destructive: 0 84.2% 60.2%;
--ring: 231 34% 49%; --destructive-foreground: 210 40% 98%;
--radius: 0.75rem;
--border: 20 8.11% 85.49%;
--input: 30 3.64% 78.43%;
--ring: 23.64 23.74% 27.25%;
--chart-1: 23.64 23.74% 27.25%;
--chart-2: 23.57 14.43% 38.04%;
--chart-3: 22.86 8.71% 52.75%;
--chart-4: 23.33 8.82% 60%;
--chart-5: 24 8.98% 67.25%;
--radius: 0.5rem;
} }
.dark { .dark {
--background: 231 10% 10%; --background: 0 0% 10.98%;
--foreground: 231 0% 100%; --foreground: 24 9.09% 89.22%;
--card: 231 0% 10%;
--card-foreground: 231 0% 100%; --primary: 23.64 23.74% 27.25%;
--popover: 231 10% 5%; --primary-foreground: 20 8.11% 92.75%;
--popover-foreground: 231 0% 100%;
--primary: 231 34% 49%; --card: 0 0% 8.63%;
--primary-foreground: 0 0% 100%; --card-foreground: 24 9.09% 89.22%;
--secondary: 231 10% 20%;
--popover: 0 0% 4.71%;
--popover-foreground: 24 9.09% 89.22%;
--secondary: 23.33 28.13% 12.55%;
--secondary-foreground: 0 0% 100%; --secondary-foreground: 0 0% 100%;
--muted: 231 10% 18%;
--muted-foreground: 231 0% 65%; --muted: 0 0% 9.8%;
--accent: 193 10% 25%; --muted-foreground: 0 0% 51.37%;
--accent-foreground: 231 0% 95%;
--destructive: 0 50% 50%; --accent: 0 0% 23.53%;
--destructive-foreground: 231 0% 100%; --accent-foreground: 24 9.09% 89.22%;
--border: 231 20% 50%;
--input: 231 20% 50%; --destructive: 0 84.2% 60.2%;
--ring: 231 34% 49%; --destructive-foreground: 210 40% 98%;
--radius: 0.75rem;
--border: 20 21.43% 5.49%;
--input: 0 0% 27.06%;
--ring: 23.64 23.74% 27.25%;
--chart-1: 23.64 23.74% 27.25%;
--chart-2: 23.57 23.73% 23.14%;
--chart-3: 24.55 24.44% 17.65%;
--chart-4: 23.33 23.68% 14.9%;
--chart-5: 24 23.81% 12.35%;
--radius: 0.5rem;
} }
} }

View file

@ -9,8 +9,8 @@ export const metadata: Metadata = {
description: "", description: "",
}; };
const font = Inter({ subsets: ["latin"] }); // const font = Inter({ subsets: ["latin"] });
// const font = Open_Sans({ subsets: ["latin"] }); const font = Open_Sans({ subsets: ["latin"] });
export default async function RootLayout({ export default async function RootLayout({
children, children,

View file

@ -58,7 +58,7 @@ const TableRow = React.forwardRef<
<tr <tr
ref={ref} ref={ref}
className={cn( className={cn(
"border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted", "border-b transition-colors data-[state=selected]:bg-muted bg-muted",
className className
)} )}
{...props} {...props}