Skip to content

Commit 6514207

Browse files
committed
fix(): Use paper everywhere.
1 parent 162613c commit 6514207

18 files changed

+24
-24
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-paper' : 'hover:bg-background/50 hover:text-foreground/75'} ml-1`, props.className)}
16+
className={cn(`${copied ? ' hover:bg-paper' : 'hover:bg-paper/50 hover:text-foreground/75'} ml-1`, props.className)}
1717
onClick={() => {
1818
window.navigator.clipboard.writeText(props.textToCopy)
1919
setHasCopied(true)

src/custom/docs/components/navmenu/index.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ export const NavBar = (props: {
132132
enableModeSelector?: boolean
133133
}) => {
134134
return (
135-
<div className="bg-background text-foreground border-border sticky top-0 z-[100] w-full border-b text-sm">
136-
<div className=" bg-background px-3 md:px-4 mx-auto max-w-[90rem] flex h-14 items-center justify-between">
135+
<div className="bg-paper text-foreground border-border sticky top-0 z-[100] w-full border-b text-sm">
136+
<div className=" bg-paper px-3 md:px-4 mx-auto max-w-[90rem] flex h-14 items-center justify-between">
137137
<div className="mr-4 flex items-center">
138138
<div className='block md:hidden mr-3'>
139139
<MobileMenu {...navConfig}/>

src/custom/docs/components/triplecard/Card.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const Card = React.forwardRef<
4242
return (
4343
<div
4444
className={cn(
45-
' border-border flex w-full flex-col justify-between rounded-xl overflow-hidden border p-7 pb-9 dark:bg-muted/25 bg-background',
45+
' border-border flex w-full flex-col justify-between rounded-xl overflow-hidden border p-7 pb-9 dark:bg-muted/25 bg-paper',
4646
className
4747
)}
4848
ref={ref}

src/shadcn/ui/alert-dialog.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const AlertDialogOverlay = React.forwardRef<
1818
>(({ className, ...props }, ref) => (
1919
<AlertDialogPrimitive.Overlay
2020
className={cn(
21-
"fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
21+
"fixed inset-0 z-50 bg-paper/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
2222
className
2323
)}
2424
{...props}
@@ -36,7 +36,7 @@ const AlertDialogContent = React.forwardRef<
3636
<AlertDialogPrimitive.Content
3737
ref={ref}
3838
className={cn(
39-
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
39+
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-paper p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
4040
className
4141
)}
4242
{...props}

src/shadcn/ui/alert.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const alertVariants = cva(
88
{
99
variants: {
1010
variant: {
11-
default: "bg-background text-foreground",
11+
default: "bg-paper text-foreground",
1212
destructive:
1313
"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive",
1414
},

src/shadcn/ui/button.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const buttonVariants = cva(
1414
destructive:
1515
"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",
1616
outline:
17-
"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",
17+
"border border-input bg-paper shadow-sm hover:bg-accent hover:text-accent-foreground",
1818
secondary:
1919
"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",
2020
ghost: "hover:bg-accent hover:text-accent-foreground",

src/shadcn/ui/dialog.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const DialogOverlay = React.forwardRef<
2121
<DialogPrimitive.Overlay
2222
ref={ref}
2323
className={cn(
24-
"fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
24+
"fixed inset-0 z-50 bg-paper/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
2525
className
2626
)}
2727
{...props}
@@ -38,7 +38,7 @@ const DialogContent = React.forwardRef<
3838
<DialogPrimitive.Content
3939
ref={ref}
4040
className={cn(
41-
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
41+
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-paper p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
4242
className
4343
)}
4444
{...props}

src/shadcn/ui/drawer.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const DrawerContent = React.forwardRef<
4343
<DrawerPrimitive.Content
4444
ref={ref}
4545
className={cn(
46-
"fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",
46+
"fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-paper",
4747
className
4848
)}
4949
{...props}

src/shadcn/ui/menubar.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const Menubar = React.forwardRef<
2727
<MenubarPrimitive.Root
2828
ref={ref}
2929
className={cn(
30-
"flex h-9 items-center space-x-1 rounded-md border bg-background p-1 shadow-sm",
30+
"flex h-9 items-center space-x-1 rounded-md border bg-paper p-1 shadow-sm",
3131
className
3232
)}
3333
{...props}

src/shadcn/ui/navigation-menu.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;
4141
const NavigationMenuItem = NavigationMenuPrimitive.Item;
4242

4343
const navigationMenuTriggerStyle = cva(
44-
"group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"
44+
"group inline-flex h-9 w-max items-center justify-center rounded-md bg-paper px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"
4545
);
4646

4747
const NavigationMenuTrigger = React.forwardRef<

src/shadcn/ui/sheet.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const SheetOverlay = React.forwardRef<
2121
>(({ className, ...props }, ref) => (
2222
<SheetPrimitive.Overlay
2323
className={cn(
24-
"fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
24+
"fixed inset-0 z-50 bg-paper/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
2525
className
2626
)}
2727
{...props}
@@ -31,7 +31,7 @@ const SheetOverlay = React.forwardRef<
3131
SheetOverlay.displayName = SheetPrimitive.Overlay.displayName
3232

3333
const sheetVariants = cva(
34-
"fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
34+
"fixed z-50 gap-4 bg-paper p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
3535
{
3636
variants: {
3737
side: {

src/shadcn/ui/sidebar.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ const SidebarInset = React.forwardRef<
322322
<main
323323
ref={ref}
324324
className={cn(
325-
"relative flex min-h-svh flex-1 flex-col bg-background",
325+
"relative flex min-h-svh flex-1 flex-col bg-paper",
326326
"peer-data-[variant=inset]:min-h-[calc(100svh-theme(spacing.4))] md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",
327327
className
328328
)}
@@ -341,7 +341,7 @@ const SidebarInput = React.forwardRef<
341341
ref={ref}
342342
data-sidebar="input"
343343
className={cn(
344-
"h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",
344+
"h-8 w-full bg-paper shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",
345345
className
346346
)}
347347
{...props}
@@ -518,7 +518,7 @@ const sidebarMenuButtonVariants = cva(
518518
variant: {
519519
default: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",
520520
outline:
521-
"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]",
521+
"bg-paper shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]",
522522
},
523523
size: {
524524
default: "h-8 text-sm",

src/shadcn/ui/slider.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const Slider = React.forwardRef<
2020
<SliderPrimitive.Track className="relative h-1.5 w-full grow overflow-hidden rounded-full bg-primary/20">
2121
<SliderPrimitive.Range className="absolute h-full bg-primary" />
2222
</SliderPrimitive.Track>
23-
<SliderPrimitive.Thumb className="block h-4 w-4 rounded-full border border-primary/50 bg-background shadow transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50" />
23+
<SliderPrimitive.Thumb className="block h-4 w-4 rounded-full border border-primary/50 bg-paper shadow transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50" />
2424
</SliderPrimitive.Root>
2525
))
2626
Slider.displayName = SliderPrimitive.Root.displayName

src/shadcn/ui/sonner.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const SonnerToast = ({ theme, className, toastOptions, ...props }: Toaste
1414
...toastOptions,
1515
classNames: {
1616
toast: cn(
17-
"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",
17+
"group toast group-[.toaster]:bg-paper group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",
1818
toastOptions?.classNames?.toast
1919
),
2020
description: cn("group-[.toast]:text-muted-foreground", toastOptions?.classNames?.description),

src/shadcn/ui/switch.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const Switch = React.forwardRef<
1919
>
2020
<SwitchPrimitives.Thumb
2121
className={cn(
22-
"pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0"
22+
"pointer-events-none block h-4 w-4 rounded-full bg-paper shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0"
2323
)}
2424
/>
2525
</SwitchPrimitives.Root>

src/shadcn/ui/tabs.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const TabsTrigger = React.forwardRef<
2929
<TabsPrimitive.Trigger
3030
ref={ref}
3131
className={cn(
32-
"inline-flex items-center justify-center whitespace-nowrap rounded-md px-6 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow data-[state=inactive]:hover:brightness-50 data-[state=inactive]:dark:hover:brightness-150",
32+
"inline-flex items-center justify-center whitespace-nowrap rounded-md px-6 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-paper data-[state=active]:text-foreground data-[state=active]:shadow data-[state=inactive]:hover:brightness-50 data-[state=inactive]:dark:hover:brightness-150",
3333
className
3434
)}
3535
{...props}

src/shadcn/ui/toast.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const toastVariants = cva(
2727
{
2828
variants: {
2929
variant: {
30-
default: "border bg-background text-foreground",
30+
default: "border bg-paper text-foreground",
3131
destructive:
3232
"destructive group border-destructive bg-destructive text-destructive-foreground",
3333
},

stories/custom/docs-header.stories.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export function DocsHeaderDemo() {
1717
<CodeCopy textToCopy="pip install qnexus"></CodeCopy>
1818
<Button
1919
variant="secondary"
20-
className="-mt-px flex-grow py-[1.38rem] border-border border bg-background"
20+
className="-mt-px flex-grow py-[1.38rem] border-border border bg-paper"
2121
asChild
2222
>
2323
<a href="user_guide/sign_up.html">

0 commit comments

Comments
 (0)