axentix / axentix

The framework mixing fully customizable components and utility-first classes, leaving the design choice to the developer.
https://useaxentix.com
MIT License
191 stars 18 forks source link

Can't compile axentix framework #82

Closed vitalijusm2 closed 2 years ago

vitalijusm2 commented 2 years ago

Hi, I need some help. When I'm trying to compile scss with npm sass comand, I get this error:

Error: Undefined function. ╷ 9 │ $color-brightness: round((red($n) 299) + (green($n) 587) + math.div(blue($n) * 114, 1000)); │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ╵ utilities_functions.scss 9:66 txtColor() components_pagination.scss 35:14 @import axentix.scss 29:9 root stylesheet.

What I am doing wrong? If i remove these lines with

everything compiles correctly.

Thanks for help.

Xelzs commented 2 years ago

Hello @vitalijusm2

This error happens because you are using an older version of sass than Axentix.

Since 1.33.0 describe in their changelog we need to use math.div to make divisions.

Axentix maintains its dependencies to the latest version, so upgrading your sass version will resolve your problem.

vitalijusm2 commented 2 years ago

Understood.will try to update