Kiến thức Website
110 bài viết trong chuyên mục Kiến thức Website.

register_post_type WordPress — 25 tham số + show_in_rest
register_post_type 25 tham số: visibility, permalinks, permissions, UI. show_in_rest cho Block Editor. Capability mapping. Flush rewrite an toàn.
Đọc bài →
register_taxonomy WordPress — hierarchical vs flat + term meta
register_taxonomy 20 tham số, hierarchical vs non-hierarchical, attach multiple CPT, term meta API, REST endpoint, migration script.
Đọc bài →
Hook, action và filter WordPress — concept fundamental
Action vs Filter khác biệt, 5 hook lifecycle quan trọng, priority + accepted_args, remove_action, custom hook trong plugin.
Đọc bài →
Walker_Nav_Menu tùy biến — build mega menu WordPress
Custom Walker_Nav_Menu cho mega menu, icon SVG, badge từ Carbon Fields. 4 method bắt buộc + cache transient.
Đọc bài →
Shadcn/ui design system: copy-paste philosophy, stack underneath và pattern hybrid
Shadcn/ui là approach anti-component-library — CLI fetch source code thay npm install. Stack: Radix + Tailwind + cva. Khi nên/không nên dùng, pattern hybrid fork vào…
Đọc bài →
Dark mode trong thiết kế: surface elevation + palette desaturate
Dark mode là tiêu chuẩn UI 2026 — 81.9% user dùng dark mode trên ít nhất 1 device. Hướng dẫn palette surface elevation, desaturate accent, implementation…
Đọc bài →
Gestalt trong thiết kế: 6 nguyên tắc psychology áp dụng UI
Gestalt là 6 nguyên tắc tâm lý thị giác (proximity, similarity, continuity, closure, figure/ground, common fate) — nền tảng UI có thể dùng được. Hướng dẫn…
Đọc bài →
Hierarchy thị giác: 5 đòn bẩy + F/Z-pattern dẫn dắt mắt user
Visual hierarchy điều hướng mắt user qua 5 đòn bẩy: size, weight, color, contrast, position. Hướng dẫn F-pattern, Z-pattern, typescale, CTA hierarchy, audit process 4 bước…
Đọc bài →
White space trong thiết kế: spacing scale 8pt và token chuẩn
White space (negative space) là công cụ tổ chức thông tin hàng đầu trong UI hiện đại. Hướng dẫn macro vs micro white space, spacing scale…
Đọc bài →
UI/UX là gì — định nghĩa, 5 layer UX và 6 thành phần UI cốt lõi
Phân biệt UI và UX qua 4 trục (mục tiêu, output, tool, vai trò), 5 layer Garrett của UX, 6 thành phần UI, quy trình 6…
Đọc bài →