Figma to Tailwind Color Palette & UI Checklist
Halo, temen-temen! Sebagai visual & UI designer yang hobi mainan Figma, transisi warna dari design system ke code kadang bikin pusing kalau nggak rapi. Nah, biar contrast dan hierarchy desain UI kita tetap konsisten pas di-code-in, nih aku spill cheatsheet hex preset plus checklist kilatnya!
1. Modern Neutral & Accent Palette (Hex Preset)
Simpan racikan warna ini buat bikin tampilan UI yang clean, estetik, dan pastinya super adem di mata:
/* Masukin ke CSS root atau Tailwind config kamu */
:root {
--bg-primary: #F8FAFC; /* Slate 50 - Background utama yang bersih */
--surface: #FFFFFF; /* Card & Container surface */
--text-main: #0F172A; /* Slate 900 - High contrast text */
--text-muted: #64748B; /* Slate 500 - Secondary text & border tipis */
--accent-glow: #6366F1; /* Indigo 500 - Main CTA & interactive state */
--accent-hover: #4F46E5; /* Indigo 600 - Hover state */
}
2. Quick UI Minimalism Checklist
Sebelum kamu export desain dari Figma ke developer (atau di-code sendiri), pastikan hal-hal ini sudah centang semua:
- [ ] Contrast Ratio: Cek teks di atas background minimal rasionya 4.5:1 (aksesibilitas itu penting, bestie!).
- [ ] Spacing System: Konsisten pakai kelipatan 4px atau 8px (
p-2,p-4,p-6di Tailwind). - [ ] Typography Scale: Batasi maksimal 2 jenis font di satu halaman buat jaga visual hierarchy tetap clean.
- [ ] Interactive States: Pastikan state
:hover,:focus, dan:activepunya transisi halus (transition-all duration-200).
Yuk, bikin UI yang nggak cuma fungsional tapi jugaanjir estetik!