magento2-frontend-dev

Solid

Magento 2 frontend development using Luma/Blank theme. Use when: - "Create Knockout.js component", "add UI Component" - "Modify layout XML", "customize template" - "Write LESS CSS", "style with Magento UI library" - "Add RequireJS module", "extend JavaScript" - "Customize checkout", "modify cart page" DEPENDENT on magento2-dev-core for backend patterns and escaping.

Web & Frontend 2 stars 2 forks Updated 4 days ago MIT

Install

View on GitHub

Quality Score: 81/100

Stars 20%
16
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Magento 2 Frontend Developer This skill covers Luma/Blank theme development, Knockout.js, RequireJS, LESS CSS, and UI Components. ## Related Skills **REQUIRED BACKGROUND:** Load `magento2-dev-core` first — it defines the escaping (`escapeHtml`/`escapeHtmlAttr`/`escapeJs`) and backend patterns this skill's templates and view models rely on. This skill targets Luma/Blank-derived themes. If the project's `theme.xml` parent is `Hyva/default` or `Hyva/reset` (or `composer.json` requires `hyva-themes/*`), use `magento2-hyva-dev` instead — the two frontend stacks are mutually exclusive and share almost no code patterns. ## Theme Structure ``` app/design/frontend/Vendor/Theme/ ├── registration.php ├── theme.xml ├── composer.json ├── media/ │ └── preview.jpg ├── web/ │ ├── css/ │ │ └── source/ │ │ ├── _extend.less │ │ ├── _theme.less │ │ └── _variables.less │ ├── js/ │ │ └── namespace/ │ │ └── module.js │ └── images/ └── Magento_Theme/ ├── layout/ │ ├── default.xml │ └── default_head_blocks.xml └── templates/ └── header.phtml ``` ## RequireJS Modules ### Creating a Module ```javascript // web/js/namespace/module.js define([ 'jquery', 'ko', 'uiComponent', 'Magento_Customer/js/customer-data' ], function ($, ko, Component, customerData) { 'use strict'; return Component.extend({ defaults: { template: 'Namespace_Module/template-name', exports: { ...

Details

Author
ddtcorex
Repository
ddtcorex/dev-skills-hub
Created
2 months ago
Last Updated
4 days ago
Language
Shell
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category