Error while adding Bootswatch Boost preset

Error while adding Bootswatch Boost preset

by Danila Sysoev -
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
Average of ratings: -
In reply to Danila Sysoev

Re: Error while adding Bootswatch Boost preset

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

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.

Average of ratings: Useful (1)