Get theme colors as CSS
GET
/colors.css
Generates CSS custom properties (light/dark) for a domain's active theme, meant to be linked directly as a stylesheet. Supports ETag/If-None-Match caching. This is a stylesheet endpoint -- it never returns JSON.
Produces:
text/css
Idempotent: yes
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
d |
string | yes | — | Domain to generate CSS for |
Working Examples
-
Get colors.css — CSS custom properties for memorize.live
https://brand.dauntless.ventures/colors.css?d=memorize.live
Response Format
:root {
--color-bg: #ffffff;
/* ... */
}
@media (prefers-color-scheme: dark) {
:root { /* ... */ }
}