Themes

If you want to change the style of your document you can set linkcss and stylesheet attributes and put the corresponding css files into stylesdir directory. But if you don’t want to deal with this files you can use our asciidoctor-themes extension and set the theme attribute you want to use.

  • include the extension

plugins {
    id 'org.asciidoctor.jvm.convert' version '2.1.0'
}

repositories {
    jcenter()
}

configurations {
    asciidoctorExt
}

dependencies {
    asciidoctorExt "com.puravida.asciidoctor:asciidoctor-themes:${puravidaVersion}"
}

asciidoctorj{
    version '2.0.0'
}

asciidoctor {
    configurations 'asciidoctorExt'
}
  • set the theme you want to use in the header of your document:

= The Title
Your name
:theme: choose_one

The asciidoctor-themes come with differents themes prepackaged: