plugin-icon

Huntsman Dark Mode Site Icon

제작자: Josh Hunt·
Set separate site icons for light and dark mode based on the visitor’s system theme.
버전
1.0.0
활성화된 설치 항목
10
최근 업데이트일
Jan 14, 2026
Huntsman Dark Mode Site Icon

Huntsman Dark Mode Site Icon allows you to set a separate site icon for light and dark mode.

Upload one icon for light mode using WordPress’s built-in Site Icon, and upload a separate icon for dark mode using this plugin. The appropriate icon is then displayed automatically based on the visitor’s system theme.

No code or configuration is required. If no dark mode icon is set, WordPress behaves exactly as normal.

Key Features

  • Separate site icons for light mode and dark mode
  • Simple upload interface in the WordPress admin
  • Works on the frontend, admin area, and login screen
  • Optional enable/disable toggle
  • Does not replace or override the core WordPress Site Icon
  • Accessable via the WP API

Usage

  • Site Icon (WordPress) This is the default WordPress Site Icon and is still managed by WordPress.

  • Dark Mode Site Icon This icon is only used when the user’s system is in dark mode and the browser supports prefers-color-scheme.

If the Dark Mode Site Icon is not set, the plugin does nothing and WordPress behaves normally.

REST API

The plugin exposes a public REST endpoint for accessing the Dark Mode Site Icon:

/wp-json/hdmsi/v1/icons

Example response: { “enabled”: true, “dark”: { “id”: 123, “url”: “https://example.com/icon-dark.png” } } A dark-mode Web App Manifest is also available at:

/wp-json/hdmsi/v1/manifest?mode=dark
무료유료 요금제에서
설치하면 WordPress.com 서비스 약관서드파티 플러그인 약관에 동의하게 됩니다.
테스트된 버전
WordPress 6.9.4
이 플러그인은 다운로드할 수 있으며 에서 사용할 수 있습니다.