Skip to content

Commit 7020df3

Browse files
committed
More subtle Input style
1 parent 7f3994b commit 7020df3

File tree

1 file changed

+5
-5
lines changed
  • apps/webapp/app/components/primitives

1 file changed

+5
-5
lines changed

apps/webapp/app/components/primitives/Input.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { cn } from "~/utils/cn";
44
import { Icon, RenderIcon } from "./Icon";
55

66
const containerBase =
7-
"has-[:focus-visible]:outline-none has-[:focus-visible]:ring-1 has-[:focus-visible]:ring-text-link has-[:focus-visible]:ring-offset-0 has-[:focus]:border-ring has-[:focus]:outline-none has-[:focus]:ring-2 has-[:focus]:ring-ring has-[:disabled]:cursor-not-allowed has-[:disabled]:opacity-50 ring-offset-background transition cursor-text";
7+
"has-[:focus-visible]:outline-none has-[:focus-visible]:ring-1 has-[:focus-visible]:ring-charcoal-650 has-[:focus-visible]:ring-offset-0 has-[:focus]:border-ring has-[:focus]:outline-none has-[:focus]:ring-1 has-[:focus]:ring-ring has-[:disabled]:cursor-not-allowed has-[:disabled]:opacity-50 ring-offset-background transition cursor-text";
88

99
const inputBase =
1010
"h-full w-full text-text-bright bg-transparent file:border-0 file:bg-transparent file:text-base file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-0 disabled:cursor-not-allowed outline-none ring-0 border-none";
@@ -17,27 +17,27 @@ const variants = {
1717
container:
1818
"px-1 w-full h-10 rounded-[3px] border border-charcoal-800 bg-charcoal-750 hover:border-charcoal-600 hover:bg-charcoal-650",
1919
input: "px-2 text-sm",
20-
iconSize: "h-4 w-4 ml-1",
20+
iconSize: "size-4 ml-1",
2121
shortcut: "mr-1 min-w-[22px] rounded-sm py-[3px] px-[5px] text-[0.6rem] select-none",
2222
},
2323
medium: {
2424
container:
2525
"px-1 h-8 w-full rounded border border-charcoal-800 bg-charcoal-750 hover:border-charcoal-600 hover:bg-charcoal-650",
2626
input: "px-1.5 rounded text-sm",
27-
iconSize: "h-4 w-4 ml-0.5",
27+
iconSize: "size-4 ml-0.5",
2828
shortcut: "min-w-[22px] rounded-sm py-[3px] px-[5px] text-[0.6rem]",
2929
},
3030
small: {
3131
container:
3232
"px-1 h-6 w-full rounded border border-charcoal-800 bg-charcoal-750 hover:border-charcoal-600 hover:bg-charcoal-650",
3333
input: "px-1 rounded text-xs",
34-
iconSize: "h-3 w-3 ml-0.5",
34+
iconSize: "size-3 ml-0.5",
3535
shortcut: "min-w-[22px] rounded-[2px] py-px px-[3px] text-[0.5rem]",
3636
},
3737
tertiary: {
3838
container: "px-1 h-6 w-full rounded hover:bg-charcoal-750",
3939
input: "px-1 rounded text-xs",
40-
iconSize: "h-3 w-3 ml-0.5",
40+
iconSize: "size-3 ml-0.5",
4141
shortcut: "min-w-[22px] rounded-[2px] py-px px-[3px] text-[0.5rem]",
4242
},
4343
};

0 commit comments

Comments
 (0)