theming-tokens

Agent Workflow (MANDATORY)

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "theming-tokens" with this command: npx skills add fusengine/agents/fusengine-agents-theming-tokens

Theming Tokens

Agent Workflow (MANDATORY)

Before implementation, use TeamCreate to spawn 3 agents:

  • fuse-ai-pilot:explore-codebase - Find existing tokens

  • fuse-ai-pilot:research-expert - Tailwind v4 @theme patterns

After: Run fuse-ai-pilot:sniper for validation.

Overview

Feature Description

Primitives Raw values (blue-500, radius-lg)

Semantic Purpose-based (primary, surface)

Component Specific (button-bg, card-border)

Token Hierarchy

┌─────────────────────────────────────────────────┐ │ COMPONENT TOKENS (specific) │ │ --button-bg, --card-border, --input-focus │ ├─────────────────────────────────────────────────┤ │ SEMANTIC TOKENS (purpose) │ │ --color-primary, --color-surface, --color-text │ ├─────────────────────────────────────────────────┤ │ PRIMITIVE TOKENS (raw values) │ │ --blue-500, --gray-100, --radius-lg │ └─────────────────────────────────────────────────┘

Quick Reference

Primitive Tokens

:root { /* Colors - OKLCH for P3 gamut */ --blue-500: oklch(55% 0.20 260); --green-500: oklch(65% 0.20 145);

/* Radius */ --radius-lg: 0.75rem; --radius-2xl: 1.5rem;

/* Spacing (4px grid) */ --space-4: 1rem; --space-6: 1.5rem; }

Semantic Tokens

:root { --color-background: var(--gray-50); --color-foreground: var(--gray-900); --color-primary: var(--blue-500); --color-surface: var(--white);

/* Glass */ --glass-bg: rgba(255, 255, 255, 0.8); --glass-border: rgba(255, 255, 255, 0.2); }

.dark { --color-background: var(--gray-950); --color-foreground: var(--gray-50); --glass-bg: rgba(0, 0, 0, 0.4); }

Component Tokens

:root { --button-height: 2.5rem; --button-radius: var(--radius-lg); --card-radius: var(--radius-2xl); --card-padding: var(--space-6); }

Tailwind v4 @theme

@import "tailwindcss";

@theme { --color-primary: oklch(55% 0.20 260); --font-display: 'Clash Display', sans-serif; }

Validation Checklist

[ ] Primitives defined (colors, spacing, radius) [ ] Semantics mapped to primitives [ ] Dark mode overrides present [ ] @theme configured for Tailwind v4 [ ] No hard-coded hex in components

Best Practices

DO

  • Use three-tier hierarchy

  • Map semantics to primitives

  • Define dark mode overrides

  • Use OKLCH for colors

DON'T

  • Hard-code hex values

  • Skip semantic layer

  • Forget dark mode

  • Mix color spaces

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

laravel-livewire

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

laravel-blade

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

laravel-architecture

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

nextjs-i18n

No summary provided by upstream source.

Repository SourceNeeds Review