pedro@portfolio ~ % open ./projects/colorbook
ColorBook
Pantone TCX colour finder, palette generator and swatch checker — web, Chrome extension and npm.
- role
- Creator
- year
- 2024 – 2026
2,800+
Pantone TCX shades
3
surfaces: web, extension, npm
210+
commits
~ % cat README.md
Overview
An all-in-one colour toolkit for designers working with the Pantone TCX (textile) system. Search 2,800+ shades by HEX, name or TCX code, compare them against real cotton swatches, extract palettes from images and save or share collections.
Shipped as a statically exported website, a Chrome extension, and pantone-tcx — an open-source npm package that brings the same nearest-Pantone matching to any JavaScript project.
~ % ls ./features
What it does
Search anything
Find shades by HEX, name or TCX code, filter by colour family and list similar colours by count.
Palette generator
Build palettes from partial colour names, or extract the dominant colours from an uploaded image.
Swatch checker
Toggle between flat colour and real cotton-swatch images to judge how a shade looks on fabric.
Save & share
Favourite colours and palettes in local storage, editable palette names, undo on delete and share links for any palette.
Per-colour pages
Statically generated, SEO-friendly pages for every colour and palette, with structured data and Open Graph images rendered by a Puppeteer script.
Chrome extension
Pick any colour on screen with the EyeDropper API, get its nearest Pantone TCX match, and see favourites and palettes synced from the website.
npm package
pantone-tcx converts colours to CIELAB and uses Delta E to return the nearest Pantone, its name or TCX code, or similar colours within a distance.
~ % cat CHANGELOG.md
Highlights
- ▸Virtualised colour grid (TanStack Virtual) that only re-renders when the visible rows change, with small fabric thumbnails built at compile time.
- ▸Audit-driven work: a full audit split into four phases; the first shipped 20 correctness and performance fixes plus a Vitest suite and a build check script.
- ▸The npm library is bundled with Rollup to CommonJS and ES modules.
~ % ls ./screenshots
Gallery
next › ./projects/starter
Sanity × Next.js × Cloudflare Starter