Skip to content

Commit

Permalink
fix(): Add paper color to config.
Browse files Browse the repository at this point in the history
  • Loading branch information
aidanCQ committed Dec 11, 2024
1 parent 5e3d7dd commit 0a7337c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/shadcn/ui/table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const TableHeader = React.forwardRef<
HTMLTableSectionElement,
React.HTMLAttributes<HTMLTableSectionElement>
>(({ className, ...props }, ref) => (
<thead ref={ref} className={cn("[&_tr]:border-b", className)} {...props} />
<thead ref={ref} className={cn("[&_tr]:border-b bg-paper", className)} {...props} />
))
TableHeader.displayName = "TableHeader"

Expand All @@ -30,7 +30,7 @@ const TableBody = React.forwardRef<
>(({ className, ...props }, ref) => (
<tbody
ref={ref}
className={cn("[&_tr:last-child]:border-0", className)}
className={cn("[&_tr:last-child]:border-0 bg-paper", className)}
{...props}
/>
))
Expand Down Expand Up @@ -88,7 +88,7 @@ const TableCell = React.forwardRef<
<td
ref={ref}
className={cn(
"p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
"p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px] bg-paper",
className
)}
{...props}
Expand Down
1 change: 1 addition & 0 deletions src/tailwindTheme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export const tailwindTheme = {
ring: "hsl(var(--ring))",
background: "hsl(var(--background))",
foreground: "hsl(var(--foreground))",
paper: "hsl(var(--paper))",
primary: {
DEFAULT: "hsl(var(--primary))",
foreground: "hsl(var(--primary-foreground))",
Expand Down

0 comments on commit 0a7337c

Please sign in to comment.