Theme

Generated from Starter Kit theme.

Base theme set to false (Instead of Stable9) to get latest changes from core.

Starter Kit theme has enhancements like extra classes and fixes for things.

mantra_starter.info.yml
name: Mantra Starter
type: theme
'base theme': stable9
starterkit: true
core_version_requirement: ^9
generator: 'starterkit_theme:9.5.1'
version: VERSION

libraries:
  - mantra_starter/global
  - mantra_starter/messages
  - core/normalize

libraries-extend:
  user/drupal.user:
    - mantra_starter/user
  core/drupal.dropbutton:
    - mantra_starter/dropbutton
  core/drupal.dialog:
    - mantra_starter/dialog
  core/drupal.progress:
    - mantra_starter/progress
  facets/drupal.facets.checkbox-widget:
    - mantra_starter/facets
  field_ui_extras/summary:
    - mantra_starter/field_ui_extras
  file/drupal.file:
    - mantra_starter/file
  views_ui/admin.styling:
    - mantra_starter/views_admin

regions:
  header: Header
  content: Content
  footer: Footer

CSS Reset

core/normalize is included as the base css reset.

https://github.com/necolas/normalize.css/blob/master/normalize.css

Build Vite Theme

  1. Create new theme
    • [lando/ddev] php web/core/scripts/drupal generate-theme mytheme
    • cd web/themes/mytheme
  2. Create vite project
    • npm create vite@latest .