# Systemtheme-bewusst (C 048)

Kategorie: Cards  
Tags: dark-mode, theme, tokens, media-query, adaptive  
Seite: https://designforai.dev/de/snippet/card-048

## Prompt

Baue eine 290px Card, komplett über Custom Properties gesteuert: --bg #fff, --fg #111827, --muted #6b7280, --line #e5e7eb, --accent #2563eb im Light Mode, und unter @media (prefers-color-scheme: dark) auf #111827, #f9fafb, #9ca3af, #374151, #60a5fa getauscht. Die Card hat 22px Padding, 14px Radius, 1px Rahmen in --line, der beim Hover --accent wird, ein 11px Versalien-Label in --accent, 18px Titel, 14px --muted Text und 300ms Transitions auf Farbwechseln.

## HTML

```html
<article class="card-048">
  <span class="card-048__label">Adaptive</span>
  <h3>Follows the system theme</h3>
  <p>Same markup, swapped custom properties under prefers-color-scheme: dark.</p>
</article>
```

## CSS

```css
.card-048 {
  --bg: #fff;
  --fg: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #2563eb;
  width: 290px;
  padding: 22px;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-family: system-ui,sans-serif;
  transition: background .3s,color .3s,border-color .3s
}
@media (prefers-color-scheme:dark) {
  .card-048 {
    --bg: #111827;
    --fg: #f9fafb;
    --muted: #9ca3af;
    --line: #374151;
    --accent: #60a5fa
  }
}
.card-048__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent)
}
.card-048 h3 {
  margin: 6px 0;
  font-size: 18px
}
.card-048 p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted)
}
.card-048:hover {
  border-color: var(--accent)
}
```
