Skip to content

Commit 62ccd1d

Browse files
committed
whole lot of changes including dark/lite mode support
1 parent 9ee4817 commit 62ccd1d

File tree

41 files changed

+72
-68
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+72
-68
lines changed

apps/captable/app/(authenticated)/(dashboard)/[publicId]/documents/data-rooms/components/data-room-files.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ const DataRoomFiles = ({
6565
name="title"
6666
required
6767
type="text"
68-
className="h4 min-w-[300px] bg-transparent px-2 text-gray-800 outline-none focus:ring-0 focus:ring-offset-0"
68+
className="h4 min-w-[300px] bg-transparent px-2 text-foreground outline-none focus:ring-0 focus:ring-offset-0"
6969
placeholder={`Data room's folder name`}
7070
defaultValue={dataRoom.name}
7171
onChange={async (e) => {

apps/captable/app/(authenticated)/(dashboard)/[publicId]/documents/data-rooms/components/dataroom-folders.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@ const Folders = ({ companyPublicId, folders }: FolderProps) => {
6060
aria-hidden="true"
6161
/>
6262
</div>
63-
<div className="flex flex-1 items-center justify-between truncate rounded-r-md border-y border-r border-gray-200 bg-white">
63+
<div className="flex flex-1 items-center justify-between truncate rounded-r-md border-y border-r border-border bg-card">
6464
<div className="flex-1 truncate px-4 py-2 text-sm">
65-
<span className="font-medium text-gray-900 hover:text-gray-600">
65+
<span className="font-medium text-foreground hover:text-muted-foreground">
6666
{folder.name}
6767
</span>
68-
<p className="text-gray-500">
68+
<p className="text-muted-foreground">
6969
{folder._count.documents === 1
7070
? `${folder._count.documents} file`
7171
: `${folder._count.documents} files`}
@@ -74,7 +74,7 @@ const Folders = ({ companyPublicId, folders }: FolderProps) => {
7474
<div className="flex-shrink-0 pr-2">
7575
<button
7676
type="button"
77-
className="inline-flex h-8 w-8 items-center justify-center rounded-full bg-transparent bg-white text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-transparent focus:ring-offset-2"
77+
className="inline-flex h-8 w-8 items-center justify-center rounded-full bg-transparent bg-white text-muted-foreground hover:text-foreground focus:outline-none focus:ring-2 focus:ring-transparent focus:ring-offset-2"
7878
>
7979
<span className="sr-only">Open options</span>
8080
<MoreIcon className="h-5 w-5" aria-hidden="true" />

apps/captable/app/(authenticated)/(dashboard)/[publicId]/documents/esign/v/[templatePublicId]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export default async function TemplateDetailViewPage({
6262

6363
return (
6464
<TemplateSigningFieldProvider fields={fields}>
65-
<div className="flex min-h-screen bg-gray-50">
65+
<div className="flex min-h-screen bg-background">
6666
<div className="flex h-full flex-grow flex-col">
6767
<div className="col-span-12 flex align-middle">
6868
<Badge variant={badgeVariant()} className="h-7 align-middle">

apps/captable/app/(authenticated)/(dashboard)/[publicId]/equity-plans/table.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ import { type EquityPlanMutationType } from "@/trpc/routers/equity-plan/schema";
1313
import { type ShareClassMutationType } from "@/trpc/routers/share-class/schema";
1414
import { RiEqualizer2Line } from "@remixicon/react";
1515
import EquityPlanModal from "./modal";
16+
import { cn } from "@/lib/utils";
17+
import { pushModal } from "@/providers/modal-provider";
18+
import type { RouterOutputs } from "@/trpc/shared";
19+
import type { ColumnDef } from "@tanstack/react-table";
1620
const formatter = new Intl.NumberFormat("en-US");
1721

1822
type EquityPlanTableProps = {
@@ -90,7 +94,7 @@ const EquityPlanTable = ({
9094
/>
9195
}
9296
trigger={
93-
<RiEqualizer2Line className="h-5 w-5 cursor-pointer text-gray-500 hover:text-gray-700" />
97+
<RiEqualizer2Line className="h-5 w-5 cursor-pointer text-muted-foreground hover:text-foreground" />
9498
}
9599
/>
96100
</TableCell>

apps/captable/app/(authenticated)/(dashboard)/[publicId]/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const DashboardLayout = async ({ children, params }: DashboardLayoutProps) => {
3838
const permissions = RBAC.normalizePermissionsMap(permissionsData.permissions);
3939
return (
4040
<RolesProvider data={{ permissions }}>
41-
<div className="flex min-h-screen bg-gray-50">
41+
<div className="flex min-h-screen bg-background">
4242
<aside className="sticky top-0 hidden min-h-full w-64 flex-shrink-0 flex-col lg:flex lg:border-r">
4343
<SideBar companies={companies} publicId={publicId} />
4444
</aside>

apps/captable/app/(authenticated)/(dashboard)/[publicId]/settings/developer/components/create-access-token.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ const CreateAccessToken = () => {
8383
{accessToken}
8484
</code>
8585
</Card>
86-
<span className="text-xs text-gray-700">
86+
<span className="text-xs text-muted-foreground">
8787
Click the access token above to copy
8888
</span>
8989
</Fragment>

apps/captable/app/(authenticated)/(dashboard)/[publicId]/share-classes/edit-share-class-button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export const EditShareClassButton = ({
1616
}: EditShareClassButtonProps) => {
1717
return (
1818
<RiEqualizer2Line
19-
className="h-5 w-5 cursor-pointer text-gray-500 hover:text-gray-700"
19+
className="h-5 w-5 cursor-pointer text-muted-foreground hover:text-foreground"
2020
onClick={() => {
2121
pushModal("ShareClassModal", {
2222
shouldClientFetch: false,

apps/captable/app/(documents)/esign/[token]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export default async function SigningPage(props: SigningPageProps) {
4646

4747
return (
4848
<TemplateSigningFieldProvider fields={fields}>
49-
<div className="flex min-h-screen bg-gray-50">
49+
<div className="flex min-h-screen bg-background">
5050
<div className="flex h-full flex-grow flex-col">
5151
<div className="mx-auto min-h-full w-full px-5 py-10 lg:px-8 2xl:max-w-screen-xl">
5252
<div className="grid grid-cols-12">

apps/captable/app/(unauthenticated)/new/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export default async function CapPage() {
2929
<div className="flex h-screen items-center justify-center bg-background">
3030
<div className="grid w-full max-w-lg grid-cols-1 gap-5 rounded-xl border bg-card/10 p-10 shadow-sm hover:shadow-md">
3131
<h3 className="-mt-5">
32-
cap.<span className="text-2xl text-gray-600">new</span>
32+
cap.<span className="text-2xl text-muted-foreground">new</span>
3333
</h3>
3434
<ul>
3535
<li className="mb-1">

apps/captable/app/not-found.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default function NotFoundPage() {
88

99
return (
1010
<div className="flex h-screen w-full flex-col items-center justify-center bg-background">
11-
<h1 className=" text-9xl font-extrabold tracking-widest text-gray-900 md:text-[150px]">
11+
<h1 className=" text-9xl font-extrabold tracking-widest text-foreground md:text-[150px]">
1212
404
1313
</h1>
1414
<div className=" px-4 pb-2 text-sm text-black">

0 commit comments

Comments
 (0)