Bubble Docs
Search
K
Comment on page

Visual settings

This section covers the general visual settings for your Bubble app
Most of the design choices you make with Bubble are made as you design your pages and work with styles. In this section we will go over the general visual settings for your app.

Setting a favicon

What is a favicon?
A favicon, short for "favorite icon", is a small image that represents your app.
It's the little icon you see in the browser tab next to the title of the page, and it also often appears in bookmarks, browser history, and on shortcuts if you save a website to your home screen on a mobile device.
To assign a favicon to your app, first navigate to Settings - General and scroll to the General appearance header.
Directly underneath you will find the Favicon settings, which allows you to upload an image to be used as the favicon. The favicon should be a square image, and keep in mind that:
  • Favicons should be in PNG or JPG format. SVG is not supported by all browsers.
  • It may be viewed as small as 16x16 pixels: small details such as text may be lost
  • Some browsers have a dark mode: darker favicons may become hard to see against a dark background

Changing the color of the progress bar and spinner

The progress bar is the loading bar at the top of the page when Bubble performs certain tasks such as writing to the database. The spinner is the spinning icon visible when data is loading, such as when Bubble is fetching data for a repeating group.
The color of both of these can be changed by navigating to Settings - General and scroll to the General appearance header. There you will find the two settings:
  • Progress bar color
  • Repeating group spinner
To efficiently maintain colors and consistency across your app, we recommend using Color variables. This can even be applied to app-wide settings such as the progress bar and spinner. You can read more about color variables in the article below.
Article: Color variables

Hiding mention of Bubble in the Developer Tools console

What is the console?
The console is a part of the developer tools built into the major browsers like Chrome, Firefox, Edge and Safari.
It's like a dashboard where the browser displays messages such as errors and warnings, and where you can type in and run JavaScript code directly.
By default, Bubble includes a small text section in the console that looks like the below:
If you prefer to hide this text in the console, you can check the Remove Bubble mention in console checkbox. Note that this information is not visible to most of your users - only those that purposely load the console in the browser's developer tools.

Exposing an ID attribute to elements

What is the ID attribute?
The ID attribute is a unique identifier assigned to an element on your page. It is used for specifically targeting and manipulating that element through custom CSS, JavaScript, plugins or other kinds of code . The ID attribute ensures that the element can be uniquely singled out from all other elements on the page.
Exposing the ID attribute for elements in Bubble is useful for a number of different reasons. For example, you can use it to apply custom style or binding Javascript code to specific elements. Some plugins also require that you identify an element using the ID attribute.

Enabling and setting the ID attribute

Exposing an ID attribute on elements is disabled by default, but can be enabled by:
  1. 1.
    Navigating to Settings - General, scrolling to the General appearance header and checking the Expose the option to add an ID attribute to HTML elements checkbox
  2. 2.
    Then, navigate to the element to which you want to apply an ID, open up its property editor and scroll to the bottom of the Appearance tab. See the illustration below:

Formatting an ID

When formatting an ID, it's useful to stick to a few rules to ensure compatability with different technologies and browsers:
  1. 1.
    Uniqueness: The ID must be unique within a page. You can use dynamic content in the ID Attribute, such as including the index of a the cell of a repeating group.
  2. 2.
    Start with a Letter: It should start with a letter (uppercase or lowercase) followed by any combination of letters, digits, hyphens, underscores, colons, and periods.
  3. 3.
    No Spaces: It should not contain any spaces.
  4. 4.
    Case Sensitivity: IDs are case-sensitive. For instance, elementID and elementid would be considered different IDs.
  5. 5.
    Avoid Special Characters: Though some special characters like hyphens and underscores are allowed, it's generally a good practice to keep IDs alphanumeric to avoid any unexpected behavior in different browsers or technologies.
Lastly, whenever you reference an ID, keep in mind that the ID string matches exactly with the one assigned to the element. Since IDs are case-sensitive, even a slight variation in case or an extra space can cause the reference to fail. We recommend copy-pasting the ID to make sure it matches.
Page and element styling
Pages and element can have styling applied directly on the them, such as:
  • Background color or image
  • Border
  • Shadow
  • Font
  • Transitions
Note that pages and elements can also use saved Styles – see the box below for more information.
Article: Styling Core reference: Style properties
Styles
Bubble lets you set up overarching Styles for elements within your app to streamline the design process and promote consistency. By modifying a single style, you can effortlessly restyle all related elements, making it easy to set up and manage a cohesive look and feel in your app.
Each Style is connected to a specific element type and includes the following information (that may vary depending on the element type):
  • Background color or image
  • Border
  • Shadow
  • Font
  • Transitions
Apart from making the design process more efficient, Styles also improves your app's performance by storing styling settings in one central place as opposed to saving it on each separate element.
Article: Styles Core reference: Styles
Font and color variables

Font variables

Font variables allow you to centralize font settings and make changes to the font across multiple elements and Styles. Instead of having to manually adjust font families in each instance they are used, you can simply modify the font variable in one place and watch the change propagate throughout your app.
Article: Font variables

Color variables

The Color Variables feature in the Styles tab enables you to establish a palette of colors that you can apply throughout your Bubble app. Each color variable contains:
  • A hex code that determines the color value
  • An alpha value that controls its transparency
Article: Color variables