What is a Bootswatch Theme?

  • A Bootswatch theme is a collection of themed stylesheets that can be used to easily customize the appearance of web apps designed with Bootstrap.
  • Each Bootswatch theme modifies the default Bootstrap styles with new colors, fonts, and layouts while maintaining the framework’s core functionality and components.

Using a Bootwatch Theme in Django:

  • Visit the Bootswatch website, where you’ll find a variety of themes. Each one provides a unique aesthetic for Bootstrap components like buttons, navbars (navigation bars), tables, and more.

Complete Part 2 of the Activity by Either Following Along in Class or Watching the Instructional Video Below:

As discussed in the second half of the video above, further customize the element in index.html:

  • index.html
html
1{% extends "code_journals/base.html" %}
2
3{% block page_header %}
4<div class="card text-center bg-light shadow my-5">
5  <div class="card-body py-5">
6    <h1 class="card-title display-4">Code Journal</h1>
7    <p class="card-text lead">A Python application</p>
8    <hr class="my-4">
9    <p>This app contains topics related to CIS 240</p>
10  </div>
11</div>
12{% endblock page_header %}
13
14{% block content %}
15<h2>Code Journal will help you keep track of your Python 
16knowledge for the topics you learn in CIS 240</h2>
17
18{% endblock content %}