An open API service indexing awesome lists of open source software.

https://github.com/themiu/random-color-palette-generator-with-svg-export

🎲 Random Color Palette Generator 🎨 with SVG Export
https://github.com/themiu/random-color-palette-generator-with-svg-export

color-palette color-theme random-color-generator svg

Last synced: 6 months ago
JSON representation

🎲 Random Color Palette Generator 🎨 with SVG Export

Awesome Lists containing this project

README

          

# 🎲 Random Color Palette Generator 🎨 + SVG Export

This is a simple web-based tool to generate random color palettes with 2 to 7 colors. You can export the generated palette as an SVG file and toggle between light and dark modes using a sticky button to see how colors look in different themes.

## Demo

🔗 https://themiu.github.io/random-color-palette-generator-with-svg-export/

## Features

- Generate random color palettes of 2 to 7 colors.
- Export the generated palette as an SVG file.
- Sticky dark mode button to see how colors look in different themes.

## Technologies Used

- **HTML5**: Structure of the web page.
- **CSS3**: For layout, styling, and making the dark mode toggle button sticky.
- **Bootstrap 4**: For responsive design and styling.
- **JavaScript (ES6)**: Core logic for generating colors, exporting SVG, and toggling dark mode.
- **Font Awesome**: Icons used for light/dark mode (sun/moon).

## How to Use

1. Open the app in a browser.
2. Set the number of colors you want to generate (between 2 and 7).
3. Click the "Generate Palette" button to create the random color palette.
4. The generated colors will display as blocks with their hex codes.
5. Click the "Export as SVG" button to download the palette as an SVG file.
6. Use the sticky dark mode button on the top-right corner to toggle between light and dark modes.
7. **Test your palette**: Toggle between light and dark modes to see how the generated colors work on different backgrounds (light and dark themes).