color-management

color-management is a skill for Cursor from kws-projects/react-boilerplate. It costs 0 tokens per session (1,379 once invoked), scanned A, original, MIT.

A project guide for managing colors with shared CSS variables, including separate light and dark theme values. It explains how these values connect to Tailwind CSS classes.

In plain words
What is it for?
It is for adding or changing design-token colors, supporting light and dark themes, and using color classes such as backgrounds, text, borders, and status colors.
Why use it?
It keeps color definitions in one place and helps prevent inconsistent colors when adding, changing, or debugging a theme. Dark-mode changes can follow the same shared values.

Skill for Cursor

Written for Cursor: installed under .cursor/.

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.

agentmods
npx agentmods add skills/kws-projects/react-boilerplate/color-management
Any agent
npx skills add kws-projects/react-boilerplate --skill color-management
Clone the repo
git clone --depth 1 https://github.com/kws-projects/react-boilerplate

Made for: Cursor.

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 color-management

README.md
[![agentmods](https://agentmods.dev/badge/skills/kws-projects/react-boilerplate/color-management.svg)](https://agentmods.dev/skills/kws-projects/react-boilerplate/color-management)
Your own site
<a href="https://agentmods.dev/skills/kws-projects/react-boilerplate/color-management"><img src="https://agentmods.dev/badge/skills/kws-projects/react-boilerplate/color-management.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,379 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00000 $0.01379
Opus 5 $0.00000 $0.00690
Sonnet 5 $0.00000 $0.00276
Haiku 4.5 $0.00000 $0.00138

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

Security

Grade A, and why

color-management 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 6d 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.

.cursor/skills/color-management/SKILL.md · 139 lines

How it starts

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

Color Management

Work with the design-token color system in this project. Use when adding, changing, or debugging colors, or when the user asks about theming, design tokens, OKLCH, or "how do I use colors".

How the color system works

Colors are managed in a single file: src/index.css. There is no JS config or separate token JSON — CSS custom properties are the single source of truth.

src/index.css
  :root { --primary: oklch(...); ... }     ← light theme values
  .dark { --primary: oklch(...); ... }     ← dark theme overrides
  @theme inline { --color-primary: var(--primary); ... }  ← Tailwind bridge

The flow:

  1. :root / .dark define semantic CSS variables in OKLCH.
  2. @theme inline maps each variable to a --color-* Tailwind token.
  3. Tailwind utilities like bg-primary, text-success, border-info resolve to the CSS variables and automatically flip with dark mode.
  4. ThemeProvider toggles light / dark class on <html>.

Available tokens

Surfaces

Token Light Dark Tailwind class
background / foreground white / near-black near-black / near-white bg-background, text-foreground
card / card-foreground white / near-black dark gray / near-white bg-card, text-card-foreground
popover / popover-foreground same same bg-popover, etc.

Brand / actions

Token Tailwind class
primary / primary-foreground bg-primary, text-primary-foreground
secondary / secondary-foreground bg-secondary, etc.

Neutral helpers

Token Tailwind class
muted / muted-foreground bg-muted, text-muted-foreground
accent / accent-foreground bg-accent, etc.

Semantic status

Token Purpose Tailwind class
destructive / destructive-foreground Errors, deletions bg-destructive, text-destructive
success / success-foreground Confirmations, positive states bg-success, text-success
warning / warning-foreground Cautions, attention needed bg-warning, text-warning
info / info-foreground Informational notices bg-info, text-info

Read the full file on GitHub · 139 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. 6d ago First seen · 139 lines · 0 tokens per session scan A deb586361ab0

Subscribe to this mod's changes

color-management is a skill published in the GitHub repository kws-projects/react-boilerplate (3 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,379 tokens. 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 skills, from other repositories

ui-and-theme

Frontend/design system skill for the svelteflare monorepo. Use this whenever the user wants to build or modify UI — pages, sections, components, layouts, forms, cards, tables, dialogs, dashboards, or landing pages. Also invoke for anything theme-related: light/dark mode, custom colors, design tokens, typography, or…

pinebasedev/svelteflare · 159 tokens

frontend-design

Visual and UX design quality for interfaces: hierarchy, spacing rhythm, typographic scale, a restrained color system, layout composition, and polished states. The taste layer above frontend architecture and a11y.

byerlikaya/claude-starter-kit · 44 tokens

css-i18n

Audit and convert CSS to use logical properties for RTL/bidirectional layout support. Use when the user asks to "make CSS RTL-safe", "use logical properties", "replace left/right with start/end", "audit CSS for i18n", "CSS internationalization", "fix CSS for RTL", "convert to logical properties", or when setting up…

globalize-now/globalize-skills · 123 tokens

i18n

Flutter 국제화(i18n) 가이드라인. flutterlocalizations, intl, ARB 파일 관리, RTL 레이아웃, 복수형/성별 처리, 런타임 로캘 전환.

sonature-lab/timsquad · 50 tokens

tokens

Generates site/css/tokens.css from DESIGN-LOCK.md and brief/animation.md. Refuses to work until DESIGN-LOCK is frozen. Sole writer of tokens.css in the project.

dkadts/landing-kit-building · 40 tokens

shadcn

Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI. Provides project context, component docs, and usage examples. Applies when working with shadcn/ui, component registries, presets, --preset codes, or any project with a components.json file. Also triggers for…

ever-works/directory-web-template · 90 tokens