Skip to content

Commit 88bf2b0

Browse files
committed
adjust colors
1 parent b67df3c commit 88bf2b0

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

src/components/ui/command.tsx

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const Command = React.forwardRef<
1414
<CommandPrimitive
1515
ref={ref}
1616
className={cn(
17-
"text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md bg-background-highlight",
17+
"flex h-full w-full flex-col overflow-hidden rounded-md bg-background-highlight text-body",
1818
className
1919
)}
2020
{...props}
@@ -28,7 +28,7 @@ const CommandDialog = ({ children, ...props }: CommandDialogProps) => {
2828
return (
2929
<Dialog {...props}>
3030
<DialogContent className="overflow-hidden p-0 shadow-lg">
31-
<Command className="[&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5">
31+
<Command className="[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-disabled [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5">
3232
{children}
3333
</Command>
3434
</DialogContent>
@@ -56,7 +56,7 @@ const CommandInput = React.forwardRef<
5656
<CommandPrimitive.Input
5757
ref={ref}
5858
className={cn(
59-
"placeholder:text-muted-foreground flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none disabled:cursor-not-allowed disabled:opacity-50",
59+
"flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-disabled disabled:cursor-not-allowed disabled:opacity-50",
6060
className
6161
)}
6262
{...props}
@@ -108,7 +108,7 @@ const CommandGroup = React.forwardRef<
108108
<CommandPrimitive.Group
109109
ref={ref}
110110
className={cn(
111-
"text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",
111+
"text-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-disabled",
112112
className
113113
)}
114114
{...props}
@@ -136,7 +136,7 @@ const CommandItem = React.forwardRef<
136136
<CommandPrimitive.Item
137137
ref={ref}
138138
className={cn(
139-
"aria-selected:text-accent-foreground relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-primary-low-contrast data-[disabled='true']:pointer-events-none data-[disabled='true']:opacity-50",
139+
"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-primary-low-contrast aria-selected:text-body data-[disabled='true']:pointer-events-none data-[disabled='true']:opacity-50",
140140
className
141141
)}
142142
{...props}
@@ -151,10 +151,7 @@ const CommandShortcut = ({
151151
}: React.HTMLAttributes<HTMLSpanElement>) => {
152152
return (
153153
<span
154-
className={cn(
155-
"text-muted-foreground ml-auto text-xs tracking-widest",
156-
className
157-
)}
154+
className={cn("ml-auto text-xs tracking-widest text-disabled", className)}
158155
{...props}
159156
/>
160157
)

0 commit comments

Comments
 (0)