fix: enable dark mode support on Courses page #591
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR fixes the issue where the Courses page did not properly respond to the dark mode toggle in the navbar.
By defining the correct CSS variables for
[data-theme='dark']
, the page now automatically adapts when the theme is switched.Fixes #581
Type of Change
Changes Made
courses.css
dark theme block to include proper values for:--courses-bg-primary
,--courses-bg-secondary
,--courses-bg-tertiary
)--courses-text-primary
,--courses-text-secondary
,--courses-text-muted
)--courses-border
,--courses-shadow
, etc.)--dark-*
variables.var(--courses-*)
references in components now switch styles correctly with the navbar toggle.Dependencies
Checklist
npm run build
successfully and verified the Courses page works in both dark and light mode.before :
Recording.2025-09-23.191943.mp4
after :
Recording.2025-09-23.192024.mp4