Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Views Bootstrap 5.5.4 — Minor update available for module views_bootstrap (5.5.4). Release: Download Tracker 1.0.7 — Minor update available for module download_tracker (1.0.7). Release: Directory2Block Slideshow 1.0.8 — Minor update available for module directory2block_slideshow (1.0.8). Release: Mautic Audiences 1.1.5 — Minor update available for module mautic_audiences (1.1.5). Release: Rightup theme 1.0.3 — Minor update available for theme vartheme_bs5_rightup (1.0.3). Release: CommentOn 1.0.6 — Minor update available for module commenton (1.0.6). Release: ChatGPT Ads 1.0.3 — Minor update available for module chatgpt_ads (1.0.3). Release: Opensolr Search 5.1.3 — Minor update available for module opensolr_search (5.1.3). Module Revived: Swagger-PHP OpenAPI 3 documentation generator 1.0.0 — Module swagger_php updated after 10 months of inactivity (1.0.0). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage.

------------------------------------
This project is superseded by the Rocketship Starter theme
------------------------------------

This module contains a PHP-script to generate component based themes for use with the Rocketship distribution and its various components), based on certain presets.

The generated themes make use of Gulp as a workflow tool and Sass for preprocessing the CSS, as well as Storybook for styleguide generation. All info about how to use it, is present in the README file of your generated themes and the built Storybook styleguide.

This module replaced the 4 Rocketship themes previously maintained here, which should be considered legacy:

Some things the resulting themes do:

  • Templates, CSS and JS are component-based
  • Provides font loading options
  • Uses Sass (with globbing) to make CSS
  • Can provide Sourcemaps for CSS and JS
  • Can generate favicons
  • Can generate critical CSS files
  • Can generates a custom icon font or icon sprite
  • Has better responsive tables
  • Can override colors for the Rocketship Paragraphs (or Content Blocks, depending on the version) background-color palette
  • Adds styling for Rocketship content types (if using RS Features)

for using the generator script

  • php 8.1+

for using the generated themes

  • A Dropsolid Rocketship distribution using Rocketship Core 6.1.x
  • Node: 18.x
  • a recent version of gulp-cli
  • dependent Drupal modules:
    • responsive_image
    • components
    • unified_twig_ext

See theme's Readme file for more info on versions and updates

Usage

Generating your theme can be done by running the php script in this module, with options:

php scripts/generate-theme.php

Use these options:

  • name: The name of your theme. Don't use dashes or special characters.
  • machine-name: the machine name
  • theme-path: location of the generated theme relative to where the script is located (the dist folder inside the module is default)
  • preset (deprecated, will be removed in the next minor release):
    • minimal: a setup with only some basic and structural CSS
    • starter: some more styling, including for the Rocketship elements as well
    • flex: more styling for the Rocketship elements, following the Rocketship Flex guidelines & presets
    • demo: styling and presets for a Demo site
  • author: person developing the theme
  • description: a short description that goes in the info, composer & README files

So you can see that the themes that will be generated using these presets, will go from very little files & configuration to a very full set of files and configuration.

Generate

You should pass your options in this format (don't forget the single quotes if using spaces):
php scripts/generate-theme.php --name='My theme' --machine-name=my_theme

Examples per theme preset:

php docroot/modules/contrib/rocketship_theme_generator/scripts/generate-theme.php --name='Rocketship theme' --machine-name='rocketship_theme' --preset=starter --theme-path='docroot/themes/custom'

Starter

Comes with some basic styling and Sass/Twig files to get you started.
Contains a bit more pre-defined styles that the Rocketship Minimal theme but less than the Rocketship Flex theme or Rocketship Demo theme: Structural CSS for Paragraphs, Structural CSS for Features

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.

Activity

Tracked releases
9
Tracked since
May 2023
Latest release
3 years ago
Releases (12 mo)
0
Maintenance
Dormant

Release Timeline

Releases

Version Type Core Release date
4.0.1 Stable Jul 27, 2023
4.0.0 Stable Jul 27, 2023
4.0.0-rc1 Pre-release Jul 26, 2023
4.0.0-beta1 Pre-release Jul 21, 2023
4.0.x-dev Dev Jun 21, 2023
3.10.2 Stable May 5, 2023
3.10.1 Stable May 2, 2023
3.10.0 Stable May 2, 2023
3.9.0 Stable May 2, 2023