Inheritance of Themes - Best practice

Inheritance of Themes - Best practice

by Torsten Preuß -
Number of replies: 1

Dear Moodle-Community,

there's something I don't completely understand while developing my own themes.

I am using Moodle 3.9.X.

So for example I created theme A and B.

In the config.php of each theme, I specified the parents with

$THEME->parents = [...];

Theme A's parent is boost and theme B's is theme A.

Theme A correctly inherit the SCSS styling from boost, but theme B doesn't get the SCSS styling at all. So it seems like theme B doesn't inherit the styling from theme A including the styling from "boost".

Is there any best practice for SCSS inheritance in this case? How can I solve this issue?

Cheers

Average of ratings: -
In reply to Torsten Preuß

Re: Inheritance of Themes - Best practice

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

With 'B', do you have:

$THEME->parents = [ 'A', 'boost'];

?