mirror of
https://github.com/walkxcode/dashboard-icons.git
synced 2025-11-08 12:38:57 +01:00
feat(web): add magic gradient color variable to globals.css
This commit is contained in:
@@ -95,7 +95,7 @@ export function MagicCard({
|
||||
className="pointer-events-none absolute inset-px rounded-[inherit] opacity-0 transition-opacity duration-300 group-hover:opacity-100"
|
||||
style={{
|
||||
background: useMotionTemplate`
|
||||
radial-gradient(${gradientSize}px circle at ${mouseX}px ${mouseY}px, ${gradientColor}, transparent 100%)
|
||||
radial-gradient(${gradientSize}px circle at ${mouseX}px ${mouseY}px, var(--magic-gradient-color, ${gradientColor}), transparent 100%)
|
||||
`,
|
||||
opacity: gradientOpacity,
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user