Skip to content

fix: fix dark mode toggle#11

Merged
devDariush merged 1 commit into
mainfrom
fix/toggle-dark-mode
Feb 17, 2026
Merged

fix: fix dark mode toggle#11
devDariush merged 1 commit into
mainfrom
fix/toggle-dark-mode

Conversation

@devDariush

Copy link
Copy Markdown
Owner

This pull request introduces improvements to the application's theme handling, specifically focusing on dark mode support and user preference persistence. The main changes involve persisting the user's dark mode selection in a cookie and enhancing dark mode styling support in the CSS.

Theme persistence and user experience:

  • Added logic in toggleTheme (in Terminal.svelte) to save the user's dark mode preference in a cookie, ensuring the preference is remembered across sessions.

Styling and dark mode support:

  • Introduced a @custom-variant dark CSS rule in layout.css to streamline dark mode styling for the application.

@devDariush devDariush self-assigned this Feb 17, 2026
@devDariush devDariush marked this pull request as ready for review February 17, 2026 23:43
Copilot AI review requested due to automatic review settings February 17, 2026 23:43
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
dariushdev-sveltekit e9e9a75 Commit Preview URL

Branch Preview URL
Feb 17 2026, 11:43 PM

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request enhances the dark mode functionality by persisting user preferences client-side and improving CSS dark mode support. The changes ensure that users' theme choices are remembered across sessions when JavaScript is enabled, complementing the existing server-side theme toggle implementation used in the NoJS mode.

Changes:

  • Added client-side cookie persistence for dark mode preference in the JS-enhanced terminal component
  • Introduced a Tailwind CSS v4 @custom-variant for dark mode styling

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/routes/Terminal.svelte Added cookie persistence when toggling theme in JS-enhanced mode
src/routes/layout.css Added custom dark variant definition for Tailwind CSS v4

Comment thread src/routes/Terminal.svelte
Comment thread src/routes/Terminal.svelte
@devDariush devDariush merged commit 8c48b4e into main Feb 17, 2026
8 checks passed
@devDariush devDariush deleted the fix/toggle-dark-mode branch February 17, 2026 23:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants