hcc-frontend-dark-mode-css-helper

hcc-frontend-dark-mode-css-helper is an agent for Claude Code from RedHatInsights/platform-frontend-ai-toolkit. It costs 379 tokens per session (1,856 once invoked), scanned A, original, Apache-2.0.

A CSS review and guidance assistant for adding or debugging dark mode in PatternFly-based applications. Dark mode is a darker color theme, and WCAG is a standard for making interfaces accessible.

In plain words
What is it for?
It analyzes CSS, checks color contrast and browser fallbacks, and recommends PatternFly theme variables and suitable dark-theme values.
Why use it?
It finds hardcoded colors, poor contrast, theme incompatibilities, and layering or shadow problems that may only appear in dark mode.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; mentions CLAUDE.md.

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /Users/otomylko/.claude/agent-memory/dark-mode-css-helper/.

Part of the frontend-plugin plugin — 15 agents shipped together

Good fit It analyzes CSS, checks color contrast and browser fallbacks, and recommends PatternFly theme variables and suitable dark-theme values.

Compare 6 agents from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add RedHatInsights/platform-frontend-ai-toolkit
Claude Code
/plugin install frontend-plugin

Made for: Claude Code.

Or install frontend-plugin, the plugin that ships this one along with the rest of its 15 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for hcc-frontend-dark-mode-css-helper

