v3.1.0: Tailwind v4 Native, Mathematical Contrast Gate & Streamlined AI Workflows
🚀 Vibe UI Suite v3.1.0: Tailwind v4 Native, Mathematical Contrast Gate & Streamlined AI Workflows
Vibe UI Suite v3.1.0 establishes native integration with Tailwind CSS v4 (@theme), introduces mathematical WCAG 2.2 AA Contrast Ratio Evaluation directly inside the Design Critic, and simplifies the user journey for both beginners and senior engineers using AI coding assistants.
⚡ Highlights & Key Innovations
1. 🎨 Native Tailwind CSS v4 (@theme) & Zero-Config
- Direct
@themeStylesheet:@omid-io/tokensnow providespackages/tokens/v4.css(exported as@omid-io/tokens/v4). - Zero Configuration Files: Developers simply write in their global CSS:
Unlocking immediate access to
@import "tailwindcss"; @import "@omid-io/tokens/v4.css";
bg-vibe-canvas,text-vibe-primary,border-vibe-border,transition-vibe-spring, andshadow-vibe-brutal. - Clean Next.js 15 Starter: Upgraded
examples/nextjs-startertotailwindcss@^4.0.0and@tailwindcss/postcss@^4.0.0, eliminating obsoletetailwind.config.tsand deprecatedautoprefixer.
2. 🤖 30-Second AI Assistant Workflow (Cursor, Claude Code, Windsurf)
- Option A: The Prompt (Zero Install):
Copy and paste directly to your AI:"Design and style this application using Vibe UI standards (https://github.com/omid-io/vibe-ui-suite): OKLCH color palettes, Tailwind CSS v4 (@theme), mathematical WCAG 2.2 AA contrast (>= 4.5:1), zero raw emojis, and fixed-structure semantic RTL."
- Option B: 1-Command Setup:
Automatically generates
npx @omid-io/tokens init
.cursorrules,CLAUDE.md, and.windsurfrules.
3. 🔍 Mathematical WCAG Contrast Gate in Design Critic
- Replaced heuristic color checks with pure-Python relative luminance math (
$L = 0.2126 R' + 0.7152 G' + 0.0722 B'$ ) and contrast ratio calculation:
$$\text{Ratio} = \frac{L_1 + 0.05}{L_2 + 0.05}$$ - The Critic (
vibe_core/critic.py) mathematically evaluates canvas background against primary text, flagging any combination falling below$4.5:1$ (WCAG AA).
4. 🛡️ Robustness & Security Hardening
- CLI Path Safety: Fixed potential
ValueErrorinvibe_cli.pyandscripts/generate.pywhen specifying output paths outside the repository root. - Security Hygiene: Relocated raw root install scripts (
install.sh,install.ps1) intoscripts/to eliminate security flags. - Synchronized Registries: All packages, manifests, and the VS Code / Cursor extension bumped to
3.1.0.
📦 Distribution Assets
- NPM Package:
@omid-io/tokens@3.1.0 - Open-VSX Extension:
omid-io.vibe-ui-vscode - VS Code Extension Binary: Attached below as
vibe-ui-vscode-3.1.0.vsix
🛡️ Verification Proof
======================================================================
🛡️ VIBE UI V3 PRODUCTION VALIDATION & QUALITY GATES
======================================================================
[PASS] Version Synchronization (64.3ms)
[PASS] Schema Validation (8 Schemas) (61.4ms)
[PASS] Knowledge Base Validation (13 Datasets) (68.5ms)
[PASS] Search & Recommendation Unit Tests (70.4ms)
[PASS] Design Critic & AutoRefiner Unit Tests (188.0ms)
[PASS] Full Pipeline Integration Tests (E2E) (285.3ms)
[PASS] Stratified 100-Scenario Benchmark (2002.5ms)
[PASS] Physical Runtime Evals (WCAG AA & DOM) (189.0ms)
======================================================================
✅ ALL QUALITY GATES PASSED (Total time: 2929.7ms)
======================================================================