Skip to content

DesignForge - 260+ CSS Background Patterns & Gradients Handcrafted patterns for modern web development. React + Next.js + Tailwind CSS. Live preview, instant copy, production-ready.

License

Notifications You must be signed in to change notification settings

CodewithEvilxd/design-forge

Repository files navigation

The Ultimate CSS Background Pattern Library - Craft Beautiful Designs with Code

🎨 DesignForge



Transform your websites with 260+ handcrafted CSS background patterns and gradients. Discover stunning visual effects, geometric designs, retro patterns, and modern textures - all ready to copy-paste into your projects.

Perfect for React, Next.js, Vue, Angular, and any modern web framework. Built by developers, for developers who value beautiful design.


GitHub stars GitHub forks License Sponsored by Vercel


This project is proudly sponsored by Vercel. Thank you for supporting open source!

Powered by Vercel

Note: This project does not provide plain HTML or vanilla CSS snippets. All code is optimized for JSX (React/Next.js) and Tailwind CSS.
Learn more in this announcement.

DesignForge in the Wild!!!

Curious where DesignForge is getting featured, shared, talk about or appreciated?
Check out this growing list of shoutouts, showcases, and love from the community:

Where DesignForge is Making Noise??

✨ Features

  • 🎨 260+ Unique Patterns - Extensive collection across 13 categories
  • 📋 One-Click Copy - Instant code copying with production-ready snippets
  • 👁️ Live Preview - Interactive pattern viewer with real-time updates
  • 🌓 Dark/Light Themes - Automatic theme switching based on patterns
  • 🔍 Smart Search - Find patterns instantly with debounced search
  • ⭐ Favorites System - Save and organize your preferred patterns
  • 📱 Fully Responsive - Optimized for all screen sizes and devices
  • 🎯 Category Filters - Browse by gradients, geometric, retro, effects, and more
  • ⚡ Zero Dependencies - Pure CSS implementations, no external libraries
  • 🚀 Modern Stack - Built with Next.js 15, TypeScript, and Tailwind CSS
  • 💳 UPI Integration - Support the project with easy payments
  • 🎨 Glassmorphism UI - Modern, translucent design with backdrop blur
  • ⌨️ Keyboard Navigation - Full accessibility with keyboard shortcuts

🛠️ Tech Stack

  • Next.js 15 - React framework with App Router and latest features
  • TypeScript - Full type safety for robust development
  • Tailwind CSS v4 - Latest utility-first CSS framework
  • React 19 - Latest React with concurrent features
  • Vercel - Global deployment and hosting platform
  • Lucide React - Beautiful, consistent icon library
  • Sonner - Modern toast notifications
  • Next Themes - Seamless theme switching
  • QR Code Generation - For UPI payment integration

🎭 Pattern Categories

DesignForge offers 260+ patterns across 13 comprehensive categories:

🎨 Gradients - Color transitions and blends

  • Radial gradients, linear gradients, multi-stop gradients
  • Sunset gradients, cosmic gradients, retro gradients

📐 Geometric - Grids, dots, lines, and shapes

  • Grid patterns, dot matrices, diagonal lines
  • Checkerboards, pixel art, circuit boards

🏺 Retro - Vintage and nostalgic designs

  • 80s neon patterns, vintage florals, retro dots
  • Synthwave aesthetics, pixel art, checkerboards

Effects - Modern visual effects

  • Glow effects, glassmorphism, aurora patterns
  • Bubble effects, prism effects, light rays

🌿 Nature - Organic and natural patterns

  • Autumn leaves, ocean waves, forest mists
  • Sakura blossoms, tropical paradise, coral reefs

🎭 Textures - Surface and material patterns

  • Concrete, marble, wood grain, leather
  • Fabric weave, frosted glass, paper texture

🔮 Abstract Luxe - Premium abstract designs

  • Luxury patterns, elegant geometric shapes
  • Sophisticated color combinations

🌀 Neomorphic - Soft, inset shadow effects

  • Modern button styles, card designs
  • Subtle elevation effects

🤖 Cybernetic - Futuristic digital patterns

  • Circuit-inspired designs, digital grids
  • Tech-inspired aesthetics

🌌 Aurora - Northern lights inspired

  • Colorful light patterns, mystical effects
  • Dynamic color transitions

