0.1.0-rc.8 • Published 4 years ago

@mr-hope/vuepress-plugin-theme-color v0.1.0-rc.8

Weekly downloads
55
License
MIT
Repository
github
Last release
4 years ago

@mr-hope/vuepress-plugin-theme-color

Version Downloads Size

Theme-color plugin for vuepress-theme-hope. You can also use it on @vuepress/theme-default.

Usage

npm i @mr-hope/vuepress-plugin-theme-color

This plugin will provide a <ThemeColor /> compoenent for you.

Options

  • picker

    • Type: Object | false
    • Default:

      {
        blue: '#2196f3',
        red: '#f26d6d',
        green: '#3eaf7c',
        orange: '#fb9b5f'
      }

You can use false to disable it.

  • allowDarkmode

    • Type: Boolean
    • Default: true

    Wether to enable darkmode

Note

In order to let the stylus compiler to work, you also need to assign the color variable to $colorPicker and write it to .vuepress/styles/palette.styl:

// .vuepress/styles/palette.styl
$colorPicker = {
   colorName1: red,
   colorName2: yellow,
   colorName3: blue
}

vuepress-theme-hope 的 主题色与夜间模式 插件。你也可以在默认主题上使用它。

使用

npm i @mr-hope/vuepress-plugin-theme-color

插件将会提供 <ThemeColor /> 组件。

选项

  • picker

    • 类型: Object | false
    • 默认值:

      {
        blue: '#2196f3',
        red: '#f26d6d',
        green: '#3eaf7c',
        orange: '#fb9b5f'
      }

你也设置为 false 将其禁用。

  • allowNightmode

    • 类型: Boolean
    • 默认值: true

    是否启用夜间模式

注意

为了使 stylus 编译器正常工作,你还需要将颜色变量赋值给 $colorPicker 写入 .vuepress/styles/palette.styl 中:

// .vuepress/styles/palette.styl
$colorPicker = {
  colorName1: red,
  colorName2: yellow,
  colorName3: blue
}
0.1.0-rc.8

4 years ago

0.1.0-rc.7

4 years ago

0.1.0-rc.6

4 years ago

0.1.0-rc.5

4 years ago

0.1.0-rc.3

4 years ago

0.1.0-rc.4

4 years ago

0.1.0-RC1

4 years ago

0.1.0-beta.40

4 years ago

0.1.0-beta.39

4 years ago

0.1.0-beta.38

4 years ago

0.1.0-beta.37

4 years ago

0.1.0-beta.36

4 years ago

0.1.0-beta.35

4 years ago

0.1.0-beta.34

4 years ago

0.1.0-beta.33

4 years ago

0.1.0-beta.32

4 years ago

0.1.0-beta.31

4 years ago

0.1.0-beta.30

4 years ago

0.1.0-beta.29

4 years ago

0.1.0-beta.28

4 years ago

0.1.0-beta.27

4 years ago

0.1.0-beta.26

4 years ago

0.1.0-beta.19

4 years ago

0.1.0-beta.21

4 years ago

0.1.0-beta.20

4 years ago

0.1.0-beta.23

4 years ago

0.1.0-beta.22

4 years ago

0.1.0-beta.25

4 years ago

0.1.0-beta.24

4 years ago

0.1.0-beta.18

4 years ago

0.1.0-beta.17

4 years ago

0.1.0-beta.16

4 years ago

0.1.0-beta.15

4 years ago

0.1.0-beta.14

4 years ago

0.1.0-beta.13

4 years ago

0.1.0-beta.12

4 years ago

0.1.0-beta.11

4 years ago

0.1.0-beta.10

4 years ago

0.1.0-beta.8

4 years ago

0.1.0-beta.7

4 years ago

0.1.0-beta.4

4 years ago

0.1.0-beta.3

4 years ago

0.1.0-beta.2

4 years ago

0.1.0-beta.1

4 years ago

0.0.1-alpha.5

4 years ago

0.0.1-alpha.4

4 years ago

0.0.1-alpha.3

4 years ago

0.0.1-alpha.2

4 years ago