Skip to content

zerolong0/ZeroAI-UI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

ZeroAI-UI v5.1.0

ZeroAI-UI License Framework

Framework-Agnostic AI-Native Design System

Design Tokens + Specifications. Works with ANY framework.

Design Tokens Β· Integration Guides Β· Documentation Β· SKILL.md


🎯 What is ZeroAI-UI v5.1.0?

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

What Changed from v4.x?

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

✨ Key Features

🎨 Three-Layer Visual System

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 */
}

πŸ“¦ Design Tokens in 3 Formats

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)

πŸš€ Framework Integration Guides

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)

πŸ“± Mobile-First Responsive

/* 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;

🎬 Quick Start

Step 1: Choose Your Framework

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';

πŸ“– Complete uni-app Guide

Step 2: Apply Design Tokens

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>

πŸ“š Complete Documentation

Design Specifications

Framework Integration

For AI/Claude Code

  • SKILL.md - Complete guide for Claude Code to use this design system

🎨 Design Token Categories

Colors (Three-Layer 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-serif

Collaboration Layer (Human-AI co-creation):

--collaboration-primary: #FF7A45  /* Blend of Human blue and AI orange */

Spacing (Mobile-Responsive)

--spacing-xs: 4px   (Mobile: 3px)
--spacing-sm: 8px   (Mobile: 6px)
--spacing-md: 16px  (Mobile: 12px)
--spacing-lg: 24px  (Mobile: 18px)

Typography

--font-family-base: -apple-system, BlinkMacSystemFont, sans-serif
--font-family-ai: 'Nunito', sans-serif  /* For AI content */
--font-size-base: 16px (Desktop) / 14px (Mobile)

Mobile Touch Targets

--touch-target-min: 48px         /* Minimum (iOS HIG/Material) */
--touch-target-comfortable: 56px
--touch-target-spacious: 64px

πŸ“– Complete Token Reference


🎯 Who Should Use ZeroAI-UI v5.1.0?

βœ… Perfect For:

  • 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

⚠️ Maybe Not For:

  • Pure marketing websites (use Tailwind directly)
  • Projects with existing mature design systems
  • Single-framework projects with custom UI library

πŸš€ Migration from v4.x

If you're using ZeroAI-UI v4.x:

What to Keep

  • βœ… All design specifications (docs/)
  • βœ… Design token values (colors, spacing, etc.)
  • βœ… Three-layer visual system concept

What to Remove

  • ❌ All component implementations (components/)
  • ❌ Demo HTML files (demo-*.html)
  • ❌ Framework-specific code

What to Use Instead

  • βœ… 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

πŸ“¦ Project Structure

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

🀝 Contributing

We welcome contributions! Especially:

  • 🎨 Framework integration guides (Flutter, React Native, etc.)
  • πŸ’» Example projects using ZeroAI-UI
  • πŸ“ Documentation improvements
  • 🌍 Translations (Chinese, Japanese, Korean)

πŸ“„ License

MIT License - see LICENSE for details.


πŸ™ Acknowledgments

  • 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.

About

No description, website, or topics provided.

Resources

License

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors