自定义主题xxx.info.yml的定义配置项:
# (required)The human-readable name. # (必须)一个可读的名称 # This will appear on the "Appearance" page where the theme is activated. # 当主题激活时会展示在‘外观’页面。 name: xxxxx # (required)Indicates the type of extension, i.e., "module", "theme", or "profile". # (必须)显示扩展的类型,如:"module"、"theme"、"profile" # For themes this should always be set to "theme". This value is case-sensitive. # 对于主题来说,这里必须保持为 "theme"。这个值是区分大小写的。 type: theme # (optional)The description, displayed on the "Appearance" page. description: 'HTML5, SASS, Responsive grid starter theme.' # (optional)Specifies a "package" that allows you to group themes together. # (可选)指定允许将主题分组在一起的“package” package: Core # (required)Specifies the version of Drupal core that the theme is compatible with. # (必须)指定主题与之兼容的Drupal核心版本。 core: '8.x' # (optional)The minimum version of PHP required. Defaults to the value of DRUPAL_MINIMUM_PHP constant. # php: 7.1.9 # (optional)Specifies a version. For themes hosted on drupal.org, # the version number will be filled in by the packaging script. # Do not specify it manually, but leave out the version line entirely. version: '8.x-1.3' # (optional)A list of libraries (which can contain both CSS and JavaScript assets) to add to all pages where the theme is active. # see https://www.drupal.org/node/2216195 libraries: - core/normalize - xxxxx/global # (optional)A collection of libraries and assets to override. # see https://www.drupal.org/node/2216195#override-extend # libraries-override: # (optional)A collection of libraries and assets to add whenever a library is attached. # see https://www.drupal.org/node/2216195#override-extend # libraries-extend: # (recommended)A theme can inherit the resources from another theme by specifying it as a base theme. # It is recommended to use classy or stable (stable is the default if the key is not supplied) # – this makes it easier for your theme to inherit future changes in core theming. # base theme: classy # (optional)Indicates whether or not to hide the theme from the "Appearance" page so that it cannot be enabled/disabled via the UI. # hidden: true # The theme engine. Defaults to "twig". # engine: twig # (optional)The path to logo relative to the theme's .info.yml file. # By default, Drupal will look for a file named "logo.svg" in the root of your theme folder and use that as the theme's logo. # logo: images/logo.png # (optional)The path to screenshot relative to the theme's .info.yml file. # Screenshots should be 588 pixels wide and 438 pixels high, though they are displayed at a smaller size. # By default, Drupal will look for a file named "screenshot.png" in the root of your theme folder and use that as the theme image on the "Appearance" page. # screenshot: fluffiness.png # (optional)A list of theme regions. (Note that region keys are not preceded by a dash.) # A content region is required. # see https://www.drupal.org/node/2469113 regions: header: 'Header' help: Help page_top: 'Page top' page_bottom: 'Page bottom' highlighted: Highlighted content: Content sidebar_first: 'Sidebar first' sidebar_second: 'Sidebar second' footer: 'Footer' # (optional)A list of inherited regions to remove. # regions_hidden: # (optional)A list of features to expose on the theme "Settings" page. # features: # (deprecated)A list of stylesheets from other modules or themes to remove from all pages where the theme is active. # Each value must be a full path relative to the docroot to resolve ambiguity when more than one file with the same name exists. # In cases where the file is part of a library that belongs to a module or theme, a token in the form @module_or_theme_name can be used in place of the full path. # Note that when using the token the value must be quoted because "@" is a reserved indicator in YAML. # Note: This key is deprecated and will be removed in Drupal 9. In most cases libraries-override should be used. # stylesheets-remove: # (optional)A list of stylesheets to add to the CKEditor frame. # ckeditor_stylesheets: # Information added by Drupal.org packaging script on 2017-10-15 project: 'xxxxxxx' datestamp: 1508096954