Skip to content

Conversation

@KhanjarSingh
Copy link

This PR enables automatic theme detection based on the user's operating system settings.

By adding:

respectPrefersColorScheme: true

he site now respects the user's system-level dark or light mode on their first visit, aligning with the “System Default” theme behavior.

✅ What’s Already Working

Theme toggle button (enabled by default)
Light/Dark mode switching
localStorage persistence
Dark mode logos configured

🔧 What’s New
Added respectPrefersColorScheme: true to automatically set theme based on OS preference

🧪 Testing

Open the site in an incognito/private window.
Change your system theme to dark/light mode.
Reload the page — it should match your OS theme automatically.

This PR enables **automatic theme detection** based on the user's operating system settings.

By adding:
```js
respectPrefersColorScheme: true
@vercel
Copy link

vercel bot commented Nov 11, 2025

@KhanjarSingh is attempting to deploy a commit to the Ionic Team on Vercel.

A member of the Team first needs to authorize it.

@KhanjarSingh
Copy link
Author

@eric-horodyski i have created a pr. I would like you to go through this and merge if you like it..

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant