dark-mode-gen
✓Verified·Scanned 2/18/2026
This CLI tool (npx ai-dark-mode ./src/components/Card.tsx / npx ai-dark-mode ./src/components/) uses the OpenAI client to add dark mode to components. It requires the OPENAI_API_KEY env var and sends file contents to the OpenAI client (openai.chat.completions.create), resulting in external network calls.
from clawhub.ai·v186644c·59.9 KB·0 installs
Scanned from 1.0.1 at 186644c · Transparency log ↗
$ vett add clawhub.ai/lxgicstudios/dark-mode-gen
ai-dark-mode
Add dark mode support to any component or entire directory. Handles CSS variables, Tailwind dark: prefixes, and prefers-color-scheme.
Install
npm install -g ai-dark-mode
Usage
npx ai-dark-mode ./src/components/Card.tsx
# Adds dark mode to a single file
npx ai-dark-mode ./src/components/
# Adds dark mode to all components in a directory
npx ai-dark-mode ./src/components/Card.tsx --dry-run
# Preview without writing
Setup
export OPENAI_API_KEY=sk-...
Options
--dry-run- Print result without writing to disk
License
MIT