Drupal is a registered trademark of Dries Buytaert
Release: Leaflet 10.4.11 Minor update available for module leaflet (10.4.11). Release: Session Inspector 1.0.8 Minor update available for module session_inspector (1.0.8). Release: Migrate QA 2.0.4 Minor update available for module migrate_qa (2.0.4). Release: CKEditor Description List 3.0.0 Major update available for module ckeditor_descriptionlist (3.0.0). Release: FlowDrop 2.4.0 Minor update available for module flowdrop (2.4.0). Release: JWT Token Refresh 1.0.4 Minor update available for module jwt_token_refresh (1.0.4). Release: ConReg 1.0.0-beta1 First beta version released for module conreg (1.0.0-beta1). Release: AI Image Studio 1.0.0-beta8 New beta version released for module ai_image_studio (1.0.0-beta8). Usage Milestone: Role Theme Switcher Module role_theme_switcher crossed 1,000 active installs. Module Revived: Decoupled Router 2.0.7 Module decoupled_router updated after 11 months of inactivity (2.0.7).

This project provides a frontend theme based on the Gin admin theme, allowing you to use Gin's visual style on your public-facing website. It adds necessary regions like branding and menus, a page template for frontend display, and restores standard breadcrumb behavior, all while integrating with Gin's design tokens.

A Gin sub-theme designed for use as a Drupal site's default (frontend) theme — for the cases where you want Gin's visual language on customer-facing pages, not just admin.

Gin is a fantastic admin theme, but it isn't intended as a public-facing theme: it doesn't render site branding, main navigation, or account-menu blocks in its regions. This sub-theme fills that gap by adding the chrome customers expect, while inheriting everything Gin does well for forms and content rendering.

What it provides

  • New regionsbranding, primary_menu, secondary_menu, pre_footer, footer — for the chrome Gin omits.
  • A page template that renders those regions above the standard Drupal page structure, without Gin's admin-specific sticky toolbar.
  • Restored breadcrumb semantics. Gin's gin_preprocess_breadcrumb() rewrites the first breadcrumb item to a "Back to site" link meaningful only in admin context. On a frontend theme it's nonsensical — this is the site — so this theme restores the first breadcrumb item to the standard "Home" link. No upstream patch required.
  • Chrome CSS that uses Gin's CSS custom properties (--gin-color-primary, --gin-spacing-*, etc.) so it tracks Gin's accent color and spacing tokens automatically.

Installation

  1. Place this theme at themes/contrib/gin_frontend/ (or themes/custom/gin_frontend/ if you're customising it).
  2. Enable it: drush theme:install gin_frontend.
  3. Set it as your default theme: visit Appearance, or drush config:set system.theme default gin_frontend.
  4. Place blocks in the new regions:
    • branding → Site branding (logo + name + slogan)
    • primary_menu → Main navigation
    • secondary_menu → User account menu

Known limitations

Sub-theme settings (#3280001)

Gin's GinSettings::getAdminTheme() is private and always reads from system.theme.admin, so a sub-theme used as the frontend theme inherits the admin theme's settings (logo, accent color, etc.) rather than its own. The Gin maintainers have marked #3280001 as won't-fix and recommend "override getAdminTheme() in your sub-theme" — but that method is private, and themes can't ship service decorators in Drupal, so this is awkward to address from inside a theme alone.

Practical effect: configure logo, accent color, dark mode, etc. on the admin theme (Gin), and the sub-theme will use the same. If you genuinely need separate frontend settings, pair this theme with a companion module that decorates gin.settings.

Officially-unsupported subtheming

Gin maintainers don't officially support subtheming Gin (see #3187880, #3280001 comments). This theme exists because #3166974 — the meta issue asking for a Gin frontend theme — was closed with a suggestion to build it as a separate contrib project. Use accordingly.

Compatibility

  • Drupal 10.3+ / 11+
  • Gin 5.x

License

GPL-2.0-or-later, matching Drupal contrib convention.

Activity

Tracked releases
3
Tracked since
May 2026
Latest release
3 months ago
Releases (12 mo)
3 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Release date
1.0.0-alpha2 Pre-release May 11, 2026
1.0.0-alpha1 Pre-release May 11, 2026
1.x-dev Dev May 11, 2026