Dark Mode Check
This skill checks if a chat interface is in dark mode, ensuring consistent appearance and accessibility across platforms.
Install on your platform
We auto-selected Claude Code based on this skillβs supported platforms.
Run in terminal (recommended)
claude mcp add dark-mode-check npx -- -y @trustedskills/dark-mode-check
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"dark-mode-check": {
"command": "npx",
"args": [
"-y",
"@trustedskills/dark-mode-check"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
The dark-mode-check skill allows AI agents to determine if a webpage or application is currently in dark mode. It can detect this state by inspecting CSS variables, color schemes, or other visual cues present on the page. This enables agents to adapt their behavior and responses based on the user's preferred display settings.
When to use it
- Personalized Recommendations: An agent recommending content could adjust its suggestions based on whether the user is in dark mode (e.g., suggesting darker-themed images).
- Accessibility Adjustments: An agent assisting with website navigation can adapt its instructions or descriptions based on the current color scheme.
- Automated Testing: A testing agent can verify that a web application correctly implements and switches between light and dark modes.
- Content Generation: An agent generating content (like code snippets) could adjust formatting to be more readable in either mode.
Key capabilities
- Detects dark mode status of webpages/applications
- Inspects CSS variables, color schemes, or visual cues
- Adapts behavior based on detected theme
Example prompts
- "Is this page in dark mode?"
- "Check if the current website is using a dark theme."
- βWhatβs the dominant background color of the current webpage?β
Tips & gotchas
The accuracy of detection depends heavily on how consistently the target webpage or application implements its dark mode functionality. Results may be unreliable for sites with inconsistent styling.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates β what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
π Community
Passed automated security scans.