Skip to content

Commit f7b6938

Browse files
authored
Merge pull request #5567 from PawFV/patch-1
Prettified code blocks & added language extensions
2 parents 0cb37cf + 99a0339 commit f7b6938

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

docs/guide/installation/theme.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,30 +8,30 @@ The easiest way to create your own theme is to create a copy from one of our off
88

99
If you have already setup VSF and you just want to install the theme, then you can use [vsf-cli](https://www.npmjs.com/package/%40vue-storefront/cli). First install vsf-cli:
1010

11-
```
11+
```sh
1212
// You have to us 0.2.1 version of VSF CLI for VSF1
13-
npm i -g @vue-storefront/cli@0.2.1
13+
$ npm i -g @vue-storefront/cli@0.2.1
1414
// or via yarn
15-
yarn global add @vue-storefront/cli@0.2.1
15+
$ yarn global add @vue-storefront/cli@0.2.1
1616
```
1717

1818
Then run command in your project directory:
19-
```
20-
vsf init:theme
19+
```sh
20+
$ vsf init:theme
2121
```
2222

2323
Select theme:
24-
```
25-
? Select theme for Vue Storefront (Use arrow keys)
26-
❯ Capybara - based on Storefront UI
27-
Default
24+
```sh
25+
$ ? Select theme for Vue Storefront (Use arrow keys)
26+
$ ❯ Capybara - based on Storefront UI
27+
Default
2828
```
2929

3030
Select theme version:
31-
```
32-
? Select theme version (Use arrow keys)
33-
❯ Stable version (recommended for production)
34-
In development branch (could be unstable!)
31+
```sh
32+
$ ? Select theme version (Use arrow keys)
33+
$ ❯ Stable version (recommended for production)
34+
In development branch (could be unstable!)
3535
```
3636

3737
After that you should have theme in `src/themes/{themeName}`. Now what you need to do is [Create your theme](#create-your-theme).
@@ -44,7 +44,7 @@ Each theme has its own Readme file on github repository. What you need to do is
4444

4545
After official theme installation, you need to copy it and place it in `src/themes/{themeName}`. Then you need to change its name in its `package.json` file, change the active theme in `config/local.json`:
4646

47-
```
47+
```json
4848
"theme": "@vue-storefront/theme-myThemeName",
4949
```
5050

0 commit comments

Comments
 (0)