Implement dark/light mode theme toggle for WHO FHIR IG template#41
Implement dark/light mode theme toggle for WHO FHIR IG template#41
Conversation
|
@litlfred 👋 This repository doesn't have Copilot instructions. With Copilot instructions, I can understand the repository better, work faster and produce higher quality PRs. I can generate a .github/copilot-instructions.md file for you automatically. Click here to open a pre-filled issue and assign it to me. I'll write the instructions, and then tag you for review. |
Co-authored-by: litlfred <662242+litlfred@users.noreply.github.com>
|
please put js in its own file and call it as is done with this: <script src="assets/js/feedback.js"></script>ensure the javascript is using same javascript conventions/style. keep it as lightweight as possible and use minimial or no external libraries. |
…tions Co-authored-by: litlfred <662242+litlfred@users.noreply.github.com>
... I've moved the JavaScript to its own file following the repository conventions. The theme toggle functionality is now in Changes made in commit cd4e45d:
|
Key Features Completed
theme-toggle.jsfile following repository conventions and style guidelinesImplementation Details
The solution uses CSS custom properties for theming and follows existing JavaScript patterns:
[data-theme="dark"]attribute on document rootfeedback.jsAll functionality maintains backwards compatibility while providing a clean, maintainable architecture.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.