Part of the GIN ecosystem · 13 projects
Give your Drupal admin a sense of occasion. Gin Occasions adds festive and seasonal looks on top of the Gin admin theme: snow and Santa at Christmas, a hopping Easter bunny, bubbles in summer, confetti on your company's birthday, flags on national holidays, and a dignified look for times of mourning. Occasions switch on and off automatically every year, without requiring manual intervention.
Everything in Gin stays exactly as it is. Occasions work as a lightweight visual layer on top of the existing theme, adding decorations, greetings and gentle animations. Each editor can disable them with a single click.
Occasions
- Christmas (1 December – 6 January): A Santa hat on the logo, falling snow, Santa flying across the page and throwing gifts, twinkling lights, snow on cards, holly and festive greetings.
- Easter (Palm Sunday – Easter Monday, calculated automatically every year): Bunny ears, falling petals, an Easter bunny hopping across the page and leaving painted eggs, hanging eggs, grass and flowers on cards.
- Summer holidays (1 July – 31 August): A straw hat, soap bubbles, a plane towing a "Have a great summer!" banner, rolling waves, sand and shells.
- Birthday (a configurable annual date): A party hat, confetti, floating balloons, bunting and a birthday cake. Suitable for a company, website or team anniversary.
- National holidays (configurable dates): A cockade, small flags, a waving flag and greetings with the holiday name, using the colours of the selected flag. Presets are available for Austria, Belgium, France, Germany, Ireland, Italy, the Netherlands, Poland and Spain. Custom flag colours can also be configured.
- Mourning: A sober appearance without animations, featuring a black ribbon on the logo, graphite colours and an optional grayscale effect across the page. Mourning always takes priority over other occasions.
Features
- Set it once, forget it. Each occasion can appear automatically during its configured season, immediately, between selected dates or never.
- Clear priorities. Only one occasion is active at a time. The priority order is mourning, manually enabled occasions, national holidays and birthdays, followed by seasonal occasions.
- Control animations. Administrators can disable individual animations globally, or leave them enabled and let each user turn them off using the button in the corner.
- Public pages support. An optional companion module allows occasions to appear on public-facing pages. Administrators can configure whether they are displayed everywhere, only on selected pages or excluded from specific pages. It works with Page Cache, reverse proxies and CDNs. The browser determines the current occasion, so cached pages always display the appropriate seasonal decorations.
- Both Drupal toolbars supported. Works with the Drupal core Navigation module and the classic Gin toolbar.
- Accessible. Respects reduced-motion preferences. Decorations do not interfere with clicks and are hidden from screen readers. Animations pause when the browser tab is inactive.
- Lightweight. Only the CSS and JavaScript required for the active occasion are loaded. Assets are minified, with no external libraries. Graphics are hand-drawn SVGs.
- Translatable. All interface texts, greetings and holiday names are translatable.
About the project
Gin Occasions extends the Gin administration theme with seasonal and special-occasion decorations. It automatically displays the appropriate visual effects and greetings based on configured dates, including Christmas, Easter, summer holidays, birthdays, national holidays and mourning periods.
The project also includes an optional companion module that brings these decorations to public-facing pages. It allows site administrators to configure where and when occasions appear while keeping the existing theme functionality intact.
Points of interest for the review
- Automatic occasion scheduling: Check how dates, recurring events and Easter dates are calculated and how occasion priorities are handled.
- Integration with Gin: Verify that the decorations work correctly without interfering with the original Gin theme functionality.
- User preferences: Check how individual users can disable animations and decorations.
- Public pages integration: Review how the optional module handles occasion selection, page caching and compatibility with reverse proxies and CDNs.
- Accessibility and performance: Check reduced-motion support, animation handling, asset loading and the use of lightweight CSS, JavaScript and SVG graphics.
Quality
- The project includes unit, kernel and functional tests covering its main functionality.
- Drupal coding standards and PHPStan static analysis are included in the GitLab CI pipeline.
Similar projects
Gin Occasions builds on the Gin administration theme and adds automatic seasonal and event-based visual enhancements that are not provided by the standard theme.
Requirements
- Drupal 11.3 or later
- Gin 5
Getting started
- Run
composer require drupal/gin_occasions. - Go to Appearance, install Gin Occasions and set it as the administration theme.
- Navigate to Appearance » Settings » Gin Occasions and configure when each occasion should appear.
- Optional: install Gin Occasions: public pages to display occasions on your public-facing pages.
See the README for all available settings, CSS classes and custom properties for sub-themes, as well as development notes.
Ideas for new occasions, additional national flags or improvements are welcome in the issue queue.
How it was made
This Drupal theme was developed with the help of AI (Claude), which generated most of the code, tests, and documentation under my direction. I came up with the project idea, defined the design and functionality, and guided the development process. I tested the theme on my own website, reviewed the results, and requested changes whenever something needed improvement. I also reviewed the code and understand how it works, so I will be responsible for its ongoing maintenance, future improvements, and addressing any feedback or issues.
Ask your assistant about Gin Occasions
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
More in the GIN ecosystem
Most installed first
Activity
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 1.0.1 | Stable | 11 | Nov 26, 2026 |