- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
I have added in RGB color in less files but its not working and got this error.
main.CRITICAL: error evaluating function `rgba` color functions take numbers as parameters index: 14028 {"exception":"[object] (Magento\\Framework\\View\\Asset\\ContentProcessorException(code: 0): error evaluating function `rgba` color functions take numbers as parameters index: 14028 at
Can any one help me
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Have you tried the following method?
@baseColor: #d24d36;
body {
color: rgba(red(@baseColor), green(@baseColor), blue(@baseColor), 1);
}
Check rgba to hexa code here
200+ Magento 2 Extensions for Enhanced Shopping Experience.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
box-shadow: 0 0 3px rgba(red(@baseColor), green(@baseColor), blue(@baseColor), 1);
}
200+ Magento 2 Extensions for Enhanced Shopping Experience.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Have you tried the following method?
@baseColor: #d24d36;
body {
color: rgba(red(@baseColor), green(@baseColor), blue(@baseColor), 1);
}
Check rgba to hexa code here
200+ Magento 2 Extensions for Enhanced Shopping Experience.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Error on adding RGB color in less
Thanks for help can you please tell me how can I add
box-shadow: 0 0 3px rgb(0 0 0 / 30%);
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
box-shadow: 0 0 3px rgba(red(@baseColor), green(@baseColor), blue(@baseColor), 1);
}
200+ Magento 2 Extensions for Enhanced Shopping Experience.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Error on adding RGB color in less
Thanx Sanjay!
You are awesome