Quick Exchange
  • Quick Exchange for Partners
  • Expired Quote Handling
  • Widget Integration
    • Embedded Widget
    • Configuration
      • Config Version
      • Settlement Defaults
      • Settlement Parameters
      • Custom Styles
      • Identity
      • Special Layout
      • Partner Fields
    • Event Hooks
  • API Integration
    • Authentication
    • User Session
      • OAuth
      • KYC
    • Settlements
  • Settlements
    • Funding Methods
      • BLOCKCHAIN_TRANSFER
      • BLOCKCHAIN_DELEGATED_BROADCAST
      • CARD_PAYMENT
        • Test Cards
    • Payout Methods
      • BLOCKCHAIN_TRANSFER
      • LIQUID_PARTNER_WALLET
      • LIQUID_WALLET
      • LIQUID_USER_WALLET
  • E-Commerce
    • X-Quoine-Auth
    • Intents (Fixed Settlements)
      • Deliverable Currency
    • Transactions
      • Transaction Status
Powered by GitBook
On this page

Was this helpful?

  1. Widget Integration
  2. Configuration

Custom Styles

Extensively customise the appearance of the widget

PreviousSettlement ParametersNextIdentity

Last updated 4 years ago

Was this helpful?

There are three different themes for the widget. Integrations should find the theme that most closely matches their desired style, then apply modifications to that.

{
  "public_api_key": "pk_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "config_version": "1.2",
  "theme": "light",
  "custom_styles": {
    "cs-base": {
      "color": "red"
    },    
    "cs-highlight": {
      "background": "yellow"
    }
  }
}

Component Styles

Configurable Attributes

  • cs-base

  • cs-button

  • cs-error

  • cs-highlight

  • cs-interactive

  • cs-select

  • cs-special

  • cs-subtext

  • cs-icon

  • background

  • border-color

  • color

For example:

{
  "public_api_key": "pk_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "config_version": "1.1",
  ...
  "custom_styles": {
    "cs-base": {
      "color": "#333",
    },
    "cs-subtext": {
      "color": "#666",
    },
    "cs-special": {
      "background": "#fff",
      "color": "#333",
      "border-color": "#e8e8e8",
    },
    "cs-error": {
      "color": "#f4532f",
      "border-color": "#f4532f",
    },
    "cs-button": {
      "color": "#000",
      "background": "#2a9ff8",
    },
    "cs-select": {
      "background": "#fff",
    },
  },
}