Skip to main content
Back to projectsWeb tool · Personal project
Craftie — your brand identity from a single image
Web tool · Personal project

Craftie — your brand identity from a single image

Start with an inspiration: pick a curated style or upload an image and Craftie instantly loads your brand’s seed colors. Then adjust roles, check contrast in context, choose typography and export your guide.

Disciplines
UX/UIFrontend
Role
End-to-end design and development
Context
Web tool · Personal project
Duration
Live · 2026
Stack
Next.js 16 · React 19 · TypeScript · culori (OKLCH) · Vitest
Enlaces externos
Try it live
GitHub
01 — THE PROBLEM

THE PROBLEM

Picking colors that look good together and are also readable is hard. Most tools give you pretty colors but never tell you whether text on top will be legible.

Go from an image or an idea to a complete brand system (colors, contrast and typography) without needing to know color theory.

Color Space (Before)

Tweaking lightness in sRGB/HSL shifts perceived saturation and distorts brand hues.

Solution

Perceptual OKLCH space isolates lightness (L) while keeping tone (H) intact.

Contrast Checks (Before)

Blind checkers that throw "Fail" without showing how to fix the issue.

Solution

Guided suggestions: Craftie calculates the exact shift to hit 4.5:1 (AA) or 7:1 (AAA).

Dark Mode (Before)

Crafting light-only palettes and manually rewriting dark mode tokens from scratch.

Solution

Symmetric semantic role generation (surface, text, accent) for both light and dark in one click.

02 — DECISIONS

What happens behind the interface

All color logic lives in pure, tested functions, separate from the UI.

Why OKLCH?:It changes lightness without shifting hue, so a color can be tuned to pass contrast while still looking like the original.
Suggestions, not just errors:If a pairing fails AA or AAA, Craftie proposes the smallest lightness change that makes it pass.
Everything in your browser:Images and fonts you upload never leave your computer: no server, no accounts.
500+ tests:The color and contrast engine is covered by Vitest tests, so results are predictable.
Q.

Why OKLCH over standard HSL or Hex?

A.

HSL is not perceptually uniform: yellow and blue at 50% lightness have drastically different contrast. OKLCH aligns calculations with human eye perception.

Q.

Why run image extraction in the client instead of a server API?

A.

Full privacy and zero latency: images never leave the device, and quantization finishes in milliseconds with zero backend cost.

Q.

How do you prevent contrast suggestions from breaking brand tone?

A.

The engine searches for the minimum lightness delta needed to hit WCAG ratios, keeping chroma and hue intact.

Q.

Why decouple color logic from UI components?

A.

All color math lives in pure, framework-agnostic functions backed by 100+ unit tests in Vitest.

03 — WHAT I BUILT

How it works

Start with an inspiration:Pick a curated style or upload an image (JPG, PNG or WebP, up to 5 MB). Craftie extracts the colors and classifies them as pastel, vivid, dark or neutral.
Tap a role and adjust it:Change the color of any role and check contrast in context: WCAG AA or AAA, plus an APCA reading.
Export your guide:Choose typography (curated pairs, Google Fonts or your own fonts) and export to CSS, design tokens (JSON), Figma, DESIGN.md or brand kit.
Craftie: your brand identity from  en vista móvil
Responsive editing and mobile touch controls
04 — RESULT

By the numbers

500+Automated testsColor, contrast and export logic covered with Vitest.
~90Font pairingsRecommended based on the style you choose.
5Export formatsCSS, JSON, Figma Tokens, DESIGN.md and brand kit.
LEARNINGS

What I learned from this project

01

Product & Design

Showing the contrast ratio next to a concrete fix helps far more than a plain "fails".

02

Technical Architecture

Keeping color logic in pure functions, away from the UI, let me redesign the interface many times without breaking the math.

03

Core Takeaway

An accessibility tool has to be accessible first.