Covers Orchard Core 4.0's TheAdmin redesign and admin schemes: scheme records, design tokens, dark mode, built-in schemes, per-user scheme picker, and breaking changes for custom admin themes.
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.
None: SKILL.md is the whole skill.
In Orchard Core 4.0 TheAdmin was redesigned, and its colors, fonts, text size, density and corners come from a scheme. Every admin page keeps its markup (Bootstrap 5.3 and the shapes of the theme), so views built for TheAdmin keep working; only the look and the frame change. The previous look ships as a separate theme, TheOldAdmin.
Related skills: orchardcore-admin (admin settings, menu, branding), orchardcore-admin-edit-views (ocat-* forms and cards), orchardcore-theming and orchardcore-theme-creator (custom admin themes).
div.ta-sidebar-brand); the top bar starts where the menu ends and repeats the branding (div.ta-topbar-brand) only when the menu is a drawer. The current page is a filled pill of the scheme's primary color.AdminList lists render as cards with a toolbar in the scheme's primary color and, in the Grid layout, sentence case column headers.orchardcore-admin-edit-views).BSD-3-Clause AND OFL-1.1.AdminSettings.DisplayTitlesInTopbar defaults to true)..text-primary, .text-secondary, .text-success, .text-danger, .text-warning, .text-info) and the .btn-outline-secondary and .btn-outline-danger buttons are remapped to readable colors. An element with its own data-bs-theme takes the scheme tokens of that mode instead of inheriting those of <html>.| Task | Where |
|---|---|
| List, add, edit, delete schemes | Design → Themes, Schemes button on TheAdmin's card (route Admin/TheAdmin/Schemes), shown while TheAdmin (or a theme built on it) is the current admin theme |
| Permission | ApplyTheme (OrchardCore.Themes) for every action of the schemes controller |
| Default scheme | Set as default in the actions menu of a row; the list marks it Default. The default scheme can't be deleted. |
| User pick | Theme menu of the top bar (Toggle theme), under Mode (Auto, Light, Dark) and Scheme; the default scheme reads "{name} (default)" and picking it follows the site's choice again |
{tenant}-TheAdmin-scheme cookie. The theme menu is shown when Settings → Admin → Enable theme toggler (AdminSettings.DisplayThemeToggler) is on.#rrggbb or picked; a color too faint for its text is deepened, and the preview shows the result.gray, the default, the colors of the previous TheAdmin with a light menu), Blue, Ocean, Forest, Plum, Sunset and Graphite. The AdminSchemesMigrations migration imports them once from Migrations/admin-schemes.recipe.json (at setup, or on the first start after the upgrade). They are ordinary records afterwards: a deleted one doesn't come back. With no scheme left, the admin falls back to Gray.Four colors drive everything else; every derived color is checked for 4.5:1 text contrast and 3:1 for control boundaries and focus indicators (WCAG 2.2 AA), in the light and the dark mode.
| Color | Used for |
|---|---|
| Primary | Buttons, links, the current page of the menu, checked boxes, the list toolbar |
| Deep | Headings and the top of the menu; the default hue of surfaces |
| Ink | The bottom of the menu, the darkest surface |
| Accent | Links and highlights on dark surfaces |
| Editor label | Recipe property | Values |
|---|---|---|
| Light menu | LightMenu | Light gray menu with dark text in light mode |
| Font, Heading font | FontFamily, HeadingFontFamily | lato, system, or font families separated by commas (installed on the users' devices) |
| Font size | FontScale | 0.875 to 1.125 (14 px to 18 px, relative to the browser size) |
| Corners | RadiusScale | 0 (Square), 0.5 (Subtle), 1 (Default), 1.5 (Round); 0 to 1.5 |
| Density | Density | 0.75 (Compact), 1 (Default), 1.25 (Comfortable) |
| Horizontal form layout | HorizontalFormLayout | Labels beside their editors from 768 px up |
| Content width | ContentWidth | Full width (empty), 1140, 1320 or 1600 in the editor; 960 to 2560 in a recipe |
| Surface hue, Surface saturation | Hue, Saturation | 0 to 360, 0 to 1 |
| Text on primary, Page, List toolbar, Page tint, Dark page tint | OnPrimary, Page, Toolbar, Tint, TintDark | #rrggbb |
| Position | Position | Order in the pickers |
An entry whose ItemId matches a stored scheme replaces it; any other is added. ItemId is lowercase letters, digits and dashes starting with a letter (generated when empty). Name, Primary, Deep, Ink and Accent are required. DefaultSchemeId is optional.
{
"steps": [
{
"name": "AdminSchemes",
"Schemes": [
{
"ItemId": "harbor",
"Name": "Harbor",
"Primary": "#1f6f8b",
"Deep": "#123c4c",
"Ink": "#081a21",
"Accent": "#5bc0de",
"LightMenu": false,
"HorizontalFormLayout": true,
"ContentWidth": 1320,
"FontFamily": "Georgia, serif",
"FontScale": 1,
"Density": 1,
"RadiusScale": 1
}
],
"DefaultSchemeId": "harbor"
}
]
}
The Admin Schemes deployment step (category Theming, needs OrchardCore.Deployment) exports every scheme and the default one in the same format.
~/TheAdmin/schemes.css, rebuilt once per change and versioned by a hash of its text. The layout sets <html data-ta-scheme="{id}">, and each scheme's rules live under that selector.| Tokens | Purpose |
|---|---|
--ta-font-size-xs, -sm, -md, -lg, -xl, -page-title | Type scale (body and fields md; hints, column headers, breadcrumbs and menu items sm; badges xs) |
--ta-font-weight-normal, --ta-font-weight-strong | The two weights |
--ta-surface-padding-x, --ta-surface-padding-y, --ta-row-padding-y, --ta-stack-gap, --ta-content-padding-x | Spacing of card bodies, rows, toolbars, table cells, tab panes and pages |
--ta-radius-sm, --ta-radius-md, --ta-radius, --ta-radius-lg | Corners |
--ta-primary, --ta-link, --ta-heading, --ta-label, --ta-muted, --ta-border, --ta-control-border, --ta-page-bg, --ta-surface, --ta-toolbar-bg, --ta-row-hover-bg, --ta-menu-* | Scheme colors; Bootstrap's --bs-primary, --bs-link-color, --bs-border-color, --bs-secondary-color read them |
--ta-font-family, --ta-heading-font-family, --ta-font-scale, --ta-density, --ta-radius-scale | Typography and shape set by the scheme |
--ta-content-max-width | The scheme's content width |
/* wwwroot/css/my-admin.css in an admin theme with BaseTheme = "TheAdmin", loaded after TheAdmin's style. */
:root {
--ta-font-size-page-title: 1.5rem;
--ta-stack-gap: calc(1rem * var(--ta-density));
}
Scheme rules are written under [data-ta-scheme="{id}"] (light) and [data-bs-theme="dark"][data-ta-scheme="{id}"] (dark), so an override of a scheme token (colors, fonts, scales) must match that specificity. Prefer editing the scheme (or the recipe step) for colors: the scheme derives both modes with checked contrast.
When the scheme sets a content width, the layout's <div class="ta-content-column"> (breadcrumbs, title, messages, content) is centered at --ta-content-max-width on wider screens, and the bottom action bar ends with it. A top bar button (Full width) lets each user switch to the whole width; the choice is kept in the browser.
A page that needs the whole width (a designer, a board, a calendar) puts the ta-content-fluid class on any element of its content:
<div class="ta-content-fluid">
<div id="my-board"></div>
</div>
Off by default. When a scheme enables it, schemes.css overrides the ocat-* classes from 768 px up so each label sits beside its editor. Test every new admin view in both layouts: a row that stays stacked when the option is on isn't built with the ocat-* classes, so fix the view, not the stylesheet.
The Old Admin Theme (TheOldAdmin) keeps the views and stylesheets of the previous TheAdmin, with Bootstrap's colors and the Auto, Light and Dark modes. It has no schemes, no Schemes button, no scheme picker and no --ta-* tokens. It ships with TheAdmin in OrchardCore.Application.Cms.Core.Targets.
A site keeps TheAdmin, and gets the new look, until it switches:
{
"steps": [
{
"name": "feature",
"enable": [
"TheOldAdmin"
]
},
{
"name": "themes",
"admin": "TheOldAdmin"
}
]
}
BaseTheme = "TheOldAdmin". Template overrides apply to both themes (same shape names).the-old-admin (for the-admin) and the-old-admin-main (for admin-main), style the-old-admin (for the-admin), files under ~/TheOldAdmin/ (for example ~/TheOldAdmin/css/TheOldAdmin.min.css).--oc-admin-* menu properties still exist but read the scheme's --ta-menu-* tokens, and the dark mode no longer redefines them. --oc-selected-indicator-color is transparent.--oc-top-nav-height is 4rem, --oc-start-navigation-width 17rem, --oc-start-navigation-width-when-compact 4.75rem, --oc-admin-menu-item-height 2.75rem.top: 0. The AdminBranding shape is rendered once and written in both the sidebar and the top bar, so an override must not put id attributes on its elements.Layout.cshtml overrides must be compared with the new one: the body has the ta-admin class, a skip link a.ta-skip-link targets main#ta-main, and the content sits in div.ta-content-column.Layout-Login.cshtml and Layout-TwoFactor.cshtml render main.ta-auth-page with the branding and a div.ta-auth-card (the log in card keeps auth-wrapper).themes/light and themes/dark Sass partials no longer hold card, modal and badge colors; .text-bg-theme and .bg-theme use the surface color.vue-multiselect styles are still in TheAdmin but obsolete; pickers use bootstrap-select (see orchardcore-resources).TheOldAdmin, or restyle with the --ta-* tokens.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
orchard-core, admin-theme, design-tokens, dark-mode, theadmin
/orchardcore:orchardcore-admin-schemesfrom 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.Other plugins' skills for the same job