Skip to content

Commit 0a7337c

Browse files
committed
fix(): Add paper color to config.
1 parent 5e3d7dd commit 0a7337c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/shadcn/ui/table.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const TableHeader = React.forwardRef<
2020
HTMLTableSectionElement,
2121
React.HTMLAttributes<HTMLTableSectionElement>
2222
>(({ className, ...props }, ref) => (
23-
<thead ref={ref} className={cn("[&_tr]:border-b", className)} {...props} />
23+
<thead ref={ref} className={cn("[&_tr]:border-b bg-paper", className)} {...props} />
2424
))
2525
TableHeader.displayName = "TableHeader"
2626

@@ -30,7 +30,7 @@ const TableBody = React.forwardRef<
3030
>(({ className, ...props }, ref) => (
3131
<tbody
3232
ref={ref}
33-
className={cn("[&_tr:last-child]:border-0", className)}
33+
className={cn("[&_tr:last-child]:border-0 bg-paper", className)}
3434
{...props}
3535
/>
3636
))
@@ -88,7 +88,7 @@ const TableCell = React.forwardRef<
8888
<td
8989
ref={ref}
9090
className={cn(
91-
"p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
91+
"p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px] bg-paper",
9292
className
9393
)}
9494
{...props}

src/tailwindTheme.ts

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export const tailwindTheme = {
1818
ring: "hsl(var(--ring))",
1919
background: "hsl(var(--background))",
2020
foreground: "hsl(var(--foreground))",
21+
paper: "hsl(var(--paper))",
2122
primary: {
2223
DEFAULT: "hsl(var(--primary))",
2324
foreground: "hsl(var(--primary-foreground))",

0 commit comments

Comments
 (0)