🌊 Dynamic - Animated and interactive

  • Moving patterns, gradient animations
  • Interactive visual effects

📊 Textured - Detailed surface patterns

  • Fine-grained textures, material simulations
  • Realistic surface appearances

Sponsored by Vercel⚡

This project is proudly powered by Vercel. The platform behind DesignForge's blazing-fast deployment and seamless scalability.

Big thanks to Vercel for supporting open source and keeping this project running smoothly!

Powered by Vercel

Getting Started

Prerequisites

  • Node.js 18+
  • npm, yarn, pnpm, or bun

Installation

  1. Clone the repository:
git clone https://github.com/codewithevilxd/pattern-craft.git
cd pattern-craft
  1. Install dependencies:
npm install
# or
yarn install
# or
pnpm install
  1. Run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
  1. Open http://localhost:3000 in your browser

Build for Production

npm run build
npm start

🚀 How to Use DesignForge

Getting Started

  1. Visit DesignForge.dev
  2. Explore 260+ patterns across 13 categories
  3. Use the search bar to find specific patterns instantly
  4. Filter by categories or browse the full collection

Using Patterns

  1. Browse & Discover - Scroll through patterns or use category filters
  2. Live Preview - Click any pattern to see it in action
  3. Theme Adaptation - Patterns automatically adapt to light/dark themes
  4. Copy Code - One-click copy of production-ready CSS/Tailwind code
  5. Save Favorites - Star patterns you love for quick access

Perfect For

  • 🎯 Hero Sections - Eye-catching landing page backgrounds
  • 💳 Product Cards - Beautiful card designs with depth
  • 📱 Mobile Apps - Responsive patterns that work on all devices
  • 🖥️ Desktop Apps - Professional UI backgrounds
  • 🎨 Design Systems - Consistent visual language
  • 📧 Email Templates - HTML-compatible patterns
  • 📰 Blog Designs - Engaging article backgrounds
  • 🏪 E-commerce - Premium product showcases

Customization

Manual Pattern Customization

You can easily customize any background pattern by modifying the pattern object structure. Each pattern follows this format:

{
  id: "unique-pattern-id",
  name: "Pattern Display Name",
  badge: "New",
  style: {
    background: "#ffffff",
    backgroundImage: `
      // Your CSS background patterns here
      linear-gradient(to right, #f0f0f0 1px, transparent 1px),
      radial-gradient(circle 800px at 100% 200px, #d5c5ff, transparent)
    `,
    backgroundSize: "96px 64px, 100% 100%",
  },
  code: `<div className="min-h-screen w-full bg-white relative">
  {/* Pattern Name Background */}
  <div
    className="absolute inset-0 z-0"
    style={{
      backgroundImage: \`
        // Your background image styles
      \`,
      backgroundSize: "96px 64px, 100% 100%",
    }}
  />
  {/* Your Content/Components */}
</div>`,
}

Customization Tips

Colors: Change hex values in backgroundImage gradients Sizing: Modify backgroundSize values for different scales Positioning: Adjust gradient positions and directions Effects: Add multiple background layers for complex patterns

Example Customization

// Original pattern
backgroundImage: `linear-gradient(to right, #f0f0f0 1px, transparent 1px)`;

// Customized version
backgroundImage: `linear-gradient(to right, #3b82f6 1px, transparent 1px)`; // Blue lines
backgroundSize: "48px 32px"; // Smaller grid

Usage

  1. Browse the pattern collection on the website
  2. Click on any pattern to see the live preview
  3. Use the "Add to Favorites" feature to save patterns you like
  4. Copy the generated CSS code
  5. Paste it into your project

Each pattern includes:

  • Complete CSS styling
  • Tailwind-compatible code
  • Responsive implementation
  • Cross-browser compatibility

Contributing

This project is sponsored by Vercel, which helps us maintain a stable development environment.

We welcome contributions to expand the pattern collection. To add new patterns:

Adding New Patterns

  1. Fork the repository
  2. Create a feature branch:
