Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add theme toggle to header #103

Merged
merged 3 commits into from
Dec 7, 2023
Merged

feat: add theme toggle to header #103

merged 3 commits into from
Dec 7, 2023

Conversation

JoshuaKGoldberg
Copy link
Owner

@JoshuaKGoldberg JoshuaKGoldberg commented Nov 5, 2023

PR Checklist

Overview

Adds a ThemeToggle.astro with an inline script to set the <html> element's class name. Based on https://docs.astro.build/en/tutorial/6-islands/2/#add-client-side-interactivity.

Note that it's getting messed up by ... something. Current running theory is view transitions: https://discord.com/channels/830184174198718474/1170789155182223360.

Copy link

vercel bot commented Nov 5, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
joshuakgoldberg-dot-com ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 7, 2023 4:14pm

@JoshuaKGoldberg JoshuaKGoldberg marked this pull request as ready for review December 7, 2023 16:15
@JoshuaKGoldberg JoshuaKGoldberg merged commit 6e02671 into main Dec 7, 2023
11 checks passed
@JoshuaKGoldberg JoshuaKGoldberg deleted the theme-toggle branch December 7, 2023 16:17
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.

🚀 Feature: Light/dark mode toggle
1 participant