#C03 Bootstrap5.

You can make basic settings for the site colour, text colour, link colour, etc.

Notice.

This article was written when I was testing Drupal on a local environment before publishing it on Lightsail. After that, I selected Bitnami's Drupal, which I installed in the Tokyo region using the Lightsail blueprint, and it was set to 10.3.3 by default. After installation, I updated it, so this website is published using Drupal 10.3.5. *As of 30th September 2024

As mentioned in the article, the Mac environment is built using Drupal 11.0.4. We had planned to run Drupal 11.0.4 on AWS, but the Drupal instance provided by the Lightsail blueprint is not compatible with Drupal 11.0.4, so please understand that the article is published using Drupal 10.3.5 and the content is difficult to understand.

I will write about Amazon Lightsail in a separate article.

Bootstrap5 Default Settings.

In the previous section, we completed the settings for the Bootstrap 5 sub-theme, so in this article, we will go through the basic settings for Bootstrap 5 > Theme basic settings. The work is not very difficult, but it is easier to understand if we explain the functions from the configuration of the Drupal administration screen, so we will explain it using a configuration diagram.

The items that can be set in the Bootstrap 5 theme are

  1. Site colours
  2. Text and link colours to match the colours
  3. Header and footer colours, including the navigation menu
  4. Title logo
  5. Favicon

minimum of settings.

Basic Structure.

|- [1] B5 subtheme (Default theme)
|- [2]Settings
|
|- [3]Home > Administration > Appearance > Appearance Settings > B5 Subtheme
|- [4]Global settings / Olivero / Claro / Bootstrap5 /B5 subtheme
|
|---- [4-1]Page element display
|---- [4-1-1]User pictures in posts // Select check
|---- [4-1-2]User pictures in comments // Select check
|---- [4-1-3]User verification status in comments // Select check
|---- [4-1-4]Shortcut icon // Select check
// Select all checks
|
|---- [4-2]Use the logo supplied by the theme
// Use the logo supplied by the theme // Select check
|
|---- [4-3]favicon
// Shortcut icons or favourite icons are displayed in the address bar and bookmarks in most browsers.
// Use the favicon supplied by the theme // Select check
|
|---- [4-4]Style guide
// Style guide demonstrates abilities of bootstrap framework. Style guide is now part of bootstrap tools module. Install and enable to the module to enhance content editor and developer workflows.
|
|---- [4-5]Body options
// Combination of theme/background colour may affect background colour/text colour contrast. To fix any contrast issues, override corresponding variables in scss file: [bootstrap 5 theme]/dist/bootstrap/[version]/scss/_variables.scss Website container type
|
// Type of top level container: fluid (eg edge to edge) or fixed width
|
// Website container type configuration
|
|---- [4-5-1]Body theme: // Select from the following
|---- [a.]Do not apply theme // Selection
|---- [b.]Light
|---- [c.]dark
|
|---- [4-5-2]Body background:
|---- [a.]Do not apply color // Selection
|---- [b.]Secondry
|---- [c.]Light
|---- [d.]Dark
|
|
|---- [4-6]Navbar options
|
|---- [4-6-1]Navbar theme:
|---- [a.]Do not apply color // Selection
-----Omitted Dark, etc., for the same reasons as above.-----
|
|---- [4-6-2]Navbar background:
|---- [a.]Do not apply color // Selection
-----Omitted Dark, etc., for the same reasons as above.-----
|
|
|---- [4-7]Footer options
|
|---- [4-7-1]Footer theme:
|---- [a.]Lightt // Selection
-----Omitted Dark, etc., for the same reasons as above.-----
|
|---- [4-7-2]Footer background:
|---- [a.]Do not apply color // Selection
-----Omitted Dark, etc., for the same reasons as above.-----
|
|
|---- [4-8]Text formats and CKEditor
// Configuration for text formats and editors.
|
|
|---- [4-9]Subtheme
|
|
|- [5]Save Configuration // Save the configuration once you have decided on the settings.
 

The process is as above.

To Summarise.
  1. Theme > Bootstrap5 SubTheme > Select Settings
  2. Settings Screen > Page Element (Post, etc.) Settings
  3. Settings Screen > Logo and Icon Settings
  4. Settings Screen > Style Settings > No settings
  5. Settings Screen > Body Settings > No selection as the background is white
  6. Settings Screen > Navbar Settings > Select Light
  7. Settings Screen > Footer Settings > Select Light
  8. Settings Screen > Text Editor Settings > No settings
  9. Settings screen > Subtheme settings > No settings required as they have already been set > No settings required
  10. Save the configuration using the above settings

Set the basic theme as above.

As this is the initial setup, we will create a sample page and post to check the appearance. As this is a temporary setup, we will leave the icons and favicon as they are, and change them to the official ones once the page structure has been decided.

You can change the colours and styles of the tags that can be used with CKEditor using SCSS, but for now I'm thinking of creating it from the default state and then changing it afterwards.

As I'm still in the process of building it locally, this will be an article on the production process before it is published. Please note that there may be parts that differ from the article content when it is actually published.

Conclude.

The standard settings for the Bootstrap 5 design theme have been completed for the Drupal site built on the MacBook, and the website is now ready to be published, so the next section will summarise the Amazon Lightsail hosting service that we are using for this website.

In practice, I use Drupal settings and test pages on a Mac to verify operation and decide on the design, but it would be easier to understand if I summarised this in a post after the site has gone live, so I will summarise the post on the AWS Lightsail hosting service that I have selected and am currently using.

Next article.
Amazon Lightsail

In the next section, I will explain the outline of the AWS hosting service ‘Lightsail’ that I use.

Post
2024-11-02
Contributor
S.Takeda
Article
Related articles.

This is a related article on Drupal and web development. Please take a look if you like.

#C06 Installing Lightsail and Drupal.

The installation is easy to complete, as the virtual server called Lightsail and the optimised Drupal are installed at the same time.

#C26 Civic Theme

This is an article about Civic Theme, which sparked my interest in Drupal and led me to build and publish a website.

#C16 Basics of creating page.

I've been writing a series of articles on the basic concepts of Drupal that are necessary for creating pages, but since it's become a lot of articles and it's hard to understand, I'm going to organise them.

Side Bar 01

I migrated my lifestyle blog, which I created using Word Press, to Drupal, and I am currently updating it by adding articles in Drupal.

This is a blog written by a beginner who is learning Drupal.

This article will explain how to build a website using Drupal.

  All Article.

  Drupal Article.

  Web site Article.

  Mac Article.

  AWS Article.

This article is about second-hand clothes and fashion.

  All Article.

  Old-Clothes Article.

  Fashion Article.

  Watch Article.

  Photo Article.

  Recommended Shops.

Core Drupal 10.4.0

Theme Bootstrap5 4.0.3

  Drupal

  bootstrap5

  Bootstrap

  Font Awesome

  Amazon Web Service

  Amazon Lightsail

  Bitnami

  Google reCAPTCHA