Bug: <main> element keep using dark color scheme in prod
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
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
openedx/frontend-app-authoring#3274 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
area/documentation status/need-triage
Difficulty 1/5 Under an hour Newbie friendliness 95/100
google-gemini/gemini-cli#29548 ·
Maintainers usually reply within 1 day
-
sdk-typescript vector-store
Difficulty 2/5 Half a day Newbie friendliness 82/100
mem0ai/mem0#7495 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day