Skip to content

Commit e5a48d2

Browse files
authored
docs: improve the default-theme's styles docs (#1235)
1 parent b4e313b commit e5a48d2

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

docs/reference/default-theme/styles.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,34 @@
22

33
<NpmBadge package="@vuepress/theme-default" />
44

5-
Default theme uses [SASS](https://sass-lang.com/) as the CSS pre-processor.
5+
The default theme uses [SASS](https://sass-lang.com/) as the CSS pre-processor.
66

7-
Users can custom style variables via [palette file](#palette-file), and add extra styles via [style file](#style-file).
7+
Users can customize style variables via a [palette file](#palette-file),
8+
and add extra styles via a [style file](#style-file).
89

910
## Palette File
1011

11-
The path of palette file is `.vuepress/styles/palette.scss`.
12+
The path of the palette file is `.vuepress/styles/palette.scss`.
1213

13-
You can make use of it to override predefined SASS variables of default theme.
14+
You can make use of it to override predefined SASS variables of the default theme.
1415

1516
::: details Click to expand SASS variables
1617
@[code{3-} scss](@vuepress/theme-default/src/client/styles/_variables.scss)
1718
:::
1819

1920
## Style File
2021

21-
The path of style file is `.vuepress/styles/index.scss`.
22+
The path of the style file is `.vuepress/styles/index.scss`.
2223

23-
You can add extra styles here, or override default styles:
24+
You can add extra styles here, or override the default styles:
2425

2526
```scss
2627
:root {
2728
scroll-behavior: smooth;
2829
}
2930
```
3031

31-
You can also make use of it to override predefined CSS variables of default theme.
32+
You can also make use of it to override predefined CSS variables of the default theme.
3233

3334
::: details Click to expand CSS variables
3435
@[code scss](@vuepress/theme-default/src/client/styles/vars.scss)

0 commit comments

Comments
 (0)