RGB function not found: Sass does not compile when included


Topic: RGB function not found: Sass does not compile when included in project as instructed

prabindeka asked 2 years ago

Expected behavior $box-shadow-1: 0 0px 2px 0 rgb(0 0 0 / 7%), 0 1px 1px 0 rgb(0 0 0 / 4%) should compile when the sass folder is included in the project.

Actual behavior

Sass does not have a rgb function but has a rgba(x,y,z,a) function

Resources (screenshots, code snippets etc.)

web-direct_1 | ActionView::Template::Error (Error: Function rgb is missing argument $green. web-direct_1 | on line 7:9 of app/assets/stylesheets/mdb/mdb.free.scss web-direct_1 | from line 24:9 of app/assets/stylesheets/application.scss web-direct_1 | >> $box-shadow-1: 0 0px 2px 0 rgb(0 0 0 / 7%), 0 1px 1px 0 rgb(0 0 0 / 4%) !def


Grzegorz Bujański staff commented 2 years ago

What framework or bundler are you using? Does this framework / bundler use node-sass or dart-sass to compile scss?


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Open

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: MDB Standard
  • MDB Version: MDB5 4.4.0
  • Device: Desktop
  • Browser: Chrome
  • OS: Mac
  • Provided sample code: No
  • Provided link: No
Tags