Theme boilerplate is our starting point for building Orchard Core themes.
To create a new theme using the boilerplate it's quickest to use the dotnet new
command. First you'll need to install the template, which is hosted on NuGet.
dotnet new -i Etch.OrchardCore.ThemeBoilerplate --nuget-source https://api.nuget.org/v3/index.json
Once installed successfully, run the command below, which demonstrates all the possible parameters that are available.
dotnet new orchardcore-themeboilerplate -n Example.OrchardCore.Theme -o Example.OrchardCore.Theme -au "Your Company Ltd." --description "Description for your theme" -t "Your Theme Name" -w "https://yourwebsite.co.uk"
Below are the different parameters that can be included in the dotnet new
command. The majority of the parameters will be used in the package.json
, .csproj
(to describe author of NuGet package) and the theme manifest. -n
& -o
are parameters required by dotnet new
.
Author of the theme.
Short description of the theme.
Name of your theme.
URL for your website.
This template has been made available on NuGet. To create the .nupkg
file that can be published to NuGet, run the command shown below.
nuget pack ./Etch.OrchardCore.ThemeBoilerplate.nuspec