Karten-Reihe (Scroll)
Horizontale Content-Karten-Reihe mit CSS-Scroll-Snap (kein JS): farbige Karten (Ton per Prop aus Tokens) mit Badge, Titel, Link und optionaler Media-Fläche. 1.2: density compact fuer App-Bereiche, Kurztext je Karte, Farbe surface
Beispiele
Farbige Content-Karten mit Badge, Titel und Link (Scroll-Snap ohne JS)
Ressourcen
Neues aus dem Produkt
Eigenschaften
| Prop | Typ | Default | Builder-Label |
|---|---|---|---|
| tone | string: dark | gray | light | "light" | Ton der Sektion (Theme liefert die Werte) |
| kicker | string | "" | Kicker (Akzent-Sektionslabel) |
| title | string | "" | Titel |
| cards * | array | — | Karten |
| density | string: comfortable | compact | "comfortable" | Dichte (compact = App-Bereich) |
| spacing | string: none | sm | md | lg | xl | "none" | Eigenabstand |
| padding | string: standard | none | sm | md | lg | xl | "standard" | Innenabstand (standard = Baustein-Wert, schlaegt Eigenabstand) |
| margin | string: standard | none | sm | md | lg | xl | "standard" | Aussenabstand |
| border | string: standard | none | hairline | strong | "standard" | Rahmen |
| radius | string: standard | none | control | surface | pill | "standard" | Ecken-Rundung |
| textColor | string | "" | Textfarbe (Token; leer = Standard) |
| backgroundColor | string | "" | Hintergrundfarbe (Token; leer = Standard) |
| shadow | string: standard | none | sm | md | lg | "standard" | Schatten |
| width | string: standard | container | full | "standard" | Breite (full = Band aus dem Container, container = im Container) |
| height | string: standard | half | full | "standard" | Hoehe (full = Bildschirmhoehe, Inhalt zentriert) |
| backgroundImage | string | "" | Hintergrundbild (https-URL oder /pfad; leer = keins) |
| backgroundDim | string: standard | light | medium | strong | "standard" | Bild abdunkeln (Lesbarkeit; standard = aus) |
| backgroundFixed | boolean | false | Bild steht fest beim Scrollen (Parallax) |
| alignSelf | string: standard | start | center | end | "standard" | Ausrichtung im Elternteil |
| anchor | string | "" | Anker-ID (Sprungziel, z. B. fuer Nav-Links) |
* Pflicht-Prop
Stellschrauben (Komponenten-Tokens)
Ebene 3 — aus dem CSS generiert (Registry). Umverdrahtbar per Hüllen-Komposition, ohne Markup-Eingriff; künftige Regler-Quelle des Component Builders.
| Token | Default |
|---|---|
--band-surface | transparent |
--band-text | var(--color-text-default) |
--band-muted | var(--color-text-muted) |
--band-line | color-mix(in srgb, var(--band-text) 14%, transparent) |
--card-surface | var(--color-band-dark) |
--card-text | var(--color-band-dark-text) |
Genutzte Design-Tokens
border.hairlinecolor.accentcolor.action.on-primarycolor.action.primarycolor.band.darkcolor.band.dark-mutedcolor.band.dark-textcolor.band.graycolor.band.gray-mutedcolor.band.gray-textcolor.border.subtlecolor.surface.defaultcolor.surface.pagecolor.text.defaultcolor.text.mutedcontainer.lgduration.fasteasing.standardelevation.raisedfocus.ring-colorfocus.ring-offsetfocus.ring-widthfont.family.defaultfont.family.displayfont.family.monofont.leading.displayfont.size.displayleading.baseleading.tightradius.smradius.surfacesize.1size.12size.2size.24size.4size.5size.6size.8text.mdtext.smtext.xltext.xstracking.wideweight.boldweight.semibold
LLM-Notizen
# section.card-row
Horizontale Content-Karten-Reihe mit CSS-Scroll-Snap (kein JS): farbige Karten mit Badge, Titel, Link und optionaler Media-Fläche.
## Wann nutzen
- Als scrollbare Karten-Sektion (z. B. Feature-/Themen-Kacheln) im Dokument.
- Nicht als Aufruf-Banner (`section.cta`).
## Wichtige Props
- `tone` = Ton der Sektion: `dark` | `gray` | `light` (Default `light`)
- `kicker` = Akzent-Sektionslabel über dem Titel
- `title` = Sektionstitel
- `cards` * = Karten, je `{ title* (max 160), badge?, linkLabel?, href?, color: primary|accent|dark|gray, imageUrl? }`
- `spacing` = Eigenabstand oben/unten: `none` | `sm` | `md` | `lg` | `xl` (Default `none`)
## Beispiel-Node
{ "definition": "section.card-row", "props": { "tone": "light", "kicker": "Neu", "title": "Highlights", "spacing": "md", "cards": [ { "badge": "Beta", "title": "Schneller Start", "linkLabel": "Mehr", "href": "/start", "color": "primary" } ] } }
## Hinweise
- Section-Gerüst — die Karten (`cards`) sind Content-Daten, keine Slots; Farben lösen über Tokens auf.