← All operations

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

NameTypeRequiredDefaultDescription
d string yes — Domain to generate CSS for

Working Examples

Response Format

:root {
  --color-bg: #ffffff;
  /* ... */
}
@media (prefers-color-scheme: dark) {
  :root { /* ... */ }
}