Dark accent bar

Dark accent bar: a CSS card. Copy the rules, or the prompt that rebuilds it.

horizontalmedia-leftdarkaccent

Tutorial

Container queries in practice

Stop guessing viewport widths. Size to the parent.

CSS
.card-008 {
  display: flex;
  width: 480px;
  background: #111827;
  border-radius: 12px;
  overflow: hidden;
  font-family: system-ui,sans-serif;
  color: #f9fafb;
  border-left: 4px solid #22d3ee
}
.card-008__img {
  flex: 0 0 140px;
  background: linear-gradient(160deg,#164e63,#22d3ee)
}
.card-008__body {
  padding: 18px 22px
}
.card-008__kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #22d3ee
}
.card-008 h3 {
  margin: 6px 0 6px;
  font-size: 18px
}
.card-008 p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #9ca3af
}
.card-008:hover {
  border-left-color: #a5f3fc
}
HTML
<article class="card-008">
  <div class="card-008__img"></div>
  <div class="card-008__body">
    <span class="card-008__kicker">Tutorial</span>
    <h3>Container queries in practice</h3>
    <p>Stop guessing viewport widths. Size to the parent.</p>
  </div>
</article>
Prompt

Build a 480px horizontal card on dark background #111827 with 12px radius and a 4px left border in cyan #22d3ee. Left image column fixed 140px wide with 160deg gradient #164e63 to #22d3ee. Body padding 18px 22px: an uppercase 11px kicker "Tutorial" in #22d3ee with .1em tracking, an 18px white title, 14px description in #9ca3af. On hover the left border brightens to #a5f3fc.