Magento 2
Create a Theme Skeleton
Free Preview
<?xml version="1.0" encoding="UTF-8"?>
<theme xmlns:xsi="" xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/theme.xsd">
    <!-- The title for your theme in human-readable format -->
    <title>My theme</title>
    <!-- The parent theme your theme will inherit -->
    <!-- Almost always Magento/blank for new themes -->
    <!-- The media node is optional and can be removed if no preview image -->
        <!-- The preview_image node defines your theme's preview image -->
        <!-- Magento looks for a path relative to your theme's directory -->
This is where your preview image goes.

The core Magento themes use a JPG image that is 800x800 resolution.
// Import the ComponentRegistrar class
use Magento\Framework\Component\ComponentRegistrar;

// Register the theme, which is considered a component, with Magento
    ComponentRegistrar::THEME, // The type of component to register
      'frontend/Foo/mytheme', // The path to your theme relative to app/design
    __DIR__ // Look at the current working directory for the component
Want to learn more?

Visit to learn much more about Magento, Laravel, PHP, Javascript, & Docker. logo