Creating a New Theme

To get started with building a new theme, use the Pagedip Theme Tool to generate the theme basics from a boilerplate:

$ pdt create theme_name

This command will create several folders and files under a new folder theme_name in the current directory.

theme_name/
theme.json
templates/
layout.html
basic.html
scripts/
index.js
assets/
main.css
splot.jpg
preview/
main.md
webpack.config.js

We recommend starting new themes from this boilerplate as it provides the bare minimum requirements for a valid theme.

Theme Builder Configuration

We use Webpack to build the JavaScript, so you can customize Webpack to fit your project needs.