You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guide/installation/theme.md
+14-14Lines changed: 14 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -8,30 +8,30 @@ The easiest way to create your own theme is to create a copy from one of our off
8
8
9
9
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:
10
10
11
-
```
11
+
```sh
12
12
// 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
14
14
// or via yarn
15
-
yarn global add @vue-storefront/cli@0.2.1
15
+
$ yarn global add @vue-storefront/cli@0.2.1
16
16
```
17
17
18
18
Then run command in your project directory:
19
-
```
20
-
vsf init:theme
19
+
```sh
20
+
$ vsf init:theme
21
21
```
22
22
23
23
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
28
28
```
29
29
30
30
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!)
35
35
```
36
36
37
37
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
44
44
45
45
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`:
0 commit comments