Skip to content

Replace theme toggle icons with Tabler icons#52

Merged
steve8708 merged 1 commit intomainfrom
ai_main_4d30b1baf9c0
Mar 18, 2026
Merged

Replace theme toggle icons with Tabler icons#52
steve8708 merged 1 commit intomainfrom
ai_main_4d30b1baf9c0

Conversation

@steve8708
Copy link
Contributor

@steve8708 steve8708 commented Mar 18, 2026

Summary

Replaces the Unicode character-based dark/light mode toggle icons in the docs site with proper Tabler icons (IconSun and IconMoon).

Problem

The docs site's theme toggle was using raw Unicode characters (☀ and ☾) for the light and dark mode icons, which were visually inconsistent with the rest of the UI that uses Tabler icons.

Solution

Added the @tabler/icons-react package to the docs site and swapped the Unicode characters in ThemeToggle.tsx with the IconSun and IconMoon Tabler icon components.

Key Changes

  • Added @tabler/icons-react@^3.40.0 as a dependency in packages/docs/package.json
  • Imported IconSun and IconMoon from @tabler/icons-react in ThemeToggle.tsx
  • Replaced Unicode sun (\u2600) and moon (\u263E) characters with <IconSun size={16} stroke={1.5} /> and <IconMoon size={16} stroke={1.5} /> respectively
  • Updated pnpm-lock.yaml to reflect the new dependency

Edit in Builder  Preview


To clone this PR locally use the Github CLI with command gh pr checkout 52

You can tag me at @BuilderIO for anything you want me to fix or change

- Install @tabler/icons-react in docs package
- Replace unicode sun/moon characters with IconSun/IconMoon from tabler
- Maintain same button sizing, styling, and toggle logic
@netlify
Copy link

netlify bot commented Mar 18, 2026

Deploy Preview for agent-native-fw ready!

Name Link
🔨 Latest commit 9145f17
🔍 Latest deploy log https://app.netlify.com/projects/agent-native-fw/deploys/69babc3d05dc38000857e291
😎 Deploy Preview https://deploy-preview-52--agent-native-fw.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@steve8708 steve8708 enabled auto-merge March 18, 2026 14:52
@steve8708 steve8708 merged commit 66cb346 into main Mar 18, 2026
8 checks passed
@steve8708 steve8708 deleted the ai_main_4d30b1baf9c0 branch March 18, 2026 14:54
@builder-io-integration builder-io-integration bot changed the title Update from the Builder.io agent Replace theme toggle icons with Tabler icons Mar 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants