Join code
8 4 9 2 0 1
sanam.app/join
Students open sanam.app/join and enter this code
Playground design system
Every base M1 component with all eight states, WCAG AA contrast checks, focus rings, 44 px touch targets, reduced motion, and the user sound preference.
Dates use the Buddhist Era and Thai month names, numbers always use Arabic digits, prices are in THB, truncation counts grapheme clusters, and sorting follows Thai collation.
Kanit for display and numbers; Noto Sans Thai for body copy. Both fonts are self-hosted as Thai and Latin WOFF2 subsets. Body text always uses line-height 1.6.
Learning arena สนาม
Teachers create quizzes fast, students play with joy, and results are instantly readable. This sentence uses Noto Sans Thai with line-height 1.6 so stacked Thai vowels and tone marks stay comfortable.
Micro label · 13 px · 700
#201A17#FFF6E3#FFFFFF#FF5C35#B93A16#FFC53D#B8F25A#6D4AE6#57C7FF#FF7EB6#6B5E55#E8E2D8#F4C9A8#B3261E#FFE1DB#FFFDF7Every permitted colour pair must pass WCAG AA. Forbidden pairs are shown to prove the rule “never white text on mango” is enforced.
| Pair | Sample | Ratio | Minimum | Result |
|---|---|---|---|---|
| Ink on cream | 16.00:1 | 4.5:1 | Pass | |
| Ink on white | 17.19:1 | 4.5:1 | Pass | |
| Ink on mango | 5.59:1 | 4.5:1 | Pass | |
| Ink on sun | 10.89:1 | 4.5:1 | Pass | |
| Ink on lime | 13.01:1 | 4.5:1 | Pass | |
| Ink on sky | 9.02:1 | 4.5:1 | Pass | |
| Ink on pink | 7.30:1 | 4.5:1 | Pass | |
| Ink on warm grey | 13.34:1 | 4.5:1 | Pass | |
| Ink on peach | 11.27:1 | 4.5:1 | Pass | |
| White on grape | 5.57:1 | 4.5:1 | Pass | |
| White on ink | 17.19:1 | 4.5:1 | Pass | |
| Muted on cream | 5.82:1 | 4.5:1 | Pass | |
| Mango ink on cream | 5.31:1 | 4.5:1 | Pass | |
| Incorrect red on white | 6.54:1 | 4.5:1 | Pass | |
| White on mango (forbidden) | 3.07:1 | 4.5:1 | Forbidden |
Primary buttons are mango with ink text; secondary buttons are white; ghost buttons have no border or shadow. Every button is at least 44 px tall with a 3 px ink focus ring and a 25% mango halo.
Inputs use a 2 px ink border, 12 px radius, cream-white fill, a 25% mango focus ring, and a minimum height of 44 px.
Use a nickname your classmates will recognise
Accepts Thai or Arabic digits, then normalises to Arabic
Try checking the code again
Cards have a white surface, 3 px border, 22–26 px radius, and a 6 px sticker shadow. They contain quizzes and reports.
Grade 8 · 20 questions · 15 minutes
Grade 8 · 20 questions · 15 minutes
Grade 8 · 20 questions · 15 minutes
Grade 8 · 20 questions · 15 minutes
Grade 8 · 20 questions · 15 minutes
Grade 8 · 20 questions · 15 minutes
Grade 8 · 20 questions · 15 minutes
Grade 8 · 20 questions · 15 minutes
Chips have a 2 px border, 999 px radius, 13 px 600 text, and a 44 px touch area even when the chip looks small.
The switch is 38×22 px with a 16 px round knob and a 44 px touch area. It uses lime when on and exposes aria-checked and role=switch.
Answer tiles come in four shapes and colours, with a letter, text, and a state readable by screen readers — never colour or shape alone. Minimum 104 px.
A conic mango ring on a cream track with a 3 px ink border. The number sits in a white core and pulses during the last five seconds (disabled under reduced motion).
A white ticket with a 3 px border, 10 px shadow, 1.2° rotation, sun badge strip, and 44–62 px code with 0.1em tracking.
Join code
8 4 9 2 0 1
sanam.app/join
Students open sanam.app/join and enter this code
Join code
8 4 9 2 0 1
sanam.app/join
Join code
8 4 9 2 0 1
sanam.app/join
Join code
8 4 9 2 0 1
sanam.app/join
Join code
8 4 9 2 0 1
sanam.app/join
Join code
8 4 9 2 0 1
sanam.app/join
Join code
8 4 9 2 0 1
sanam.app/join
Join code
8 4 9 2 0 1
sanam.app/join
Join code
8 4 9 2 0 1
sanam.app/join
A leaderboard row shows rank, an avatar made from the nickname’s base consonant, name, streak, and a tabular score. The top three use cards.
Three podium blocks: 1st in sun at 104 px, 2nd in warm grey at 78 px, 3rd in peach at 60 px, with names and scores readable by screen readers.
คะแนนรวมทั้งหมด 5,175
คะแนนรวมทั้งหมด 5,175
คะแนนรวมทั้งหมด 5,175
คะแนนรวมทั้งหมด 5,175
คะแนนรวมทั้งหมด 5,175
คะแนนรวมทั้งหมด 5,175
คะแนนรวมทั้งหมด 5,175
คะแนนรวมทั้งหมด 5,175
คะแนนรวมทั้งหมด 5,175
Sound is on by default but never plays before the user taps, and never plays when muted or when reduced motion is enabled. The preference is stored in localStorage under sanam.muted.
The saved value is read again when you return to this page
Loading preferences · Press a button to test the sound — nothing plays automatically
Everything must work from the keyboard: Tab reaches every control, Enter/Space activates buttons and switches, and arrow keys move between options in the real game. The focus ring is always visible.
Final state checklist for every base component.