HelixOverviewComponentsMapsGraphIntroductionInstallationDeriving a themeSandboxTheme builderVisual testingCortexDocsEngramActiveTraceActiveRecallActiveServicesInsightsGet in touchSource on GitHub
Loading the reference
PatternView sourceEdit in SandboxView MarkdownCopy MarkdownOpen in ClaudeOpen in CursorA quiet background drawn in lines or points: hexagons, stars, or contour lines.Also called Background pattern, Honeycomb, Hexagon grid, Starfield, Topography, and Contour lines.ExperimentalSince 0.241.0ContentImportimport'@fusion.dev/helix/pattern'Preview
API referenceRoothelix-patternA quiet background drawn in lines or points: hexagons, stars, or contour lines.
PropTypeDescriptionmotif"contours"|"hexagons"|"stars"What is drawn: hexagons where this is not given. Reflected, because the
stylesheet draws by it.
ReadTypeDescriptionwhenSettledPromise<void>Resolves a frame after the first update, when transitions are switched on.
SlotDescription(default)The content drawn over the pattern.
PartDescriptioncontentThe box holding the content, drawn over the pattern.glowThe glow that follows the pointer over hexagons.meteorA shooting star over stars.motifThe drawing, behind the content.starA bright star over stars, which twinkles.
CSS PropertyDescription--pattern-colorThe color of the lines and points. Defaults to --helix-color-border for lines and --helix-color-foreground-muted for stars in light and --helix-color-foreground in dark, which draw most of their points at a share of it.--pattern-glow-colorThe color of the glow under the pointer. Defaults to --helix-color-primary.
Custom stateDescriptionpausedThe page's motion is paused, so stars and contours hold where they are.settledSet one frame after the first render. Transitions wait for it, so an element does not animate its own arrival.
Examples
NameDescriptionContoursContour lines that drift slowly sideways behind a heading.PreviewA honeycomb behind a heading, with a glow that follows the mouse across it.StarsA night sky behind a heading: bright stars twinkle and a shooting star crosses now and then.