Skip to content

Latest commit

 

History

History
143 lines (90 loc) · 3.52 KB

appearance.md

File metadata and controls

143 lines (90 loc) · 3.52 KB
title icon order category tag
Theme Appearance Options
gears
5
Config
Theme Config
Appearance

The following options control the appearance of the theme. You don’t need to pay attention to them in most cases, they are only provided for a small amount of users with needs.

::: warning

These options are only valid when setting directly under the theme options, setting them in each language as no effect.

:::

iconAssets

  • Type: FontIconAssets

    type Link = `//${string}` | `http://${string}` | `https://${string}`;
    
    export type FontIconAssets =
      | "iconfont"
      | "fontawesome"
      | "fontawesome-with-brand"
      | Link
      | Link[];
  • Required: No

  • Details: Interface → Icon

Link of font icon asset, 'iconfont' and 'fontawesome' keywords are supported.

darkmode

Dark mode support options:

  • "switch": switch between dark, light and auto
  • "toggle": toggle between lightmode and darkmode
  • "auto": Automatically decide whether to apply dark mode based on user device’s color-scheme or current time
  • "enable": only dark mode
  • "disable": disable dark mode

::: note

If you don’t need this feature, set darkmode: "disable" to disable it.

:::

themeColor

Theme color picker configuration.

fullscreen

Whether show the "full screen" button.

backToTop

Whether show back to top button.

The default trigger distance is 300px, which can be changed when you fill in the number. Filling in false disables the back to top button.

mobileBreakPoint

  • Type: number
  • Default: 719

Window width switching mobile view and desktop view in pixels

::: warning

You should keep this option same value with $tablet in .vuepress/config.scss

:::

wideBreakPoint

  • Type: number
  • Default: 1440

Window width switching wide screen view and desktop view in pixels

::: warning

You should keep this option same value with $pc in .vuepress/config.scss

:::

pure

Whether enable pure mode.

::: tip

Enabling this will disable some of the fancy styles.

Useful when you want to provide "A pure document site".

:::

print

  • Type: boolean
  • Default: true

Whether display print icon in desktop mode.

iconPrefix

Prefix of icon FontClass, usually, it can be automatically set by the theme.