title: How to customize Bootstrap 5 color scheme with CSS?
body: <p>My previous (similar) question has been closed as a duplicate with the following notice:</p>
  <blockquote>
  <p>This question already has answers here: <a href="https://stackoverflow.com/questions/8596794/customizing-bootstrap-css-template">Customizing Bootstrap CSS template</a> (9 answers)
  Your post has been associated with a similar question. <strong>If this question doesn’t resolve your question, ask a new one.</strong></p>
  </blockquote>
  <p>And since no, this question doesn't resolve my question, here I am asking a new one. Specifically, unanswered issues are:</p>
  <ul>
  <li>Most answers in the linked question are about earlier versions of Bootstrap. My question is about Bootstrap 5, as mentioned in the title.</li>
  <li>The answer in the linked question that is referring version 5 is only explaining SASS, but I'm looking for a solution with CSS, as mentioned in the title.</li>
  <li>I posted a minimal example but there is no minimal example solution in the linked question.</li>
  </ul>
  <hr />
  <p>I have this minimal example of a Bootstrap 5 page below. As you can see, by default it uses black text color, white background color, and kinda blue to highlight certain items. How can I change this default color scheme with CSS? I assume I can just insert a custom <code>&lt;style&gt;</code> tag? Or maybe just include another CSS via <code>&lt;link&gt;</code> from somewhere?</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!doctype html&gt;
  &lt;html lang="en"&gt;
  
  &lt;head&gt;
    &lt;meta charset="utf-8"&gt;
    &lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt;
    &lt;link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-F3w7mX95PdgyTmZZMECAngseQB83DfGTowi0iMjiWaeVhAn4FJkqJByhZMI3AhiU" crossorigin="anonymous"&gt;
    &lt;title&gt;Hello, world!&lt;/title&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
  
  &lt;div class="form-check"&gt;
    &lt;input class="form-check-input" type="checkbox" value="" id="flexCheckDefault"&gt;
    &lt;label class="form-check-label" for="flexCheckDefault"&gt;
      Default checkbox
    &lt;/label&gt;
  &lt;/div&gt;
  &lt;div class="form-check"&gt;
    &lt;input class="form-check-input" type="checkbox" value="" id="flexCheckChecked" checked&gt;
    &lt;label class="form-check-label" for="flexCheckChecked"&gt;
      Checked checkbox
    &lt;/label&gt;
  &lt;/div&gt;
  
  &lt;div class="accordion" id="accordionPanelsStayOpenExample"&gt;
    &lt;div class="accordion-item"&gt;
      &lt;h2 class="accordion-header" id="panelsStayOpen-headingOne"&gt;
        &lt;button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#panelsStayOpen-collapseOne" aria-expanded="true" aria-controls="panelsStayOpen-collapseOne"&gt;
          Accordion Item #1
        &lt;/button&gt;
      &lt;/h2&gt;
      &lt;div id="panelsStayOpen-collapseOne" class="accordion-collapse collapse show" aria-labelledby="panelsStayOpen-headingOne"&gt;
        &lt;div class="accordion-body"&gt;
          &lt;strong&gt;This is the first item's accordion body.&lt;/strong&gt; It is shown by default, until the collapse plugin adds the appropriate classes that we use to style each element. These classes control the overall appearance, as well as the showing and hiding via CSS transitions. You can modify any of this with custom CSS or overriding our default variables. It's also worth noting that just about any HTML can go within the &lt;code&gt;.accordion-body&lt;/code&gt;, though the transition does limit overflow.
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/js/bootstrap.bundle.min.js" integrity="sha384-/bQdsTh/da6pkI1MST/rWKFNjaCP5gBSY4sEBT38Q/9RBh9AH40zEOg7Hlq2THRZ" crossorigin="anonymous"&gt;&lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>Snippet put together from the examples at <a href="https://getbootstrap.com/docs/5.1/getting-started/introduction/" rel="nofollow noreferrer">https://getbootstrap.com/docs/5.1/getting-started/introduction/</a>, <a href="https://getbootstrap.com/docs/5.1/forms/checks-radios/" rel="nofollow noreferrer">https://getbootstrap.com/docs/5.1/forms/checks-radios/</a> and <a href="https://getbootstrap.com/docs/5.1/components/accordion/" rel="nofollow noreferrer">https://getbootstrap.com/docs/5.1/components/accordion/</a>.</p>