OmerMakesStuff/palette-generator-thing ? reverse-engineered prompt

Reverse engineered prompt

Build me a simple web app that helps people generate UI color palettes from a base hex color.

I want the main color to drive a full set of light to dark shades, plus a muted neutral palette and a danger palette for errors or destructive actions. Let the user pick the primary color, randomize it if they want, and optionally choose or customize neutral and danger colors too. It should also let them add extra colors, name them, and generate palettes from those as well.

Make the chosen colors stay in the page URL so the palette can be reopened or shared later. Add a code export view where the generated palettes can be copied out as CSS, SCSS, or JSON, with different color formats like hex, RGB, HSL, LAB, LCH, OKLAB, and OKLCH. Include useful token values too, like a main color and a readable foreground color.

Keep it clean and responsive, with a sidebar on desktop and a drawer on mobile.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab