UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.
fix: update magic card styles
Dillion Vermaa58ad2ee819d
diff --git a/registry/components/example/magic-card-demo.tsx b/registry/components/example/magic-card-demo.tsxindex af23b955..9f5aa698 100644--- a/registry/components/example/magic-card-demo.tsx+++ b/registry/components/example/magic-card-demo.tsx@@ -12,13 +12,13 @@ export default function MagicCardDemo() {><MagicCardclassName="cursor-pointer flex-col items-center justify-center shadow-2xl whitespace-nowrap text-4xl"- gradientColor={theme === "dark" ? "#262626" : "#D9D9D9"}+ gradientColor={theme === "dark" ? "#262626" : "#FFBD7A55"}>Magic</MagicCard><MagicCardclassName="cursor-pointer flex-col items-center justify-center shadow-2xl whitespace-nowrap text-4xl"- gradientColor={theme === "dark" ? "#262626" : "#D9D9D9"}+ gradientColor={theme === "dark" ? "#262626" : "#9E7AFF55"}>Card</MagicCard>diff --git a/registry/components/magicui/magic-card.tsx b/registry/components/magicui/magic-card.tsxindex 27973001..80d9a061 100644--- a/registry/components/magicui/magic-card.tsx+++ b/registry/components/magicui/magic-card.tsx@@ -11,7 +11,6 @@ export interface MagicCardProps {gradientSize?: number;gradientColor?: string;gradientOpacity?: number;- gradientTransparency?: number;}export function MagicCard({@@ -19,7 +18,6 @@ export function MagicCard({className = "",gradientSize = 200,gradientColor = "#262626",- gradientTransparency = 80,}: MagicCardProps) {const mouseX = useMotionValue(0);const mouseY = useMotionValue(0);@@ -42,7 +40,7 @@ export function MagicCard({className="pointer-events-none absolute -inset-px rounded-xl opacity-0 transition duration-300 group-hover:opacity-100"style={{background: useMotionTemplate`- radial-gradient(${gradientSize}px circle at ${mouseX}px ${mouseY}px, ${gradientColor}, transparent ${gradientTransparency}%)+ radial-gradient(${gradientSize}px circle at ${mouseX}px ${mouseY}px, ${gradientColor}, transparent 100%)`,}}/>