git checkout -b feature/new-pattern-name
  1. Navigate to the appropriate pattern file in src/data/ (e.g., retro-patterns.ts, geometric-patterns.ts)
  2. Add your pattern following the established format:
{
  id: "unique-pattern-id",
  name: "Pattern Display Name",
  category: "gradients" | "geometric" | "decorative" | "effects",
  badge: "New", // Optional: "New"
  style: {
    background: "#ffffff",
    backgroundImage: `
      // Your CSS background patterns here
      linear-gradient(to right, #f0f0f0 1px, transparent 1px),
      radial-gradient(circle 800px at 100% 200px, #d5c5ff, transparent)
    `,
    backgroundSize: "96px 64px, 100% 100%",
  },
  code: `<div className="min-h-screen w-full bg-white relative">
  {/* Pattern Name Background */}
  <div
    className="absolute inset-0 z-0"
    style={{
      backgroundImage: \`
        // Your background image styles
      \`,
      backgroundSize: "96px 64px, 100% 100%",
    }}
  />
  {/* Your Content/Components */}
</div>`,
}

Contribution Guidelines

  • Consistency: Follow the existing pattern structure exactly
  • Naming: Use descriptive, kebab-case IDs and proper display names
  • Quality: Ensure patterns are visually appealing and professional
  • Performance: Optimize for rendering performance
  • Responsiveness: Test patterns across different screen sizes
  • Uniqueness: Avoid duplicating existing patterns

Pattern Categories

Consider these categories when adding patterns:

  • Gradient - Color transitions and blends
  • Geometric - Grids, dots, lines, shapes
  • Decorative - Subtle background textures
  • Effects - Clean and simple designs

Testing Your Patterns

  1. Test the pattern in the development environment
  2. Verify responsive behavior
  3. Check browser compatibility (Chrome, Firefox, Safari, Edge)
  4. Ensure code validity and formatting

Pull Request Process

  1. Commit your changes with descriptive messages
  2. Push to your feature branch
  3. Create a pull request with:
    • Clear description of the pattern added
    • Screenshots or preview of the pattern
    • Any special considerations or notes
git add .
git commit -m "feat: add new geometric grid pattern"
git push origin feature/new-pattern-name

Development

Project Structure

pattern-craft/
├── src/
│   ├── app/                          # Next.js App Router
│   │   ├── globals.css              # Global styles
│   │   ├── layout.tsx               # Root layout with metadata
│   │   ├── page.tsx                 # Main homepage
│   │   └── not-found.tsx            # 404 page
│   │
│   ├── components/                   # React components
│   │   ├── ui/                      # Reusable UI components
│   │   │   ├── badge.tsx           # Category badges
│   │   │   ├── button.tsx          # Custom buttons
│   │   │   ├── tabs.tsx            # Category tabs
│   │   │   └── scroll-to-top.tsx   # Navigation helper
│   │   ├── layout/                  # Layout components
│   │   │   ├── navbar.tsx          # Navigation bar
│   │   │   └── footer.tsx          # Site footer
│   │   ├── patterns/                # Pattern-related components
│   │   │   ├── pattern-showcase.tsx # Main pattern display
│   │   │   ├── pattern-card.tsx     # Individual pattern cards
│   │   │   ├── pattern-grid.tsx     # Pattern grid layout
│   │   │   └── pattern-empty-state.tsx # Empty state
│   │   ├── home/                    # Homepage sections
│   │   │   ├── hero.tsx            # Hero section with stats
│   │   │   ├── support-dropdown.tsx # UPI payment integration
│   │   │   └── return-to-preview.tsx # Preview navigation
│   │   ├── providers/               # Context providers
│   │   │   └── theme-provider.tsx  # Theme management
│   │   └── search/                  # Search functionality
│   │       └── search-bar.tsx       # Debounced search component
│   │
│   ├── lib/                         # Utility functions
│   │   ├── utils.ts                # Helper functions
│   │   └── constants.ts            # App constants & config
│   │
│   ├── hooks/                       # Custom React hooks
│   │   ├── useTheme.tsx            # Theme switching logic
│   │   └── useCopy.tsx             # Copy to clipboard
│   │
│   ├── types/                       # TypeScript definitions
│   │   ├── pattern.ts              # Pattern data types
│   │   └── index.ts                # Type exports
│   │
│   ├── context/                     # React context
│   │   └── favourites-context.tsx  # Favorites management
│   │
│   └── data/                        # Pattern data files
│       ├── patterns.ts              # Main pattern aggregator
│       ├── categories.ts            # Category definitions
│       ├── retro-patterns.ts        # Vintage patterns
│       ├── dynamic-patterns.ts      # Animated patterns
│       ├── textured-patterns.ts     # Texture patterns
│       ├── abstract-luxe-patterns.ts # Luxury patterns
│       ├── neomorphic-patterns.ts   # Neumorphism patterns
│       ├── cybernetic-patterns.ts   # Tech patterns
│       └── aurora-patterns.ts       # Aurora patterns
│
├── public/                          # Static assets
│   ├── images/                     # Screenshots & banners
│   ├── snapshots/                  # Pattern screenshots
│   ├── favicon.svg                 # Site favicon
│   ├── og-banner.png               # Social media image
│   ├── robots.txt                  # SEO configuration
│   └── site.webmanifest            # PWA manifest
│
├── .github/                        # GitHub configuration
│   └── FUNDING.yml                 # Sponsorship links
│
├── next.config.ts                  # Next.js configuration
├── next-sitemap.config.js          # SEO sitemap config
├── tailwind.config.ts              # Tailwind CSS config
├── tsconfig.json                   # TypeScript config
├── package.json                    # Dependencies & scripts
└── README.md                       # This file

