Skip to content

Add persistent dark theme support#36

Open
victorhblancom-design wants to merge 1 commit into
CodeBountyOrg:mainfrom
victorhblancom-design:codex/dark-theme-support-20260529-1104
Open

Add persistent dark theme support#36
victorhblancom-design wants to merge 1 commit into
CodeBountyOrg:mainfrom
victorhblancom-design:codex/dark-theme-support-20260529-1104

Conversation

@victorhblancom-design
Copy link
Copy Markdown

Fixes #1.

Summary

  • Applies the initial theme before the stylesheet loads, using saved taskforge.theme when present and prefers-color-scheme otherwise.
  • Adds a visible header theme toggle that persists explicit light/dark choices in localStorage.
  • Moves the light/dark palette into CSS custom properties and themes form, status, item, and danger states without adding a framework.

Verification

  • node --test
  • node --check src/app.js
  • Headless Edge smoke: dark system preference on first load, toggle persistence after reload, light system preference on first load, and pre-CSS theme bootstrap order.

@codebounty-dev-bot
Copy link
Copy Markdown

⚠️ Attention Sponsor: This PR was submitted by @victorhblancom-design who has not applied for this bounty (#1). Please verify if you want to consider this contribution.

👋 Hey @victorhblancom-design: This issue has a bounty on CodeBounty! To be eligible for the reward, please sign up on CodeBounty and apply for this bounty. If you apply, your PR will be automatically associated with your application.

@codebounty-dev-bot codebounty-dev-bot Bot mentioned this pull request May 29, 2026
5 tasks
@victorhblancom-design
Copy link
Copy Markdown
Author

This is my implementation for the #1 bounty. CodeBounty could not automatically associate the application, so please consider this PR for manual sponsor review/association if eligible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add dark theme support

1 participant