Skip to content

Commit c34db1b

Browse files
style: fix input colors
1 parent 4dffe40 commit c34db1b

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

src/components/input-prefix.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ const InputWithPrefix = React.forwardRef<
1212
InputWithPrefixProps
1313
>(({ className, type, prefix, ...props }, ref) => {
1414
return (
15-
<div className="relative">
16-
<div className="text-accent-foreground/70 bg-accent/30 pointer-events-none absolute inset-y-0 left-0 flex items-center border-r pr-2 pl-3">
15+
<div className="relative rounded-md overflow-hidden">
16+
<div className="text-accent-foreground/70 bg-accent/30 pointer-events-none absolute inset-y-0 left-0 flex items-center border-r border-input pr-2 pl-3">
1717
{prefix}
1818
</div>
1919
<Input

src/components/ui/input.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const Input = React.forwardRef<HTMLInputElement, React.ComponentProps<"input">>(
88
<input
99
type={type}
1010
className={cn(
11-
"border-input file:text-foreground placeholder:text-muted-foreground focus-visible:ring-ring flex h-9 w-full rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:ring-1 focus-visible:outline-hidden disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
11+
"border-input file:text-foreground placeholder:text-placeholder focus-visible:ring-ring flex h-9 w-full rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:ring-1 focus-visible:outline-hidden disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
1212
className,
1313
)}
1414
ref={ref}

src/index.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
--secondary-foreground: oklch(0.35 0.07 255.46);
3030
--muted: oklch(0.92 0.02 256.73);
3131
--muted-foreground: oklch(0.29 0.08 255.03);
32+
--placeholder: oklch(0.7374 0.0489 255.03);
3233
--accent: oklch(0.91 0.03 258.37);
3334
--accent-foreground: oklch(0.30 0.09 256.65);
3435
--destructive: oklch(0.51 0.19 27.08);
@@ -76,12 +77,13 @@
7677
--secondary-foreground: oklch(0.85 0.03 275.09);
7778
--muted: oklch(0.27 0.04 254.07);
7879
--muted-foreground: oklch(0.80 0.04 280.47);
80+
--placeholder: oklch(0.5623 0.04 280.47);
7981
--accent: oklch(0.35 0.04 254.63);
8082
--accent-foreground: oklch(0.96 0.01 292.80);
8183
--destructive: oklch(0.51 0.19 27.08);
8284
--destructive-foreground: oklch(1.00 0 0);
8385
--border: oklch(0.35 0.04 254.63);
84-
--input: oklch(0.24 0.03 259.05);
86+
--input: oklch(0.3961 0.03 259.05);
8587
--ring: oklch(0.47 0.16 257.42);
8688
--chart-1: oklch(0.49 0.12 267.94);
8789
--chart-2: oklch(0.56 0.19 306.86);
@@ -123,6 +125,7 @@
123125
--color-secondary-foreground: var(--secondary-foreground);
124126
--color-muted: var(--muted);
125127
--color-muted-foreground: var(--muted-foreground);
128+
--color-placeholder: var(--placeholder);
126129
--color-accent: var(--accent);
127130
--color-accent-foreground: var(--accent-foreground);
128131
--color-destructive: var(--destructive);

0 commit comments

Comments
 (0)