The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Add `drop-shadow-card-hover` to tailwind.config.ts
Tim Wilson84b1113f9b9d
diff --git a/apps/web/ui/domains/domain-card.tsx b/apps/web/ui/domains/domain-card.tsxindex ec82ee075b..4f8cbd5d24 100644--- a/apps/web/ui/domains/domain-card.tsx+++ b/apps/web/ui/domains/domain-card.tsx@@ -97,7 +97,7 @@ export default function DomainCard({ props }: { props: DomainProps }) {<><divref={domainRef}- className="group rounded-xl border border-gray-200 bg-white p-4 transition-[filter] hover:[filter:drop-shadow(0_8px_12px_#222A350d)_drop-shadow(0_32px_80px_#2f30370f)] sm:p-5"+ className="hover:drop-shadow-card-hover group rounded-xl border border-gray-200 bg-white p-4 transition-[filter] sm:p-5"onPointerEnter={() => setGroupHover(true)}onPointerLeave={() => setGroupHover(false)}>diff --git a/apps/web/ui/oauth-apps/integration-card.tsx b/apps/web/ui/oauth-apps/integration-card.tsxindex d3172c2782..aa3e297b33 100644--- a/apps/web/ui/oauth-apps/integration-card.tsx+++ b/apps/web/ui/oauth-apps/integration-card.tsx@@ -18,7 +18,7 @@ export default function IntegrationCard(return (<Linkhref={`/${slug}/settings/integrations/${integration.slug}`}- className="relative rounded-xl border border-gray-200 bg-white px-5 py-4 transition-[filter] hover:[filter:drop-shadow(0_8px_12px_#222A350d)_drop-shadow(0_32px_80px_#2f30370f)]"+ className="hover:drop-shadow-card-hover relative rounded-xl border border-gray-200 bg-white px-5 py-4 transition-[filter]">{installed && (<p className="absolute right-4 top-4 text-xs text-gray-500">diff --git a/apps/web/ui/oauth-apps/oauth-app-card.tsx b/apps/web/ui/oauth-apps/oauth-app-card.tsxindex 9e8aca4fa9..54005da16c 100644--- a/apps/web/ui/oauth-apps/oauth-app-card.tsx+++ b/apps/web/ui/oauth-apps/oauth-app-card.tsx@@ -10,7 +10,7 @@ export default function OAuthAppCard(oAuthApp: OAuthAppProps) {return (<Linkhref={`/${slug}/settings/oauth-apps/${oAuthApp.id}`}- className="relative rounded-xl border border-gray-200 bg-white px-5 py-4 transition-[filter] hover:[filter:drop-shadow(0_8px_12px_#222A350d)_drop-shadow(0_32px_80px_#2f30370f)]"+ className="hover:drop-shadow-card-hover relative rounded-xl border border-gray-200 bg-white px-5 py-4 transition-[filter]"><div className="flex items-center gap-x-3"><div className="rounded-md border border-gray-200 bg-gradient-to-t from-gray-100 p-2.5">diff --git a/packages/tailwind-config/tailwind.config.ts b/packages/tailwind-config/tailwind.config.tsindex eed761e0ce..52430fb8fd 100644--- a/packages/tailwind-config/tailwind.config.ts+++ b/packages/tailwind-config/tailwind.config.ts@@ -174,6 +174,9 @@ const config: Config = {900: "#43302b",},},+ dropShadow: {+ "card-hover": ["0 8px 12px #222A350d", "0 32px 80px #2f30370f"],+ },},},plugins: [forms, typography, scrollbarHide, radix],diff --git a/packages/ui/src/card-list/card-list-card.tsx b/packages/ui/src/card-list/card-list-card.tsxindex afe84cd6ed..98f484695f 100644--- a/packages/ui/src/card-list/card-list-card.tsx+++ b/packages/ui/src/card-list/card-list-card.tsx@@ -16,7 +16,7 @@ const cardListCardVariants = cva("w-full group/card border-gray-200 bg-white", {compact:"first-of-type:rounded-t-xl last-of-type:rounded-b-xl first-of-type:border-t border-b border-x hover:bg-gray-50 transition-colors",loose:- "border rounded-xl transition-[filter] hover:[filter:drop-shadow(0_8px_12px_#222A350d)_drop-shadow(0_32px_80px_#2f30370f)]",+ "border rounded-xl transition-[filter] hover:drop-shadow-card-hover",},},});