Skip to content

UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.

fix: change the color of the dots from tailwind classes (#808)

Arghya Dasfb0205d7676e
diff --git a/apps/www/registry/magicui/dot-pattern.tsx b/apps/www/registry/magicui/dot-pattern.tsx
index f115a134..b3f08acd 100644
--- a/apps/www/registry/magicui/dot-pattern.tsx
+++ b/apps/www/registry/magicui/dot-pattern.tsx
@@ -112,7 +112,7 @@ export function DotPattern({
ref={containerRef}
aria-hidden="true"
className={cn(
- "pointer-events-none absolute inset-0 h-full w-full",
+ "pointer-events-none absolute inset-0 h-full w-full text-neutral-400/80",
className,
)}
{...props}
@@ -130,7 +130,6 @@ export function DotPattern({
cy={dot.y}
r={cr}
fill={glow ? `url(#${id}-gradient)` : "currentColor"}
- className="text-neutral-400/80"
initial={glow ? { opacity: 0.4, scale: 1 } : {}}
animate={
glow