.claude/skills/audit-tokens/SKILL.md
Find hardcoded hex/rgb/hsl colors in frontend files that should be using CSS variable tokens (bg-background, text-foreground, etc.). Use after UI changes and during design-system audits.
npx skillsauth add malhajri07/real-estate-CRM-project audit-tokensInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Per ADR 003, all colors come from CSS variable tokens defined in apps/web/src/index.css (HSL emerald hue 160). Hardcoded colors break dark mode and theme consistency.
#fff, #10b981, #22c55e, etc.rgb(...), rgba(...), hsl(...) literalsbg-emerald-500, text-red-600, border-gray-300, etc.style={{ color: '...' }}bg-background, text-foreground, text-muted-foreground, bg-card, bg-primary, text-primary-foreground, border-border, bg-destructive, text-destructive, bg-warning, etc.bg-[hsl(var(--warning)/0.3)]apps/web/src/index.css (the source of truth)#[0-9a-fA-F]{3,8} in apps/web/src/**/*.{tsx,ts,css}rgb(, rgba(, hsl( literals (excluding var(--...) references)(bg|text|border|ring|fill|stroke)-(red|green|blue|yellow|emerald|amber|gray|slate|...)-\d+index.css itselftests/ (test fixtures may use hardcoded values)bg-emerald-500 → bg-primarytext-red-600 → text-destructivebg-gray-50 → bg-mutedborder-gray-200 → border-borderindex.css excludedhsl(0 72% 51%) (softened from default 84% saturation)testing
Create and edit Obsidian Flavored Markdown with wikilinks, embeds, callouts, properties, and other Obsidian-specific syntax. Use when working with .md files in Obsidian, or when the user mentions wikilinks, callouts, frontmatter, tags, embeds, or Obsidian notes.
tools
Interact with Obsidian vaults using the Obsidian CLI to read, create, search, and manage notes, tasks, properties, and more. Also supports plugin and theme development with commands to reload plugins, run JavaScript, capture errors, take screenshots, and inspect the DOM. Use when the user asks to interact with their Obsidian vault, manage notes, search vault content, perform vault operations from the command line, or develop and debug Obsidian plugins and themes.
data-ai
Create and edit Obsidian Bases (.base files) with views, filters, formulas, and summaries. Use when working with .base files, creating database-like views of notes, or when the user mentions Bases, table views, card views, filters, or formulas in Obsidian.
tools
Create and edit JSON Canvas files (.canvas) with nodes, edges, groups, and connections. Use when working with .canvas files, creating visual canvases, mind maps, flowcharts, or when the user mentions Canvas files in Obsidian.