The Freshsales UI is built on a modified version of the Bootstrap v3.3 framework. The user interface of apps that are to be published on the Freshworks Marketplace need to be consistent with the Freshsales UI. We do not enforce this for custom apps but it is highly recommended for better user experience.
Here are a few guidelines that you need to follow.
- Import the Freshsales app stylesheet in all templates and ensure that the class names of UI elements used in the app match those used by Bootstrap.
<link rel="stylesheet" type="text/css" href="https://static.freshdev.io/fdk/2.0/assets/freshworks_crm.css">Note: For an omni app, use:
<link rel="stylesheet" type="text/css" href="https://static.freshdev.io/fdk/2.0/assets/freshworks.css">
All template files should contain a div block with class="fs-widget-wrapper" inside the body of the template. This is used to implement styles which are applicable to all elements of the app.Copied Copy12345
<body> <div class="fs-widget-wrapper"> //template code </div> </body>
A few elements and their usage are listed in the following table.
ELEMENT USAGE Label - Defines a label for an input element <span class="label">Company</span> Section Divider - Separates various sections of the app. <div class="fw-divider"></div> Links - Allows users to move from one page to another. No class needs to be added. <a href="">First Opportunity</a> List - All divs within the parent are placed one after the other. If you are using this template to display field names and values, use the muted class for field names. Copied Copy1234 <div class="fw-content-list"> <div class="muted">Email</div> <div>email@example.com</div> </div>
To build apps that are consistent with the Freshworks UI, you can use our UI component library - Crayons. Crayons leverages the custom CSS properties to provide a default theme and style for the app’s UI components. To include components such as section dividers, links, and lists you can use the FCRM app stylesheet. For more information on how to use the stylesheet, see the UI Style Guide.