Creates and customizes Orchard Core themes including scaffolding, Liquid/Razor layouts, zones, shape templates, alternates, placement rules, resource manifests, and admin theme customization.
Ships in orchardcore. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use this skill for Orchard Core theming tasks including theme creation, shape overrides, template discovery, content rendering, placement rules, and asset management.
.cshtml (Razor) or .liquid files. If unclear, default to Liquid and confirm with the user.placement.json, and existing templates.ContentDefinition.json or the database.CrestApps.MyTheme).Manifest.cs declaring the theme and its base theme (if any).Views/Layout.cshtml is treated as the site layout automatically; do not set Layout = null inside it.{% render_section "Name", required: false %} (Liquid) or @await RenderSectionAsync("Name", required: false) (Razor), and the main content with {% render_body %} / @await RenderBodyAsync(). The {% zone %} block and <zone> tag helper add content to a zone; they do not render it.jQuery explicitly if your theme needs it.wwwroot/ and resource manifests.TheAdmin theme is used for the admin panel and can be extended; its look comes from admin schemes (see orchardcore-admin-schemes). TheOldAdmin keeps the pre-4.0 look.Use these cues to decide which reference file to open:
references/theming-examples.md for end-to-end theme creation examples (manifests, layouts, shape overrides).references/shape-alternates.md to find shape names, alternates, and naming rules for template overrides.references/placement-rules.md for placement.json patterns, filters, differentiators, and editor grouping.references/shape-workflow.md for a step-by-step checklist to build or override a shape safely.references/assets-resources.md for resource manifests, requiring scripts/styles, and built-in Orchard Core resources.placement.json.Scaffold with dotnet new octheme -n {{ThemeName}} (from OrchardCore.ProjectTemplates), create it next to the web project, and add a project reference to it from the web project; unreferenced themes are not discovered. Add wwwroot/Theme.png for the thumbnail on Design → Themes. See orchardcore-theme-creator for the step-by-step workflow.
using OrchardCore.DisplayManagement.Manifest;
[assembly: Theme(
Name = "{{ThemeName}}",
Author = "{{Author}}",
Website = "{{Website}}",
Version = "1.0.0",
Description = "{{Description}}",
BaseTheme = "{{BaseTheme}}"
)]
<Project Sdk="Microsoft.NET.Sdk.Razor">
<PropertyGroup>
<TargetFramework>net11.0</TargetFramework>
<AddRazorSupportForMvc>true</AddRazorSupportForMvc>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="OrchardCore.DisplayManagement" Version="3.*" />
<PackageReference Include="OrchardCore.Theme.Targets" Version="3.*" />
</ItemGroup>
</Project>
MyTheme/
├── Manifest.cs
├── MyTheme.csproj
├── Views/
│ ├── Layout.liquid (or Layout.cshtml)
│ ├── _ViewImports.cshtml
│ └── Items/
│ └── Content-BlogPost.liquid
├── wwwroot/
│ ├── css/
│ │ └── site.css
│ └── js/
│ └── site.js
├── placement.json (optional)
└── ResourceManagementOptionsConfiguration.cs (optional)
If a theme uses Razor, _ViewImports.cshtml should exist with at least:
@inherits OrchardCore.DisplayManagement.Razor.RazorPage<TModel>
If it's missing, it can cause build errors.
<!DOCTYPE html>
<html lang="{{ Culture.Name }}" dir="{{ Culture.Dir }}">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>{% page_title Site.SiteName, position: "before" %}</title>
{% style name: "bootstrap", version: "5", at: "Head" %}
{% style name: "{{ThemeName}}", at: "Head" %}
{% script name: "bootstrap", version: "5", at: "Foot" %}
{% script name: "{{ThemeName}}", at: "Foot" %}
{% resources type: "Header" %}
{% render_section "HeadMeta", required: false %}
</head>
<body>
{% render_section "Header", required: false %}
<main role="main" class="container">
{% render_section "Messages", required: false %}
{% render_section "BeforeContent", required: false %}
{% render_body %}
{% render_section "AfterContent", required: false %}
</main>
{% render_section "Footer", required: false %}
{% resources type: "FootScript" %}
</body>
</html>
<!DOCTYPE html>
<html lang="@Orchard.CultureName()" dir="@Orchard.CultureDir()">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>@RenderTitleSegments(Site.SiteName, "before")</title>
<style asp-name="bootstrap" version="5" at="Head"></style>
<style asp-name="{{ThemeName}}" at="Head"></style>
<script asp-name="bootstrap" version="5" at="Foot"></script>
<script asp-name="{{ThemeName}}" at="Foot"></script>
<resources type="Header" />
@await RenderSectionAsync("HeadMeta", required: false)
</head>
<body>
@await RenderSectionAsync("Header", required: false)
<main role="main" class="container">
@await RenderSectionAsync("Messages", required: false)
@await RenderBodyAsync()
</main>
@await RenderSectionAsync("Footer", required: false)
<resources type="FootScript" />
</body>
</html>
Orchard, Site, and ThemeLayout are provided by RazorPage<TModel>; do not @inject another Orchard property. Shapes that register resources must render before <resources type="Header" />, so pre-render them into a variable at the top of the layout when they appear later in the markup.
Override shape rendering by creating templates in the Views/ folder:
Content.liquid — Default content item display.Content-BlogPost.liquid — Content display for BlogPost type.Content-BlogPost.Summary.liquid — Summary display mode for BlogPost type.Widget.liquid — Default widget wrapper.MenuItem.liquid — Menu item rendering.File naming convention: __ in shape type maps to - in file names; _DisplayType maps to .DisplayType suffix.
using Microsoft.Extensions.Options;
using OrchardCore.ResourceManagement;
public sealed class ResourceManagementOptionsConfiguration : IConfigureOptions<ResourceManagementOptions>
{
private static readonly ResourceManifest _manifest = CreateManifest();
public void Configure(ResourceManagementOptions options)
{
options.ResourceManifests.Add(_manifest);
}
private static ResourceManifest CreateManifest()
{
var manifest = new ResourceManifest();
manifest
.DefineStyle("{{ThemeName}}")
.SetUrl("~/{{ThemeName}}/css/site.min.css", "~/{{ThemeName}}/css/site.css");
manifest
.DefineScript("{{ThemeName}}")
.SetUrl("~/{{ThemeName}}/js/site.min.js", "~/{{ThemeName}}/js/site.js")
.SetDependencies("bootstrap:5");
return manifest;
}
}
Choose head or foot when requiring the script (at="Foot"); SetPosition(ResourcePosition.First | Last | ByDependency) only changes ordering.
Register the configuration from the theme or module startup:
using Microsoft.Extensions.DependencyInjection;
using OrchardCore.Modules;
public sealed class Startup : StartupBase
{
public override void ConfigureServices(IServiceCollection services)
{
services.AddResourceConfiguration<ResourceManagementOptionsConfiguration>();
}
}
Common zones used in Orchard Core themes:
| Zone | Purpose |
|---|---|
Header | Top of the page, navigation bar area |
Content | Main content area |
Footer | Bottom of the page |
BeforeContent | Before the main content |
AfterContent | After the main content |
Navigation | Primary navigation area |
Sidebar | Sidebar content area |
AsideFirst / AsideSecond | Multi-column sidebars |
Zone shapes support alternates for per-zone template overrides:
Zone__ZoneName → file Zone-Footer.cshtml (or .liquid)A theme assembly can declare extra [Feature] attributes next to [Theme]. The theme stays listed on the Themes page, and the extra features appear in Tools → Features with their category and Enable button:
using OrchardCore.DisplayManagement.Manifest;
using OrchardCore.Modules.Manifest;
[assembly: Theme(
Name = "Contoso Theme",
Author = "Contoso",
Version = "1.0.0",
Description = "Contoso front-end theme.",
BaseTheme = "TheTheme"
)]
[assembly: Feature(
Id = "ContosoTheme.Widgets",
Name = "Contoso Theme Widgets",
Description = "Widget content types used by the Contoso theme.",
Category = "Theming"
)]
Attach code that belongs to the extra feature with [Feature("ContosoTheme.Widgets")] on its Startup class. In Orchard Core 3.x such themes disappeared from the Themes page; that is fixed in 4.0.
bootstrap-select styles are no longer included automatically. Admin views that use it must add <style asp-name="bootstrap-select" at="Head"></style>.$ exists in admin views; require jQuery explicitly if a custom admin script still needs it.AdminSchemes recipe step. Prefer a scheme over CSS for colors. A theme that depends on TheAdmin can still override the --ta-* design tokens (--ta-font-size-*, --ta-surface-padding-*, --ta-radius-*, --ta-primary, --ta-menu-*...); the --oc-admin-* menu properties now read the scheme's --ta-menu-* tokens.div.ta-sidebar-brand), repeated in the top bar (div.ta-topbar-brand), so an AdminBranding override must not use id attributes; Layout.cshtml renders main#ta-main, a ta-admin body class, a a.ta-skip-link and a div.ta-content-column; Layout-Login.cshtml and Layout-TwoFactor.cshtml render main.ta-auth-page and div.ta-auth-card. --oc-top-nav-height is 4rem and --oc-start-navigation-width 17rem.BaseTheme = "TheOldAdmin" (or make The Old Admin Theme the admin theme) and its resources the-old-admin, the-old-admin-main and ~/TheOldAdmin/... files instead of the-admin, admin-main and ~/TheAdmin/....Card and CardContainer shapes; override them to restyle cards (see orchardcore-admin-edit-views).nav-group, current, off-canvas below md); re-check overrides of Navigation-admin.cshtml, NavigationItem-admin.cshtml, or NavigationItemLink-admin.cshtml.See orchardcore-admin-schemes for schemes, tokens, ta-content-fluid, TheOldAdmin and the full list of breaking changes, and orchardcore-admin and orchardcore-admin-menu for the menu itself.
What SKILL.md sets; muted values are Claude Code's defaults
/orchardcore:orchardcore-themingfrom orchardcore
npx claudepluginhub crestapps/crestapps.agentskills --plugin orchardcore140 skills in this plugin
/orchardcore-adminGuidance for the Orchard Core admin panel, including admin controllers and routes, admin menu registration with AdminNavigationProvider, ocat editor forms grouped in cards, admin pages rendering Model.Editor, the UI text casing standard, TheAdmin layout and menu colors, admin branding, the Navbar shape, the Ctrl+K quick navigation palette and QuickNavigationSource, AdminSettings such as MenuBehavior, ShowBreadcrumb, DisplayQuickNavigation, DisplayTitlesInTopbar and ActionsLayout, the AdminDashboard shape, settings pages, and admin filters and zones. Use this skill when requests mention the Orchard Core admin panel, TheAdmin, admin controllers, admin menu registration, an icon on an admin menu item, the AdminSettings recipe step, quick navigation, navigation menu behavior, the admin URL prefix, UI text casing. Strong matches include OrchardCore.Admin, AdminSettings, AdminPermissions, AdminOptions, AdminAttribute, SiteDisplayDriver, IDisplayManager./orchardcore-admin-dashboardSkill for creating admin dashboard widgets in Orchard Core. Covers the DashboardWidget stereotype, DashboardPart position and sizing, the built-in HtmlDashboardWidget, ContentsMetadata and ContentsTags widget types, custom widget content types via recipe or migration, arranging widgets in Manage Dashboard mode, widget template customization, provisioning widgets with recipes, dashboard permissions, the DashboardBreadcrumbProvider Dashboard ancestor, and the AdminDashboardContent shape used when the feature is disabled. Use this skill when requests mention Orchard Core Admin Dashboard, Create and Configure Dashboard Widgets, Enabling Admin Dashboard, Widget Configuration Properties, dashboard widget recipes, Dashboard breadcrumb, or related implementation, setup, or troubleshooting work. Strong matches include OrchardCore.AdminDashboard, DashboardPart, DashboardBreadcrumbProvider, AccessAdminDashboard, ManageAdminDashboard./orchardcore-admin-edit-viewsSkill for writing Orchard Core admin editor views with the ocat CSS classes and cards. Covers Edit views for content parts and fields, field editor variants, part, field and site settings editors, Fields.Edit views, admin pages rendering Model.Editor built with IDisplayManager, the ocat classes and their layout rules, label associations and group captions, part and field wrapper classes, validation, hints and the Hint_Admin shape, cards declared in placement and the Card and CardContainer shapes, split editor shapes, tabs and columns, the edit page action bar, the horizontal form layout, and the UI text casing standard. Use this skill when requests mention Orchard Core admin edit views, admin forms, grouping fields in cards, Edit.cshtml, Fields.Edit.cshtml, Settings.Edit.cshtml, ocat classes, label casing, or field hints. Strong matches include ocat-wrapper, ocat-card, Hint_Admin, PlacementLocationBuilder, IDisplayManager, ContentPartDisplayDriver, SiteDisplayDriver./orchardcore-admin-listsSkill for Orchard Core 4.0 admin index views (list pages) rendered with the AdminList shape. Covers the List and Grid layouts, AdminListContext of TModel, the admin-list and admin-list-column tag helpers, column width and alignment, row display drivers placing shapes for SummaryAdmin and SummaryAdminGrid, row templates and zones, AdminListActions Buttons and Menu layouts, AdminListToolbar, AdminListSearch, the list-management script for select-all and bulk actions, IAdminListColumnsProvider, AdminListOptions, user layout selection, per-list alternates, sortable lists, and upgrading overridden list views. Use this skill when requests mention Orchard Core admin index views, an admin index page, admin lists, converting a hand-written admin listing, grid layout, list columns, row actions menu, or adding a column to the content items list. Strong matches include OrchardCore.Admin.Abstractions, AdminListContext, AdminListColumn, IAdminListColumnsProvider, AdminListOptions, AdminListLayout, ContentsAdminList./orchardcore-admin-menuSkill for creating admin menus in Orchard Core. Covers admin menu content, the link, placeholder, content types, and lists admin node types, the AdminMenu recipe and deployment step, ManageAdminMenu, ViewAdminMenuAll and per-menu ViewAdminMenu permissions from AdminMenuPermissions, custom admin nodes with AdminNode, IAdminNodeNavigationBuilder and AddAdminNode, data localization of node text, rendering in the 4.0 TheAdmin menu, and upgrading from the removed legacy admin menu layout. Use this skill when requests mention Orchard Core Admin Menu, Create and Manage Admin Menus, Admin Menu Deployment Recipe Step, Built-In Admin Node Types, Custom Admin Node Class, LegacyAdminMenuNavigation, or related implementation, setup, or troubleshooting work. Strong matches include OrchardCore.AdminMenu, OrchardCore.AdminMenu.Abstractions, AdminMenuPermissions, LinkAdminNode, PlaceholderAdminNode, OrchardCore.Lists, OrchardCore.Navigation./orchardcore-admin-schemesSkill for the Orchard Core 4.0 TheAdmin redesign and its admin schemes. Covers scheme records with their four colors, typography, density, corners, horizontal form layout and content width, Design > Themes > Schemes, the default scheme, the per-user scheme picker and its cookie, the seven built-in schemes, the AdminSchemes recipe step and Admin Schemes deployment step, the schemes.css stylesheet, the --ta-* design tokens, ta-content-fluid, dark mode utilities and nested color modes, TheOldAdmin and how to switch to it, and the breaking changes for custom admin themes and Layout overrides. Use this skill when requests mention admin schemes, admin colors, rebranding TheAdmin, dark mode of the admin, the admin content width, the horizontal form layout, TheOldAdmin, or upgrading a custom admin theme to the new TheAdmin. Strong matches include AdminScheme, AdminSchemes, DefaultSchemeId, HorizontalFormLayout, ContentWidth, data-ta-scheme, --ta-primary, ta-content-fluid, TheOldAdmin, and OrchardCore.Themes.TheAdmin.Other plugins' skills for the same job