Theme: ← Übersicht Tokens

Preis

Shop-Preiszeile: Betrag (bei Streichpreis automatisch in Sale-Farbe), Streichpreis, Rabatt-Badge — Sale-Ton über den themebaren color.sale-Token

UI Elements v1.0.3 Commerce WebsiteApp ui.price

Beispiele

Sale-Preis mit UVP und Rabatt-Badge
9,49 €24,99 €-62%
Normalpreis
24,99 €

Eigenschaften

PropTypDefaultBuilder-Label
amount *string—Betrag (formatiert, z.B. 9,99 €)
originalAmountstring""Streichpreis (UVP)
discountstring""Rabatt-Badge (z.B. -61%)
sizestring: md | lg"lg"Größe
paddingstring: standard | none | sm | md | lg | xl"standard"Innenabstand (standard = Baustein-Wert)
marginstring: standard | none | sm | md | lg | xl"standard"Aussenabstand
borderstring: standard | none | hairline | strong"standard"Rahmen
radiusstring: standard | none | control | surface | pill"standard"Ecken-Rundung
textColorstring""Textfarbe (Token; leer = Standard)
backgroundColorstring""Hintergrundfarbe (Token; leer = Standard)
shadowstring: standard | none | sm | md | lg"standard"Schatten
widthstring: standard | full"standard"Breite
alignSelfstring: standard | start | center | end"standard"Ausrichtung im Elternteil
anchorstring""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.

TokenDefault
--price-radius-smvar(--radius-sm)
--price-salevar(--color-sale)
--price-surface-pagevar(--color-surface-page)
--price-text-defaultvar(--color-text-default)
--price-text-mutedvar(--color-text-muted)

Genutzte Design-Tokens

color.salecolor.surface.pagecolor.text.defaultcolor.text.mutedfont.family.defaultradius.smsize.05size.1text.3xltext.smtext.xltext.xsweight.boldweight.semibold

LLM-Notizen

ui.price

Shop-Preiszeile: amount (Pflicht, fertig formatiert inkl. Währung), optional originalAmount (Streichpreis) und discount (Badge).

Hinweise

  • Mit originalAmount färbt sich der Betrag automatisch über den themebaren Token color.sale — kein Farb-Prop.
  • Beträge sind Content-Strings (Locale-Formatierung macht der Aufrufer/Daten-Service), keine Zahlen.

Beispiel-Node


{"definition": "ui.price", "props": {"amount": "9,49 €", "originalAmount": "24,99 €", "discount": "-62%"}}