Shiro

From Slackmessages...toGitHubpull requests

Your AI coding agent that turns your slack discussions into code contributions

Just tag @Shiro on Slack...
Dev
DevYesterday at 9:07 PM
hey
@Shiro
add a light mode toggle to my nextjs app (currently dark themed) at ShadowDawg/p1. Keep in mind best practices and the use of client/server components
👍1
Shiro
ShiroAPPYesterday at 9:08 PM

Sure! I'll add a light mode toggle to your Next.js app. Here's how I am going to do it:

  1. Create a theme provider under src/contexts/theme-context.tsx
  2. Add a theme toggle button in src/components/ThemeToggle.tsx
  3. Implement theme switching in src/app/page.tsx
and get pinged to a beautiful PR

Add Theme Context and Global State for Theme Toggle #4

OpenShiro wants to merge 1 commit into main from feature/light-mode-toggle
Conversation1
Commits3
Files changed3
Shiro
Shirobot16 hours ago

This PR introduces a ThemeContext to manage light and dark themes in the Next.js app. It includes a ThemeProvider to allow components to access the theme state and toggle between themes, with persistence through localStorage.