Skip to main content
You’re reading the legacy documentation for Calling SDK v4 (JavaScript).Follow this page only if your app is on v4.x. If you’re using v5, see the Calling SDK v5 documentation instead.Ready to move off v4? Follow the v4 → v5 migration guide.
Passing custom CSS allows you to personalize and enhance the user interface of the call screen.

Common CSS Classes

There are a few common classes used for different modes in the call screen
  1. cc-main-container - The outermost component of the calling component is represented by a white border in the screenshots above, indicating that it acts as a container for other components.
  2. cc-bottom-buttons-container - The container located at the very bottom of the interface houses various action buttons, such as the mute/unmute audio and video, end call, settings icon, and participants icon, among others. It is represented by the red border in above screenshot.
  3. cc-name-label - This class is passed in user name text container in all modes. It is represented by green border in the above screenshots.
  4. cc-video-container - This class is passed to the video container in all modes. It is represented by orange border in the above screenshots.

Bottom Buttons

  1. cc-bottom-buttons-container - This is the container of all the buttons in calling.
  2. cc-bottom-buttons-icon-container - This is the div of every button in the button bar.

Individual bottom buttons CSS classes

  • cc-audio-icon-container
  • cc-audio-icon-container-muted
  • cc-video-icon-container
  • cc-video-icon-container-muted
  • cc-screen-share-icon-container
  • cc-switch-video-icon-container
  • cc-end-call-icon-container

Example

The above example results in the below output:- Mode: DEFAULT
Mode: TILE
Mode: SPOTLIGHT
The above example results in the below output:-

Guidelines for Customizing the Grid Layout

  • CSS Classes:
    • Please ensure that you only apply CSS classes specified in this documentation. Introducing CSS classes not covered here may cause unexpected UI issues.
  • Grid Container Resizing:
    • Avoid resizing the grid container. Altering the grid container’s dimensions can negatively impact the grid layout, leading to undesirable visual distortions.
By following these recommendations, you can maintain a stable and visually consistent grid layout.