Series bài viết

2 phần

Tùy chỉnh Giscus cho site của bạn

Đồng bộ theme của Giscus với light/dark mode của site

Đăng ngày

Nội dung series

  1. Phần 1 Đồng bộ theme Giscus với dark mode của site Cách component ThemeSwitcher restore theme của site, broadcast event themeChanged, rồi overlay theme đó lên iframe Giscus được lazy-load.
  2. Phần 2 Tùy chỉnh theme Giscus cho khớp với site Cách tạo theme CSS tùy chỉnh cho Giscus để phần comment khớp với color palette của site, thay vì trông như một widget GitHub bị nhét vào.

Có thể bạn quan tâm