Error while adding Bootswatch Boost preset

Error while adding Bootswatch Boost preset

Danila Sysoevdən -
Number of replies: 2

Hi.

I'm using Moodle 3.9.1+

I have no additional theme plugins installed.

I'm build preset file with https://github.com/moodle/moodle/tree/master/theme/boost/cli script for lux bootsatch theme: https://bootswatch.com/lux/.

When I add this file in presets list in admin panel and select as active, I see this error.

Help me, please.

Attachment 1.png
Orta qiymət: -
In reply to Danila Sysoev

Re: Error while adding Bootswatch Boost preset

Gareth J Barnarddən -
Core developers istifadəçinin şəkili Particularly helpful Moodlers istifadəçinin şəkili Plugin developers istifadəçinin şəkili

The SCSS PHP parser does not support the '@import' statement, so you need to comment out the lines: https://github.com/gjb2048/moodle-theme_foundation/blob/master/classes/module/swatch/lux_bootswatch.scss#L5-L22 and either add in the fonts to the theme or add the Google font markup line (as you would any Google font using their instructions) to the 'additionalhtmlhead' core setting.