Invisible Docs
GalerieTokens

Spielerleiste (Player Bar) — component.player-bar

Spielerleiste fuer Brett- und Wuerfelspiele mit 2 bis 8 Spielern: je Spieler Bild oder Initialen mit Spielerfarbe und Formzeichen (ui.player-token), Name, Stand (Text und/oder Balken), Kennzeichen Bot und abwesend, deutliche Marke fuer den Spieler am Zug (Rahmen in der Spielerfarbe, Text ist dran, a

Componentv1.2.0Statusweb.documentweb.applicationdesktop.shellbuilder.preview

Beispiele

Vier Spieler, Mia ist dran, ein Bot, eine Abwesende

  • Mia2 von 3 im Ziel
    ist dran
  • Papa1 von 3 im Ziel
  • Robo0 von 3 im Ziel
    Bot
  • Oma Inge1 von 3 im Ziel
    abwesend

Zwei Spieler mit Punkten, gross

  • Ben12
  • Lena9ist dran

Schmale Spalte

  • Mia2 von 3 im Ziel
    ist dran
  • Papa1 von 3 im Ziel
  • Robo0 von 3 im Ziel
    Bot
  • Oma Inge1 von 3 im Ziel
    abwesend

Glas-Chips (fuer die Buehne, section.game-stage hud overlay)

  • Mia2 von 3 im Ziel
    ist dran
  • Papa1 von 3 im Ziel
  • Robo0 von 3 im Ziel
    Bot
  • Oma Inge1 von 3 im Ziel
    abwesend

Eigenschaften

PropTypDefault
players *array—
orientationstring: auto | horizontal | vertical"auto"
sizestring: md | lg"md"
labelstring""
turnLabelstring""
variantstring: bar | chips"bar"

Stellschrauben (Komponenten-Tokens)

TokenDefault
--player-bar-gapvar(--size-2)
--player-bar-surfacevar(--color-surface-default)
--player-bar-textvar(--color-text-default)
--player-bar-mutedvar(--color-text-muted)
--player-bar-colorvar(--tag-red-tone, var(--color-chart-8))
--player-bar-glassvar(--game-stage-glass, color-mix(in srgb, var(--color-surface-inverse) 62%, transparent))
--player-bar-glass-bordervar(--game-stage-glass-border, color-mix(in srgb, var(--color-text-inverse) 22%, transparent))
--player-bar-glass-textvar(--game-stage-glass-text, var(--color-text-inverse))
--player-bar-glass-mutedvar(--game-stage-glass-muted, color-mix(in srgb, var(--color-text-inverse) 72%, transparent))

Genutzte Design-Tokens

blur.md border.emphasis border.hairline color.chart.1 color.chart.2 color.chart.3 color.chart.4 color.chart.5 color.chart.6 color.chart.7 color.chart.8 color.surface.default color.surface.inverse color.text.default color.text.inverse color.text.muted duration.base duration.fast easing.standard font.family.default leading.tight opacity.muted radius.full radius.surface shadow.overlay-small shadow.raised size.05 size.1 size.10 size.2 size.3 size.4 tag.amber.tone tag.blue.tone tag.green.tone tag.orange.tone tag.pink.tone tag.red.tone tag.teal.tone tag.violet.tone text.md text.sm text.xs weight.bold weight.medium weight.semibold