Documentation

Installation

Install the theme

composer require drupal/maya
drush theme:enable maya
drush config:set system.theme default maya

Or go to Appearance, find Maya under Uninstalled themes and choose Install and set as default.

Default blocks

Enabling Maya places these blocks:

Block Region
Site branding Header
Main navigation (three levels) Primary menu
Search form Header search
Language switcher Header language
Status messages Highlighted
Breadcrumbs Breadcrumb
Page title, tabs, local actions Above content
Help Help
Main page content Content
Footer menu Footer
User account menu, Powered by Drupal Footer bottom

Blocks that need a module (Search, Language, Help) are placed only if that module is enabled when Maya is installed. To place them later, go to Structure > Block layout > Maya.

Logo and lockup

The header shows the logo from Appearance > Settings > Maya as a seal, 42px on phones, 52px on tablets and 112px on desktops (hidden below 375px), with a two-line lockup beside it. The lockup is part of the logo: set it under Logo text, first line and Logo text, second line in the same settings. When both lines are empty the site name takes their place. An SVG logo is drawn in white on the dark header and footer; other images keep their colors. Use a square logo.

Theme settings

Setting Default
Logo text, first line City and County of
Logo text, second line San Francisco
Show the San Francisco skyline at the bottom of the footer On
Page header: the field for each part, by content type Guessed from field names. See Page header.
Teasers: card variant and image ratio, by view mode Guessed from the view mode name. See Node teasers.
People, events and places: the kind of each content type Guessed from the content type name. See People, events and places.
In-page navigation: content types with "Search on this page" and "On this page" None. See In-page navigation settings.

Upgrading a site from Maya 1.x? See Upgrading from 1.x.

Fonts

The maya/fonts library loads Roboto Flex, Roboto Slab and Roboto Mono from Google Fonts. To host the fonts yourself, disable it in a sub-theme and load your own copies:

libraries-override:
  maya/fonts: false

Edit this page