magento2-alpaca-components icon indicating copy to clipboard operation
magento2-alpaca-components copied to clipboard

Working with variables on child themes

Open kjugi opened this issue 7 years ago • 1 comments

TO DO: Create some features to actual components.

The main idea Extend file in new child themes components and just create i.e. button-extend with our custom code and changes in existing button styles.

What next We must do something with variables b/c we will also overwrite it. We can't do it in the same file b/c it will not overwrite. We must think about other i.e. 3rd file for variables

@import '../variables/project-variables'; // project main variables from alpaca but overwriting with needed values
@import '../variables/variables'; // alpaca variables with !default flag i.e.
@import '../variables/custom-variables'; // our custom variables from element and extended files to overwrite it before executing

Problem This is a major idea. Is it more readable and better solution? We must sit and talk. I think it's a good idea but must rethink part with variables.

Some changes of this concept are already on PR here

kjugi avatar Oct 16 '17 13:10 kjugi

IMO, good to keep this in mind, but is not alpaca issue, but based-on-alpaca-custom-project's issue :)

anqaka avatar Oct 17 '17 09:10 anqaka