Demo
Pick a brand and watch the page mockup re-theme: The accent colors above are realGET /brand/:domain responses, fetched once and inlined because the Brand API takes a secret key.
Build it with AI
Want on-brand output in your app? This prompt gives your AI coding tool everything it needs to build it in your framework.
Code
This example is in React, but you can get the same result in any frontend framework: the pattern is one fetch, one accent pick, and inline styles. Fetch the brand withget-brand.ts, then hand the logo and accent to whatever renders your output.
Your publishable key is built for client-side code, so
you can ship it in the browser as-is. Your secret key powers the
get-brand.ts fetch and stays on the server.How it works
- Each brand is one request.
GET /brand/:domainfrom the Brand API returns the name, logo URL, and an ordered color palette together, so a generation pipeline adds exactly one fetch. - The logo URL is ready to use. The
logofield is animg.logo.devURL that accepts the usualsize,format, andthemeimage parameters, so the same response themes a thumbnail or a hero. - Neutrals need filtering. Palettes often lead with black or white, so
pickAccentskips low-saturation colors and buttons never render in #000.
Make it your own
- Reuse the theme for slides and emails. The same logo and accent pair drives a slide master, an email header, or a PDF cover. Import the full kit with the brand asset import pattern when you need banners too.
- Pair it with onboarding. Get the domain from the user’s work email with the onboarding autofill pattern, then theme their whole workspace.
Next steps
Brand API
Get the full brand profile: logo, brandmark, banners, and colors.
Onboarding personalization
Capture the domain at signup and theme from day one.