Skip to content

Theme - Dark Mode Flicker #139

@RUKAYAT-CODER

Description

@RUKAYAT-CODER

Description

Overview
Dark mode causes flash of unstyled content (FOUC) on initial load.

Background
Theme loads after initial render.

Specifications

  • Add theme script to head
  • Use cookies for theme preference

Tasks:

  • Add theme loading script
  • Use cookie-based theme
  • Optimize theme switching

Impacted Files:

  • src/lib/theme-provider.tsx
  • src/app/layout.tsx

Labels: frontend, theme, priority-medium

Acceptance Criteria
No theme flicker

🙆Contribution Guidelines:
Assignment required before PR submission
Timeframe: 48-72 hours
PR description must include: Close #issue no
Star the repo⭐

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions