Bug: <main> element keep using dark color scheme in prod
- Dominant language
- TypeScript
- Stars
- 1
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
toggling light/dark mode is working just fine but the \ 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.
Contributor guide
No contributing guide indexed for this repository
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.
Assessment
- Tech stack
- tailwindcss, typescript
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100