generate:theme

एक नया थीम उत्पन्न करें।

Usage:

drupal generate:theme  [options]
gt

Available options

OptionDetails

--theme

थीम का नाम

--machine-name

यांत्रिक नाम (लोअरकेस और केवल अंडरस्कोर)

--theme-path

थीम का पथ

--description

थीम विवरण

--core

मूल संस्करण

--package

थीम पैकेज

--global-library

वैश्विक स्टाइल पुस्तकालय नाम

--libraries

Libraries

--base-theme

आधार थीम (i.e. classy, stable)

--base-theme-regions

Add the default regions of the chosen base theme

--regions

क्षेत्र

--breakpoints

ब्रेक पॉइंट्स

Examples

Generate a theme without region and without breakpoint specifying the theme name, its machine name, the theme path, a description, the drupal core, the package name and the global library

drupal generate:theme  \
  --theme="AnotherTheme"  \
  --machine-name="anothertheme"  \
  --theme-path="/themes/custom"  \
  --description="My Awesome theme"  \
  --core="8.x"  \
  --package="PackageName"  \
  --global-library="global-styling"  \
  --base-theme="false"

Generate a theme base on stable theme with two region defined and one breakpoint specifying the theme name, its machine name, the theme path, a description, the drupal core, the package name, a global library, its base, the regions and the breakpoint

drupal generate:theme  \
  --theme="MyTheme"  \
  --machine-name="mytheme"  \
  --theme-path="/themes/custom"  \
  --description="My Awesome theme"  \
  --core="8.x"  \
  --package="MyThemePackage"  \
  --global-library="global-styling"  \
  --base-theme="stable"  \
  --regions='"region_name":"Content", "region_machine_name":"content"'  \
  --regions='"region_name":"Panel", "region_machine_name":"panel"'  \
  --breakpoints='"breakpoint_name":"narrow", "breakpoint_label":"narrow", "breakpoint_media_query":"all and (min-width: 560px) and (max-width: 850px)", "breakpoint_weight":"1", "breakpoint_multipliers":"1x"'