Workspace
Get the design system
GET
/workspaces/current/brand-themeNeedscontent.viewThe 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
secretKeyheader
AuthorizationBearer <sk_…>A secret API key from Settings → API keys. It acts with its creator's role.
Response Body
OK
application/json- 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": {}
}Update help hub settingsPATCH
Partial: tabs merge one by one. Visitors get the change within a minute.
Update the design systemPATCH
Partial: light/dark colours, customShadow and sizes merge. A new style resets to that style's defaults first. Themed items on your site change within a minute, without re-publishing.