MCPcopy Create free account
hub / github.com/arctic-cli/interface / GridBackground

Function GridBackground

packages/web/components/ui/grid-background.tsx:6–34  ·  view source on GitHub ↗
({ children, className }: GridBackgroundProps)

Source from the content-addressed store, hash-verified

4}
5
6export function GridBackground({ children, className }: GridBackgroundProps) {
7 return (
8 <div className={className}>
9 <div
10 className="absolute inset-0 dark:hidden"
11 style={{
12 backgroundImage:
13 "linear-gradient(oklch(from var(--foreground) l c h / 0.06) 1px, transparent 1px), linear-gradient(90deg, oklch(from var(--foreground) l c h / 0.06) 1px, transparent 1px)",
14 backgroundSize: "40px 40px",
15 maskImage: "radial-gradient(ellipse 60% 22% at 50% 24%, black 0%, transparent 100%)",
16 WebkitMaskImage: "radial-gradient(ellipse 60% 22% at 50% 24%, black 0%, transparent 100%)",
17 }}
18 />
19
20 <div
21 className="absolute inset-0 hidden dark:block"
22 style={{
23 backgroundImage:
24 "linear-gradient(oklch(from var(--foreground) l c h / 0.03) 1px, transparent 1px), linear-gradient(90deg, oklch(from var(--foreground) l c h / 0.03) 1px, transparent 1px)",
25 backgroundSize: "40px 40px",
26 maskImage: "radial-gradient(ellipse 60% 22% at 50% 24%, black 0%, transparent 100%)",
27 WebkitMaskImage: "radial-gradient(ellipse 60% 22% at 50% 24%, black 0%, transparent 100%)",
28 }}
29 />
30
31 <div className="relative">{children}</div>
32 </div>
33 )
34}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected