Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Bug: <main> element keep using dark color scheme in prod

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

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
tailwindcss, typescript
Domain
frontend, web-dev

Research direction

Compare the production and development builds around the

element and the --ifm-color-scheme override described in the issue. Reproduce the light/dark toggle in production and trace which color-scheme value is applied; done when switches correctly in the production build as it does in development.

Written by the indexing model from the issue text.

Description

toggling light/dark mode is working just fine but the <main> tag keep using color-scheme dark.

already tried to override --ifm-color-scheme to light in :root and dark in [data-theme="dark"] still doesn't work.

but any tailwind dark color could toggle just fine, my guess is infima is trying to apply from another variable, but i cant seem to find it.

Note: this is happen only in production, in development it works just fine, the main tag could toggle between light/dark color-scheme.

Dominant language
TypeScript
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Getting set up

We have not checked this project's setup files yet. Start from its README, and see our first-contribution guide for the general steps.

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.

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.