Sternenhimmel
Dekorative Sternen-Ebene hinter dem Inhalt eines Gastgebers: Canvas mit funkelnden Sternen, optional sanfte Zeiger-Reaktion, Schein, Umlaufbahnen und Rand-Ausblendung. Farben aus der Textfarbe des Gastgebers und dem Akzent – funktioniert auf dunklen und hellen Flächen. Ohne JavaScript steht ein Ster
Beispiele
Dunkle Bühne: dicht, Schein unten, Umlaufbahnen, Zeiger-Reaktion
Heller Ton: dezent, zum unteren Rand ausgeblendet
Akzent-Sterne im Ton Blau, Schein in der Mitte, ohne Funkeln
Minimalfall: nur Sterne
Eigenschaften
| Prop | Typ | Default | Builder-Label |
|---|---|---|---|
| density | string: low | medium | high | "medium" | Dichte der Sterne |
| intensity | string: soft | normal | strong | "normal" | Stärke (soft = dezent) |
| glow | string: none | top | center | bottom | "none" | Schein (weiches Licht in der Akzentfarbe) |
| orbits | boolean | false | Umlaufbahnen (zwei feine Ellipsen) |
| accent | boolean | false | Einzelne Sterne in der Akzentfarbe |
| tone | string: | accent | primary | blue | orange | teal | pink | green | violet | amber | red | "" | Akzent-Ton (leer = Theme) |
| fade | string: none | top | bottom | both | "none" | Sterne zum Rand ausblenden |
| stage | string: none | dark | light | "none" | Eigene Fläche (none = füllt den Gastgeber) |
| twinkle | boolean | true | Funkeln (aus bei reduzierter Bewegung) |
| interactive | boolean | false | Sterne weichen dem Mauszeiger aus |
* 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 |
|---|---|
--starfield-accent | var(--accent-tone, var(--color-accent)) |
--starfield-glow | var(--starfield-glow-color, var(--starfield-accent)) |
--starfield-glow-strength | 28% |
--starfield-strength | 0.88 |
--starfield-host | 1 |
--starfield-orbit-strength | 7% |
--starfield-tile | 1 |
--starfield-unit | calc(var(--size-1) * var(--starfield-tile)) |
--starfield-dot | var(--border-hairline) |
--starfield-glow-1 | color-mix(in srgb, var(--starfield-glow) var(--starfield-glow-strength), transparent) |
--starfield-glow-2 | color-mix(in srgb, var(--starfield-glow) calc(var(--starfield-glow-strength) * 0.6), transparent) |
--starfield-glow-3 | color-mix(in srgb, var(--starfield-glow) calc(var(--starfield-glow-strength) * 0.24), transparent) |
--starfield-s1 | color-mix(in srgb, currentColor 72%, transparent) |
--starfield-s2 | color-mix(in srgb, currentColor 60%, transparent) |
--starfield-s3 | color-mix(in srgb, currentColor 48%, transparent) |
--starfield-s4 | color-mix(in srgb, currentColor 42%, transparent) |
--starfield-s5 | color-mix(in srgb, currentColor 36%, transparent) |
--starfield-s6 | color-mix(in srgb, currentColor 32%, transparent) |
--starfield-s7 | color-mix(in srgb, currentColor 26%, transparent) |
--starfield-s8 | color-mix(in srgb, currentColor 22%, transparent) |
Genutzte Design-Tokens
border.hairlinecolor.accentcolor.band.darkcolor.band.dark-textcolor.surface.defaultcolor.text.defaultduration.sloweasing.outeasing.standardradius.surfacesize.1size.20