card border-primary mb-3

html bootstrap5 Sample

カードのデフォルトのボーダー色を変更する:border-primary


Header
Primary card title

カード本文XXXXXXXXXXXX

Header
Secondary card title

カード本文XXXXXXXXXXXX

Header
Success card title

カード本文XXXXXXXXXXXX

Header
Danger card title

カード本文XXXXXXXXXXXX

Header
Warning card title

カード本文XXXXXXXXXXXX

Header
Info card title

カード本文XXXXXXXXXXXX

Header
Light card title

カード本文XXXXXXXXXXXX

Header
Dark card title

カード本文XXXXXXXXXXXX

  <div class="card border-primary mb-3" style="max-width: 18rem">
    <div class="card-header">Header</div>
    <div class="card-body text-primary">
      <h5 class="card-title">Primary card title</h5>
      <p class="card-text">カード本文XXXXXXXXXXXX</p>
    </div>
  </div>
  <div class="card border-secondary mb-3" style="max-width: 18rem">
    <div class="card-header">Header</div>
    <div class="card-body text-secondary">
      <h5 class="card-title">Secondary card title</h5>
      <p class="card-text">カード本文XXXXXXXXXXXX</p>
    </div>
  </div>
  <div class="card border-success mb-3" style="max-width: 18rem">
    <div class="card-header">Header</div>
    <div class="card-body text-success">
      <h5 class="card-title">Success card title</h5>
      <p class="card-text">カード本文XXXXXXXXXXXX</p>
    </div>
  </div>
  <div class="card border-danger mb-3" style="max-width: 18rem">
    <div class="card-header">Header</div>
    <div class="card-body text-danger">
      <h5 class="card-title">Danger card title</h5>
      <p class="card-text">カード本文XXXXXXXXXXXX</p>
    </div>
  </div>
  <div class="card border-warning mb-3" style="max-width: 18rem">
    <div class="card-header">Header</div>
    <div class="card-body">
      <h5 class="card-title">Warning card title</h5>
      <p class="card-text">カード本文XXXXXXXXXXXX</p>
    </div>
  </div>
  <div class="card border-info mb-3" style="max-width: 18rem">
    <div class="card-header">Header</div>
    <div class="card-body">
      <h5 class="card-title">Info card title</h5>
      <p class="card-text">カード本文XXXXXXXXXXXX</p>
    </div>
  </div>
  <div class="card border-light mb-3" style="max-width: 18rem">
    <div class="card-header">Header</div>
    <div class="card-body">
      <h5 class="card-title">Light card title</h5>
      <p class="card-text">カード本文XXXXXXXXXXXX</p>
    </div>
  </div>
  <div class="card border-dark mb-3" style="max-width: 18rem">
    <div class="card-header">Header</div>
    <div class="card-body text-dark">
      <h5 class="card-title">Dark card title</h5>
      <p class="card-text">カード本文XXXXXXXXXXXX</p>
    </div>
  </div>