Menu

Build a Colour Palette in the Browser: Harmony Rules and CSS Variables
📰

Build a Colour Palette in the Browser: Harmony Rules and CSS Variables

DEV Community: webdev·OnePassApps·13 days ago
#65koUDYG
#devtowebdev#devto#dev#base#colour
Reading 0:00
15s threshold

Five colours, one hex value

Every project starts the same way: someone picks a colour, and then a dozen more have to be derived from it. A button hover, a muted background, a border that has to sit somewhere between the two.

The usual way to get those extra colours is a colour picker in a design tool, or a web page that asks you to upload an image of your palette. The Colour Studio's Palettes tab in OnePassApps takes the first route instead: give it one hex value and it builds a palette from it in the browser tab, with the CSS custom properties already written for you.

Open it here: the Colour Studio

What the tab actually shows

The Colour Studio carries four tool tabs on one page: Picker, Contrast, Palettes, Image .…

Continue reading — create a free account

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