Menu

Our site and our desktop app use 58 colours between them and share 15, and three the site owns alone are a fake window's traffic lights
📰

Our site and our desktop app use 58 colours between them and share 15, and three the site owns alone are a fake window's traffic lights

DEV Community: css·Daniel Pertu·2 days ago
#nWA2KfyC
#devtocss#devto#dev#fafafa#enter
Reading 0:00
15s threshold

Notifio exists as two pieces of front end. There is the website, 38 pages of Next.js that explain the product and sell it, and there is the desktop app itself, an Electron renderer you install from the download page . Same product, same person writing both, a few weeks apart.

I have counted the colours on each of them separately before. The website's stylesheet turned out to lean on #a3a3a3 138 times , a value Tailwind dropped from its own palette. What I had never done is put the two sets side by side and ask how much of the brand is actually shared, rather than remembered.

The two sets

For the website I counted every six-digit hex in what it actually serves: all 38 live pages plus the single stylesheet they link.

cat p_*.html site.css | grep -oE '#[0-9a-fA-F]{6}\b' | tr 'A-F' 'a-f' | sort -u

Enter fullscreen mode

Exit fullscreen mode

For the app, the same expression over the renderer source.

distinct occurrences served website 34 9,800 Electron renderer 39 322 union 58 shared 15 website only 19 app…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.