Mosne Dark Palette

外掛說明

Mosne Dark Palette

This plugin provides the following features:

  • A Gutenberg block for the navigation menu, serving as a dropdown switcher that enables you to select the desired color mode using custom labels.
  • A color picker for seamlessly remapping your color palette.

Key Features

  • Dark palette block for the block navigation menu
  • Utilize all your custom colors and custom labels
  • Accessibility-ready
  • No cookies used (GDPR-friendly)
  • Performance-optimized and lightweight
  • No block library required
  • Primarily built with native WordPress components
  • Developer-friendly and easy to customize

Stay Connected

螢幕擷圖

  • Add custom colors
  • Setup options and labels
  • Edit the dark palette

適用於區塊編輯器

這個外掛提供 1 個可供 Gutenberg/區塊編輯器使用的區塊。

  • Dark Palette Switcher Create and apply your dark palette in an accessibility-friendly manner using the new Interactivity API.

安裝方式

  1. You have a couple of options:
    • Go to Plugins → Add New and search for “Dark Palette”. Once found, click “Install”.
    • Download the Dark Palette from wordpress.org and make sure the folder is zipped. Then upload via Plugins → Add New → Upload.
  2. Activate the plugin through the ‘Plugins’ screen on WordPress.
  3. Search for the “Dark Palette Switcher” block within the Block Editor (Gutenberg) and add it to a block navigation.

常見問題集

How can I customize my CSS?

You can change the desired behavior using CSS in your theme or in the customizer.

body[data-theme="dark"]  {
    /* your CSS here */
    }

Where can I add custom colors

You can go in the style editor (Appearance > Editor > Styles) and add color to your custom palette.

Where can I change the icons?

You can change the icons using CSS in your theme or in the customizer.

.wp-block-mosne-dark-palette.has-icon button.has-icon {
    mask: url("[your svg path]") no-repeat;
}
.wp-block-mosne-dark-palette.has-icon button.has-icon--dark {
    mask: url("[your svg path]") no-repeat;
}
.wp-block-mosne-dark-palette.has-icon button.has-icon--light {
    mask: url("[your svg path]") no-repeat;
}

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Mosne Dark Palette〉的開發相關工作。

參與者

將〈Mosne Dark Palette〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

0.1.2 – 2023-06-09

  • Fix escaping via wp_kses_data and changelogs

0.1.2 – 2023-06-01

  • Fix escaping and changelogs

0.1.1 – 2023-05-30

  • Fix security (disallow direct access to files)

0.1.0 – 2023-04-04

  • Initial release