styling-theming

Implement consistent theming and resolve CSS styling conflicts in React frontends.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/Whaleylaw/llm-lawyer --skill styling-theming
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: styling-theming
Source: https://github.com/Whaleylaw/llm-lawyer/tree/main/.claude/skills/styling-theming
Command: npx skills add https://github.com/Whaleylaw/llm-lawyer --skill styling-theming

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps teams implement consistent component styling and theme systems, resolve CSS cascade and specificity issues, and add reliable dark/light mode support across a React codebase.

Core Features & Use Cases

  • Theme system implementation: guidance for creating a ThemeProvider, persisting user preference, and applying theme classes or CSS variables.
  • Tailwind and CSS-in-JS support: instructions for configuring Tailwind, using dark mode variants, or adopting styled-components/CSS Modules patterns.
  • Responsive and accessibility-aware styling: recommendations for mobile-first responsive classes, testing breakpoints, and semantic color tokens.
  • Use case: convert an inconsistent component library to theme-aware components with a persistent dark-mode toggle and CSS variable fallbacks for legacy styles.

Quick Start

Add a ThemeProvider, enable Tailwind dark mode or CSS variables, add a ThemeToggle component, and verify theme persistence and component variants across screen sizes.

Frequently Asked Questions about styling-theming

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement a dark mode toggle with persistent user preference in a React app?

To implement dark mode with persistent user preference in React, add a ThemeProvider that applies theme classes or CSS variables and stores the user's selection in local storage. This ensures the chosen theme persists across sessions and applies consistently across components.

What's the best way to resolve CSS specificity and cascade conflicts in a component library?

To resolve CSS specificity and cascade conflicts in a component library, apply consistent theming using CSS variables or semantic color tokens. This establishes a single source of truth for styling, overriding fragmented legacy styles and ensuring uniform component variants.

Can I configure Tailwind dark mode variants alongside existing CSS Modules?

Yes, you can configure Tailwind dark mode variants alongside CSS Modules. Adjust your tailwind.config to enable dark mode, then apply CSS variable fallbacks within your CSS Modules to bridge legacy styles and maintain responsive layout consistency.

How do I set up mobile-first responsive layouts and test breakpoints effectively?

Set up mobile-first responsive layouts by applying responsive utility classes from frameworks like Tailwind, then verify component variants across screen sizes. Testing breakpoints effectively ensures your UI styling adapts correctly from mobile to desktop without visual regressions.

Does this theming approach work with styled-components or other CSS-in-JS libraries?

Yes, this theming approach works with styled-components and other CSS-in-JS libraries. It provides guidance for adopting CSS-in-JS patterns, allowing you to inject theme objects and apply consistent dark and light mode styles directly within your JavaScript components.