Code Standards

  • Use TypeScript for type safety
  • Follow ESLint and Prettier configurations
  • Maintain consistent code formatting
  • Use semantic commit messages

License

This project is open source and available under the MIT License.

Acknowledgments

  • Built with Next.js and Tailwind CSS
  • Inspired by modern web design patterns
  • Community-driven pattern collection

⌨️ Keyboard Shortcuts

  • Ctrl/Cmd + K - Focus search bar
  • Escape - Close modals and dropdowns
  • Enter - Copy pattern code (when focused)
  • Tab - Navigate through patterns
  • Space - Toggle pattern preview

🌐 Browser Support

DesignForge works perfectly on all modern browsers:

  • ✅ Chrome 90+
  • ✅ Firefox 88+
  • ✅ Safari 14+
  • ✅ Edge 90+
  • ✅ Mobile browsers (iOS Safari, Chrome Mobile)

🤝 Contributing Guidelines

Code Style

  • Use TypeScript for all new code
  • Follow ESLint and Prettier configurations
  • Use meaningful variable and function names
  • Add JSDoc comments for complex functions
  • Maintain consistent code formatting

Pattern Submission

  • Test patterns across different screen sizes
  • Ensure patterns work in both light and dark themes
  • Provide clear, descriptive names
  • Include category classification
  • Test performance impact

Pull Request Process

  1. Fork and create a feature branch
  2. Make your changes with clear commit messages
  3. Test thoroughly across different browsers
  4. Update documentation if needed
  5. Submit PR with detailed description

📞 Support

For questions, issues, or suggestions:

Built By

Support the Project

DesignForge is completely free and open source. If you find it helpful, consider:

  • Star the repository on GitHub
  • 🐛 Report bugs or suggest features
  • 📢 Share with fellow developers
  • 💝 Support via UPI: nishantgaurav721@naviaxis

Your support helps keep DesignForge growing and improving!

📊 Star History

Star History Chart

🎯 Key Highlights

  • ⚡ Performance Optimized - Fast loading with modern web standards
  • 🎨 Design System Ready - Consistent patterns for professional projects
  • 📱 Mobile First - Responsive design that works on all devices
  • ♿ Accessible - Keyboard navigation and screen reader support
  • 🔧 Developer Experience - Clean code, TypeScript, and great DX
  • 🌟 Community Driven - Open source with active development
  • 💰 Free Forever - No subscriptions, no hidden costs
  • 🚀 Production Ready - Battle-tested code for real applications

🏆 What Makes DesignForge Special

  1. Curated Collection - Every pattern is handcrafted and tested
  2. Real-World Usage - Patterns designed for actual development scenarios
  3. Modern Aesthetics - Contemporary design trends and techniques
  4. Framework Agnostic - Works with any CSS-compatible framework
  5. SEO Optimized - Fast loading and search engine friendly
  6. Developer Tools - Copy-paste workflow optimized for speed

Happy coding!

About

DesignForge - 260+ CSS Background Patterns & Gradients Handcrafted patterns for modern web development. React + Next.js + Tailwind CSS. Live preview, instant copy, production-ready.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages