Lewati ke konten utama

BAB 60. DESIGN TOKENS & WIREFRAME DESCRIPTION

Design Tokens

Design tokens adalah konstanta desain yang digunakan secara konsisten di seluruh aplikasi Flutter dan admin panel.


Color Palette

TokenNilaiPenggunaan
primary#2563EBCTA utama, button, link aktif
primaryDark#1D4ED8Hover, pressed state
secondary#10B981Success, badge tutor aktif
background#F8FAFCBackground halaman
surface#FFFFFFCard, dialog, bottom sheet
error#DC2626Error message, validasi gagal
warning#F59E0BPeringatan, perlu perhatian
success#16A34AKonfirmasi berhasil
onPrimary#FFFFFFTeks di atas primary
textPrimary#1F2937Teks utama
textSecondary#6B7280Teks sekunder, hint

Typography

StyleFontUkuranWeightPenggunaan
displayPoppins32 spBoldHero text
headlinePoppins24 spSemiBoldJudul halaman
titlePoppins20 spMediumJudul section
bodyPoppins16 spRegularKonten utama
labelPoppins14 spMediumLabel form, chip
captionPoppins12 spRegularKeterangan, timestamp

Spacing (4px Grid System)

TokenNilaiPenggunaan
xs4dpSpasi antar elemen kecil
sm8dpPadding dalam chip, badge
md16dpPadding card, section
lg24dpSpasi antar section
xl32dpPadding halaman
xxl48dpSpasi antar konten besar

Border Radius

TokenNilaiPenggunaan
small8dpInput field, chip kecil
medium12dpButton sekunder
large16dpCard, dialog
xl24dpBottom sheet
pill999dpChip status, badge

Elevation

LevelNilaiKomponen
0Flat (0dp)Background, divider
11dpCard, list item
23dpButton hover
36dpDialog, popup
48dpBottom sheet, FAB

Wireframe Description

1. Login Screen

┌────────────────────────┐
│ │
│ [Logo TB] │
│ TemuBelajar │
│ Bangun Koneksi... │
│ │
│ ┌──────────────────┐ │
│ │ Username (NISN) │ │
│ └──────────────────┘ │
│ ┌──────────────────┐ │
│ │ Password 👁 │ │
│ └──────────────────┘ │
│ │
│ [ Masuk ] │
│ │
└────────────────────────┘

2. Dashboard Siswa

┌────────────────────────┐
│ 👋 Halo, Andi! │
│ XII IPA 1 | Level 7 │
│ ░░░░░░░░░ 1250 XP │
├────────────────────────┤
│ ⚡ Aksi Cepat │
│ [+ Request] [📋 Lihat] │
├────────────────────────┤
│ 📅 Jadwal Hari Ini │
│ ┌──────────────────┐ │
│ │ Matematika 14:00 │ │
│ └──────────────────┘ │
├────────────────────────┤
│ 🏆 Leaderboard │
│ #1 Budi — 98.5 SIS │
│ #2 Andi — 87.2 SIS │
└────────────────────────┘

3. Form Request Bantuan

┌────────────────────────┐
│ ← Buat Request │
├────────────────────────┤
│ Mata Pelajaran │
│ [Matematika ▼] │
│ │
│ Materi │
│ [Integral Lipat ▼] │
│ │
│ Jelaskan Masalah │
│ ┌──────────────────┐ │
│ │ │ │
│ └──────────────────┘ │
│ │
│ Lokasi Pertemuan │
│ [Perpustakaan Lt 2] │
│ │
│ Jadwal │
│ [Rab, 10 Agt 14:00] │
│ │
│ Durasi: 60 menit │
│ │
│ [ Kirim Request ] │
└────────────────────────┘

4. Meeting Screen

┌────────────────────────┐
│ ← Sesi: Matematika │
│ Tutor: Ahmad Fauzi │
├────────────────────────┤
│ │
│ ⏱️ 00:45:12 │
│ Sesi sedang berjalan │
│ │
├────────────────────────┤
│ 📍 Perpustakaan Lt.2 │
│ ✅ Check-In: 14:02 │
├────────────────────────┤
│ [📷 Upload Foto] │
│ [💬 Buka Chat] │
│ │
│ [ 🔚 Check-Out ] │
└────────────────────────┘

5. Profile Screen

┌────────────────────────┐
│ [Foto Profil] │
│ Andi Prasetyo │
│ XII IPA 1 │
│ │
│ ⭐ Level 7 │
│ ░░░░░░░░░ 1250 XP │
│ 🌟 SIS: 87.2 │
│ ⭐ Rating: 4.8 │
├────────────────────────┤
│ 🏅 Badge │
│ [🥇][📚][💡][🏃][⭐] │
├────────────────────────┤
│ 📊 Statistik │
│ 24 sesi sebagai tutor │
│ 18 sesi sebagai learner│
└────────────────────────┘

:::tip Catatan Implementasi Design tokens diimplementasikan sebagai konstanta Dart di app/theme/app_colors.dart, app_spacing.dart, dan app_typography.dart untuk menjamin konsistensi visual di seluruh aplikasi. :::