Docs
Workspace

Get the design system

GET/workspaces/current/brand-themeNeedscontent.view

The workspace's design system (brand theme) for guidance on your site: style, font, light and dark colours, corners, shadow, buttons and default widths. Items with useBrandTheme follow it.

Authorization

secretKey
headerAuthorizationBearer <sk_…>

A secret API key from Settings → API keys. It acts with its creator's role.

Response Body

OK

application/json
  1. response
brandTheme*
styles*

Each style's full defaults (clean, soft).

Shell
curl -X GET 'https://app.cueston.com/api/workspaces/current/brand-theme'
Example Response
JSON
{
  "brandTheme": {
    "style": "clean",
    "font": "system",
    "radius": 0,
    "buttonRadius": 0,
    "buttonSize": "medium",
    "shadow": "none",
    "customShadow": {
      "x": 0,
      "y": 0,
      "blur": 0,
      "spread": 0,
      "color": "string",
      "opacity": 0
    },
    "showBorder": true,
    "secondaryButton": "text",
    "bannerEmphasized": true,
    "light": {
      "surfaceColor": "string",
      "textColor": "string",
      "accentColor": "string",
      "accentTextColor": "string",
      "borderColor": "string"
    },
    "dark": {
      "surfaceColor": "string",
      "textColor": "string",
      "accentColor": "string",
      "accentTextColor": "string",
      "borderColor": "string"
    },
    "sizes": {}
  },
  "styles": {}
}