how-to-build-tools-by-AI-vibe-coding-assistant

🎨 Color Picker

A professional color picker tool with multiple formats, harmonies, and shades generation.

Built with Deepv Code Status Size

Try Live Demo β†’


πŸ“‹ Overview

A feature-rich color picker that supports 6 color formats, generates harmonies and shades, and includes dark mode support. Built with vanilla JavaScript and no external dependencies.

✨ Key Features


πŸš€ Quick Start

Try Online

Visit the live demo

Run Locally

# Clone the repository
git clone https://github.com/deepv-lab/how-to-build-tools-by-AI-vibe-coding-assistant.git

# Navigate to the demo
cd tools/design/color-picker/demo

# Open in browser
open index.html

Build It Yourself

  1. Copy the comprehensive prompt
  2. Paste into Deepv Code, Claude, ChatGPT, or Cursor
  3. Build your own version!

πŸ“ File Structure

color-picker/
β”œβ”€β”€ demo/                          # Live demo files
β”‚   β”œβ”€β”€ index.html                 # HTML structure (250 lines)
β”‚   β”œβ”€β”€ style.css                  # Styling (628 lines)
β”‚   └── script.js                  # Functionality (562 lines)
β”‚
β”œβ”€β”€ prompts/                       # AI prompts
β”‚   β”œβ”€β”€ COMPREHENSIVE-PROMPT.md    # Single prompt (all-in-one)
β”‚   β”œβ”€β”€ DESIGN-SPECS.md            # Design system specs
β”‚   β”œβ”€β”€ 00-OVERVIEW.md             # Project overview
β”‚   └── sequential/                # Step-by-step prompts
β”‚       β”œβ”€β”€ 01-PROJECT-SETUP.md
β”‚       β”œβ”€β”€ 02-CSS-STYLING.md
β”‚       └── 03-JAVASCRIPT-FUNCTIONALITY.md
β”‚
β”œβ”€β”€ metadata.json                  # Tool metadata
└── README.md                      # This file

🎯 How to Build This Tool

Option 1: Comprehensive Prompt (Fastest)

Use the comprehensive prompt to build everything in one go.

Best for: Powerful AI assistants (Claude Opus, GPT-4, Deepv Code)

1. Open Deepv Code or your AI coding assistant
2. Copy the comprehensive prompt
3. Paste and run
4. Get complete tool in minutes!

Follow the step-by-step prompts in the prompts/sequential/ directory.

Best for: Learning how each part works

1. Start with 01-PROJECT-SETUP.md
2. Then 02-CSS-STYLING.md
3. Then 03-JAVASCRIPT-FUNCTIONALITY.md
4. Build incrementally and understand each step

πŸ› οΈ Technical Details

Technologies

Browser Support

Performance

Accessibility


🎨 Design System

Colors

Typography

Spacing

See DESIGN-SPECS.md for complete design system.


πŸ“– Usage

Picking Colors

  1. Click or drag on the color square to select saturation and lightness
  2. Adjust the hue slider to change the base color (0-360Β°)
  3. Adjust the opacity slider to change transparency (0-100%)
  4. Click any format’s copy button to copy the color code

Generating Shades

Creating Harmonies

  1. Click a harmony tab (Complementary, Analogous, etc.)
  2. View the generated harmony colors
  3. Click any harmony color to select it

Recent Colors

Dark Mode


πŸ”§ Customization

Change Primary Color

Edit in style.css:

--color-primary-500: #3B82F6; /* Change this */

Add More Shades

Edit in script.js:

const lightnesses = [95, 86, 77, 68, 59, 50, 41, 32, 23, 14];
// Add more values

Change Initial Color

Edit in script.js:

let currentColor = {
    h: 217,  // Change hue
    s: 91,   // Change saturation
    l: 60,   // Change lightness
    a: 1     // Change alpha
};

🀝 Contributing

Found a bug or want to improve this tool?

  1. Fork the repository
  2. Make your changes
  3. Test thoroughly
  4. Submit a pull request

See CONTRIBUTING.md for guidelines.


πŸ“„ License

MIT License - feel free to use this tool in your own projects!


πŸ™ Credits



⭐ Star the repo if you find this useful!

πŸš€ Built with Deepv Code