magento2-alpaca-components
magento2-alpaca-components copied to clipboard
Working with variables on child themes
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
IMO, good to keep this in mind, but is not alpaca issue, but based-on-alpaca-custom-project's issue :)