Toolverse
All skills

dark-mode-gen

by openclaw

Add dark mode support to components. Use when implementing dark theme.

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
openclaw
Category
Frontend

About this skill

Add dark mode support to components. Use when implementing dark theme.

How to use

  1. Upewnij się, że masz zainstalowany Node.js 18 lub nowszy oraz ustawioną zmienną środowiskową OPENAI_API_KEY z kluczem do API OpenAI.

  2. Uruchom narzędzie dla pojedynczego pliku komponentu, podając ścieżkę do pliku: npx ai-dark-mode ./src/components/Card.tsx. Narzędzie przeanalizuje plik, zidentyfikuje definicje kolorów i style, a następnie automatycznie doda odpowiednie warianty dla trybu ciemnego.

  3. Jeśli chcesz przetworzyć całą strukturę katalogów, podaj ścieżkę do folderu zamiast pojedynczego pliku: npx ai-dark-mode ./src/components/. Wszystkie komponenty w katalogu zostaną zaktualizowane.

  4. Przed zapisaniem zmian na dysku możesz podejrzeć proponowane zmiany, dodając flagę --dry-run: npx ai-dark-mode ./src/components/Card.tsx --dry-run. To pozwoli ci sprawdzić wynik bez modyfikacji oryginalnych plików.

  5. Po wygenerowaniu stylów dark mode przetestuj oba motywy w przeglądarce, zwracając szczególną uwagę na kontrast tekstu i czytelność. Pamiętaj, że niektóre grafiki mogą wymagać osobnych wariantów dla trybu jasnego i ciemnego.

  6. Aby uzyskać pełną listę dostępnych opcji i dodatkowych flag, uruchom npx ai-dark-mode --help.

Related skills

frontend-ui-ux

by code-yeongyu

Designer-turned-developer who crafts stunning UI/UX even without design mockups

Frontend
1884

google-official-seo-guide

by littleben

Official Google SEO guide covering search optimization, best practices, Search Console, crawling, indexing, and improving website search visibility based on official Google documentation

Frontend
101196

shadcn-ui-setup

by maneeshanif

Install and configure Shadcn/ui component library with Radix UI primitives, Aceternity UI effects, set up components, and manage the component registry. Use when adding Shadcn/ui to a Next.js project or installing specific UI components for Phase 2.

Frontend
23167

react

by lobehub

React component development guide. Use when working with React components (.tsx files), creating UI, using @lobehub/ui components, implementing routing, or building frontend features. Triggers on React component creation, modification, layout implementation, or navigation tasks.

Frontend
2058

dev-browser

by SawyerHood

Browser automation with persistent page state. Use when users ask to navigate websites, fill forms, take screenshots, extract web data, test web apps, or automate browser workflows. Trigger phrases include \

Frontend
38151

browser-automation

by browserbase

Automate web browser interactions using natural language via CLI commands. Use when the user asks to browse websites, navigate web pages, extract data from websites, take screenshots, fill forms, click buttons, or interact with web applications. Triggers include \

Frontend
21175