Track · palette
Palette track
Named colour palettes. Five presets today — sunset, forest, ocean, cathedral, bone — shipped as five-swatch runs (deep / mid / accent / ink / whisper). Element palettes (fire / water / earth / air) live in the astrology product; scene and pricing-card responses carry them on demand.
Endpoints
| Route | Auth | Purpose |
|---|---|---|
GET /api/v1/palette?format=css | public | Raw --palette-* CSS vars. |
GET /api/v1/palette?format=css&group=<name> | public | One group at a time. |
GET /api/v1/palette | studio:v1:use | JSON catalog (every group + swatch). |
CSS example
<link rel="stylesheet"
href="https://urja.insightsbyomkar.com/api/v1/palette?format=css" />
Emits a :root block:
:root {
--palette-sunset-deep: #1a0a0a;
--palette-sunset-mid: #4a1a2a;
--palette-sunset-accent: #ff8866;
--palette-sunset-ink: #ffd9b8;
--palette-sunset-whisper: #6a2a3a;
/* …four more groups */
}
Groups
| Group | Mood | Use case |
|---|---|---|
sunset | Warm / editorial | E-commerce, wellness, lifestyle. |
forest | Grounded / calm | Productivity, nature, conservative finance. |
ocean | Trusted / corporate | SaaS, finance, B2B. |
cathedral | Premium / intimate | Luxury, fashion, spiritual. |
bone | Minimal / editorial | Design, architecture, publishing. |
Each group's swatch shape is identical (deep/mid/accent/ink/whisper) so consumers can swap groups without changing styling code.
