design-system
Fungsinya
Tool ini membantu memastikan elemen visual website, seperti warna, tipografi, dan animasi, diterapkan secara konsisten dan efisien. Tool ini menetapkan aturan agar semuanya terlihat dan berperilaku sama di seluruh situs.
Kapan dipakai
- βSaat membangun website atau aplikasi baru.
- βSaat menambahkan fitur visual baru ke website yang sudah ada.
- βSaat ingin memastikan website memiliki tampilan dan nuansa yang konsisten.
Link skill
https://github.com/sickn33/agentic-awesome-skills/blob/main/skills/design-system/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βBagaimana cara memastikan warna dan font saya konsisten di seluruh website?β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Caranya dengan mendefinisikan 'token' (blok kode kecil) untuk warna, tipografi, dan animasi. Alih-alih menggunakan nilai acak, kode memakai token yang sudah ditentukan sehingga tampilannya seragam.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
Design system
When to Use
Use this skill when you need mechanical implementation invariants for frontend design: token architecture, typography hierarchy, loading order, FOUT prevention, chrome stability, motion timing, color semantics. Use with design when building components, pages, or design systems. (Aesthetic direction lives in...
Apply with design when implementing UI: components, pages, or design systems. Every color, type, and motion choice should trace back to these rules.
Token architecture
All colors map to a small set of primitives. No random hex values.
- Foreground: Text hierarchy (primary, secondary, muted).
- Background: Surface elevation (base, raised, overlay).
- Border: Separation hierarchy (subtle, default, emphasis).
- Brand: Identity and primary accent.
- Semantic: Destructive, warning, success (and optional info).
Use tokens in code (CSS variables, theme objects); never hardcode hex for UI.
Typography
- Hierarchy: Headlines β heavier weight, tighter letter-spacing for presence. Body β comfortable weight for readability. Labels/UI β medium weight, works at smaller sizes. Data β monospace,
tabular-numsfor alignment. - Combine size, weight, and letter-spacing so hierarchy is clear at a glance. If you squint and can't tell headline from body, hierarchy is too weak.
- Fonts: pair a display font with a body font; keep hierarchy legible at a glance. Which fonts is direction, not mechanics β pick from the domain and push off your first/default instinct (the mean); see design-spatial Β§2.
- Data (functional only): real aligned numbers, IDs, timestamps in monospace with
tabular-numsβ mono earns its place when values line up in a column. Do NOT sprinkle mono on decorative eyebrow/metadata microtext ("35MM Β· DEVELOP Β· SCAN", fake spec captions) for a "technical" look β that's the current trend-slop, not data. See design-spatial Β§2.
Loading order β first seen, first loaded
The first viewport must paint complete and correct, fast. Order every resource by whether the user sees it first; the rest waits.
- Prioritize only the above-the-fold set (hero text, hero image/video, brand mark). Preloading everything is the same as preloading nothing β the true criticals lose the bandwidth race. Pick the few things in the first screenful and prioritize those.
- Fonts: self-host WOFF2. Convert OTF/TTF β WOFF2 (Brotli; ~half the bytes, identical glyphs) and
<link rel="preload" as="font" type="font/woff2" crossorigin>the weights used in the first viewport. Never a render-blocking third-party font stylesheet β a Google Fonts<link>adds a CSS round-trip plus extra DNS/TLS before the font even starts downloading; self-host instead. - LCP image/video:
fetchpriority="high"on the hero image (or the video poster);<link rel="preload" as="image">it when it's CSS-referenced (the parser can't see CSSurl()s early). The hero box must never be empty β ship a poster/low-res placeholder so there's no blank frame. - Below the fold:
loading="lazy" decoding="async"on images;preload="none"(or"metadata") on video;defernon-critical JS. Always reserve space (aspect-ratio, orwidth+height) so deferred media can't shift layout (CLS). - Keep the render-blocking head minimal: inline critical CSS, defer the rest.
Never let fonts pop in (no FOUT) β ever
font-display: swap is the pop β it paints a fallback face, then swaps to the webfont and reflows. Do not use it for any text the user watches load (titles, wordmarks, hero copy). The rule is absolute: title/display text must never flash a fallback or reflow.
- Gate visibility on the real font. Synchronously in
<head>, add afonts-pendingclass to<html>that holds the display-font text atopacity: 0. Ondocument.fonts.readyβ kick it withdocument.fonts.load('<weight> 1em "Family"')for each critical face β swap tofonts-readyand fade the text in (0.5s). Always include a safety timeout (2.5s) that reveals regardless, so a font failure can never leave text permanently hidden. - Pair this with preload + WOFF2 (above) so the hidden window is a few hundred ms, not seconds β the fade reads as intentional, not as a stall.
β¦
Pertanyaan umum
Apa itu 'token'?
Token seperti nama atau label untuk nilai tertentu, misalnya warna persis atau ukuran font. Dengan menggunakan token, semua orang memakai elemen visual yang sama.
Mengapa penting memuat font dengan benar?
Memuat font dengan benar mencegah teks 'melompat' atau berubah tampilan saat situs dimuat, sehingga pengalaman pengguna lebih mulus.
Bagaimana ini memengaruhi kecepatan website?
Dengan mengoptimalkan pemuatan gambar dan font serta menerapkan aturan yang konsisten, website bisa dimuat lebih cepat dan terlihat lebih profesional.
Detail
Deskripsi asli dari pembuat
Mechanical implementation invariants for frontend design: token architecture, typography hierarchy, loading order, FOUT prevention, chrome stability, motion timing, color semantics. Use with design when building components, pages, or design systems.
Popularitas
- Bintang GitHub
- 48k
- Peringkat
- #6268
- Lisensi
- MIT
- Diperbarui
- 15/10/2026
Komentar
- β¦
Skill lain dari repositori ini
00-andruia-consultant
48kMembantu agent Anda memulai atau meningkatkan proyek AI. Agent menganalisis kode, menyarankan tools, dan membuat rencana aksi dalam bahasa Spanyol.
007
48kMemungkinkan agent Anda melakukan audit keamanan dan threat modeling. Berguna untuk melindungi proyek dari serangan dan celah keamanan.
10-andruia-skill-smith
48kMembantu agent Anda membuat atau meningkatkan tools AI. Agent mendefinisikan cara kerja tools, menulis dokumentasi, dan memvalidasi strukturnya.
20-andruia-niche-intelligence
48kMemungkinkan agent Anda membuat ringkasan industri tertentu. Berguna untuk memahami konteks, aturan, pola penggunaan, dan risiko proyek dengan sumber terpercaya.
Skill serupa
canvas
394kMemungkinkan agent Anda menampilkan widget visual yang di-hosting di panel Mac yang terhubung, lalu menyembunyikan panel atau memindahkannya ke halaman lain.
control-ui
394kMembantu agent Anda mengatur dan memecahkan masalah OpenClaw Control UI, termasuk sesi, dasbor, dan Gateway yang terhubung.
diagram-maker
394kMembantu agent Anda membuat diagram yang jelas sebagai SVG, HTML, atau Excalidraw yang dapat diedit untuk proses, arsitektur sistem, dan sketsa papan tulis.