dark-mode
Add dark mode support to components using AI. Use when building theme toggles or retrofitting dark mode.
Why use this skill?
Automate your CSS and Tailwind dark mode generation with this AI skill. Easily retrofit themes into your components with zero configuration.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/lxgicstudios/dark-modeWhat This Skill Does
The dark-mode skill is an AI-powered developer tool designed to automate the repetitive and often tedious task of retrofitting dark mode support into existing codebases. By analyzing your component files, the skill intelligently extracts color usage and style definitions to generate aesthetically pleasing, semantically correct dark mode variants. It supports modern CSS workflows including plain CSS, Tailwind CSS, and CSS-in-JS. The tool focuses on maintaining proper contrast ratios and preserving your established design system, effectively removing the manual burden of calculating inverted color palettes or writing secondary dark mode classes. Whether you are working with legacy styles or building fresh components, this skill ensures that your UI remains accessible and visually consistent across both light and dark themes.
Installation
To integrate this skill into your environment, use the OpenClaw CLI to install the package directly from the repository:
clawhub install openclaw/skills/skills/lxgicstudios/dark-mode
No additional global dependencies are required, as the underlying engine utilizes npx, making it compatible with any project running Node.js 18 or higher.
Use Cases
- Retrofitting dark mode: Quickly add theme support to an established codebase that currently lacks it.
- Design System Standardization: Ensure that new components automatically receive valid dark mode styling that adheres to your existing color tokens.
- Prototyping: Generate full theme variations during rapid iteration without spending time on manual color adjustments.
- Multi-format support: Easily switch between CSS custom properties or Tailwind-specific utility classes depending on your project's architectural needs.
Example Prompts
- "Apply dark mode support to the Card.tsx component in my UI folder and output the changes as Tailwind classes."
- "Scan the styles.css file and generate a corresponding dark-mode-vars.css file using CSS custom properties."
- "Analyze the entire src/components directory and generate dark mode variants for all components while preserving my primary theme colors."
Tips & Limitations
- Verification: Always verify accessibility compliance. While the AI optimizes for contrast, complex gradients or custom illustrations may require manual review to ensure readability.
- Depth and Elevation: Use the tool as a base, but remember that dark mode often requires changes to shadows and border styles to convey depth, which may differ from standard light mode elevation patterns.
- Design Tokens: The AI performs best when you have consistent design tokens or CSS variables defined, as it can reference these to maintain consistency across the application. If your CSS is highly hard-coded, the results may require slightly more refinement.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-lxgicstudios-dark-mode": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-read, file-write
Related Skills
script-gen
Generate package.json scripts with AI. Use when setting up npm scripts.
email-template-gen
Generate responsive email templates. Use when building transactional emails.
branch-namer
Generate descriptive git branch names from plain English. Use when you need a branch name that follows conventions.
cloudflare-gen
Generate Cloudflare Workers configuration and code. Use when building on the edge.
adr-writer
Generate Architecture Decision Records with AI. Use when documenting technical decisions.