# Chat bubbles (C 079)

Category: Cards  
Tags: chat, messages, bubbles, dark, conversation  
Page: https://designforai.dev/snippet/card-079

## Prompt

Build a 320px chat card on #0f172a with 18px radius and 16px padding, stacking message bubbles with 8px gap. Incoming bubbles align left on #1e293b with #e2e8f0 text and radius 16px 16px 16px 4px (small bottom-left corner); outgoing bubbles align right on blue #3b82f6 with white text and radius 16px 16px 4px 16px. Bubbles are max 78% wide, 14px text, 9px 13px padding, and brighten slightly on hover.

## HTML

```html
<div class="card-079">
  <p class="card-079__them">Can the card flip without JavaScript?</p>
  <p class="card-079__me">Yes. A checkbox and :checked does it.</p>
  <p class="card-079__them">Keyboard accessible?</p>
  <p class="card-079__me">If the input stays focusable, yes.</p>
</div>
```

## CSS

```css
.card-079 {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 320px;
  padding: 16px;
  background: #0f172a;
  border-radius: 18px;
  font-family: system-ui,sans-serif
}
.card-079 p {
  margin: 0;
  max-width: 78%;
  padding: 9px 13px;
  font-size: 14px;
  line-height: 1.4
}
.card-079__them {
  align-self: flex-start;
  background: #1e293b;
  color: #e2e8f0;
  border-radius: 16px 16px 16px 4px
}
.card-079__me {
  align-self: flex-end;
  background: #3b82f6;
  color: #fff;
  border-radius: 16px 16px 4px 16px
}
.card-079 p:hover {
  filter: brightness(1.1)
}
```