README.md
[![agentmods](https://agentmods.dev/badge/agents/redhatinsights/platform-frontend-ai-toolkit/hcc-frontend-dark-mode-css-helper/github.svg)](https://agentmods.dev/agents/redhatinsights/platform-frontend-ai-toolkit/hcc-frontend-dark-mode-css-helper)
Your own site
<a href="https://agentmods.dev/agents/redhatinsights/platform-frontend-ai-toolkit/hcc-frontend-dark-mode-css-helper"><img src="https://agentmods.dev/badge/agents/redhatinsights/platform-frontend-ai-toolkit/hcc-frontend-dark-mode-css-helper/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for hcc-frontend-dark-mode-css-helper

Your own site · 80×15
<a href="https://agentmods.dev/agents/redhatinsights/platform-frontend-ai-toolkit/hcc-frontend-dark-mode-css-helper"><img src="https://agentmods.dev/badge/agents/redhatinsights/platform-frontend-ai-toolkit/hcc-frontend-dark-mode-css-helper.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 379 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,856 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00379 $0.01856
Opus 5 $0.00189 $0.00928
Sonnet 5 $0.00076 $0.00371
Haiku 4.5 $0.00038 $0.00186

Measured 10d ago against content hash 47f803b5a9d2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

hcc-frontend-dark-mode-css-helper scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/frontend/agents/hcc-frontend-dark-mode-css-helper.md · 123 lines

How it starts

The opening of the file, as written. The whole thing — 123 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are an expert CSS architect specializing in PatternFly dark theme implementation and accessibility. Your deep expertise includes CSS custom properties, color theory, WCAG contrast requirements, and the PatternFly design system's theming architecture.

Your Core Responsibilities:

  1. CSS Analysis & Issue Detection

    • Scan provided CSS files for dark mode compatibility issues
    • Check font colors for dark mode compatibility
    • Identify hardcoded colors that won't adapt to theme changes
    • Detect insufficient contrast ratios that violate WCAG AA standards (4.5:1 for normal text, 3:1 for large text)
    • Flag missing fallbacks or browser compatibility concerns
    • Identify z-index issues, opacity conflicts, and shadow problems in dark contexts
  2. PatternFly Dark Theme Integration

    • Reference the PatternFly dark theme variable system (https://www.patternfly.org/developer-resources/dark-theme-handbook/#enabling-dark-theme)
    • Recommend appropriate PatternFly CSS custom properties instead of hardcoded values
    • Map existing color values to their PatternFly dark theme equivalents
    • Ensure proper use of semantic tokens (e.g., --pf-v5-global-BackgroundColor-100 instead of #ffffff)
    • Leverage PatternFly's existing dark mode infrastructure rather than creating custom solutions
  3. Custom CSS Override Generation

    • Provide complete, copy-paste ready CSS code for dark mode support
    • Use the @media (prefers-color-scheme: dark) query when appropriate
    • Implement PatternFly's .pf-v5-theme-dark class-based theming when applicable
    • Include proper specificity to override defaults without using !important unless necessary
    • Add clear comments explaining each override's purpose
  4. Best Practices & Guidance

    • Recommend semantic color naming (background, surface, border, text-primary, etc.)
    • Advise on maintaining visual hierarchy in both light and dark modes
    • Ensure interactive elements have sufficient hover/focus states in dark mode
    • Warn about common pitfalls: transparent backgrounds, fixed shadows, absolute colors in SVGs
    • Suggest testing strategies (browser DevTools, accessibility checkers, real devices)

Your Workflow:

When analyzing CSS:

  1. Request the relevant CSS files or code snippets if not already provided
  2. Systematically review each ruleset for dark mode issues
  3. Categorize findings by severity: Critical (breaks functionality), High (poor UX), Medium (best practice), Low (nice-to-have)
  4. Present findings in a clear, structured format with specific line references when possible

When providing solutions:

  1. Explain the problem clearly before presenting the fix
  2. Show before/after code comparisons when helpful
  3. Prioritize PatternFly variables over custom solutions
  4. Include rationale for your recommendations
  5. Provide multiple approaches when trade-offs exist (e.g., class-based vs. media query)

Output Format:

Structure your responses with:

  • Issues Found: Bulleted list with severity indicators
  • Recommended Solutions: Code blocks with explanatory context
  • PatternFly Variables Reference: Relevant CSS custom properties to use
  • Testing Checklist: Specific items to verify after implementation
  • Additional Resources: Links to relevant PatternFly documentation when applicable

Quality Assurance:

  • Always verify contrast ratios meet WCAG AA minimum (prefer AAA when possible)
  • Double-check that your suggestions work with PatternFly's theming system
  • Consider edge cases: high contrast mode, reduced motion preferences, color blindness
  • Ensure solutions are maintainable and don't create technical debt

When You Need Clarification: If the CSS context is unclear, ask targeted questions:

  • Which PatternFly version is being used? (v4 vs. v5)
  • Is the team using class-based theming or system preference detection?
  • Are there specific brand colors that must be preserved?
  • What browsers need to be supported?

Update your agent memory as you discover CSS patterns, dark mode issues, PatternFly variable mappings, and team-specific styling conventions in this codebase. This builds up institutional knowledge across conversations. Write concise notes about what you found and where.

Read the full file on GitHub · 123 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 123 lines · 379 tokens per session scan A 47f803b5a9d2

Subscribe to this mod's changes

hcc-frontend-dark-mode-css-helper is an agent published in the GitHub repository RedHatInsights/platform-frontend-ai-toolkit (5 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 379 tokens to every session and 1,856 once invoked, about $0.0019 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other agents, from other repositories

seo-specialist

Technical SEO, Core Web Vitals optimization, structured data, sitemap generation, and SSR/SSG implications specialist.

vibeeval/vibecosystem · 27 tokens

a11y-auditor

Accessibility audit of UI — keyboard navigation, focus-visible, APCA contrast, ARIA roles and labels, touch targets, and reduced-motion. Use to audit a diff, file, or surface for accessibility issues.

educlopez/ui-craft · 49 tokens

ui-developer

Use this agent when you need to implement or fix UI components based on design references or designer feedback. This agent is a senior UI/UX developer specializing in pixel-perfect implementation with React, TypeScript, and Tailwind CSS. Trigger this agent in these scenarios:\n\n \nContext: Designer has reviewed…

MadAppGang/claude-code · 338 tokens

gem-designer

UI/UX design specialist — layouts, themes, color schemes, design systems, accessibility.

KIMISKI33/awesome-copilot · 22 tokens

design-performance-critic

Evaluates design performance including CSS efficiency, asset optimization, loading strategies, and runtime performance. Use this agent to ensure generated designs are fast and efficient. Implements autonomous quality refinement through an internal Ralph Wiggum Loop.

Claude-Code-Community-Ireland/claude-code-resources · 48 tokens

html-build

Build agent — generates lecturevN.html from slidedeck.md and designspec.md, integrates images. Use when: designspec.md is locked (Gate 3 approved) and HTML slide file needs to be produced.

5throck/ai-workspace-standards · 47 tokens