BATON
Behind the score

Design system

BATON's visual language is quite literally definitely loosely defined by haseulbintaro's personal identity: matte gold, warm cream, soft plum and midnight ink, which definitely doesn't have any other meaning whatsoever, or at least that's what they want you to believe. Everything on this page is rendered from the real tokens and components in the codebase, so it can't drift from the app.

mahawaditra/baton on GitHub

Foundations

Colour

Two layers. The palette holds raw OKLCH values on a 50โ€“950 scale and is never used by components directly. Role tokens point into the palette, so a new palette only changes the role mapping, not the components.

cream
  1. 50
  2. 100
  3. 200
  4. 300
  5. 400
  6. 500
  7. 600
  8. 700
  9. 800
  10. 900
  11. 950
night
  1. 50
  2. 100
  3. 200
  4. 300
  5. 400
  6. 500
  7. 600
  8. 700
  9. 800
  10. 900
  11. 950
ink
  1. 200
  2. 600
  3. 800
  4. 900
  5. 950
gold
  1. 50
  2. 100
  3. 200
  4. 300
  5. 400
  6. 500
  7. 700
  8. 800
plum
  1. 100
  2. 300
  3. 400
  4. 500
  5. 600
  6. 700
  7. 800
  8. 900
sage
  1. 100
  2. 300
  3. 500
  4. 700
  5. 900
amber
  1. 100
  2. 300
  3. 400
  4. 700
  5. 900
terracotta
  1. 100
  2. 300
  3. 400
  4. 500
  5. 600
  6. 700
  7. 900
blue
  1. 100
  2. 300
  3. 500
  4. 700
  5. 900
Palette, read from globals.css at build time
Surfaces
  • --backgroundcream-100 ยท dark night-900
  • --surfacecream-50 ยท dark night-700
  • --surface-2cream-200 ยท dark night-600
  • --mutedcream-400 ยท dark night-500
  • --bordercream-500 ยท dark night-400
  • --border-strongcream-800 ยท dark night-200
Text
  • --foregroundink-900 ยท dark cream-300
  • --foreground-2ink-600 ยท dark cream-700
  • --muted-foregroundcream-950 ยท dark night-50
Brand
  • --primaryink-800 ยท dark ink-200
  • --hero-bgink-800 ยท dark night-800
  • --plumplum-700 ยท dark plum-400
  • --plum-softplum-100 ยท dark plum-800
  • --goldgold-400 ยท dark gold-300
  • --gold-softgold-100 ยท dark gold-800
Status
  • --successsage-500 ยท dark sage-300
  • --success-softsage-100 ยท dark sage-900
  • --warningamber-400 ยท dark amber-300
  • --warning-softamber-100 ยท dark amber-900
  • --destructiveterracotta-500 ยท dark terracotta-400
  • --destructive-softterracotta-100 ยท dark terracotta-900
  • --infoblue-500 ยท dark blue-300
  • --info-softblue-100 ยท dark blue-900

Typography

Plus Jakarta Sans for everything, with tabular numbers for ticket IDs, dates and money. Headings balance their lines; paragraphs avoid orphans. Sentence case everywhere except proper names.

text-display ยท 2.5remTicket 26999901 is ready to pick up
text-h1 ยท 2remTicket 26999901 is ready to pick up
text-h2 ยท 1.5remTicket 26999901 is ready to pick up
text-h3 ยท 1.25remTicket 26999901 is ready to pick up
text-title ยท 1.125remTicket 26999901 is ready to pick up
text-body-lg ยท 1remTicket 26999901 is ready to pick up
text-body ยท 0.875remTicket 26999901 is ready to pick up
text-label ยท 0.875remTicket 26999901 is ready to pick up
text-caption ยท 0.8125remTicket 26999901 is ready to pick up
text-micro ยท 0.6875remTicket 26999901 is ready to pick up

Radius & shadow

Small radii and thin borders keep things quiet. Nested corners subtract the padding: a 12px box with 3px padding holds a 9px inner corner. Shadows are tinted with the primary ink, never pure black.

xs
sm
base
md
lg
xl
Radius tokens
sm
md
lg
popover
Shadow tokens

Motion

Motion explains a change, it doesn't decorate it. Everything sits inside prefers-reduced-motion: no-preference; with reduced motion, changes are instant.

PatternTiming
Open and close250ms ยท cubic-bezier(0.2, 0, 0, 1)
Segment slide200ms ยท cubic-bezier(0.2, 0, 0, 1)
Page enter260ms ยท fade + 8px rise
Stagger40ms per item
Reveal600ms ยท fade + 24px rise

Music glyphs

Noto Music glyphs stand in for icons only where the musical meaning fits. They are always aria-hidden and always sit next to a text label. Inline glyphs scale with the text around them; display glyphs keep explicit sizes.

  • Reverse final barlineOpens a score. Brand mark, opens every landing heading. Gold.
  • Final barlineCloses a score. Closes landing headings, end of a returned loan. Gold.
  • Left repeatStart of a repeated passage. Loan active, the step an extension loops back to. Gold.
  • Right repeatGo back and play again. Extension badge. Text colour.
  • FermataHold longer. Ongoing loans carried into a new term. Plum on neutral surfaces, text colour inside badges.
  • Quarter restSilence. Every empty state. Tone of the empty state.
1 ยท very unhappy
2
3
4
5 ยท very happy
Dynamics as the survey rating scale, from p to sfz

Components

Notice

One component for every notice box. Gold means it's your turn to act, plum means the staff are on it, and a plain card is just information. The compact version carries short form errors and Handbook warnings.

