Own products & experimentsOwnerApr 2026

Logo Color Previewer: colour variations with a WCAG contrast check

TL;DR

Upload a logo, generate colour variations from curated palettes, check accessibility contrast and export your favourites as one high-resolution ZIP; nothing leaves the browser.

Period
Apr 2026
Technologies
4
Diagrams
1
Reading time
1 min

Next.jsReactTypeScriptTailwind CSS

2 chapter(s) collapsed in quick read

Purpose (owner's portfolio text)

“Logo workflows need a separate file for every colour variation and often skip accessibility testing.” The tool is a canvas workspace that parses SVG / PNG logos into editable objects, applies 100+ palettes in one click, checks WCAG contrast live and exports favourites as a high-resolution ZIP, all in the browser.

Stack

Next.js 16.1, React 19.2, Fabric.js 7.1 (canvas objects / layers), chroma-js 3.2 (palette and contrast maths), react-colorful (picker), @dnd-kit core / sortable (drag-reorder layers / objects), Zustand 5 (workspace store with history), JSZip + file-saver (ZIP export), react-dropzone (upload), Zod 4, nanoid, next-themes, sonner, react-intersection-observer, Radix (alert-dialog, dialog, dropdown-menu, label, popover, radio-group, select, slider, slot, switch) + CVA / clsx / tailwind-merge.

Architecture

Routes: / (landing), /dashboard, /sandbox, /settings. Components: canvas/{CanvasWorkspace, LayerList, ObjectList}, palettes/{PaletteLibrary, PaletteCard, PaletteSearch}, preview/{PreviewGrid, PreviewCard}, tools/{ToolsPanel, UploadButton, ExportDialog}, providers/error-handler, ui/* (shadcn-style incl. colour picker, error boundary).

Architecture
Diagram as text
flowchart LR
 UP[Drop SVG/PNG] --> PARSE[Fabric: parse into objects/layers]
 PARSE --> WS[CanvasWorkspace + layer/object lists (dnd-kit)]
 PAL[Palette library 100+ / search] --> APPLY[apply palette → recolour objects]
 APPLY --> WS
 WS --> WCAG[chroma-js contrast vs backgrounds]
 WS --> GRID[PreviewGrid variations]
 GRID --> ZIP[ExportDialog → JSZip high-res ZIP]
 WS <--> HIST[Zustand store: undo / redo, preserved layers]

Related projects

Want to discuss this project?

Happy to walk through the architecture, trade-offs or the code.

Email me about it

© 2026 Thuyavan Sivarasa. Script code is MIT licensed.