Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8445c17

Browse files
author
Oleksandra Marchenko
committed
Added a note about redefining library variables to the Magento UI library topic
1 parent 5555bf0 commit 8445c17

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

guides/v1.0/frontend-dev-guide/css-topics/theme-ui-lib.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,10 @@ The complete list of these variables and their default values are stored in <a h
9393

9494
To change the default library variables values, specify the new values for the required variables in the <code>app/design/frontend/&lt;Vendor&gt;/&lt;theme&gt;/web/css/source/_theme.less</code> file.
9595

96+
<div class="bs-callout bs-callout-info" id="info">
97+
<p>Please mind, that your <code>app/design/frontend/&lt;Vendor&gt;/&lt;theme&gt;/web/css/source/_theme.less</code> file overrides <code>_theme.less</code> of the parent theme (if your theme has a parent). So if you want to inherit the parent theme's variable values additionally to your changes, add the content of parent’s <code>_theme.less</code> to your file as well.</p>
98+
</div>
99+
96100
The following figure shows the product page shown earlier in this topic, after a custom theme was applied. The theme customized Blank by redefining variables only.
97101

98102
<img src="{{site.baseurl}}common/images/ui_lib2.png" alt="Changing design by redefining variables">

0 commit comments

Comments
 (0)