Prototype
Prototype is a starter Drupal theme that utilizes Single Directory Components to provide a foundation for theme development. It includes a front-end build pipeline with SCSS, PostCSS, Webpack, Babel, and Browsersync for efficient theme creation.
Prototype is a starterkit Drupal theme leveraging Single Directory Components. The goal of Prototype is to provide a solid foundation for Drupal theme development by establishing a pattern of well organized components alongside a front-end build pipeline that utilizes SCSS, PostCSS, Webpack for JS bundling, Babel and Browsersync.
Post CSS and Babel respect .browserlistrc configuration, post processing CSS and JS as needed based on the browser versions defined.
Creating a starter theme
Navigate into the Prototype theme folder
Run ❯ php generator.php
Generator Options:
-n, --name A name for the theme
-d, --display-name A human readable display name for your theme
-p, --path The path where your theme will be created. Defaults: themes/custom
-a, --abbreviated Use abbreviated theme name for CSS variablesExample with options:
php generator.php -n custom_theme -d 'Custom Theme' -p themes/custom -a short
Required Modules:
5.x Branch
Version 5 of the theme is being actively developed for Drupal 10. This version is a structural adjustment of 4.x and utilizes Single Directory Components which was introduced in Drupal 10.3. You can learn more about SDC within Drupal here.
4.x Branch
Version 4 of the theme is not actively maintained but will receive bug fixes as needed. This version is a complete rewrite of 8.x-2.x and introduced a more straightforward architecture.
Depends on
Dependencies of the latest stable release
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Release Timeline
Releases
| Version | Type | Core | Notes | Release date | |
|---|---|---|---|---|---|
| 5.5.0 | Stable | 10–11 | This release fixes an incorrect menu variable and introduces an updated accessible table format. | Apr 14, 2026 | |
| 5.4.0 | Stable | 10–11 | Drastically simplified menu component, support for Drupal core's navigation module. README files were introduced for most components, new Cypress testing, and outstanding PHPCS issues has been fixed. | Apr 3, 2026 | |
| 5.3.0 | Stable | 10–11 | Updated build tools & overall code standardization. Updates the accordion and search components, fixes generator bug, and removes breadcrumb preprocess logic. | Feb 16, 2026 | |
| 5.2.2 | Stable | 10–11 | This release addresses the component validation issue for slots on Drupal core 10.5 & 11.2+ and updates form input styles. | Jul 24, 2025 | |
| 5.2.1 | Stable | 10–11 | Stable release for the 5.2.1 branch! This release standardizes attribute handling across components, supports modern logical style properties, and removed the legacy l-constrained in favor of the new container class | Mar 19, 2025 | |
| 5.2.1-alpha6 | Pre-release | 10–11 | Introduces UI menu animation options, JS linting, and new README. Updates to node 22.11 and includes several other fixes | Feb 19, 2025 | |
| 5.2.1-alpha5 | Pre-release | 10–11 | This release removes the prefix on component variables throughout all components within Prototype. | Dec 12, 2024 | |
| 5.2.1-alpha4 | Pre-release | 10–11 | This release removes the accordion_group component, updates the accordion & pager components, reintroduces theme view suggestions, and improves the menu component to support complex nested menus without button controls. | Oct 30, 2024 | |
| 5.2.1-alpha3 | Pre-release | 10–11 | This includes a major overhaul of the folder structure for components and libraries. It also splits the menu component into smaller files and provides detailed READMEs for how to use the component. | Oct 10, 2024 |