返回 slidev
eject-theme.md
根目录 / docs / features / eject-theme.md
1 ---
2 depends:
3 - guide/theme-addon
4 tags: [theme, cli]
5 description: |
6 Eject the installed theme from your project to customize it.
7 ---
8
9 # Eject Theme
10
11 If you want to get full control of the current theme, you can **eject** it to your local file system and modify it as you want. By running the following command
12
13 ```bash
14 $ slidev theme eject
15 ```
16
17 It will eject the theme you are using currently into `./theme`, and change your frontmatter to
18
19 ```yaml
20 ---
21 theme: ./theme
22 ---
23 ```
24
25 This could also be helpful if you want to make a theme based on an existing one. If you do, remember to mention the original theme and the author :)
26
27 For more options of the `theme` command, please refer to the [Theme Command](../builtin/cli#theme) section.
28
28 lines MARKDOWN