
內容簡介
Joynal Dark Mode Switcher 是一款輕量級的 WordPress 外掛,讓訪客能夠透過簡單的前端開關在明亮模式和黑暗模式之間切換。它記住用戶偏好,提供流暢的體驗和準確的顏色顯示。
【主要功能】
• 輕量架構,確保最佳效能
• 美觀的浮動切換按鈕,四個角落皆可放置
• 自動記住訪客的偏好設置
• 高對比度設計,確保可讀性
• 簡易注入自訂 CSS 規則
• 預設模式選項,設定初始顯示模式
外掛標籤
開發者團隊
原文外掛簡介
Joynal Dark Mode Switcher is a lightweight WordPress plugin that lets visitors toggle between light and dark modes with a simple frontend switch.
It provides a fast, flicker-free experience by remembering user preferences and applying clean CSS-based styling for accurate colors and smooth performance across your website.
Key Features
Simple & Fast: Lightweight architecture ensures optimal performance and prevents visual blinking (FOUC).
Floating Toggle Button: Beautiful SVG-based sun/moon toggle switch that can be placed in any of the 4 corners (top-right, top-left, bottom-right, bottom-left).
User Persistence: The visitor’s preference is automatically remembered on subsequent visits and across different pages.
Accessible Designs: High contrast base colors provide readable white text over dark backgrounds by default.
Custom CSS Rules: Easily inject custom CSS overrides from the minimalist settings dashboard for more nuanced dark themes.
Default Mode Option: Define whether the plugin should default to ‘light’ or ‘dark’ for visitors who haven’t selected a preference yet.
Secure & Compliant: Native integration using native wp_enqueue_ hooks, translatable text domains (joynal-dark-mode-switcher), and proper late escaping.
