0.1.0-rc.8 • Published 5 years ago

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

Weekly downloads
55
License
MIT
Repository
github
Last release
5 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

5 years ago

0.1.0-rc.7

5 years ago

0.1.0-rc.6

5 years ago

0.1.0-rc.5

5 years ago

0.1.0-rc.3

5 years ago

0.1.0-rc.4

5 years ago

0.1.0-RC1

5 years ago

0.1.0-beta.40

5 years ago

0.1.0-beta.39

5 years ago

0.1.0-beta.38

5 years ago

0.1.0-beta.37

5 years ago

0.1.0-beta.36

5 years ago

0.1.0-beta.35

5 years ago

0.1.0-beta.34

5 years ago

0.1.0-beta.33

5 years ago

0.1.0-beta.32

5 years ago

0.1.0-beta.31

5 years ago

0.1.0-beta.30

5 years ago

0.1.0-beta.29

5 years ago

0.1.0-beta.28

5 years ago

0.1.0-beta.27

5 years ago

0.1.0-beta.26

5 years ago

0.1.0-beta.19

5 years ago

0.1.0-beta.21

5 years ago

0.1.0-beta.20

5 years ago

0.1.0-beta.23

5 years ago

0.1.0-beta.22

5 years ago

0.1.0-beta.25

5 years ago

0.1.0-beta.24

5 years ago

0.1.0-beta.18

6 years ago

0.1.0-beta.17

6 years ago

0.1.0-beta.16

6 years ago

0.1.0-beta.15

6 years ago

0.1.0-beta.14

6 years ago

0.1.0-beta.13

6 years ago

0.1.0-beta.12

6 years ago

0.1.0-beta.11

6 years ago

0.1.0-beta.10

6 years ago

0.1.0-beta.8

6 years ago

0.1.0-beta.7

6 years ago

0.1.0-beta.4

6 years ago

0.1.0-beta.3

6 years ago

0.1.0-beta.2

6 years ago

0.1.0-beta.1

6 years ago

0.0.1-alpha.5

6 years ago

0.0.1-alpha.4

6 years ago

0.0.1-alpha.3

6 years ago

0.0.1-alpha.2

6 years ago