Custom CSS
This feature is available on Beefree SDK Superpowers plan and above. If you're on the Core or Essentials plan, upgrade a development application for free to try this and other Superpowers-level features.
Defining a custom look & feel through a CSS stylesheet
To define a custom look and feel through a CSS stylesheet, assign the URL of your CSS file to the customCss
property in your JavaScript code, as shown in the following example.
customCss: 'https://yourdomain.com/stylesheet.css'
Using different values for different users of the builder
You can customize the builder's CSS for different users by dynamically setting the customCss
property with a unique CSS file URL for each user. Simply concatenate the user-specific identifier to the base URL as shown in the example code.
customCss: 'https://yourdomain.com/' + users[config.user].id + '.css'
Best practices and risk management
Custom CSS is an advanced feature, which gives the host application great flexibility to customize the UI/UX of the builder.
Please use this feature with caution.
When used properly, it is a powerful tool that can be leveraged to accomplish anything from applying custom styles with fine granularity to changing icons.
When misused, however, it may harm the user experience and the rendering capability of the builder’s stage. For example, styles applied to the stage via CSS will not be reflected in the preview or exported HTML.
If you're looking to hide certain UI elements, we recommend you first check if that can be accomplished with Advanced Permissions, as it may be easier to implement.
For the best possible results, please follow these best practices:
Avoid using generic global styles. (e.g. *, p, input, etc.) that could propagate to the editing stage.
Use CSS selectors to select specific elements and groups (e.g. body.bee–cs h3).
Do not attempt to pass JavaScript or any other scripts via CSS.
Ensure the custom CSS URL is hosted over HTTPS.
Do not link to CSS files hosted on GitHub, or by any 3rd party.
Never style elements on the stage, since those styles will not appear in the final HTML, and therefore lead to a confusing user experience.
Please note that classnames with the --cs
suffix are reliable selectors for customCSS.
Other selectors such as the following should be avoided as much as possible:
Nested tag structure (e.g.
div > div > div
)Siblings (
input + label
)Classnames without –cs (e.g.
.icons__item)
Prefixed classname selectors (e.g.
div[class^="StageModuleIcons_itemRow"]
)
Sample Custom CSS Theme
Reference the following Sample Custom CSS Theme to see an example of how you can use custom CSS in your web application.
https://gist.github.com/44daee53546a9f48ecad7f52784efa55.git
This section lists the classnames for different buttons within the sidebar, aimed at developers seeking to customize or understand the styling applied to these components. You can use this information to more easily modify or enhance the user interface of your web application.
This section will cover button classnames for the following sidebar areas:
Content
This section lists the classnames for buttons within the content area of the sidebar.
Add-on
This section lists the Add-on sidebar widget sub-elements and classnames.
Add-on CTA
Sub-Element | Deprecated | New Classnames |
---|---|---|
NA |
|
|
Button
This section lists the Button sidebar widgets and their respective deprecated and new classnames.
Write with AI
Sub-element | Deprecated | New Classnames |
---|---|---|
NA |
|
|
Link
This section lists the Button sidebar widgets and their respective deprecated and new classnames.
Sub-element | Deprecated | New Classnames |
---|---|---|
Special links |
|
|
Link file |
|
|
Add custom special link |
|
|
Attributes
This section lists the Button sidebar widgets and their respective deprecated and new classnames.
Sub-element | Deprecated | New Classnames |
---|---|---|
Add new attribute |
|
|
Delete |
|
|
Carousel
This section lists the Carousel sidebar widgets, sub-elements, and classnames.
Add New Slide
Sub-element | Deprecated | New Classnames |
---|---|---|
NA |
|
|
Draggable Item
Sub-element | Deprecated | New Classnames |
---|---|---|
Change image | NA |
|
Delete | NA |
|
Dynamic Content
This section lists the Dynamic sidebar widgets, sub-elements, and classnames.
Choose a Custom Merge Content
Sub-element | Deprecated | New Classnames |
---|---|---|
NA |
|
|
Form
This section lists the Form sidebar widgets, sub-elements, and classnames.
Edit Form
Sub-element | Deprecated | New Classnames |
---|---|---|
NA | NA |
|
Manage Fields
Sub-element | Deprecated | New Classnames |
---|---|---|
Edit |
|
|
Delete |
|
|
Add new field |
|
|
Heading
This section lists the Form sidebar widgets, sub-elements, and classnames.
Write with AI
Sub-elemet | Deprecated | New Classnames |
---|---|---|
NA |
|
|
Icons
This section lists the Icons sidebar widgets, sub-elements, and classnames.
Add New Icon
Sub-element | Deprecated | New Classnames |
---|---|---|
Button |
|
|
Draggable Icon
Sub-element | Deprecated | New Classnames |
---|---|---|
Change image |
|
|
Apply effects |
|
|
Delete |
|
|
Image
This section lists the Image sidebar widgets, sub-elements, and classnames.
Apply Effects
Sub-element | Deprecated | New Classnames |
---|---|---|
NA |
|
|
Change Image
Sub-element | Deprecated | New Classnames |
---|---|---|
NA |
|
|
Link
Sub-element | Deprecated | New Classnames |
---|---|---|
Special links |
|
|
Link file |
|
|
Add custom special link |
|
|
Attributes
Sub-element | Deprecated | New Classnames |
---|---|---|
Add new attribute |
|
|
Delete |
|
|
List
This section lists the List sidebar widgets, sub-elements, and classnames.
Write with AI
Sub-element | Deprecated | New Classnames |
---|---|---|
NA |
|
|
Menu
This section lists the Menu sidebar widgets, sub-elements, and classnames.
Add New Item
Sub-element | Deprecated | New Classnames |
---|---|---|
NA |
|
|
Menu Item
Sub-element | Deprecated | New Classnames |
---|---|---|
Delete |
|
|
Link file |
|
|
Paragraph
This section lists the Paragraph sidebar widgets, sub-elements, and classnames.
Write with AI
Sub-element | Deprecated | New Classnames |
---|---|---|
NA |
|
|
Social
This section lists the Social sidebar widgets, sub-elements, and classnames.
Add New Icon
Sub-element | Deprecated | New Classnames |
---|---|---|
Button |
|
|
Social Icon Item
Sub-element | Deprecated | New Classnames |
---|---|---|
Delete |
|
|
Change image |
|
|
Apply effects |
|
|
Rows
This section lists the classnames for buttons within the row area of the sidebar.
Row Background Image
Sub-element | Deprecated | New Classnames |
---|---|---|
Choose image |
|
|
Row Background Video
Sub-element | Deprecated | New Classnames |
---|---|---|
Change video |
|
|
Display Condition
Sub-element | Deprecated | New Classnames |
---|---|---|
Select condition |
|
|
Add condition |
|
|
Edit condition |
|
|
Open builder |
|
|
Column Structure
Sub-element | Deprecated | New Classnames |
---|---|---|
Add new |
|
|
Delete |
|
|
Settings
This table lists the classnames for buttons within the settings area of the sidebar.
Favicon
Sub-element | Deprecated | New Classnames |
---|---|---|
Add favicon |
|
|
Favicon item
Sub-element | Deprecated | New Classnames |
---|---|---|
Change favicon |
|
|
Delete |
|
|
Radiogroups in the context of our web application refer to a UI component that groups together a set of radio buttons, allowing users to select one option from multiple choices. Each radiogroup is associated with specific classnames that define the appearance and behavior of the grouped buttons within the sidebar's layout. These classnames, such as radiogroup--cs
and radiogroup-button--cs
, are crucial for ensuring consistent and functional navigation in your application's user interface.
This section will cover widget classnames for content in the sidebar. This section will list the classnames for the following sidebar tabs:
Rows
This section lists the classnames for widgets and content within the row area of the sidebar.
Vertical Align
Content | Deprecated | New Classnames |
---|---|---|
NA | NA |
|
Row Background Image - Apply Image To
Content | Deprecated | New Classnames |
---|---|---|
NA |
|
|
Rows & Content
This section lists the classnames for widgets and content within the Row & Content area of the sidebar.
Hide On (Mobile/Desktop) + Confirmation Modal
Content | Deprecated | New Classnames |
---|---|---|
|
|
|
Content
This section lists the classnames for widgets and content within the Content area of the sidebar.
Hide on (amp/html)
Content | Deprecated | New Classnames |
---|---|---|
|
|
|
Align
Content | Deprecated | New Classnames |
---|---|---|
|
|
|
Line Height
Content | Deprecated | New Classnames |
---|---|---|
|
|
|
List Type
Content | Deprecated | New Classnames |
---|---|---|
List |
|
|
Label Position
Content | Deprecated | New Classnames |
---|---|---|
Form Label Options |
|
|
Text Directon
Content | Deprecated | New Classnames |
---|---|---|
|
|
|
Select the Content to Use
Content | Deprecated | New Classnames |
---|---|---|
Dynamic Content |
|
|
Settings
This section lists the classnames for widgets and content within the Settings area of the sidebar.
Content Area Alight
Content | Deprecated | New Classnames |
---|---|---|
NA |
|
|
This section covers classnames for the column structure widget.
Sidebar Tab | Deprecated Classnames | New Classnames |
---|---|---|
Rows |
|
|
This section covers widget classnames for content in the sidebar, and lists the classnames for the following widgets:
Font Style
Configure Icon Collection
Font Style
Content | Deprecated | New Classnames |
---|---|---|
Form - Label |
|
|
Form - Button |
|
|
Configure Icon Collection
Content | Deprecated | New Classnames |
---|---|---|
Social |
|
|
Icons |
|
|
This section discusses and lists the various CSS classnames relevant to the application's sidebar widgets where textual input is required. These classnames facilitate the styling and functional integration of widgets such as URLs, images, alt texts, and more, providing a comprehensive guide for developers to enhance the user interface effectively.
This section will cover button classnames for the following sidebar areas:
Content
This section lists the classnames for widgets within the Content tab.
Image
Widget | Deprecated | New Classnames |
---|---|---|
URL |
|
|
Image, GIF, and Sticker
Widget | Deprecated | New Classnames |
---|---|---|
Alt Text |
|
|
Dynamic Image > Dynamic URL |
|
|
Image, Button, Icons, Menu, GIF, and Sticker
Widget | Deprecated | New Classnames |
---|---|---|
Web page > URL |
|
|
Send email > Mail to |
|
|
Send email > Subject |
|
|
Send email > Body |
|
|
Tel > Tel |
|
|
Send SMS> Tel |
|
|
Send SMS > Message |
|
|
Image, Button, GIF, Sticker, and Video
Widget | Deprecated | New Classnames |
---|---|---|
Attributes |
|
|
Video
Widget | Deprecated | New Classnames |
---|---|---|
URL |
|
|
Title |
|
|
Social
Widget | Deprecated | New Classnames |
---|---|---|
Item > Title |
|
|
Item > Alt text |
|
|
Item > URL |
|
|
Icons
Widget | Deprecated | New Classnames |
---|---|---|
Item > Image URL |
|
|
Item > Alt text |
|
|
Item > Icon Text |
|
|
Item > Title |
|
|
Form
Widget | Deprecated | New Classnames |
---|---|---|
Field label |
|
|
All Modules
Widget | Deprecated | New Classnames |
---|---|---|
Block identifier |
|
|
Rows
This section lists the classnames for widgets within the Rows tab.
Widget | Deprecated | New Classnames |
---|---|---|
Row background image |
|
|
Row background video |
|
|
Settings
This section lists the classnames for widgets within the Settings tab.
Widget | Deprecated | New Classnames |
---|---|---|
Row background image |
|
|
Title |
|
|
Description |
|
|
Subject |
|
|
Preheader |
|
|
The various classnames and data-qa
attributes associated with entities within the application that feature sliders. These identifiers are crucial for styling and testing purposes, tailored to different areas like Add-On, Button, Form, and Image entities where sliders are a key component.
This section will cover button classnames for the following sidebar areas:
Content
This section lists the classnames for sliders within the Content tab.
Entity | Sidebar Widget | Deprecated | New Classnames | Data-QA | Notes |
---|---|---|---|---|---|
Add-On (Image) |
|
|
|
| data-qa was moved from a div to the actual input element |
Button |
|
|
|
| data-qa was moved from a div to the actual input element |
Form |
|
|
|
| data-qa was moved from a div to the actual input element |
Image |
|
|
|
| data-qa was moved from a div to the actual input element |
Settings
This section lists the classnames for sliders within the Settings tab.
Entity | Deprecated | New Classnames | Data-QA | Notes |
---|---|---|---|---|
Content Area Width |
|
|
| data-qa was moved from a div to the actual input element |
Last updated