Skip to main content

Illustrations

import { Illustration } from "@study/ui";

<Illustration kind="karten" width={240} />

Round shapes, a dark outline, the course colours as fill. The colours come from the tokens – a scene adapts to light and dark by itself.

schreibtisch
buecher
tasse
kalender
stern
karten
fertig
pflanze
suche
fehler
schreibtisch
buecher
tasse
kalender
stern
karten
fertig
pflanze
suche
fehler

Which for what​

SceneFor
schreibtisch (desk)Today, welcome
buecher (books)courses, course page, sign-in
tasse (cup)sign-in, breaks, "all done for today"
kalender (calendar)calendar, no dates
stern (star)success, learning streak
karten (cards)flashcards
fertig (done)tasks done, upload finished
pflanze (plant)empty notes, quiet states
suche (search)no results
fehler (error)something went wrong, page not found

Rules​

  • One illustration per view, no more. It decorates, it does not explain – the text next to it does that.
  • Not narrower than 100 px, otherwise the outlines get too thick.

Props​

PropTypeDefaultMeaning
kind *enum–
classNamestring–
labelstring–What it shows, when it says something the text next to it does not. Usually it is decoration.
widthstring | number–Width in px or any CSS length; the height follows (4 : 3). Default: the width of its place.