The Appearance API

The Appearance API

The Appearance API provides a comprehensive theming system for CyoGate embedded components — enabling pixel-perfect customization to match your brand.

Setting a Theme

CyoGateComponents.setAppearance({
  theme: 'custom',
  variables: {
    colorPrimary:        '#8dc63f',
    colorBackground:     '#ffffff',
    colorText:           '#1f2937',
    colorBorder:         '#d1d5db',
    colorFocusBorder:    '#8dc63f',
    colorError:          '#ef4444',
    fontFamily:          '"Inter", sans-serif',
    fontSize:            '14px',
    borderRadius:        '6px',
    inputHeight:         '44px',
    inputPadding:        '10px 14px',
  }
});

Dark Theme Example

CyoGateComponents.setAppearance({
  theme: 'custom',
  variables: {
    colorPrimary:    '#a8d85a',
    colorBackground: '#1e1e2e',
    colorText:       '#c8cdd8',
    colorBorder:     '#2e2e42',
    borderRadius:    '8px',
    inputHeight:     '46px',
  }
});

CSS Variables Reference

VariableDescriptionDefault
colorPrimaryBrand accent (buttons, focus rings)#0066cc
colorBackgroundField background#ffffff
colorTextPrimary text color#1f2937
colorBorderDefault border color#d1d5db
colorErrorValidation error color#ef4444
fontFamilyComponent font familysystem-ui
fontSizeBase font size14px
borderRadiusCorner radius4px
inputHeightPayment field height40px

Per-Component Override

CollectJS.configure({
  appearance: {
    variables: { colorPrimary: '#8dc63f', borderRadius: '4px' }
  },
});

Take Your Business to the Next Level

Find out how our innovative payment solutions can benefit your business. Reach out to us for more information or to get started!

Let's Get Started