Skip to content

Commit

Permalink
Update card highlight
Browse files Browse the repository at this point in the history
  • Loading branch information
colebemis committed Nov 6, 2024
1 parent 47ddee7 commit f2aab15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const Card = React.forwardRef<HTMLDivElement, CardProps>(
elevation === 1 && "bg-bg shadow-sm dark:ring-0",
// Subtle top highlight to give the card more depth in dark mode
elevation === 1 &&
"relative dark:before:pointer-events-none dark:before:absolute dark:before:inset-0 dark:before:z-20 dark:before:rounded-lg dark:before:[box-shadow:inset_0_1px_var(--color-border-secondary)]",
"relative dark:2x:before:pointer-events-none dark:2x:before:absolute dark:2x:before:inset-0 dark:2x:before:z-20 dark:2x:before:rounded-lg dark:2x:before:[box-shadow:inset_0_0.5px_var(--color-border-secondary)]",
elevation === 2 && "bg-bg-overlay shadow-lg",
elevation === 3 && "bg-bg-overlay shadow-2xl",
props.tabIndex === 0 &&
Expand Down
1 change: 1 addition & 0 deletions tailwind.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ module.exports = {
screens: {
coarse: { raw: "(pointer: coarse)" },
fine: { raw: "(pointer: fine)" },
"2x": { raw: "(min-resolution: 192dpi)" },
},
fontWeight: {
semibold: "550",
Expand Down

0 comments on commit f2aab15

Please sign in to comment.