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

  • btn

  • btn-primary

add-on-sidebar-button--cs

Button

This section lists the Button sidebar widgets and their respective deprecated and new classnames.

Write with AI

Sub-element
Deprecated
New Classnames

NA

  • btn-primary

  • BeeButton_*

ai-sidebar-icon--cs

This section lists the Button sidebar widgets and their respective deprecated and new classnames.

Sub-element
Deprecated
New Classnames

Special links

  • href-container__link

  • href-container__link--special-link

href-special-link--cs

Link file

  • href-container__link

  • href-container__link--link-file

href-link-file--cs

Add custom special link

  • href-container__link

  • href-container__link--special-link

href-custom-special-link--cs

Attributes

This section lists the Button sidebar widgets and their respective deprecated and new classnames.

Sub-element
Deprecated
New Classnames

Add new attribute

  • btn

  • btn-primary

  • icon-manager__add-icon

  • icon-manager__add-icon--cs

  • BeeButton_*

toggle-menu-button--cs

Delete

  • field-remove

delete-attribute--cs

This section lists the Carousel sidebar widgets, sub-elements, and classnames.

Add New Slide

Sub-element
Deprecated
New Classnames

NA

  • btn

  • btn-primary

  • icon-manager__add-icon

  • BeeButton_*

icon-manager__add-icon--cs

Draggable Item

Sub-element
Deprecated
New Classnames

Change image

NA

carousel-item-change-image--cs

Delete

NA

carousel-item-delete-image--cs

Dynamic Content

This section lists the Dynamic sidebar widgets, sub-elements, and classnames.

Choose a Custom Merge Content

Sub-element
Deprecated
New Classnames

NA

  • btn

  • btn-primary

  • BeeButton_*

select-merge-content--cs

Form

This section lists the Form sidebar widgets, sub-elements, and classnames.

Edit Form

Sub-element
Deprecated
New Classnames

NA

NA

content-dialog-button--cs

Manage Fields

Sub-element
Deprecated
New Classnames

Edit

  • field-edit

form-field-edit--cs

Delete

  • field-remove

form-field-delete--cs

Add new field

  • btn

  • btn-primary

  • icon-manager__add-icon

  • icon-manager__add-icon--cs

  • BeeButton_*

toggle-menu-button--cs

Heading

This section lists the Form sidebar widgets, sub-elements, and classnames.

Write with AI

Sub-elemet
Deprecated
New Classnames

NA

  • btn-primary

  • BeeButton_*

  • ai-sidebar-icon--cs

Icons

This section lists the Icons sidebar widgets, sub-elements, and classnames.

Add New Icon

Sub-element
Deprecated
New Classnames

Button

  • btn

  • btn-primary

  • icon-manager__add-icon

  • icon-manager__add-icon--cs

  • BeeButton_*

icons-add-icon--cs

Draggable Icon

Sub-element
Deprecated
New Classnames

Change image

  • btn-primary

  • BeeButton_*

  • BeeIcons_*

icons-change-icon--cs

Apply effects

  • btn-default

  • BeeButton_*

  • BeeIcons_*

icons-edit-icon--cs

Delete

  • BeeButton_*

  • BeeIcons_*

icons-delete-icon--cs

Image

This section lists the Image sidebar widgets, sub-elements, and classnames.

Apply Effects

Sub-element
Deprecated
New Classnames

NA

  • btn

  • btn-image-editor

  • btn-default

  • BeeButton_*

btn-image-editor--cs

Change Image

Sub-element
Deprecated
New Classnames

NA

  • btn

  • btn-file-picker

  • btn-secondary

  • BeeButton_*

btn-file-picker--cs

Sub-element
Deprecated
New Classnames

Special links

  • href-container__link

  • href-container__link--special-link

href-special-link--cs

Link file

  • href-container__link

  • href-container__link--link-file

href-link-file--cs

Add custom special link

  • href-container__link

  • href-container__link--special-link

href-custom-special-link--cs

Attributes

Sub-element
Deprecated
New Classnames

Add new attribute

  • btn

  • btn-primary

  • icon-manager__add-icon

  • icon-manager__add-icon--cs

  • BeeButton_*

  • toggle-menu-button--cs

Delete

  • field-remove

  • delete-attribute--cs

List

This section lists the List sidebar widgets, sub-elements, and classnames.

Write with AI

Sub-element
Deprecated
New Classnames

NA

  • btn

  • BeeButton_beeButton*

  • ai-sidebar-icon--cs

This section lists the Menu sidebar widgets, sub-elements, and classnames.

Add New Item

Sub-element
Deprecated
New Classnames

NA

  • btn

  • btn-primary

  • icon-manager__add-icon

  • icon-manager__add-icon--cs

  • BeeButton_*

  • menu-items-add-button--cs

Sub-element
Deprecated
New Classnames

Delete

  • BeeButton_*

  • BeeMenuItems_*

menu-items-delete-button--cs

Link file

  • href-container__link

  • href-container__link--link-file

href-link-file--cs

Paragraph

This section lists the Paragraph sidebar widgets, sub-elements, and classnames.

Write with AI

Sub-element
Deprecated
New Classnames

NA

  • btn-primary

  • BeeButton_beeButton*

  • ai-sidebar-icon--cs

Social

This section lists the Social sidebar widgets, sub-elements, and classnames.

Add New Icon

Sub-element
Deprecated
New Classnames

Button

  • btn

  • btn-primary

  • icon-manager__add-icon

  • icon-manager__add-icon--cs

  • BeeButton_*

social-add-icon--cs

Social Icon Item

Sub-element
Deprecated
New Classnames

Delete

  • icon-remove

icon-remove--cs

Change image

  • btn-primary

  • BeeButton_*

  • BeeSocialIcons_*

social-change-icon--cs

Apply effects

  • btn-default

  • BeeButton_*

  • BeeSocialIcons_*

social-edit-icon--cs

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

  • btn

  • btn-file-picker

  • btn-secondary

  • btn-primary

  • BeeButton_*

btn-file-picker--cs

Row Background Video

Sub-element
Deprecated
New Classnames

Change video

  • btn

  • btn-file-picker

  • btn-primary

  • BeeButton_*

btn-file-picker--cs

Display Condition

Sub-element
Deprecated
New Classnames

Select condition

  • btn

  • btn-primary

  • BeeButton_*

row-display-condition-select-button--cs

Add condition

  • btn-default

  • BeeButton_*

row-display-condition-add-button--cs

Edit condition

  • btn-default

  • BeeButton_*

row-display-condition-edit-button--cs

Open builder

  • btn

  • btn-primary

  • BeeButton_*

row-display-condition-builder-button--cs

Column Structure

Sub-element
Deprecated
New Classnames

Add new

  • column-manager--add

  • BeeButton_*

column-manager-add--cs

Delete

  • column-manager--delete

  • BeeButton_*

column-manager-delete--cs

Settings

This table lists the classnames for buttons within the settings area of the sidebar.

Favicon

Sub-element
Deprecated
New Classnames

Add favicon

  • btn

  • btn-primary

  • icon-manager__add-icon

  • icon-manager__add-icon--cs

  • BeeButton_*

  • favicon-add-icon--cs

Favicon item

Sub-element
Deprecated
New Classnames

Change favicon

  • btn-primary

  • BeeButton_*

favicon-change--cs

Delete

  • BeeButton_*

favicon-delete--cs

Last updated

Logo

© Bee Content Design, Inc. San Francisco, CA | Part of Growens

#274: Brand Tone

Change request updated