Skip to content
pinegrow.com

Bootstrap Design panel

The Pinegrow Design panel for the Bootstrap framework allows you to easily set up a custom theme without editing any base files or setting up a complex compiler. It also allows you to test alternative designs for your whole project quickly and easily.

The Pinegrow Design panel provides a central location for you to set a number of base stylings for your web project. You can customize your Bootstrap theme without editing config files, or setting up complicated compilers. The panel allows you to quickly modify and compare design changes throughout your whole project. Colors, fonts and multiple Bootstrap options can all be tweaked in this panel and the customizations will carry through all of the pages in your project. Let’s take a walk through to see what powers this gives us!

Activating the design panel

The Design panel for a Bootstrap page that has no design yet, with the text Activate the design panel to create a design theme for your project and an Activate button, marked with a callout, next to the Northbound page.

After opening a Bootstrap Block template or plain Bootstrap page you need to save it as a project before you can start using the Design Panel. Once saved, open the Design panel with Window › Show / hide panels › Design panel. It will display an Activate button for you to activate the panel for the project. After activation, it is recommended that you save the open page once again. This results in the creation of a theme folder, ‘bootstrap_theme’. In this folder is a ‘bootstrap.css’ file that is now the main stylesheet for your project.

Take note, the Design panel will also work if you elect to convert your theme to using SASS. In this case the ‘bootstrap_theme’ folder will already exist and any Design panel changes will be added to the ‘custom.scss’ file, but compiled into the final `bootstrap -> css -> bootstrap.min.css’ file in your project.

The Bootstrap Design panel with the Colors, Typography, Finetune headings, Background and Bootstrap options sections collapsed, the Surprise me! button with its menu button, and Saved designs with the add button and the current design.

After activation of the Design panel you will see five categories of theme changes that can be made, as well as a section at the very bottom of the panel with a list of saved designs, a tool toggle and the very special “Surprise me!” button. Let’s walk through each.

Colors

The Colors section of the Bootstrap Design panel with the theme colors primary, secondary, info, success, warning, danger, white, light and dark, each with a lock and a menu, and the Get from selected image button with its menu and a lock.

The Bootstrap framework pages come standard with nine different colors. You can elect to change any of these pre-selected colors simply by clicking on them and choosing a new color from the picker.

Any of the colors can be swapped by dragging one of the colors over the other. For example, if you want to see what your design would look like with the “primary” and “secondary” colors swapped. If you want to keep a color, but with a different class name, just hold down the alt/option key and drag the color to whichever slot you choose and it will be copied there - but note, it will overwrite the existing color. Luckily this can be undone if necessary.

The kayak photo selected in the page, marked 1, next to the Colors section of the Bootstrap Design panel with the Get from selected image button marked 2.

You can also repopulate the colors to fit with an on-page image, such as the main hero image, or the background of any element. To accomplish this, just select the <img> or element with background either in the Page View or the Tree (1) and then click the Get from selected image button (2). If you only want selected colors changed you can toggle the lock icon and it will preserve the existing color. There is another “surprise” use for these locks I will cover later.

Typography

The Typography section of the Bootstrap Design panel with font menus for Regular text set to Inter, Headings set to Archivo and Lead, each with a details section, and locks for Regular text and Headings.

The next section down, typography, lets you set project-wide fonts. There are three input drop-downs. The first is for setting the font that is being set as the base font used on the body. The next input, ‘Headings’ can be used to change the font being used for all of your <h#> tags, e.g. <h1> if you would like a different font family than the other text on the page. The final drop-down sets the font family for the “lead” class.

Adding custom fonts

The drop-downs are already populated with a large number of popular fonts. However, if you want to use an unlisted Google font, or a custom font file you can click the Manage fonts... button at the bottom of the Typography section or select Manage fonts... at the bottom of a font drop-down list. This will bring up a modal that lists all of the fonts. In addition to adding fonts, this control panel will also allow you to remove fonts from the drop-downs and manage which drop-downs display each font.

The Font library window opened with Manage fonts: a table of the fonts the Design panel can use, with family name, what each is used for, the source system or google, the available styles and refresh and remove columns.

The first column of the Font Library lists the name of the font. Clicking on a value in the second column, “Use for”, will bring up a context menu that has four possible values to select. The “all” value means that font will show up for all three typography drop-downs. The “text” value will add the font to both the “Regular text” and “Lead” drop-downs. The “headings” value adds the font to only the “Headings” input. The final value “h1, h2” is for use in the next Design panel section and will not impact display in this section at all. Lastly, the final column will let you remove any fonts that you do not want displayed in the drop-downs.

The end of the Font library list with the Add font menu open: System font, Google Fonts, Local web font, Adobe fonts (TypeKit), Import from URL, Add default fonts and Remove all.

In order to add a new unlisted font, scroll to the very bottom of the Font Library. There you will find the Add font... button, which opens the menu shown above. This will allow you to load in fonts from a wide variety of sources, such as Google and Adobe TypeKit. The final selection, “Add default fonts” will add any removed font back to the list.

The Typography section with Regular text details open, marked with a callout: Weight, Color, Spacing, Effect and Options for italic, small caps and uppercase, each with a lock, followed by the Headings and Lead font menus.

In addition to setting the fonts for each text category, a further section for each, opened with Regular text details, Headings details or Lead details, allows you to add additional styling. This includes the font weight, color, default spacing, a shadow effect, and italics or capitalization.

Notice that each of the settings has a lock. I’ll save what these are for until the “surprise” at the end.

Finetune Headings

The Finetune headings section of the Bootstrap Design panel with a font menu and a details section for each heading from H1 to H5, and a lock for H1.

This section of the Design panel is much like the Typography section, but allows you to select the font family and set the stylings for each individual heading tag. The font manager has a value of “h1, h2” in the “Use for” column that will control what fonts additionally appear for the H1 and H2 dropdowns. Again, we will come back to the lock, but note that in this case it locks the value for both the <h1> and <h2> fonts.

Background

The Background section of the Bootstrap Design panel with Color and Image fields, each with a lock, and the Image options and Filters sections. A callout points to the folder icon in the Image field.

The Background section has a few different uses. Firstly, the color input is populated from the theme colors set in the first section of the Design panel. Selecting a color here will add it as a background color for all of the pages in your project. Secondly, you can do the same thing with an image. Clicking on the folder allows you to select an image file from your project or retrieve a file from Unsplash. However, by default the image isn’t used to set a background, but for the surprise at the end. In the next set of controls we will see how to use this image as background, or to replace any image on the screen.

The Background section with images/kayak-ice.jpg as the image and its preview, and Image options open, marked with a callout: Only use the image for colors checked, Source set to Free online images, Query with the placeholder wallpaper, the Settings button and Filters.

Opening the “Image Options” reveals an additional set of controls. By default, the top checkbox, “Only use the image for colors” is ticked. The other two controls in this section, “Source” and “Query” will be covered at the end. To use the image as a project wide background simple untick the checkbox.

The Background section with Only use the image for colors unchecked, showing the Selector field set to body, Support fixed bck. on mobile & filters checked, Source, Query, the Small Image and Large Image fields, and the Settings button, marked with a callout.

Electing to use the image on the page unlocks some additional features. At the top is the “Selector” input. By default it is set to “body”. This means that the selected image will be added to the body element and act as a background to the page. Instead, you can add a class or id, like #hero-image to have the background image added to a specific element. You also have the option to set a different image for small and large screens through the other two inputs and the settings button.

Images for the large and small screen sizes are added by clicking on the input box folder icon and either selecting a project local file or from Unsplash. Any valid URL will work. The images will be added to the element targeted by the selector using media queries that can be customized by clicking the “Settings…” button.

The Background settings dialog with the Small media query field set to @media (max-width: 767px), the Large media query field with min-width and device pixel ratio conditions, and the Cancel and Save buttons.

The default media queries target screens less than 768px, and any screen larger than 1440px or retina screens larger than 992px. You don’t need to add both a small and large image, you can elect to use only one. The image in the main background area will be used for all other sizes.

The remainder of the Background controls are for use with the final “surprise” and we will come back to them.

Bootstrap Options

The Bootstrap options section of the Design panel with sliders for Text size, Grid spacing, Roundness, Button roundness, Shadows and Contrast, a Gradients checkbox, and locks, with Text size and Grid spacing locked.

The fifth setting section of the Design panel allows you to add default values for a number of Bootstrap options. The first is “Text size” - this scales your base font size up or down. Depending on how your page is set-up this can also impact your margin and padding sizes. The “Grid spacing” impacts the gap between columns. The next two control set the roundness of either elements, like cards, or buttons. The “Shadows” control changes the base look of shadows added to navbar and card elements. Finally, the “Contrast” control governs the text color for elements like buttons to give more or less contrast.

Surprise!

The end of the Bootstrap Design panel with the Surprise me! button and its menu button, and the Saved designs section with the add button and the current design thumbnail.

One part of the final section of the Design panel is to help wet your creative juices, a “Surprise me!” button. Clicking on this button loads a random image into the background section and uses this image to set up a new color palette. It also creates new font pairings for your regular text, headings, <h1>, and <h2>, plus the Bootstrap options. Remember the locks in the previous sections? When activated, they prevent the “Surprise me!” button from making any changes. Happy with the color palette, but not the fonts? Just lock what you like and hit the button again. All of the changes that are made in the Page View will also be reflected and automatically updates if you have the BrowserSync option turned on. The Undo (CMD+Z or CTRL+Z) and Redo (SHIFT+CMD+Z or SHIFT+CTRL+Z) both work to move forward or back through your design changes. 

The menu of the arrow button next to Surprise me! in the Bootstrap Design panel, with Show floating tools and Deactivate the Design panel. A callout points to the arrow button.

The arrow button next to Surprise me! opens the menu shown above, with Show floating tools and Deactivate the Design panel.... If you right-click the “Surprise me!” button you can access two additional options. One allows you to add an animation between design changes. The other turns on “autoplay” with the option to set a time delay between changes which will cycle through new images and design changes until you stop it. This allows for you to see a wide variety of different designs, almost like a slideshow! To keep a design you like while watching the show, press on the Add design button marked with a “+” icon.

Background

The Background section with images/kayak-ice.jpg as the image and its preview, and Image options open, marked with a callout: Only use the image for colors checked, Source set to Free online images, Query with the placeholder wallpaper, the Settings button and Filters.

Coming back to the Background section. There are three other controls within the “Image Options”. The first is a checkbox. This allows you to get your theme colors from an image, but not use the image as a background. This is useful for the “Surprise me!” button, as it will change the picture, altering the color palette, but not change the actual page background. The second is a source setting. This allows you to determine where the background image is coming from - a local folder, or Unsplash. The third input, “Query” allows you to narrow the pictures returned from Unsplash by the “Surprise me!” button. Any search term will work, so play around!

Saving and reseting your theme

The end of the Bootstrap Design panel with the Surprise me! button and its menu button, and the Saved designs section with the add button and the current design thumbnail.

The final section containing our surprise also has two other controls. One is a “Saved Designs” section. This can be used, for example, to store several slightly different design options for a client. Clicking on the “+” icon will add the current design to the saved designs. This can also be used during “autoplay” to capture any design ideas. As you accumulate designs there will be additional thumbnails that you can click to reload them. Right-clicking on the saved designs allows you to delete them or duplicate them to make minor theme changes.

Finally, Show floating tools in the menu of the arrow button next to the “Surprise me!” button opens the floating tools which we will cover in its own section.