mirror of
https://github.com/pezkuwichain/pezkuwi-p2p-mobile.git
synced 2026-04-21 23:37:55 +00:00
fix: improve dark mode styling and contrast
- Set dark mode as default (class="dark" on html) - Update dark mode CSS variables for better contrast - Fix popover/select dropdown colors - Improve SelectItem hover and focus states
This commit is contained in:
+1
-1
@@ -1,5 +1,5 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<html lang="en" class="dark">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
||||
|
||||
@@ -73,7 +73,7 @@ const SelectContent = React.forwardRef<
|
||||
<SelectPrimitive.Content
|
||||
ref={ref}
|
||||
className={cn(
|
||||
"relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-border/40 bg-popover text-popover-foreground shadow-md 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 duration-200",
|
||||
"relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-border bg-popover text-popover-foreground 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 duration-200",
|
||||
position === "popper" &&
|
||||
"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
||||
className
|
||||
@@ -116,7 +116,7 @@ const SelectItem = React.forwardRef<
|
||||
<SelectPrimitive.Item
|
||||
ref={ref}
|
||||
className={cn(
|
||||
"relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent/50 focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 transition-colors",
|
||||
"relative flex w-full cursor-default select-none items-center rounded-sm py-2 pl-8 pr-2 text-sm outline-none focus:bg-primary/20 focus:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 transition-colors hover:bg-muted",
|
||||
className
|
||||
)}
|
||||
{...props}
|
||||
|
||||
+15
-15
@@ -42,37 +42,37 @@
|
||||
}
|
||||
|
||||
.dark {
|
||||
--background: 0 0% 3.9%;
|
||||
--background: 220 13% 10%; /* Dark blue-gray like Telegram dark mode */
|
||||
--foreground: 0 0% 98%;
|
||||
--card: 0 0% 3.9%;
|
||||
--card: 220 13% 12%;
|
||||
--card-foreground: 0 0% 98%;
|
||||
--popover: 0 0% 3.9%;
|
||||
--popover: 220 13% 15%; /* Slightly lighter for dropdown menus */
|
||||
--popover-foreground: 0 0% 98%;
|
||||
--primary: 148 100% 40%; /* Kurdish green dark */
|
||||
--primary-foreground: 0 0% 9%;
|
||||
--primary-foreground: 0 0% 98%;
|
||||
--secondary: 358 84% 60%; /* Kurdish red dark */
|
||||
--secondary-foreground: 0 0% 9%;
|
||||
--muted: 52 100% 30%; /* Kurdish yellow dark muted */
|
||||
--muted-foreground: 0 0% 98%;
|
||||
--accent: 52 100% 45%; /* Kurdish yellow dark */
|
||||
--accent-foreground: 0 0% 9%;
|
||||
--secondary-foreground: 0 0% 98%;
|
||||
--muted: 220 13% 18%; /* Subtle gray for muted backgrounds */
|
||||
--muted-foreground: 0 0% 70%; /* Light gray text for muted */
|
||||
--accent: 52 100% 50%; /* Kurdish yellow - bright for visibility */
|
||||
--accent-foreground: 0 0% 9%; /* Dark text on yellow */
|
||||
--destructive: 358 84% 52%;
|
||||
--destructive-foreground: 0 0% 98%;
|
||||
--border: 0 0% 14.9%;
|
||||
--input: 0 0% 14.9%;
|
||||
--border: 220 13% 20%;
|
||||
--input: 220 13% 18%;
|
||||
--ring: 148 100% 40%;
|
||||
--chart-1: 148 100% 40%;
|
||||
--chart-2: 358 84% 60%;
|
||||
--chart-3: 52 100% 45%;
|
||||
--chart-4: 148 100% 30%;
|
||||
--chart-5: 358 84% 50%;
|
||||
--sidebar-background: 0 0% 7%;
|
||||
--sidebar-background: 220 13% 8%;
|
||||
--sidebar-foreground: 0 0% 98%;
|
||||
--sidebar-primary: 148 100% 40%;
|
||||
--sidebar-primary-foreground: 0 0% 9%;
|
||||
--sidebar-accent: 52 100% 45%;
|
||||
--sidebar-primary-foreground: 0 0% 98%;
|
||||
--sidebar-accent: 52 100% 50%;
|
||||
--sidebar-accent-foreground: 0 0% 9%;
|
||||
--sidebar-border: 0 0% 14.9%;
|
||||
--sidebar-border: 220 13% 20%;
|
||||
--sidebar-ring: 148 100% 40%;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user