Set the light/dark/system mode by simply typing the mode you want, e.g. ‘dark mode’, in the chat. The prompt executes client-side tool implemented with Vercel AI SDK
toggle-mode.mp4
Run the following command to clone the repo:
https://github.com/DraganAleksic99/ai-toggle-mode.git
cd ai-toggle-mode
npm i
cp .env.local.example .env.local
npm run dev
You can now visit http://localhost:3000.