Giliran kamu
Lengkapi data kontrak, lalu upload 3 dokumen.
Giliran staf
Staf lagi ngecek dokumen kamu.
Udah dikembalikan
Makasih udah balikin instrumennya!
Pengajuan ditolak
Instrumen sedang dipakai latihan gabungan.
Loan in progress
The borrower holds the instrument until it is returned.

Due 30/06/2027

Pengajuan dibatalkan
Peminjam tidak jadi meminjam.
Kode aksesnya belum cocok. Cek lagi email konfirmasi kamu.

Field

Label on top, hint or error underneath, wired to the input with aria-describedby and aria-invalid. Mark what's optional instead of starring what's required. Forms skip browser validation so every message is BATON's own.

Kode akses status akan dikirim ke email ini.

Angkatan harus 4 digit angka

Badges

Status badges always carry a text label, never colour alone. Glyph badges are the only badges with notation: soft on neutral surfaces, outline on a ticket hero.

DiajukanDokumen masukSedang dipinjamSelesaiTerlambatDitolak
Request status
TersediaDitempatkanDipinjamNonaktif
Instrument status, with a condition indicator when it needs attention
Extension2Ongoing
Glyph badges, soft
Extension1OngoingSince 12/11/2026
Glyph badges, outline on a hero

Ticket

The ticket shape is reserved for things that stand for a loan ticket, so anything with a Ticket ID. Notches, the curved outline and perforations all come from one token, --ticket-notch. The two halves never share a tone.

Ticket ID
26999901
Giliran kamu
Download kontrak, tanda tangan, lalu upload lagi.
Hero top, borrower's turn underneath
  1. Pengajuan dikirim
  2. 2Lengkapi data & dokumen
  3. 3Ambil & isi addendum
  4. 4Sedang dipinjam
Giliran staf
Staf lagi ngecek dokumen kamu.
Card top, staff's turn underneath

Progress

One vocabulary: done is primary with a check, current is gold with a ring, upcoming is an outline. Rejected, cancelled and overdue are not steps, they replace the stepper with a Notice. A bar's colour has to mean something; if it only shows position, it's primary.

  1. Pengajuan dikirim
  2. Lengkapi data & dokumen
  3. 3Ambil & isi addendum
  4. 4Sedang dipinjam
Position: survey page 1 of 2
Meaning: 2 of 3 borrower slots used

Disclosure & collapse

Disclosure is a native details element for page content; its chevron flips from down to up. Collapse is a button with a grid-row panel for structural groups; its chevron turns from right to down, and a closed panel is inert so the keyboard skips it.

Email berisi Ticket ID dan kode akses tidak masuk?

Cek folder Spam di email kamu dan tandai sebagai "Bukan spam".

Disclosure
  • Violin
  • Viola
  • Cello
Collapse

Confirmation

How hard an action asks for confirmation depends on what it does, named after dynamics. The level names live only here, never in the UI.

LevelEffectPattern
pCan be undoneRuns straight away, then a toast
mfEmails the borrowerNo dialog, one line under the button saying what gets sent
fCan't be undoneAlert dialog that names the consequence, with a specific verb
sfzRemoves accessAlert dialog plus a hold-to-confirm button

Emails the borrower to fill in contract details.

mf: consequence line
f: alert dialog

Press and hold.

sfz: hold to confirm

Empty state

A quarter rest for anything that's empty. Gold when a search or filter found nothing, plain when there's simply nothing yet.

No instruments yet

Instruments added by admin will appear here.

No matching instruments

Try a different search term.

Toast

One sentence. Admin errors start with Couldn't, public errors end with the next step. Error toasts stay until they're closed.

Segmented control

Two or three options with a sliding indicator. The indicator's corner is the outer corner minus the padding.

Cards

Below the table breakpoint, and whenever a table wouldn't fit, lists turn into cards grouped by what makes sense for the data. Tables never scroll sideways.

Guidelines

Writing

Three voices, one set of terms. The contract PDF stays formal; everything else follows the voice of the page it lives on.

  • Public pages and borrower emails ยท Casual Indonesian, kamuKode aksesnya belum cocok. Cek lagi email konfirmasi kamu.
  • Admin ยท Plain EnglishCouldn't assign the instrument. Try again.
  • Handbook ยท Zenka's own voice, on purposeSEHARUSNYA instrumennya udah disiapin di Sekre.
  • DoUse sentence case for buttons, headings, labels and statuses. Proper names keep their capitals: BATON, OSUI Mahawaditra, LINE, KTP, Ticket ID, Ketua.
  • DoSay what happened and what to do next. Use belum when the borrower can fix it.
  • Don'tUse internal terms like Tahap 2, assign or Stage in public copy.
  • Don'tBlame the reader, or use emoji anywhere in the interface.
PublicAdmin
peminjamborrower
tiketticket
kode aksesaccess code
addendumaddendum
depositdeposit
jatuh tempodue date
perpanjanganextension
pengembalianreturn
Glossary

Accessibility

The floor every screen has to clear before it ships.

  • DoKeep text contrast at 4.5:1 for body copy and 3:1 for large headings and UI.
  • DoAlways show a visible focus ring. Never remove an outline without replacing it.
  • DoGive every icon-only button an aria-label.
  • DoPair every status colour with a text label, and every music glyph with a word.
  • DoTie form errors to their field with aria-describedby and aria-invalid, and move focus to the first one.
  • DoRespect reduced motion: anything that moves has an instant fallback.