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.
Which for what
| Scene | For |
|---|---|
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
| Prop | Type | Default | Meaning |
|---|---|---|---|
kind * | enum | – | |
className | string | – | |
label | string | – | What it shows, when it says something the text next to it does not. Usually it is decoration. |
width | string | number | – | Width in px or any CSS length; the height follows (4 : 3). Default: the width of its place. |