[PR #6416] [MERGED] docs: change theme toggle #32251

Closed
opened 2026-04-17 23:05:41 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/6416
Author: @Bekacru
Created: 11/30/2025
Status: Merged
Merged: 11/30/2025
Merged by: @Bekacru

Base: canaryHead: docs/change-theme


📝 Commits (1)

  • a484bdf docs: change theme toggler

📊 Changes

1 file changed (+136 additions, -5 deletions)

View changed files

📝 docs/components/theme-toggler.tsx (+136 -5)

📄 Description

Summary by cubic

Reworked the docs theme toggle to use animated inline SVG icons with conditional rendering based on the current theme. Removes lucide-react icons from this component and slightly tweaks button styling; theme switching behavior is unchanged.

  • Refactors
    • Replaced Sun/Moon icons with custom inline SVGs (animated sun for light, moon for dark).
    • Read theme from useTheme to pick the correct visual state.
    • Simplified button classes and kept the existing aria-label.

Written for commit a484bdffa4. Summary will update automatically on new commits.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/6416 **Author:** [@Bekacru](https://github.com/Bekacru) **Created:** 11/30/2025 **Status:** ✅ Merged **Merged:** 11/30/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `canary` ← **Head:** `docs/change-theme` --- ### 📝 Commits (1) - [`a484bdf`](https://github.com/better-auth/better-auth/commit/a484bdffa4c41a40dadbd7cd92e7f65d3aa3d7bd) docs: change theme toggler ### 📊 Changes **1 file changed** (+136 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `docs/components/theme-toggler.tsx` (+136 -5) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Reworked the docs theme toggle to use animated inline SVG icons with conditional rendering based on the current theme. Removes lucide-react icons from this component and slightly tweaks button styling; theme switching behavior is unchanged. - **Refactors** - Replaced Sun/Moon icons with custom inline SVGs (animated sun for light, moon for dark). - Read theme from useTheme to pick the correct visual state. - Simplified button classes and kept the existing aria-label. <sup>Written for commit a484bdffa4c41a40dadbd7cd92e7f65d3aa3d7bd. Summary will update automatically on new commits.</sup> <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-17 23:05:41 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#32251