uniapp-theme-skill

uniapp-theme-skill is a skill for Claude Code from jiushiwon/wg-skills. It costs 43 tokens per session (6,036 once invoked), scanned C, original, Apache-2.0.

A theme system for uni-app projects based on CSS variables. It defines color scales, shared sizes, spacing, heights, corners, icons, multiple themes, and replacement of hard-coded colors and dimensions.

In plain words
What is it for?
Use it to create theme color scales, standardize interface dimensions, replace hard-coded styling values, and configure several visual themes.
Why use it?
It makes repeated visual values easier to manage and supports changing the project's theme through shared variables.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Good fit Use it to create theme color scales, standardize interface dimensions, replace hard-coded styling values, and configure several visual themes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jiushiwon/wg-skills/uniapp-theme-skill
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add jiushiwon/wg-skills --skill uniapp-theme-skill
Clone the repo
git clone --depth 1 https://github.com/jiushiwon/wg-skills

Made for: Claude Code.

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 uniapp-theme-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/jiushiwon/wg-skills/uniapp-theme-skill/github.svg)](https://agentmods.dev/skills/jiushiwon/wg-skills/uniapp-theme-skill)
Your own site
<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/uniapp-theme-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/uniapp-theme-skill/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 uniapp-theme-skill

Your own site · 80×15
<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/uniapp-theme-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/uniapp-theme-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,036 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00043 $0.06036
Opus 5.5 $0.00017 $0.02414
Sonnet 5.5 $0.00009 $0.01207
Haiku 4.5 $0.00004 $0.00604

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

Security

Grade C, and why

uniapp-theme-skill scanned grade C with 1 finding 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 9d ago.

The scan reads SKILL.md. This mod also ships 5 executable files (references/theme-generator.js, templates/scripts/generate-tokens.js, templates/src/commerce-theme.ts, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf src/styles/theme/
frontend/uniapp/uniapp-theme-skill/SKILL.md · 597 lines

How it starts

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

uniapp-theme-skill

uni-app 项目主题系统引擎。

定位

本 skill 为 uni-app 项目创建完整的主题切换系统,不是简单的页面换肤。

核心能力:在项目中建立基于 CSS 变量的三维度主题系统,支持一键切换主题。

三大核心能力

维度 内容 示例变量
主题色 多主题完整色阶 50-950 --primary-500, --secondary-500, --tertiary-500
全局尺寸 字号/间距/高度/圆角/图标(静态 rpx,无 calc) --font-2xs, --space-4, --height-btn-md, --radius-sm, --icon-md
全局硬编码替换 颜色 + 尺寸,按 CSS 属性上下文分类(A/B/C/D/E) #fff → var(--text-inverse), 16rpx → var(--space-4)

边界声明

✅ 本 skill 负责

  1. 主题色阶生成与切换系统(含多主题 primary/secondary/tertiary)
  2. 尺寸阶梯系统(字号/间距/高度/圆角/图标)
  3. 全局硬编码替换(颜色 + 尺寸,按 CSS 属性上下文分类)

❌ 本 skill 不负责

能力 状态
Dark Mode 自动选择与持久化 由宿主负责;base.css 提供 data-theme="dark" 中性色预设
Z-Index 层级系统 ❌ 不做
Motion / Transition Token ❌ 不做
JS Bridge / useTheme() ❌ 不做
CLI 工具 ❌ 不做
TypeScript 类型定义 ❌ 不做
Figma / Style Dictionary 对接 ❌ 不做
A11y 对比度校验 ❌ 不做

多主题子系统

支持 primary / secondary / tertiary / quaternary / quinary 五级主题色阶,逻辑完全一致,命名统一。

:r:root {
  --primary-50: #f0fdfa;
  --primary-500: #14b8a6;
  --secondary-500: #6366f1;
  --tertiary-500: #f59e0b;
}

预设主题(8 套完整)

主题 主色 风格 适用场景
cute #FF8FB1 胶囊 女性向、宠物
business #2563EB 小圆角 金融、企业
fresh #34D399 中圆角 健康、生活
cyber #00F0FF 直角 科技、游戏
retro #D97706 小圆角 文创、手账
glass #8B5CF6 中圆角 音乐、社交
minimal #333333 小圆角 工具、效率
warm #F97316 中圆角 美食、户外

核心能力

  1. 检测主题系统:检查项目是否已有 CSS 变量主题系统
  2. 动态色阶生成:输入任意 HEX 颜色(如 #6366F1),自动生成 50-950 完整色阶(HSL 算法)
  3. 尺寸阶梯生成:自动生成字号/间距/高度/圆角/图标阶梯(静态 rpx,无 calc)
  4. 全局统一配置:一处配置,全局生效
  5. 多主题支持:primary/secondary/tertiary/quaternary/quinary 五级色阶
  6. 预设主题:内置 8 种主题(cute/business/fresh/cyber/retro/glass/minimal/warm)
  7. 一键切换:通过 data-theme 属性切换,无需重新编译
  8. 强制统一硬编码:扫描项目中所有硬编码颜色/尺寸,按 CSS 属性上下文分类替换为 CSS 变量
  9. 强制改造:如果项目已有主题系统但不符合规范,强制改造

统一命名体系

所有变量使用以下命名规范,全项目对齐:

Read the full file on GitHub · 597 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. 9d ago Changed · +9 lines f8cf55a9000f
  2. 16d ago Changed · +3 lines efc4288229f4
  3. 1mo ago Changed · +2 lines d2407875d871
  4. 1mo ago Changed · +4 lines d9e818b96d58
  5. 2mo ago First seen · 579 lines · 43 tokens per session scan C dbe48b6a7103

Subscribe to this mod's changes

uniapp-theme-skill is a skill published in the GitHub repository jiushiwon/wg-skills (154 stars, last pushed 6d ago), licensed Apache-2.0. It adds 43 tokens to every session and 6,036 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

uniapp-theme-skill compared with skills from other repositories

uniapp-theme-skill next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
uniapp-theme-skilljiushiwon/wg-skillsSkill1546d agoApache-2.0C43Claude Code
anti-slop-designsickn33/agentic-awesome-skillsSkill51ktodayMITA34Claude Code
chakra-ui-builderchakra-ui/chakra-uiSkill41ktodayMITA214Claude Code, Codex
visual-ralphYeachan-Heo/oh-my-codexSkill34ktodayMITA52Codex
prototype-webnexu-io/html-anythingSkill17k2d agoApache-2.0A24Claude Code, Codex
open-design-setupcompozy/compozySkill2.9ktodayMITA67Claude Code, Codex
frontend-visual-qadaymade/claude-code-skillsSkill1.6kyesterdayMITA94Claude Code, Codex