Framework-Agnostic AI-Native Design System
Design Tokens + Specifications. Works with ANY framework.
Design Tokens Β· Integration Guides Β· Documentation Β· SKILL.md
ZeroAI-UI v5.1.0 is a lightweight, framework-agnostic design system for AI-native products. It provides Design Tokens and design specifications that work with any frontend framework.
ZeroAI-UI v5.1.0 = Design Tokens + Decision Rules
Your Framework = Component Implementation (Taro, uni-app, React, Vue, Flutter)
Result = Framework Components + ZeroAI-UI Design Style
| v4.x (Component Library) | v5.0 (Design System) |
|---|---|
| 60+ Vanilla JS components | β Design Tokens only |
| Framework-specific | β Framework-agnostic |
| High maintenance cost | β 90% less code |
| Becomes obsolete | β Works forever |
Core Philosophy Shift:
- β Old: "Here's a pre-built Button component" β Doesn't work with Taro/uni-app
- β New: "Here's how buttons should look (tokens + rules)" β Apply to ANY framework
Visually distinguish between human actions, AI content, and collaboration:
/* Human Layer: User actions (solid blue) */
.save-button {
background: var(--human-primary); /* #737373 */
}
/* AI Layer: AI-generated content (solid orange - Taobao Orange) */
.ai-message {
background: var(--ai-primary); /* #FF6600 */
font-family: var(--font-family-ai);
}
/* Collaboration Layer: Human-AI co-creation (solid blend of blue and orange) */
.collab-button {
background: var(--collaboration-primary); /* #FF7A45 */
}tokens/
βββ design-tokens.json # JSON format (for build tools)
βββ css-variables.css # CSS Custom Properties (any web framework)
βββ tailwind.config.js # Tailwind configuration (Taro/uni-app)
guidelines/
βββ taro-integration.md # Taro 4.0 (React + TypeScript)
βββ uniapp-integration.md # uni-app (Vue3 + TypeScript)
Supported Frameworks:
- β Taro 4.0 (React + TypeScript)
- β uni-app (Vue3 + TypeScript)
- β React / Next.js
- β Vue / Nuxt
- β Flutter (JSON tokens β Dart theme)
- β Any web framework (CSS Variables)
/* Automatic responsive scaling */
--spacing-md: 12px; /* Mobile (0-767px) */
--spacing-md: 16px; /* Desktop (768px+) */
--font-size-base: 14px; /* Mobile */
--font-size-base: 16px; /* Desktop */
/* Touch targets β₯ 48px (iOS HIG/Material Design) */
--touch-target-min: 48px;Pick your framework and follow the integration guide:
|
Taro 4.0 (React) # Create Taro project
taro init myProject
# Copy CSS Variables
cp tokens/css-variables.css src/styles/
# Import in app.tsx
import './styles/css-variables.css'π Complete Taro Guide |
uni-app (Vue3) # Create uni-app project
npx degit dcloudio/uni-preset-vue my-project
# Copy CSS Variables
cp tokens/css-variables.css src/static/styles/
# Import in App.vue
@import './static/styles/css-variables.css'; |
Taro Example (React):
import { View, Button } from '@tarojs/components'
function ChatMessage({ text, isAI }) {
return (
<View style={{
background: isAI
? 'var(--ai-primary)' // AI message (Taobao Orange)
: 'var(--human-primary)', // User message (Gray)
fontFamily: isAI ? 'var(--font-family-ai)' : 'inherit',
padding: 'var(--spacing-md)',
borderRadius: 'var(--radius-lg)',
minHeight: 'var(--touch-target-min)', // 48px touch target
color: 'white'
}}>
{text}
</View>
)
}uni-app Example (Vue3):
<template>
<view :class="isAI ? 'ai-message' : 'user-message'">
{{ text }}
</view>
</template>
<style scoped>
.user-message {
background: var(--human-primary); /* Gray */
border-radius: var(--radius-lg);
padding: var(--spacing-md);
min-height: var(--touch-target-min);
color: white;
}
.ai-message {
background: var(--ai-primary); /* Taobao Orange */
border-radius: var(--radius-lg);
padding: var(--spacing-md);
font-family: var(--font-family-ai);
color: white;
}
</style>- AI_FRIENDLY_DESIGN_TOKENS.md - Complete token reference + decision trees
- MOBILE_INTERACTION_GUIDE.md - Touch targets, gestures, mobile components
- RESPONSIVE_SYSTEM.md - 6 breakpoints, Mobile-First strategy
- BUSINESS_COMPONENTS.md - Data tables, forms, charts specifications
- DESIGN_LANGUAGE.md - Overall design philosophy
- taro-integration.md - Taro 4.0 complete guide
- uniapp-integration.md - uni-app complete guide
- SKILL.md - Complete guide for Claude Code to use this design system
Human Layer (User actions):
--human-primary: #737373 /* Primary action color */
--human-surface: #FFFFFF /* Background */
--human-border: #E5E7EB /* Borders */
--human-text-primary: #111827 /* Text */AI Layer (AI-generated content):
--ai-primary: #FF6600 /* Taobao Orange */
--ai-primary-light: #FF7A1F /* Light orange */
--ai-primary-dark: #E55A00 /* Dark orange */
--ai-surface: #FFF7E6 /* Light orange background */
--font-family-ai: 'Nunito', sans-serifCollaboration Layer (Human-AI co-creation):
--collaboration-primary: #FF7A45 /* Blend of Human blue and AI orange */--spacing-xs: 4px (Mobile: 3px)
--spacing-sm: 8px (Mobile: 6px)
--spacing-md: 16px (Mobile: 12px)
--spacing-lg: 24px (Mobile: 18px)--font-family-base: -apple-system, BlinkMacSystemFont, sans-serif
--font-family-ai: 'Nunito', sans-serif /* For AI content */
--font-size-base: 16px (Desktop) / 14px (Mobile)--touch-target-min: 48px /* Minimum (iOS HIG/Material) */
--touch-target-comfortable: 56px
--touch-target-spacious: 64px- Cross-platform developers using Taro/uni-app/Flutter
- AI product builders (ChatGPT-like interfaces)
- Design system maintainers who want framework independence
- Teams using multiple frameworks (need consistent design)
- Projects that need Mobile + Web + Mini-programs
- Pure marketing websites (use Tailwind directly)
- Projects with existing mature design systems
- Single-framework projects with custom UI library
If you're using ZeroAI-UI v4.x:
- β All design specifications (docs/)
- β Design token values (colors, spacing, etc.)
- β Three-layer visual system concept
- β All component implementations (components/)
- β Demo HTML files (demo-*.html)
- β Framework-specific code
- β Your framework's native components (Taro UI, uni-ui, Material, etc.)
- β Apply ZeroAI-UI design tokens to those components
- β Follow integration guides for your framework
ZeroAI-UI/
β
βββ tokens/ # Design Tokens (3 formats)
β βββ design-tokens.json # JSON (build tools)
β βββ css-variables.css # CSS Variables (any web framework)
β βββ tailwind.config.js # Tailwind config (Taro/uni-app)
β
βββ guidelines/ # Framework Integration Guides
β βββ taro-integration.md # Taro 4.0 guide
β βββ uniapp-integration.md # uni-app guide
β
βββ docs/ # Design Specifications
β βββ AI_FRIENDLY_DESIGN_TOKENS.md
β βββ MOBILE_INTERACTION_GUIDE.md
β βββ RESPONSIVE_SYSTEM.md
β βββ BUSINESS_COMPONENTS.md
β βββ DESIGN_LANGUAGE.md
β
βββ SKILL.md # Guide for Claude Code
βββ README.md # This file
We welcome contributions! Especially:
- π¨ Framework integration guides (Flutter, React Native, etc.)
- π» Example projects using ZeroAI-UI
- π Documentation improvements
- π Translations (Chinese, Japanese, Korean)
MIT License - see LICENSE for details.
- Tailwind CSS - For utility-first CSS inspiration
- shadcn/ui - For copy-paste component philosophy
- Anthropic Claude - For AI interaction patterns
- Taro / uni-app - For cross-platform frameworks
Built with β€οΈ for the AI era by @zerolong
β Star us on GitHub if you find this useful!
Design once. Use everywhere.