What problem does it solve?
This Skill eliminates the guesswork and common errors that come with using Kiva's custom Tailwind CSS v3 preset, which deviates significantly from stock Tailwind in utility prefixes, color systems, spacing scales, and available utilities, preventing broken or inconsistent UI styling across Kiva products.
Core Features & Use Cases
- Preset Usage Guidance: Explains how to install, register, and configure the @kiva/kv-tokens Tailwind preset in new or existing projects, including setting up content globs and safelists for dynamically generated classes.
- Authoring Rule Reference: Details all custom preset behaviors including the required tw- utility prefix, themable runtime-resolved semantic colors, 8px-based token-driven spacing scale, semantic text styles (no stock font-size/line-height utilities), limited font weight and border-radius scales, and custom breakpoint/z-index/shadow/opacity scales.
- Troubleshooting & Internal Build Docs: Covers common mistakes like missing prefixes, using stock Tailwind color names, and incorrect spacing values, plus explains the design-token to Tailwind compilation pipeline for contributors modifying the monorepo's token or config files.
- Use Case: When building or reviewing UI components for Kiva's component library or consumer applications, use this Skill to ensure all Tailwind utilities align with the Kiva design system and avoid styling regressions.
Quick Start
Consult the kiva-tailwind skill to confirm the correct tw- prefixed utility class and token value when implementing a new UI component in a Kiva project that uses the @kiva/kv-tokens preset.