leanprover-community / leanprover-community/lean4web

bug: white flash on loading

Open
#108 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
151
Forks
62
Avg merge
21h 12m
Merged PRs (30d)
10

Description

When loading with any non-white theme, there is a white flash. In particular this is noticeable in dark mode.

Likely this is caused by the initialisation in lean4monaco (https://github.com/hhu-adam/lean4monaco/blob/main/src/leanmonaco.ts)
and might need to be addressed there.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the initialization in lean4monaco's src/leanmonaco.ts, linked from the issue, and trace how the editor loads its theme. Reproduce loading with a non-white theme, especially dark mode, and verify that the white flash no longer appears.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.