Skip to content

Conversation

aron5055
Copy link

@aron5055 aron5055 commented May 9, 2025

What this PR does

When appearance is set to "auto", the current implementation maps the theme to "preferred-color-scheme", which is not a valid value for the theme parameter in Utterances.

This PR updates the component to use the actual runtime color scheme from useTheme() instead. Now "auto" mode correctly resolves to either "github-dark" or "github-light" at runtime.


Why this matters

Without this fix, the Utterances comment box always defaults to its own theme, regardless of the site’s appearance. This causes inconsistency when using dark mode or switching themes.

The new behavior ensures that Utterances always aligns with the current site theme, making the comment section visually coherent.


Let me know if you'd prefer a different approach — happy to adjust!

Copy link

vercel bot commented May 9, 2025

@aron5055 is attempting to deploy a commit to the Osmium Team on Vercel.

A member of the Team first needs to authorize 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