Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

feat: Dark mode styles for dialog

Richie McIlroyaf16145556c1
diff --git a/apps/web/app/dashboard/settings/workspace/Workspace.tsx b/apps/web/app/dashboard/settings/workspace/Workspace.tsx
index 33078f1e2..0beb99365 100644
--- a/apps/web/app/dashboard/settings/workspace/Workspace.tsx
+++ b/apps/web/app/dashboard/settings/workspace/Workspace.tsx
@@ -419,7 +419,9 @@ export const Workspace = () => {
</DialogHeader>
<div className="space-y-4">
<div>
- <Label htmlFor="emails">Email</Label>
+ <Label htmlFor="emails" className="mb-1">
+ Email
+ </Label>
<Input
id="emails"
value={emailInput}
diff --git a/packages/ui/src/components/Dialog.tsx b/packages/ui/src/components/Dialog.tsx
index 19d264f4f..34b481859 100644
--- a/packages/ui/src/components/Dialog.tsx
+++ b/packages/ui/src/components/Dialog.tsx
@@ -31,7 +31,7 @@ const DialogContent = React.forwardRef<
<DialogPrimitive.Content
ref={ref}
className={classNames(
- "relative p-6 w-full max-w-lg rounded-xl shadow-lg bg-gray-7 border-gray-9",
+ "relative p-6 w-full max-w-lg rounded-xl shadow-lg bg-gray-3 border-gray-9",
className
)}
{...props}
@@ -53,7 +53,7 @@ const DialogHeader = ({
}: React.HTMLAttributes<HTMLDivElement>) => (
<div
className={classNames(
- "flex flex-col space-y-1.5 text-center sm:text-left pb-4 mb-4 border-b border-subtle",
+ "flex flex-col space-y-1.5 text-center sm:text-left pb-4 mb-4 border-b border-gray-6",
className
)}
{...props}
@@ -82,7 +82,7 @@ const DialogTitle = React.forwardRef<
<DialogPrimitive.Title
ref={ref}
className={classNames(
- "text-xl font-bold tracking-tight leading-none",
+ "text-xl font-bold tracking-tight leading-none text-gray-12",
className
)}
{...props}
@@ -96,7 +96,7 @@ const DialogDescription = React.forwardRef<
>(({ className, ...props }, ref) => (
<DialogPrimitive.Description
ref={ref}
- className={classNames("text-sm text-muted-foreground", className)}
+ className={classNames("text-sm text-gray-11", className)}
{...props}
/>
));
diff --git a/packages/ui/src/components/input/Input.tsx b/packages/ui/src/components/input/Input.tsx
index d5db0edb6..d89329519 100644
--- a/packages/ui/src/components/input/Input.tsx
+++ b/packages/ui/src/components/input/Input.tsx
@@ -11,10 +11,10 @@ const Input = React.forwardRef<HTMLInputElement, InputProps>(
<input
type={type}
className={classNames(
- "flex px-4 w-full text-sm font-thin transition-all duration-200 text-gray-12 bg-gray-3 border-gray-4 outline-0 focus:bg-gray-3",
- "rounded-xl hover:bg-gray-4 hover:border-gray-5 h-[48px] placeholder:text-gray-8 py-[14px] border-[1px] focus:border-gray-5",
+ "flex px-4 w-full text-sm font-thin transition-all duration-200 text-gray-12 bg-gray-1 border-gray-4 outline-0 focus:bg-gray-3",
+ "rounded-xl hover:bg-gray-2 hover:border-gray-5 h-[48px] placeholder:text-gray-8 py-[14px] border-[1px] focus:border-gray-5",
"file:border-0 file:bg-transparent file:text-sm file:font-medium",
- "disabled:cursor-not-allowed disabled:bg-gray-1 disabled:bg-gray-2 disabled:text-gray-9 placeholder:transition-all",
+ "disabled:cursor-not-allowed disabled:bg-gray-2 disabled:bg-gray-2 disabled:text-gray-9 placeholder:transition-all",
"ring-0 ring-gray-2 focus:ring-1 focus:ring-gray-12 focus:ring-offset-2 ring-offset-gray-1 placeholder:text-gray-12 placeholder:duration-200",
className
)}