# Preview a Logo in 100+ Color Palettes and Export a ZIP

> Upload a logo, generate colour variations from 100+ palettes, check contrast, and export your favourites as one high-resolution ZIP - all in the browser.

URL: https://thuyavan.netlify.app/scripts/logo-color-previewer
Updated: 2026-10-07

## Problem
Logo workflows need a separate file for every colour variation and often skip accessibility testing, producing logos that vanish on some backgrounds.

## Solution
A canvas workspace that parses logos into editable objects, applies palettes in one click, checks contrast live and exports favourites as a ZIP.

## Result
Rapid brand-colour prototyping where every variation is checked against accessibility standards.

## Input
- An SVG or PNG logo (drag-and-drop)

## Output
- ZIP archive of favourited variations rendered at up to 2048px

## Optional output
- Variation grid of "what-if" colour scenarios
- Smart Contrast suggestions for AA / AAA

## System flow
Upload (react-dropzone · svgson) -> Fabric.js canvas (Editable logo objects) -> colorApplier (100+ palettes · clone render) -> Chroma-js (WCAG contrast check) -> JSZip export (Client-side batch ZIP)

## How it works
- **Smart parsing:** Uploaded files become selectable canvas objects with lock, hide and delete controls.
- **Palette library:** 100+ palettes by mood with search and filtering.
- **Smart Contrast:** Real-time contrast ratios with auto-adjust suggestions for AA or AAA.
- **Dynamic variation grid:** All colour combinations shown side by side.
- **Batch export:** Favourite variations rendered at high resolution and zipped in the browser.

## Configuration
- `Palette selection`: Choose categories and favourite the variations to export.
- `Export size`: Output resolution up to 2048px.

## How to run
Install & start (development):

    npm install && npm run dev
Use it:

    # Upload logo → pick palettes → favourite variations → Export ZIP

## Impact
- 50+ colour variations in the time it takes to design one by hand.
- Accessibility-first contrast checking from day one.
- Agency-style batch delivery with zero server footprint and full privacy.

## FAQ
**How can I see my logo in many color palettes quickly?**
Upload it, select palettes, and click Generate Previews to see every variation side by side.

**Does it check accessibility?**
Yes. Chroma-js calculates WCAG contrast ratios and suggests adjustments for AA or AAA.

**Is my logo uploaded to a server?**
No. Rendering and ZIP creation happen client-side with Fabric.js and JSZip.

