alexvergara/alpaca-test-theme

This package is abandoned and no longer maintained. No replacement package was suggested.

M2Challenge Alex Test theme (Alpaca)

Installs: 2

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 1

Open Issues: 0

Language:HTML

Type:magento2-theme

1.0.0 2019-09-21 16:59 UTC

This package is auto-updated.

Last update: 2024-09-23 17:55:09 UTC


README

Alpaca logo

Packagist version number Packagist download count

Introduction

Magento 2 theme created on top of own components library, designed from scratch by SNOW.DOG front-end team following design systems methodology principles.

Demo

  • Apache Solr based catalog is an internal Snowdog product, not open-sourced. If you are interested in having it in your store, please contact us at hello@snow.dog

Installation

  • Install Magento using Composer
  • composer require snowdog/theme-frontend-alpaca
  • Create dev/tools/frontools/config/themes.json config file following one of the samples:
  • Install Frontools dependecies and setup config files cd vendor/snowdog/frontools && yarn && gulp setup
  • In Frontools directory (or /tools in project root) run gulp styles && gulp babel && gulp svg to compile all static assets

Child theme packages structure

Each theme is built from two packages:

  1. Magento theme
  2. Components library

This leads to 4 packages linked together to create a custom theme based on Alpaca:

  1. Alpaca components
  2. Alpaca theme - depends on Alpaca components
  3. Custom components - depends on Alpaca components
  4. Custom theme - depends on Alpaca theme and Custom theme components

Inheritance of components is solved on Frontools level, it's based on the same rules as in Magento core - files from child overwrite the parent.

Workflow

In the theme, you should keep almost only templates and JS. Do not create any non-magento specific styles inside your theme. Components are designed to be able to reflect your store UI, without having to run Magento instance. Implementing some part of UI directly inside theme will make components preview useless and you will lose all benefits of writing UI in separation.

Workflow exceptions

We don't want to mess with the checkout and product gallery (Fotorama) templates, nor styling, so these two parts are copy-pasted from the SASS Blank theme.