---
title: "Set Custom CSS"
method: POST
path: "/hosted-card/set-custom-css"
---

# Set Custom CSS

`POST /hosted-card/set-custom-css`

## Request

- Base URL: `https://www.sandbox.striga.com/api/v1`
- URL: `https://www.sandbox.striga.com/api/v1/hosted-card/set-custom-css`
- Auth: API key in header `api-key` and API key in header `Authorization`

This API allows you to define custom CSS styles for your hosted card interface, specifically for fonts and colors. It helps you align the appearance of the cards with your brand guidelines. The styles will be applied across all hosted card screens.

## Request body

- object
  - `font` object
    - `googleFontUrl` string: The URL to the Google Fonts stylesheet used to load the selected font.
    - `family` string, required: The name of the font family to apply throughout the interface.
  - `colors` object
    - `text` object
      - `heading` string: Hex color used for main headings and titles.
      - `body` string: Hex color used for general body text.
    - `formControl` object
      - `input` object
        - `text` string: Hex color used for text entered into input fields.
        - `placeholder` string: Hex color used for placeholder text shown inside input fields.

## Response `200`

## Changes

- **2026-11-03** `0541ed1923c1`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/striga/apis/striga-v1/changes/hosted-card/set-custom-css/post.md)

---

[API](https://skmtc.dev/striga/apis/striga-v1.md) - [All operations](https://skmtc.dev/striga/apis/striga-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/striga/apis/striga-v1/revisions/0541ed1923c1?raw)
