Skip to content

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.

Notifications You must be signed in to change notification settings

DraganAleksic99/ai-toggle-mode

Repository files navigation

ai-toggle-mode

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

Quickstart

1. Clone this repository

Run the following command to clone the repo:

https://github.com/DraganAleksic99/ai-toggle-mode.git

2. Install dependencies

cd ai-toggle-mode
npm i

3. Fill out secrets

cp .env.local.example .env.local

4. Run app locally

npm run dev

Open in your browser

You can now visit http://localhost:3000.

About

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.

Topics

Resources

Stars

Watchers

Forks