Skip to content

Commit 5e3d7dd

Browse files
committed
fix(): Use paper.
1 parent 2d7d396 commit 5e3d7dd

File tree

10 files changed

+11
-11
lines changed

10 files changed

+11
-11
lines changed

src/custom/docs/components/header/CodeCopy.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const CodeCopy = (props: {textToCopy: string, className?: string}) => {
1313
<Button
1414
variant="ghost"
1515
size="icon"
16-
className={cn(`${copied ? ' hover:bg-transparent' : 'hover:bg-background/50 hover:text-foreground/75'} ml-1`, props.className)}
16+
className={cn(`${copied ? ' hover:bg-paper' : 'hover:bg-background/50 hover:text-foreground/75'} ml-1`, props.className)}
1717
onClick={() => {
1818
window.navigator.clipboard.writeText(props.textToCopy)
1919
setHasCopied(true)

src/shadcn/ui/calendar.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function Calendar({
2727
nav: "space-x-1 flex items-center",
2828
nav_button: cn(
2929
buttonVariants({ variant: "outline" }),
30-
"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"
30+
"h-7 w-7 bg-paper p-0 opacity-50 hover:opacity-100"
3131
),
3232
nav_button_previous: "absolute left-1",
3333
nav_button_next: "absolute right-1",

src/shadcn/ui/command.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const CommandInput = React.forwardRef<
4646
<CommandPrimitive.Input
4747
ref={ref}
4848
className={cn(
49-
"flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
49+
"flex h-10 w-full rounded-md bg-paper py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
5050
className
5151
)}
5252
{...props}

src/shadcn/ui/input.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const Input = React.forwardRef<HTMLInputElement, InputProps>(
1111
<input
1212
type={type}
1313
className={cn(
14-
"flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
14+
"flex h-9 w-full rounded-md border border-input bg-paper px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-paper file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
1515
className
1616
)}
1717
ref={ref}

src/shadcn/ui/multi-select.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ const MultiSelectTrigger = React.forwardRef<
212212
data-disabled={disabled}
213213
{...props}
214214
className={cn(
215-
"flex h-full min-h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background focus:outline-none focus:ring-1 focus:ring-ring [&>span]:line-clamp-1",
215+
"flex h-full min-h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-paper px-3 py-2 text-sm shadow-sm ring-offset-background focus:outline-none focus:ring-1 focus:ring-ring [&>span]:line-clamp-1",
216216
disabled ? "cursor-not-allowed opacity-50" : "cursor-text",
217217
className
218218
)}

src/shadcn/ui/select.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const SelectTrigger = React.forwardRef<
2424
<SelectPrimitive.Trigger
2525
ref={ref}
2626
className={cn(
27-
"flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
27+
"flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-paper px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
2828
className
2929
)}
3030
{...props}

src/shadcn/ui/sidebar.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ const Sidebar = React.forwardRef<
224224
{/* This is what handles the sidebar gap on desktop */}
225225
<div
226226
className={cn(
227-
"duration-200 relative h-svh w-[--sidebar-width] bg-transparent transition-[width] ease-linear",
227+
"duration-200 relative h-svh w-[--sidebar-width] bg-paper transition-[width] ease-linear",
228228
"group-data-[collapsible=offcanvas]:w-0",
229229
"group-data-[side=right]:rotate-180",
230230
variant === "floating" || variant === "inset"

src/shadcn/ui/textarea.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(
1010
return (
1111
<textarea
1212
className={cn(
13-
"flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
13+
"flex min-h-[60px] w-full rounded-md border border-input bg-paper px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
1414
className
1515
)}
1616
ref={ref}

src/shadcn/ui/toast.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ const ToastAction = React.forwardRef<
6060
<ToastPrimitives.Action
6161
ref={ref}
6262
className={cn(
63-
"inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",
63+
"inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-paper px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",
6464
className
6565
)}
6666
{...props}

src/shadcn/ui/toggle.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ const toggleVariants = cva(
1111
{
1212
variants: {
1313
variant: {
14-
default: "bg-transparent",
14+
default: "bg-paper",
1515
outline:
16-
"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground",
16+
"border border-input bg-paper shadow-sm hover:bg-accent hover:text-accent-foreground",
1717
},
1818
size: {
1919
default: "h-9 px-3",

0 commit comments

Comments
 (0)