2017-02-13 22:43:58 +08:00
# Themes
2019-12-20 20:12:39 +08:00
There is a handful of themes available, both official and community-made. Copy [Vue ](//vuejs.org ) and [buble ](//buble.surge.sh ) website custom theme and [@liril-net ](https://github.com/liril-net ) contribution to the theme of the black style.
2017-02-13 22:43:58 +08:00
```html
2017-03-10 05:19:07 +08:00
< link rel = "stylesheet" href = "//unpkg.com/docsify/themes/vue.css" >
< link rel = "stylesheet" href = "//unpkg.com/docsify/themes/buble.css" >
< link rel = "stylesheet" href = "//unpkg.com/docsify/themes/dark.css" >
2017-03-12 05:13:25 +08:00
< link rel = "stylesheet" href = "//unpkg.com/docsify/themes/pure.css" >
2017-02-13 22:43:58 +08:00
```
2017-03-10 05:19:07 +08:00
!> Compressed files are available in `/lib/themes/` .
2017-02-13 22:43:58 +08:00
2017-03-10 05:19:07 +08:00
```html
<!-- compressed -->
2017-02-18 23:04:52 +08:00
2017-03-10 05:19:07 +08:00
< link rel = "stylesheet" href = "//unpkg.com/docsify/lib/themes/vue.css" >
< link rel = "stylesheet" href = "//unpkg.com/docsify/lib/themes/buble.css" >
< link rel = "stylesheet" href = "//unpkg.com/docsify/lib/themes/dark.css" >
2017-03-12 05:13:25 +08:00
< link rel = "stylesheet" href = "//unpkg.com/docsify/lib/themes/pure.css" >
2017-03-10 05:19:07 +08:00
```
2017-02-18 23:04:52 +08:00
2018-07-01 13:48:44 +08:00
If you have any ideas or would like to develop a new theme, you are welcome to submit a [pull request ](https://github.com/docsifyjs/docsify/pulls ).
2017-03-10 05:19:07 +08:00
#### Click to preview
2017-02-18 23:04:52 +08:00
< div class = "demo-theme-preview" >
< a data-theme = "vue" > vue.css< / a >
< a data-theme = "buble" > buble.css< / a >
< a data-theme = "dark" > dark.css< / a >
2017-03-12 05:13:25 +08:00
< a data-theme = "pure" > pure.css< / a >
2017-02-18 23:04:52 +08:00
< / div >
< style >
.demo-theme-preview a {
padding-right: 10px;
}
.demo-theme-preview a:hover {
cursor: pointer;
2017-03-10 05:19:07 +08:00
text-decoration: underline;
2017-02-18 23:04:52 +08:00
}
< / style >
< script >
var preview = Docsify.dom.find('.demo-theme-preview');
var themes = Docsify.dom.findAll('[rel="stylesheet"]');
preview.onclick = function (e) {
var title = e.target.getAttribute('data-theme')
themes.forEach(function (theme) {
theme.disabled = theme.title !== title
});
};
< / script >
2018-06-19 15:29:28 +08:00
## Other themes
- [docsify-themeable ](https://jhildenbiddle.github.io/docsify-themeable/#/ ) A delightfully simple theme system for docsify.