magento2-alpaca-theme

Magento 2 theme built on top of Alpaca design system crafted for ecommerce

Github星跟蹤圖

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.

概覽

名稱與所有者SnowdogApps/magento2-alpaca-theme
主編程語言HTML
編程語言PHP (語言數: 5)
平台
許可證MIT License
發布數70
最新版本名稱2.28.4 (發布於 2023-04-06 12:58:06)
第一版名稱0.1.0 (發布於 2017-10-09 15:36:02)
創建於2017-04-18 10:55:56
推送於2023-06-08 16:55:14
最后一次提交2023-04-26 11:20:26
星數200
關注者數19
派生數72
提交數4.3k
已啟用問題?
問題數79
打開的問題數5
拉請求數466
打開的拉請求數4
關閉的拉請求數34
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?
去到頂部