Projects

Themes can include config for default block placement.

Will the starter kit include this in setup?

Updated: | #Development, #Theming

I set up a new text filter to use CKEditor 5 called Content.

I added a few buttons for lists, tables, blockquotes. Also replaced the image button with media library, and added code block and source buttons.

Updated: | #Content, #Text Format
name: Mantra
description: Mantra theme.
type: theme
core_version_requirement: ">=8"
base theme: false

 

Updated: | #Theming

layout.css

Updated: | #Layout

messages.css

Updated: | #Messages

Copy menu.html.twig from Classy.

Add attach_library('mantra_theme/menu').

 

mantra_theme.libraries.yml

Updated:

Drupal themes inherit libraries from core modules and base themes.

Inherited libraries can be extended or overridden in the theme info file.

mantra_theme.info.yml

Updated: | #Theming, #Libraries

CKEditor 5 is now loaded without an iFrame, so it inherits the styles from the current theme.

mantra_theme.info.yml

ckeditor5-stylesheets:
  - css/drupal/ckeditor5.css

 

Updated: | #CKEditor 5

mantra_theme.libraries.yml

form:
  css:
    component:
      css/drupal/component/form.css: {}

 

form.css

Updated:

mantra_theme.libraries.yml

tabs:
  css:
    component:
      css/drupal/component/tabs.css: {}

 

menu-local-tasks.html.twig

Attach tabs library.

Updated: