Themes
Concept
Set up a parent theme
{
"name": "@example/parent-theme",
"mosaic": {
"type": "theme",
"themeAlias": "Parent"
}
}export const SOME_VALUE = 42;
export class DataSource {
getData() {
return ['Source data'];
}
run() {
const data = this.getData();
console.log(data);
}
};
export default DataSource;Set up a child theme
Shadow
Ensure all exports
Review project structure
Demonstration
File shadowingLast updated