cancel
Showing results for 
Search instead for 
Did you mean: 

Magento2 Custom Theme Error

Magento2 Custom Theme Error

Hi ,

 

I started development of custom theme . I taken blank theme as base theme. I am getting below errors when i am executing static-content:deploy command.

 

NameError: variable @header-icons-color is undefined

in _navigation.less on line 33, column 28:

    32

            @_icon-font-size: 28px,

    33

            @_icon-font-color: @header-icons-color,

    34

            @_icon-font-color-hover: @header-icons-color-hover

I didn't declared any variable in my css file. I think its coming from blank theme. How to solve this error?

 

Magento Version 2.2.4

PHP 7.0

MYSQL 5.6

Apache 2.2.4

2 REPLIES 2

Re: Magento2 Custom Theme Error

Hello @dineshprim

have you taken web/css/_styles.less into your theme 

 

if then check lib css added into that.

 

it happen when you taken less file and you missing original import css.

 

 


Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer

Re: Magento2 Custom Theme Error

I don't have any file with that name ? I have my own css file which is not less css. I added it on default_head_blocks.xml but its not rendering.