- Location:
sabo/src/components/ui/interactive-grid-pattern.tsx
Interactive Grid Pattern is a low-contrast, gently moving background. Use it behind hero/content blocks to add depth without pulling focus. Keep opacity subtle; disable animation if it competes with foreground content.
When to use
- Add subtle depth to hero or section backgrounds without stealing focus.
- Keep the highlight small and low-contrast for accessibility.
Usage
sabo/src/components/ui/interactive-grid-pattern.tsx
Key props
Width of each grid square in pixels.
Height of each grid square in pixels.
Array specifying horizontal and vertical square count [horizontal, vertical].
CSS classes applied to the SVG container element.
CSS classes applied to individual grid squares (rect elements).
Styling tip
- Adjust grid density and spotlight size to match your content contrast.
- Ensure text on top maintains sufficient contrast; test in light and dark modes.