Comment on page
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.
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
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.
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 on elements is disabled by default, but can be enabled by:
- 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.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:
When formatting an ID, it's useful to stick to a few rules to ensure compatability with different technologies and browsers:
- 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.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.No Spaces: It should not contain any spaces.
- 4.Case Sensitivity: IDs are case-sensitive. For instance,
elementidwould be considered different IDs.
- 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.
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
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.
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.
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