uniapp-theme-skill

uniapp-theme-skill is a skill for Claude Code from jiushiwon/wg-skills. It costs 43 tokens per session (5,788 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 5,788 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.05788
Opus 5 $0.00022 $0.02894
Sonnet 5 $0.00009 $0.01158
Haiku 4.5 $0.00004 $0.00579

Measured 9d ago against content hash dbe48b6a7103, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, 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 4 executable files (references/theme-generator.js, templates/scripts/generate-tokens.js, templates/src/main.js, …), 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/
vibeCoding/frontend/uniapp/uniapp-theme-skill/SKILL.md · 579 lines

How it starts

The opening of the file, as written. The whole thing — 579 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) #fffvar(--text-inverse), 16rpxvar(--space-4)

边界声明

✅ 本 skill 负责

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

❌ 本 skill 不负责

能力 状态
Dark Mode 暗色模式 ❌ 不做
Z-Index 层级系统 ❌ 不做
Motion / Transition Token ❌ 不做
JS Bridge / useTheme() ❌ 不做
CLI 工具 ❌ 不做
TypeScript 类型定义 ❌ 不做
Figma / Style Dictionary 对接 ❌ 不做
A11y 对比度校验 ❌ 不做

多主题子系统

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

: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. 强制改造:如果项目已有主题系统但不符合规范,强制改造

统一命名体系

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

维度 变量格式 示例
间距 --space-{n} --space-1 (4rpx), --space-4 (16rpx)
字号 --font-{size} --font-2xs (20rpx), --font-md (28rpx)
高度 --height-{comp}-{size} --height-btn-md (72rpx)
圆角 --radius-{size} --radius-sm (8rpx), --radius-full (9999rpx)
图标 --icon-{size} --icon-xs (24rpx), --icon-md (48rpx)
颜色 --{color}-{step} --primary-500, --gray-900
语义颜色 --color-{semantic} --color-primary, --color-bg
文字颜色 --text-{level} --text-primary, --text-secondary
背景颜色 --bg-{level} --bg-page, --bg-card
边框颜色 --border-{level} --border, --border-light

Read the full file on GitHub · 579 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 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 (100 stars, last pushed 2d ago), licensed Apache-2.0. It adds 43 tokens to every session and 5,788 once invoked, about $0.0002 per session on Opus 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

Other skills, from other repositories

chakra-ui-builder

Build responsive, accessible UI components and layouts using Chakra UI v3, install or configure Chakra UI in new and existing projects, and design scalable themes using tokens, semantic tokens, recipes, and slot recipes. Use this skill whenever a user asks to build, create, or generate any UI component, page, form…

chakra-ui/chakra-ui · 214 tokens

visual-ralph

Visual Ralph orchestration for frontend UI from generated references, static references, or live URL targets, using $ultragoal with built-in visual verdict and pixel-diff evidence until the implementation matches and leaves a reproducible design system.

Yeachan-Heo/oh-my-codex · 52 tokens

frontend-ui-dark-ts

Build dark-themed React applications using Tailwind CSS with custom theming, glassmorphism effects, and Framer Motion animations. Use when creating dashboards, admin panels, or data-rich interfaces with a refined dark aesthetic.

microsoft/skills · 48 tokens

reveal-hover-effect

Build cursor-following spotlight reveals that expose a second aligned image through a soft radial mask. Use for hover-to-color, before-and-after, x-ray, material, texture, product-detail, and illustrated hero effects where a desaturated or embossed base image should remain visible while another treatment follows an…

MengTo/Skills · 66 tokens

frontend-visual-qa

Audits already-rendered web, landing-page, HTML deck/slide, browser tool/game, dashboard/admin, design-system, and desktop UIs using real-browser or native-app journeys, inspected screenshots, DOM geometry, responsive or projection viewports, and a bundled Playwright sweep. Use after UI implementation to find…

daymade/claude-code-skills · 145 tokens

prototype-web

A clickable, high-fidelity web product prototype with navigation, a hero section, feature cards, steps, social proof, and optional pricing. It is designed to resemble a finished landing page while remaining a prototype.

nexu-io/html-anything · 24 tokens