Frontend Theming

Use when the user asks to set up dark mode with CSS variables, light/dark themes, prefers-color-scheme, a theme toggle without flash, color-scheme, light-dark() or multi-brand themes. Produces theme tokens as custom properties and a switching mechanism. Not for token tiers in a component library (use frontend-design-system).

45 stars 6 forksFrontend & Design

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add j4flmao/agent-skills --skill frontend-theming
Manual install
git clone --depth 1 https://github.com/j4flmao/agent-skills.git /tmp/agent-skills
mkdir -p ~/.claude/skills
cp -r /tmp/agent-skills/skills/frontend/universal/theming ~/.claude/skills/frontend-theming

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# Frontend Theming

**Description:** Implements theming — design tokens, theme definitions (light/dark), switching strategy, framework integration, and persistence. Triggered by "theming", "dark mode", "light mode", "theme switching", "CSS variables", "custom properties", "theme provider", "theme context", "color scheme", "prefers-color-scheme", "theme toggle", "design tokens".

**Version:** 2.0.0
**Author:** j4flmao
**License:** MIT

---

## Purpose

Deliver a robust, flicker-free theming system that supports light and dark modes — using CSS custom properties for design tokens, with OS preference detection, manual toggle, and SSR-safe persistence.

---

## Agent Protocol

### Trigger
User request includes any of: "theming", "dark mode", "light mode", "theme switching", "CSS variables", "custom properties", "theme provider", "theme context", "color scheme", "prefers-color-scheme", "theme toggle", "design tokens".

### Input Context
- Framework (React, Vue, Svelte, vanilla, Tailwind)
- Existing styling approach (CSS modules, styled-components, Tailwind)
- SSR / SSG setup (Next.js, Nuxt, SvelteKit)
- Design token requirements (colors, spacing, typography)

### Output Artifact
Theme system with CSS variables, switching logic, and persistence.

### Response Format
Read the full skill on GitHub

Details

Skill name
frontend-theming
Path
skills/frontend/universal/theming/SKILL.md
License
MIT
Repo updated
17 November 2026

FAQ

What does the Frontend Theming skill do?

Use when the user asks to set up dark mode with CSS variables, light/dark themes, prefers-color-scheme, a theme toggle without flash, color-scheme, light-dark() or multi-brand themes. Produces theme tokens as custom properties and a switching mechanism. Not for token tiers in a component library (use frontend-design-system).

How do I install the Frontend Theming skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add j4flmao/agent-skills --skill frontend-theming. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Frontend Theming popular?

It lives in j4flmao/agent-skills, which has 45 GitHub stars and 6 forks.

Related skills

Agent Observability

45

j4flmao/agent-skills

Use when the user asks about agent observability, tracing agent reasoning, debugging an agent loop, OpenTelemetry GenAI spans for LLM calls, LLM cost tracking per agent, agent audit logs or hallucination/eval monitoring in production. Produces instrumentation config, trace schema, dashboards, alerts and cost attribution. Not for generic service tracing without LLMs (use devops-opentelemetry).

DevOps & Cloud

AI Agent Architectures

45

j4flmao/agent-skills

Use when the user asks to build an AI agent, design an agent that calls tools and keeps memory, write an agent system prompt or pick an agent framework (Claude Agent SDK, OpenAI Agents SDK, LangGraph). Produces an architecture brief covering loop, tools, memory, guardrails and evals, routing depth to child skills. Not for workflow patterns (use ai-agentic-workflows).

AI, LLMs & Agents

AI Agent Core Loop

45

j4flmao/agent-skills

Use when the user asks about the agent loop, ReAct vs plan-and-solve, re-planning, Reflexion, an agent stuck in a loop, max iterations or termination conditions. Produces a loop spec or patch with state, success predicate, caps and no-progress detection. Not for overall agent design (use ai-agent-architectures) or tool schemas (use tool-calling-principles).

AI, LLMs & Agents

Frontend Vue Patterns

45

j4flmao/agent-skills

Use when the user asks about Vue composables, provide/inject, Vue reactivity pitfalls, custom directives, Vue Router guards and lazy routes, Pinia setup stores, renderless components or scoped slots. Produces reusable Vue 3 patterns. Not for overall Vue project structure (use vue-architecture).

Frontend & Design

Frontend Tailwind CSS

45

j4flmao/agent-skills

Use when the user asks to configure Tailwind v4 theme tokens, @theme, migrating tailwind.config from v3, utility classes, responsive and dark variants, @apply, plugins or class sorting. Produces Tailwind setup and token configuration. Not for choosing a styling approach (use frontend-css-strategy) or token tiers in a component library (use frontend-design-system).

Frontend & Design

Frontend Web Components

45

j4flmao/agent-skills

Use when the user asks about custom elements, shadow DOM, slots and templates, ElementInternals, form-associated elements, declarative shadow DOM or framework-free cross-framework components. Produces standards-based web components. Not for Lit (use frontend-lit) or Stencil (use stencil).

Frontend & Design

Browse the most popular Claude skills, all frontend & design skills, or write your own with the skills generator.