Skip to content

Dark mode flicker — white background appears briefly before theme loads #7443

@Bhumikagarggg

Description

@Bhumikagarggg

Description

When opening the Layer5 website, there is a brief white background flash before the dark theme loads. This creates a noticeable flicker effect and impacts the perceived user experience.

This appears to be a theme initialization or CSS loading timing issue (FOUC — Flash of Unstyled Content).

Expected Behavior

The website should load directly with the correct theme background (dark mode) without any white flash.

Screenshots

Screen.Recording.2026-02-28.at.9.10.02.PM.mov

Contributor Resources and Handbook

The layer5.io website uses Gatsby, React, and GitHub Pages. Site content is found under the master branch.

Join the Layer5 Community by submitting your community member form.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions