Skip to content

MalharSoni/AnythingUI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

AnythingUI Template

A production-ready React Native starter template with design system workflow, MCP integration, and automation tools. Built for rapid development with Claude Code and Cursor.

✨ Features

  • 🎨 Design System First - Comprehensive design token system with style guide
  • πŸ€– AI-Optimized - Pre-configured Claude Code and Cursor integrations
  • πŸ“± Expo Router - File-based routing with type safety
  • 🎯 TypeScript - Full type safety throughout the app
  • πŸ”§ Pre-configured Tools - ESLint, Prettier, and development scripts
  • πŸš€ Quick Setup - Interactive setup script to get started in minutes
  • 🎨 Component Library - Beautiful, accessible UI components
  • πŸ“¦ State Management - Zustand for simple, scalable state
  • πŸ” Auth Ready - Supabase integration out of the box
  • 🎭 MCP Servers - Figma MCP pre-configured for design imports

πŸš€ Quick Start

1. Use This Template

Click "Use this template" on GitHub or clone:

git clone https://github.com/[your-username]/AnythingUI my-app
cd my-app

2. Run Setup

npm run setup
# or
bun run setup

This will:

  • Configure project name and metadata
  • Create .env file
  • Set up initial configuration

3. Install Dependencies

npm install
# or
bun install

4. Start Development

npm start

πŸ“– Workflow

Import Design from Figma or Mobbin

  1. Open Claude Code in your project
  2. Use the /import-design command
  3. Provide Figma URL or paste screenshot
  4. Claude will extract design tokens and update your design system

Generate Style Guide

/generate-style-guide

This creates a comprehensive style guide at /design/style-guide.md with:

  • Color palette
  • Typography system
  • Spacing scale
  • Component styles
  • Shadows, animations, and more

Add New Components

npm run new:component
# or
/add-component (in Claude Code)

Add New Screens

npm run new:screen
# or
/add-screen (in Claude Code)

πŸ“ Project Structure

AnythingUI/
β”œβ”€β”€ app/                      # Expo Router app directory
β”‚   β”œβ”€β”€ (tabs)/              # Tab navigator screens
β”‚   β”‚   β”œβ”€β”€ index.tsx        # Home screen
β”‚   β”‚   β”œβ”€β”€ explore.tsx      # Explore screen
β”‚   β”‚   └── profile.tsx      # Profile screen
β”‚   β”œβ”€β”€ _layout.tsx          # Root layout
β”‚   └── modal.tsx            # Example modal
β”œβ”€β”€ components/
β”‚   β”œβ”€β”€ ui/                  # Reusable UI components
β”‚   β”œβ”€β”€ layout/              # Layout components
β”‚   └── features/            # Feature-specific components
β”œβ”€β”€ constants/               # Design tokens
β”‚   β”œβ”€β”€ colors.ts
β”‚   β”œβ”€β”€ typography.ts
β”‚   └── spacing.ts
β”œβ”€β”€ contexts/                # React contexts
β”œβ”€β”€ design/                  # Design system documentation
β”‚   β”œβ”€β”€ style-guide.md
β”‚   β”œβ”€β”€ design-tokens.json
β”‚   └── design-references.md
β”œβ”€β”€ lib/                     # Utilities and API clients
β”œβ”€β”€ types/                   # TypeScript types
β”œβ”€β”€ scripts/                 # Automation scripts
└── .claude/                 # Claude Code configuration
    β”œβ”€β”€ commands/            # Custom slash commands
    └── claude.json          # MCP server config

🎨 Design System

The template includes a complete design system with:

  • Design Tokens - JSON-based tokens in /design/design-tokens.json
  • Platform Files - Auto-generated TypeScript constants in /constants/
  • Style Guide - Comprehensive documentation in /design/style-guide.md
  • Component Library - Pre-built components following the design system

Using Design Tokens

import { colors, typography, spacing } from '@/constants';

const styles = StyleSheet.create({
  container: {
    backgroundColor: colors.background,
    padding: spacing.md,
  },
  title: {
    fontSize: typography.fontSize.h1,
    fontWeight: typography.fontWeight.bold,
    color: colors.text.primary,
  },
});

πŸ€– Claude Code Integration

Available Commands

  • /generate-style-guide - Create comprehensive style guide
  • /import-design - Import design from Figma or screenshot
  • /add-component - Generate new UI component
  • /add-screen - Generate new screen

MCP Servers

Pre-configured MCP servers:

  • Figma MCP - Extract designs and design tokens from Figma
  • More servers can be added in .claude/claude.json

πŸ› οΈ Available Scripts

npm start           # Start Expo development server
npm run android     # Run on Android
npm run ios         # Run on iOS
npm run web         # Run on web

npm run setup       # Interactive project setup
npm run new:component   # Generate new component
npm run new:screen      # Generate new screen

npm run lint        # Run ESLint
npm run lint:fix    # Fix ESLint errors
npm run format      # Format code with Prettier
npm run type-check  # TypeScript type checking

πŸ“¦ Tech Stack

πŸ” Environment Variables

Copy .env.example to .env and fill in your values:

EXPO_PUBLIC_SUPABASE_URL=your-supabase-url
EXPO_PUBLIC_SUPABASE_ANON_KEY=your-supabase-anon-key
FIGMA_ACCESS_TOKEN=your-figma-token

πŸ“ License

MIT License - feel free to use this template for any project!

🀝 Contributing

This is a template repository. Feel free to fork and customize for your needs!

πŸ“š Learn More


Built with ❀️ for rapid React Native development

About

A production-ready React Native starter template with design system workflow, MCP integration, and automation tools

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors